Open eder3232 opened 9 months ago
I just had the same problem, try to add the name of your new theme in the NextThemesProvider:
<NextThemesProvider attribute="class" defaultTheme="dark" themes={['dark', 'light', 'purple-dark']}
I hope it works for you! @eder3232
NextUI Version
2.2.9
Describe the bug
when you add new theme for example purple-dark (example provied by documentation):
and add switcher (example provided by documentation):
on the first click the "theme" (variable) changes from "light" to "purple-dark", and colors too, but in the next click, when you try to change from "purple-dark" to "light", the "theme" (variable) changes, but the colors don't, Even though the "theme" changed to light, the colors still maintain the purple-dark style
Your Example Website or App
https://github.com/eder3232/nextui-issue
Steps to Reproduce the Bug or Issue
npm run dev
Expected behavior
when the theme changes to light, the colors are supposed to change to light
Screenshots or Videos
https://github.com/nextui-org/nextui/assets/76524247/5735c995-f25c-4e74-997d-07d22be90e76
Operating System Version
windows
Browser
Chrome