Closed khiemgluong closed 7 months ago
I ran into some problems using the 'class' strategy for DarkMode with tailwind.config.js, being that its very inconsistent and sometimes toggle certain elements and sometimes not. That was because as of tailwind 3.4.1, the 'class' strategy has been replaced with 'selector'.
'class'
the documentation should add a note on top of of the strategy configuration which mentions this, something like what I wrote below:
The selector strategy replaced the class strategy in Tailwind CSS v3.4.1.
// tailwind.config.cjs const config = { darkMode: 'class' //'selector' // ... };
...
flowbite-svelte: 0.45.0
Thanks. Please use the latest version.
Describe the bug
I ran into some problems using the
'class'
strategy for DarkMode with tailwind.config.js, being that its very inconsistent and sometimes toggle certain elements and sometimes not. That was because as of tailwind 3.4.1, the 'class' strategy has been replaced with 'selector'.the documentation should add a note on top of of the strategy configuration which mentions this, something like what I wrote below:
The selector strategy replaced the class strategy in Tailwind CSS v3.4.1.
Reproduction
...
Flowbite version and System Info