Dark mode with nextjs tailwind? #15667
-
How do I switch between light and dark modes with next js and tailwind? |
Beta Was this translation helpful? Give feedback.
Answered by
AidenJastrzembski
Jan 19, 2025
Replies: 1 comment
-
You can use the dark prop in the tailwind to switch modes. it would look like this
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hadyen888
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the dark prop in the tailwind to switch modes. it would look like this
<div className="bg-white dark:bg-black">