-
I successfully configured dark mode in my Vite/Vue/Tailwind app: when applying the This works fine on a per-element basis but I do not know how to set up defaults. Specifically, I would like to define a default dark mode font color (the one I have in light/default mode is black). How can I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Aug 29, 2023
Replies: 1 comment 1 reply
-
You could consider setting the <body class="text-black dark:text-white">
<p>Will be black in light mode, white in dark mode.</p> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wsw70
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could consider setting the
color
on a "high" DOM element node, sincecolor
automatically inherits: