PHPackages                             sanjaya/laravel-daisyui-starter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. sanjaya/laravel-daisyui-starter

ActiveLibrary[Framework](/categories/framework)

sanjaya/laravel-daisyui-starter
===============================

A Laravel starter kit with DaisyUI integration

v1.0.0(10mo ago)272↓75%1MITBladePHP ^8.2

Since May 30Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/sanjayacloud/laravel-daisyui-starter)[ Packagist](https://packagist.org/packages/sanjaya/laravel-daisyui-starter)[ RSS](/packages/sanjaya-laravel-daisyui-starter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (5)Used By (0)

Laravel DaisyUI Starter Kit
===========================

[](#laravel-daisyui-starter-kit)

A beautiful Laravel starter kit with DaisyUI integration, providing a modern and responsive UI framework for your Laravel applications. Built with Tailwind CSS v4 and the latest DaisyUI.

Features
--------

[](#features)

- 🎨 DaisyUI components integration
- 🌓 Dark mode support with theme persistence
- 📱 Responsive design
- 🎯 CSS-first theme configuration
- 🚀 Easy to customize
- 📦 Simple installation
- 🔐 Authentication with Laravel Breeze
- ⚡ Tailwind CSS v4 integration
- 📱 Ready-to-use example pages and components

Requirements
------------

[](#requirements)

- PHP ^8.2
- Laravel ^12.0
- Node.js &amp; NPM

Installation
------------

[](#installation)

1. Create a new Laravel project:

```
laravel new my-project
cd my-project
```

2. Install Laravel Breeze:

```
composer require laravel/breeze --dev
php artisan breeze:install
```

When prompted, select the "Blade with Alpine" option.

3. Install the package via composer:

```
composer require sanjaya/laravel-daisyui-starter:v1.0
```

4. Run the installation command:

```
php artisan daisyui-starter:install
```

This will:

- Publish the package assets and example pages
- Install required NPM packages
- Configure Vite with Tailwind CSS
- Set up the theme configuration
- Build the assets

5. Start your development server:

```
php artisan serve
```

6. In a separate terminal, start the Vite development server:

```
npm run dev
```

Example Pages and Components
----------------------------

[](#example-pages-and-components)

The package comes with pre-built example pages showcasing various DaisyUI components:

### Layout Structure

[](#layout-structure)

The base layout (`resources/views/vendor/layouts/app.blade.php`) includes:

- Responsive navigation bar
- Theme switcher (light/dark mode)
- User dropdown menu
- Automatic theme persistence using localStorage

To use the layout in your views:

```

```

### Dashboard Example

[](#dashboard-example)

The dashboard example (`resources/views/vendor/dashboard.blade.php`) demonstrates:

1. **Stats Cards**:

```

        Total Page Views
        89,400
        21% more than last month

```

2. **Alert Components**:

```

    New software update available.

```

3. **Form Elements**:

```

        What is your name?

```

4. **Data Tables**:

```

                Name
                Job
                Status

                John Doe
                Developer
                Active

```

### Common Components

[](#common-components)

1. **Buttons**:

```
Button
Primary
Secondary
Accent
Ghost
```

2. **Cards**:

```

        Card Title
        Content

            Action

```

3. **Badges**:

```
Default
Primary
Secondary
Accent
```

4. **Avatars**:

```

```

5. **Dropdowns**:

```

    Click

        Item 1
        Item 2

```

Screenshots
-----------

[](#screenshots)

### Dashboard

[](#dashboard)

[![Dashboard](assets/dashboard.png)](assets/dashboard.png)

### Login Page

[](#login-page)

[![Login](assets/login.png)](assets/login.png)

Theme Configuration
-------------------

[](#theme-configuration)

Themes are now configured directly in your CSS using CSS variables, following Tailwind CSS v4's CSS-first approach. The configuration is located in `resources/css/app.css`:

```
@layer theme {
    :root {
        --theme: "light";
        --color-primary: oklch(0.6569 0.196 275.75);
        --color-secondary: oklch(0.7176 0.158 342.55);
        --color-accent: oklch(0.7059 0.169 183.61);
        /* ... other color variables ... */
    }

    [data-theme="dark"] {
        --theme: "dark";
        --color-base-100: oklch(0.2 0 0);
    }
}
```

### Customizing Colors

[](#customizing-colors)

To customize your theme colors, modify the CSS variables in `resources/css/app.css`. Available color variables:

- `--color-primary`: Main brand color
- `--color-secondary`: Secondary brand color
- `--color-accent`: Accent color
- `--color-neutral`: Neutral color
- `--color-base-100`: Background color
- `--color-info`: Information color
- `--color-success`: Success color
- `--color-warning`: Warning color
- `--color-error`: Error color

### Switching Themes

[](#switching-themes)

To switch themes in your Blade templates:

```

```

For dynamic theme switching:

```

```

Usage
-----

[](#usage)

After installation, you can use DaisyUI components in your views:

```
Primary Button

        Card Title
        Card content

```

### Authentication

[](#authentication)

The package integrates with Laravel Breeze for authentication. All auth views are styled with DaisyUI components. Available routes:

- Login: `/login`
- Register: `/register`
- Password Reset: `/forgot-password`
- Profile: `/profile`

Troubleshooting
---------------

[](#troubleshooting)

### Common Issues

[](#common-issues)

1. If you get a stability error when installing, use:

```
composer require sanjaya/laravel-daisyui-starter:dev-main
```

2. If assets are not showing up correctly:

- Make sure you've published all assets
- Clear your Laravel cache: `php artisan cache:clear`
- Rebuild your npm assets: `npm run build`

3. If themes are not applying:

- Ensure the `data-theme` attribute is properly set on your HTML elements
- Check that your CSS variables are correctly defined in `resources/css/app.css`
- Make sure Vite is properly building your assets

Security
--------

[](#security)

If you discover any security related issues, please create a issue using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance55

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Total

3

Last Release

300d ago

Major Versions

v0.4.0-beta → v1.0.02025-07-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfc06db8336e75704fabcfa9a9159de32c1b510af7516fc5bd52e9fb803a93f0?d=identicon)[sanjayaprasanna20@gmail.com](/maintainers/sanjayaprasanna20@gmail.com)

---

Top Contributors

[![sanjayacloud](https://avatars.githubusercontent.com/u/34233059?v=4)](https://github.com/sanjayacloud "sanjayacloud (11 commits)")[![sanjayadias](https://avatars.githubusercontent.com/u/148998218?v=4)](https://github.com/sanjayadias "sanjayadias (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sanjaya-laravel-daisyui-starter/health.svg)

```
[![Health](https://phpackages.com/badges/sanjaya-laravel-daisyui-starter/health.svg)](https://phpackages.com/packages/sanjaya-laravel-daisyui-starter)
```

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
