Hi there! Thanks for checking out Gatsby Dark Mode demo. In this project I use React Context API alongside Gatsby's Browser API to add the Dark Mode functionality to a Gatsby site, similar to how I did it for Laccadive IO.
-
Clone this project.
git clone https://github.com/m-muhsin/gatsby-dark-mode
-
Navigate to directory.
cd gatsby-dark-mode
-
Install dependancies
npm install
oryarn
-
Start development!
gatsby develop
Your site is now running at
http://localhost:8000
! -
Open the source code and start editing!