Light/Dark mode switcher outside of Filament
Random non-filament filament question. Has anyone extracted the filament light/dark mode toggle to a package for a regular Laravel app? Or does it maybe already exist in a blade component I can use outside of filament if filament is installed? I have a Jetstream app that also has Filament v3 installed for the admin backend.
2 Replies
I don't know why anyone would extract the Filament specific mode switch for non filament use, but maybe there's something in here to steer you in the right direction. https://github.com/awcodes/light-switch
GitHub
GitHub - awcodes/light-switch: Plugin to add theme switching (light...
Plugin to add theme switching (light/dark/system) to the auth pages for Filament Panels. - GitHub - awcodes/light-switch: Plugin to add theme switching (light/dark/system) to the auth pages for Fil...
Well like I said I have a Jetstream app that has filament for the admin section. The goal would be to have a light dark mode switch on the Jetstream app since it does not come with one. Rather than making a custom switch from scratch (the Filament one looks quite good). Bonus would be to maintain consistant state between Jetstream and Filament so admins keep their settings when switching between the Jetstream and Filament portions of the app.