razinj / react-dark-mode-context

React Dark Mode using TailwindCSS and Context API

Home Page:https://short.razinj.com/qiKy3v

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ❤️

About

React Dark Mode using TailwindCSS and Context API

https://short.razinj.com/qiKy3v


Languages

Language:TypeScript 73.9%Language:HTML 22.5%Language:JavaScript 2.8%Language:CSS 0.8%