Skip to content

Dark mode with nextjs tailwind? #15667

Closed Answered by AidenJastrzembski
Hadyen888 asked this question in Help
Discussion options

You must be logged in to vote

You can use the dark prop in the tailwind to switch modes. it would look like this

<div className="bg-white dark:bg-black">

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hadyen888
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