Simple dark/light mode toggle with Nuxt and Tailwind
Not sure what I am doing wrong, but I cannot manage for Tailwind to respect the "dark" class on my "html" element. It's set properly and my tailwind.config.js contains
darkMode: "class"
darkMode: "class"
(tried other values too), but when I inspect my page tailwind still uses prefers-color-scheme selectors. I've also tried