Skip to content

razinj/react-dark-mode-context

Repository files navigation

react-dark-mode-context

Netlify Status

A simple React project that implements dark mode using TailwindCSS and Context API to pass and toggle theme with persistence capability.

Live demo.

This project is part of a dedicated detailed blog post.

What's inside

Scripts

Helpful scripts:

  • Run npm run start to start project.

    Then open http://localhost:3000 to view in browser.

  • Run npm run test to start tests.

  • Run npm run build to build production bundle.


Consider buying me a coffee ❤️