Is there a way to remove the theme switcher and just have dark mode?
My users are extremely limited and my client is picky. They do not want the light mode feature. Can we just serve a single theme, dark mode, and remove the switcher??? Thanks.
9 Replies
this will force dark mode:
https://filamentphp.com/docs/3.x/panels/themes#changing-the-default-theme-mode
but not sure about removing the switcher form the menu
I"ve tried that, but when I switched my mac's color theme to light, it switched Filament to light as well.


Second param is to force darkmode, so darkmode(true,true)
its working with
->defaultThemeMode(ThemeMode::Dark)
you amy need to clear the storage data?if you force darkmode, the theme switcher will not show, according to the view in the repo
It works on my main install as well, but I think it's because I had dark mode selected manually. In another browser, with another user I had it loaded and it was switching regardless of that setting. Thanks so much for following up though!
This worked for me. Using ->darkMode(true, true) caused my browsers to force dark mode AND it removed the theme switcher from the top.
Thank you!