DEV Community


Discussion on: Tailwind CSS and useDarkMode hook

enochndika profile image
enoch ndika • Edited

You can just use next-themes package which makes it easier to toggle dark mode without any flash in server side with Next.js

dlw profile image
Darren White Author

Thanks, that looks interesting. I'll give it a go

Forem Open with the Forem app