项目作者: mpirescarvalho

项目描述 :
Dark mode theme with Next.js SSR and SSG without flicker ☀🌘
高级语言: JavaScript
项目地址: git://github.com/mpirescarvalho/nextjs-dark-mode.git
创建时间: 2021-02-09T02:11:34Z
项目社区:https://github.com/mpirescarvalho/nextjs-dark-mode

开源协议:

下载


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.

  1. $ git clone https://github.com/mpirescarvalho/nextjs-dark-mode.git
  2. $ cd nextjs-dark-mode
  3. $ npm install
  4. $ npm run dev

Runs the server in the development mode.