Skip to main content
1

Install via Composer

The package auto-registers via Laravel’s package discovery.
2

Publish assets

This package uses Filament’s asset management system:
This publishes the CSS to public/css/andreia/filament-ui-switcher/, where Filament loads and browser-caches it automatically.
Run php artisan filament:assets again after every package update to pick up the latest assets.
3

Publish the config (optional)

Creates config/ui-switcher.php — see Configuration for every option.
4

Publish the view (optional)

5

Register the plugin

Add it to your Filament panel provider (e.g. app/Providers/Filament/AdminPanelProvider.php):
A ⚙️ settings icon now appears in your topbar.
6

Register the vendor directory in your theme (recommended)

Filament recommends a custom theme so its Tailwind classes get picked up. Add this package’s vendor directory to your theme’s theme.css (usually resources/css/filament/admin/theme.css):
Then rebuild:

Customize icon position

By default, the settings icon appears before the user menu (USER_MENU_BEFORE) in the topbar. Point it at any Filament render hook instead:
Available hooks for the icon: USER_MENU_BEFORE (default), USER_MENU_AFTER, TOPBAR_START, TOPBAR_END, GLOBAL_SEARCH_BEFORE, GLOBAL_SEARCH_AFTER, or any custom render hook you’ve defined.

Enable the mode switcher (optional)

The light/dark/system mode switcher is hidden by default. To include Filament’s native mode switcher inside the settings modal: