Skip to content

How do I enable dark mode using the Tailwind CSS CDN? #16029

Answered by john-champ
wernayasa asked this question in Help
Discussion options

You must be logged in to vote

You will have to use the new CSS configuration as follows:

<style type="text/tailwindcss">
  /* Class based dark mode */
  @variant dark (&:where(.dark, .dark *));
</style>

Replies: 1 comment 1 reply

Comment options

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

Answer selected by wernayasa
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