next-themes icon indicating copy to clipboard operation
next-themes copied to clipboard

[Feature request]:setTheme multiple classes for next-themes

Open alirezatayebinejad opened this issue 9 months ago • 5 comments

What feature would you like to see?

I need to add multiple classes like this:

setTheme(["dark","blueSchema"]) // <html class="dark blueSchema"
setTheme(["light","blueSchema"])

you may say use it like this:

setTheme("dark-blueSchema") // <html class="dark-blueSchema"
setTheme("light-blueSchema") 

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

alirezatayebinejad avatar May 06 '24 13:05 alirezatayebinejad