Tailwind dark mode not work whith "important" settings
06:16 05 Oct 2022

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?

tailwind-css tailwind-ui tailwind-css-3