Simple starter code for Next.js projects with dark mode toggle, without suffering from dark mode flicker
because of SSR or SSG (server side rendering).
Credits goes to Josh Comeau. To learn more, visit his article.
You'll need Node.js installed on your computer in order to build this app.
$ git clone https://github.com/mpirescarvalho/nextjs-dark-mode.git
$ cd nextjs-dark-mode
$ npm install
$ npm run dev
Runs the server in the development mode.