Black Friday: Save 40% on all plans with code
BF2025UINext js
Next.js
Turning your Next.js app into a night owl? Follow this smooth guide to light up the dark mode magic.
Next Themes
Because you are using Next.js, you can use next-themes to implement dark mode. And since you're using @heroicons/react, you can use the SunIcon and MoonIcon icons.
Provider and Switcher
Next, you need to create a theme provider component. You can do it like this:
Loading source code...
Usage
After that, you can use it in your root layout file like so:
Design Intent UI
Build modern web apps faster with 500+ blocks,patterns and polished templates crafted for you.