DEV Community

loading...

Discussion on: Tailwind CSS and useDarkMode hook

Collapse
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

Collapse
dlw profile image
Darren White Author

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

Forem Open with the Forem app