Tailwind dark mode not work whith "important" settings
In Docusaurus not working Tailwind 3 dark mode if i set in
tailwind.config.js
module.exports = {
important: "#tailwind",
content: ["./src/pages/**/*.{html,js}", "./src/components/**/*.{html,js}"],
darkMode: ["class", '[data-theme="dark"]'], // or 'media' or 'class'
...}
in js
If I remove important: "#tailwind", dark mode starts working. How do I make it work with an id?
Privacy & Cookie Consent
We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.
By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.