Tailwind Dark mode #18778
Unanswered
Intellcoder
asked this question in
Help
Tailwind Dark mode
#18778
Replies: 1 comment
-
For
-@custom-variant dark(&:where([dark-theme=dark],[dark-theme=dark]*))
+@custom-variant dark (&:where([dark-theme=dark],[dark-theme=dark] *)); For
-@custom-variant dark-theme (&:where([dark-theme=dark],[dark-theme=dark]*))
+@custom-variant dark-theme (&:where([dark-theme=dark],[dark-theme=dark] *)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
please how can i implement manual toggling of dark/light mode in tailwind am getting this error
[plugin:@tailwindcss/vite:generate:serve]
@custom-variant dark(&:where([dark-theme=dark],[dark-theme=dark]*))
defines an invalid variant name. Variants should only contain alphanumeric, dashes or underscore characters.When i tried changing to this @custom-variant dark-theme (&:where([dark-theme=dark],[dark-theme=dark]*))
i was faced by a new error
@custom-variant dark-theme
cannot have both a selector and a body.Any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions