DaisyUI Themes plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

DaisyUI Themes by Osama Nagi

Community

Filament integration for DaisyUI's open-source themes, with easy installation and theme switching.

Tags: Theme Panels
Supported versions:
5.x 4.x
Osama Nagi avatar Author: Osama Nagi

Package health

Automated checks of this plugin's Composer package

97 / 100
Security 94
Maintenance 100
Ecosystem 100
15 checks
  • Passed: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Warning: Dependabot PR responsiveness — Stale Dependabot PRs: oldest general PR is 31 days old.
  • Skipped: Renovate MR responsiveness
  • Passed: Dependabot or Renovate configured
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 41 days ago; last release 49 days ago.
  • Passed: composer.lock not committed by library — composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 1 day ago

Documentation

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Browser Compatibility Matrix Total Downloads

Apply any of the 35 built-in daisyUI themes to a Filament panel, with a topbar switcher for your users. No npm build, no Tailwind config, no published views.

Supports every Filament 4 and 5 release — from 4.0.0 and 5.0.0 up to the latest — on PHP 8.2+, including Laravel 11, 12 and 13. Filament 5 requires Livewire 4; follow the Filament upgrade guide when upgrading an existing app.

Shop dashboard in the Abyss theme

#Installation

You can install the package via composer:

composer require osamanagi/filament-daisy-ui-themes

Register the plugin on your panel (e.g. /app/Providers/Filament/AdminPanelProvider.php):

use Nagi\FilamentDaisyUiThemes\FilamentDaisyUiThemesPlugin;

return $panel
    // Your existing panel configuration...
    ->plugin(
        FilamentDaisyUiThemesPlugin::make()
            ->themes(['cupcake', 'nord', 'dracula'])
            ->defaultTheme('nord')
    );

Then publish the assets:

php artisan filament:assets

The plugin owns the panel's palette and its light/dark mode, so register it after any conflicting ->colors() or appearance settings. Give each panel its own instance.

You're all set!

#Methods

Method What it does
themes(['cupcake', 'nord']) Sets the themes this panel may use. Default: cupcake, nord, dracula.
defaultTheme('nord') Sets the starting theme. Must be in the list.
allThemes() Allows all 35 shipped themes.
allLightThemes() Allows the 21 light themes.
allDarkThemes() Allows the 14 dark themes.
themeSwitcher(false) Hides the selector; the theme still applies and persists.
themeSwitcherHook($hook) Moves the selector. Defaults to the end of the topbar.
FilamentDaisyUiThemesPlugin::get() The plugin instance for the current panel.

#Bulk helpers

->allThemes()       // all 35
->allLightThemes()  // 21 light
->allDarkThemes()   // 14 dark

They replace whatever themes() set. When the current default is not in the new list it resets to the first entry - so allDarkThemes() alone works and lands on abyss.

#Moving or hiding the selector

->themeSwitcherHook(PanelsRenderHook::SIDEBAR_FOOTER)
->themeSwitcher(false)

Any Filament\View\PanelsRenderHook case, or a string hook name, is accepted. A single-theme panel can hide the selector, and themeSwitcherHook() then renders nothing. Panels without a topbar, and the simple login layout, have no selector at all.

#Themes

Any of the 35 built-in daisyUI 5.7.46 themes can be enabled by name, for example ->themes(['business', 'abyss', 'wireframe']). defaultTheme() must belong to that list, and only allowlisted themes appear in the selector.

21 light, 14 dark. The split comes from each theme's own color-scheme token, not from its name:

Light (21) Dark (14)
acid, autumn, bumblebee, caramellatte, cmyk, corporate, cupcake, cyberpunk, emerald, fantasy, garden, lemonade, light, lofi, nord, pastel, retro, silk, valentine, winter, wireframe abyss, aqua, black, business, coffee, dark, dim, dracula, forest, halloween, luxury, night, sunset, synthwave

#Cost of allowing many themes

A panel inlines a stylesheet for each theme it allows: roughly 1 KB gzipped per theme. The default three cost about 3 KB per page load, all 35 about 20 KB. Allowlist what a panel actually needs.

#Light themes (21)

The demo's Shop Dashboard in each light theme.

Acid
Shop dashboard in the Acid theme
Autumn
Shop dashboard in the Autumn theme
Bumblebee
Shop dashboard in the Bumblebee theme
Caramellatte
Shop dashboard in the Caramellatte theme
CMYK
Shop dashboard in the CMYK theme
Corporate
Shop dashboard in the Corporate theme
Cupcake
Shop dashboard in the Cupcake theme
Cyberpunk
Shop dashboard in the Cyberpunk theme
Emerald
Shop dashboard in the Emerald theme
Fantasy
Shop dashboard in the Fantasy theme
Garden
Shop dashboard in the Garden theme
Lemonade
Shop dashboard in the Lemonade theme
Light
Shop dashboard in the Light theme
LoFi
Shop dashboard in the LoFi theme
Nord
Shop dashboard in the Nord theme
Pastel
Shop dashboard in the Pastel theme
Retro
Shop dashboard in the Retro theme
Silk
Shop dashboard in the Silk theme
Valentine
Shop dashboard in the Valentine theme
Winter
Shop dashboard in the Winter theme
Wireframe
Shop dashboard in the Wireframe theme

#Dark themes (14)

The same page in each dark theme.

Abyss
Shop dashboard in the Abyss theme
Aqua
Shop dashboard in the Aqua theme
Black
Shop dashboard in the Black theme
Business
Shop dashboard in the Business theme
Coffee
Shop dashboard in the Coffee theme
Dark
Shop dashboard in the Dark theme
Dim
Shop dashboard in the Dim theme
Dracula
Shop dashboard in the Dracula theme
Forest
Shop dashboard in the Forest theme
Halloween
Shop dashboard in the Halloween theme
Luxury
Shop dashboard in the Luxury theme
Night
Shop dashboard in the Night theme
Sunset
Shop dashboard in the Sunset theme
Synthwave
Shop dashboard in the Synthwave theme

#Compatibility

PHP 8.2+ and Filament ^4.0 || ^5.0 — every Filament 4 and 5 release from the first of each major to the latest. The test matrix pins the floors (4.0.0, 5.0.0) alongside the newest release of each major; the browser matrix renders against these pinned reference versions:

Filament Livewire Laravel
4.14.0 3.8.9 12.69.2
5.9.0 4.4.6 12.69.2

Composer 2.10 and older Filament releases. Composer now refuses to install dependency versions that carry a security advisory. Filament releases below 4.12.6 and 5.7.6 are affected by upstream Filament advisories, so Composer blocks them no matter what this package requires. If your lock file is older than that, upgrade Filament (composer update "filament/*" --with-all-dependencies) before installing this plugin — or lift the block explicitly with composer config policy.advisories.block false if you accept the risk.

#Changelog

Please see CHANGELOG for more information on what has changed recently.

#Contributing

Please see CONTRIBUTING for details.

#Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

#Credits

#License

The MIT License (MIT). Please see License File for more information. The bundled daisyUI theme data carries its own MIT attribution.

The author

Osama Nagi avatar Author: Osama Nagi

Osama Nagi is a software engineer and open-source enthusiast. He is exploring new technologies and sharing his knowledge with the community.

Plugins
2
Stars
19

From the same author