Skip to content

How to style the default color in dark mode? #11924

Answered by wongjn
wsw70 asked this question in Help
Discussion options

You must be logged in to vote

You could consider setting the color on a "high" DOM element node, since color automatically inherits:

<body class="text-black dark:text-white">
  <p>Will be black in light mode, white in dark mode.</p>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wsw70
Comment options

Answer selected by wsw70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants