Skip to content
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

[Bug]: enableSystem while setting defaultTheme not working #308

Open
brumasribera opened this issue Aug 6, 2024 · 0 comments
Open

[Bug]: enableSystem while setting defaultTheme not working #308

brumasribera opened this issue Aug 6, 2024 · 0 comments
Labels

Comments

@brumasribera
Copy link

brumasribera commented Aug 6, 2024

What feature would you like to see?

My system theme is dark. I would like to set my Next.js project defaultTheme to light, but give the option to change to the system one.

Something like this:

<ThemeProvider
    attribute='class'
    defaultTheme='light'
    enableSystem={true}
    disableTransitionOnChange
>
    {children}
</ThemeProvider>

But the problem is that when I set enableSystem to true the defaultTheme is ignored.

And if I set enableSystem to false, then the system theme is not detected and I cannot choose it.

@brumasribera brumasribera changed the title [Bug]: enableSystem them while setting defaultTheme not working [Bug]: enableSystem while setting defaultTheme not working Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant