-
Notifications
You must be signed in to change notification settings - Fork 207
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]: Dark mode not working #78
Comments
Hi @ezekel .. this seems like some Or at least provide a minimal repo? |
Yes, I have that in my tailwind.config I just changed this class from
to
and it works. I followed this link |
Nice find @ezekel ! Perhaps we can fix it in our |
May I be assigned to handle this issue, @zernonia ? |
If you are using If you using |
This is because // nuxt.config.ts
tailwindcss: {
viewer: false,
config: {
safelist: [
'dark'
]
}
}, |
Why is this still not fixed? |
There is no bug here We just keep this open until we add Dark mode documentation |
As there's no generalized solution for this case.. it really depends on which framwork you use. Thus as @sadeghbarati mentioned, we will be adding docs regarding Dark mode #236 |
Well, you can make a separate solution for each framework. When initializing through |
Environment
Link to minimal reproduction
none
Steps to reproduce
Describe the bug
Hi, I noticed a strange behavior.
In my index.html, I manually added the class dark. Then, I ran npm run dev, expecting it to enable dark mode. However, the background remained white, indicating that dark mode was not working.
To resolve this, I added the text 'dark' after an HMR (Hot Module Replacement) update. After this change, dark mode started working, and the background turned dark. I'm not sure what went wrong, but it seems I had to add the 'dark' text to my template.
App.vue
Expected behavior
The dark mode should work if I add a dark class to the HTML tag
Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: