-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]:setTheme multiple classes for next-themes #292
Comments
Hey @alirezatayebinejad, the ThemeProvider provides the The example below for example will achieve this: With the above code, if you then run This might work for your case. |
@pacocoursey I noticed we don't prohibit setting the theme to a string value that contains a space. This breaks the code when using |
thanks for your answer. |
I hear you 👍🏻 |
unfortunatly my repo is private for a client but I am using NextJs 14 with app router, Typescript and tailwindcss with next-ui components. |
What feature would you like to see?
I need to add multiple classes like this:
you may say use it like this:
but components that using tailwindcss they only understant the 'dark' class to apply to and I want also another class for other css variables like when we have dark and blueSchema or dark and redSchema or light and redSchema
if I use dark-redSchema then component will not know it is dark mode as we have no dark class applied
The text was updated successfully, but these errors were encountered: