Download the PHP package nrep/filament-theme-switcher without Composer
On this page you can find all versions of the php package nrep/filament-theme-switcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nrep/filament-theme-switcher
More information about nrep/filament-theme-switcher
Files in nrep/filament-theme-switcher
Package filament-theme-switcher
Short Description A FilamentPHP plugin that allows users to easily switch and customize application themes
License MIT
Homepage https://github.com/nrep/filament-theme-switcher
Informations about the package filament-theme-switcher
Filament Theme Switcher
A FilamentPHP plugin that allows users to easily switch and customize application themes. Supports both global themes and per-user theme preferences.
Features
- 🎨 7 Pre-built Themes: Default, Sunset, Ocean, Forest, Midnight, Rose, and Amber
- 🔄 Easy Theme Switching: Quick switch via dropdown or dedicated settings page
- 🎯 Per-User Themes: Optional per-user theme preferences with database storage
- 🖌️ Custom Colors: Override any theme color with custom color picker
- 🔐 Authorization: Control who can access theme settings
- 🌍 Translatable: Full translation support
- ⚡ Filament v3 & v4 Compatible: Works with both major versions
Requirements
- PHP 8.1+
- Laravel 10.x, 11.x, or 12.x
- Filament 3.x or 4.x
Installation
Install the package via composer:
Publish the config file (optional):
For per-user theme support, publish and run the migrations:
Usage
Basic Setup
Register the plugin in your Panel provider:
Add the middleware to apply themes:
Configuration Options
Theme Mode
Set the theme mode in the config file or via the plugin:
Plugin Configuration
Creating Custom Themes
Create a new theme by extending AbstractTheme:
Register your custom theme:
Using Hex Colors
You can use hex colors instead of Filament's Color constants:
Theme Switcher Component
Add the theme switcher dropdown to your panel's render hooks:
Available Themes
| Theme | Primary Color | Description |
|---|---|---|
| Default | Blue | Clean, professional blue theme |
| Sunset | Orange | Warm orange and amber tones |
| Ocean | Cyan | Cool ocean-inspired colors |
| Forest | Emerald | Natural green forest theme |
| Midnight | Indigo | Deep purple night theme |
| Rose | Rose | Soft pink and rose colors |
| Amber | Amber | Warm golden tones |
Authorization
Control who can access the theme settings page:
Translations
Publish the language files:
The package includes English translations. Add your own translations in resources/lang/vendor/filament-theme-switcher/.
Testing
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
- nrep
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-theme-switcher with dependencies
filament/filament Version ^3.0|^4.0
filament/support Version ^3.0|^4.0
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^10.0|^11.0|^12.0