-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
custom dark:
classes should not be inverted
#71
Comments
as a workaround, i can add |
root cause: tailwind change( tailwindlabs/tailwindcss#10835 ) |
Another workaround... /** @type {import('tailwindcss').Config} */
module.exports = {
// ...
important: '#app',
} A side effect of this solution is that nightwind does not work with |
@jmnote do you know how to fix it? I'd like to fork and fix it for myself |
tailwind: v3.3.0
nightwind: v1.1.13
i believe this behaviour changed after a recent tailwind upgrade (v3.3?).
i'm using
darkMode: "class",
in my tailwind config.given an element like this:
expected result
the background in dark mode should be
bg-blue-600
.actual result
the custom background in dark mode gets inverted and is
bg-blue-200
.this is what gets computed:
i believe the first one (
.dark :is(...)
) is nightwind - if i disable that, i seebg-blue-600
correctly.The text was updated successfully, but these errors were encountered: