Skip to content

Dark mode theme with Next.js SSR and SSG without flicker β˜€πŸŒ˜

Notifications You must be signed in to change notification settings

mpirescarvalho/nextjs-dark-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Next.js dark mode

GitHub top language GitHub last commit

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.


Building

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.

About

Dark mode theme with Next.js SSR and SSG without flicker β˜€πŸŒ˜

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published