-
Notifications
You must be signed in to change notification settings - Fork 113
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
Why is my nuxt app color mode configuration not working with the "prefrence : light" ? #262
Comments
I am also having the same issue. |
i am also having the same issue |
TLDR: Try removing color-mode cookie and it should work fine Just faced this issue and the problem that there was already a color mode cookie with |
It is related to #263 RecommendationIdeally, you'd like to dark mode by default, Here is what your config should look like. export default defineNuxtConfig({
colorMode: {
preference: 'dark',
fallback: 'dark'
}
}) Note 💡If you're stuck in light mode even after changing this setting, you might need to remove the |
Remove the |
I think this is a bug that should be resolved. |
this is my nuxt color mode config in nuxt.config.ts:
colorMode: { classSuffix: '', preference: 'light', fallback: 'light', },
its starting always by default dark mode. how Can i fix it and put the prefrence on system ?
The text was updated successfully, but these errors were encountered: