Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How disabled dark mode in tailwind css

I'm using the package laravel livewire table ([laravel livewire table][1]

[1]: https://github.com/rappasoft/laravel-livewire-tables) on my laravel app (v8).

I also use tailwind CSS on v3.

By default this package add some tailwind class for dark mode on tables. But I don't want to use dark mode. I want my site to stay light whatever the browser configuration.

I read that I have to set it on tailwind.config.js so I try some things like :

module.exports = {

    plugins: [require('@tailwindcss/forms')],
    darkMode: false,
};
module.exports = {

    plugins: [require('@tailwindcss/forms')],
    darkMode: 'class',
};
module.exports = {

    plugins: [require('@tailwindcss/forms')],
    darkMode: 'media',
};

No one works for disabling dark mode...

Do you know how to do it?

like image 640
Petitemo Avatar asked Dec 21 '25 11:12

Petitemo


1 Answers

changes

darkMode: false,

to

darkMode: 'false',

its work for me

like image 95
Gagang Avatar answered Dec 24 '25 03:12

Gagang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!