© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
mar5hall

Dark mode not working

Hi again. After composer update I noticed that the dark theme on the site(in admin panel worked fine) stopped working. In
tailwind.config.js
tailwind.config.js
darkMode is
darkMode: 'class'
darkMode: 'class'
, + in app.layout
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class=" dark bg-gray-800 font-sans">
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class=" dark bg-gray-800 font-sans">
. I noticed that if you remove or comment out the line with
presets: [preset]
presets: [preset]
in
tailwind.config.js
tailwind.config.js
, then everything seems to start working correctly. But I don't think this is the right approach. Has anyone encountered this?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Theme: Dark|Light Mode Not Working
FilamentFFilament / ❓┊help
15mo ago
dark/light mode switching not working anymore.
FilamentFFilament / ❓┊help
3y ago
dark mode
FilamentFFilament / ❓┊help
5mo ago
In Mode Dark, Select Option not dark
FilamentFFilament / ❓┊help
3y ago