next-themes
next-themes copied to clipboard
When I add 'class' as an attribute to the theme provider I get this error. I use Nextjs with tailwindcss. Is there any hope for me?
If i remove the 'class' from the attribute then error gone.
I want that bg-white will normally show white background and when i do dark:bg-black, then it will show me the activated dark mode. I configured all the things as mentioned in the docs, but nothing happened. help!!!
Does the base class name on your html
element contain invalid characters? Sounds like the API is failing to modify the class name because the existing version is invalid? Need more info.
Its a Next.js Project, Idk where is the html file, though I don't modify anything on html
, I just add class
as attribute and this throws an error that I mentioned above.
Oh, weird. What browser are you using?
Oh, weird. What browser are you using?
Thanks for taking interest in my problem. I'm using Brave, Chrome, Firefox and Tor.
@AryanKuAg are you still seeing this issue? I really think it can only be a browser bug, or something deep inside your application code.
@AryanKuAg Check out this small blog post: No-brainer Dark Mode for Next.js. I'm also using Next.js plus TailwindCSS*. Make sure you are following those steps.
If you still come across this issue please let me know, I'd be happy to help.