Dark theme on Laravel
Hello everyone,
I'm currently playing with the new version of Metronic Tailwind and trying to integrate Filament Datatables and Filament Forms as per the documentation:
However, I'm encountering issues with the dark mode. It doesn't seem to apply properly to the Filament components.
<img src=" />
<img src=" />
Has anyone else faced this? Is there something I'm missing to ensure dark mode compatibility with these plugins?
Any advice would
Replies (3)
Hi Abderaouf,
Can you check this if the theme mode is in cache and wont change to dark. Can you try to remove it?
Thanks
Hi Abderaouf,
To ensure dark mode compatibility, you'll need to use the defaultThemeMode() method, passing either ThemeMode::Light or ThemeMode::Dark, as outlined in the Filament documentation.
Here’s the relevant link:
https://filamentphp.com/docs/3.x/panels/themes#changing-the-default-theme-mode
Let me know if this helps!