F
Filament15mo ago
Gaspar

Table builder > Tailwind CSS > darkMode: 'class' not working

Installed Tailwind CSS based on this: https://filamentphp.com/docs/3.x/tables/installation#installing-tailwind-css In the tailwind.config.preset there is darkMode "mode" defined:
export default {
darkMode: 'class',
...
}
export default {
darkMode: 'class',
...
}
Basically it means i can control dark/lightMode with classname. But it doesn't work 😦 My Filament Table has still MEDIA query attached:
@media (prefers-color-scheme: dark) {
.dark\:bg-gray-900 {
--tw-bg-opacity: 1;
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}
@media (prefers-color-scheme: dark) {
.dark\:bg-gray-900 {
--tw-bg-opacity: 1;
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}
How do you resolve it?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?