Gatsby site with Dark Mode using React Context and Gatsby's Browser API
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Using named export alongside context Jan 29, 2019
.gitignore
.prettierrc
LICENSE
README.md Updated README Jan 4, 2019
gatsby-browser.js
gatsby-config.js
gatsby-node.js
gatsby-ssr.js
package-lock.json
package.json
yarn.lock Initial commit Jan 4, 2019

README.md

Gatsby

Gatsby Dark Mode!

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.

🚀 To run this project in your computer

  1. Clone this project.

    git clone https://github.com/m-muhsin/gatsby-dark-mode
    
  2. Navigate to directory.

    cd gatsby-dark-mode
    
  3. Install dependancies

    npm install or yarn

  4. Start development!

    gatsby develop

    Your site is now running at http://localhost:8000!

  5. Open the source code and start editing!