Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Switcher

A simple React + Vite project that lets users toggle between light and dark themes using a modern UI switch. The theme switch is actually very simple but doing with Context Api makes the code Prduction grade and let you not pass the props in every component.

Features

  • Toggle between light and dark mode
  • Responsive card layout
  • Tailwind CSS styling
  • Theme state managed through React context
  • Deployable to GitHub Pages

Tech Stack

  • React
  • Vite
  • Tailwind CSS
  • React Context API

Getting Started

Installation

npm install

Run locally

npm run dev

Build for production

npm run build

Deploy to GitHub Pages

npm run deploy

Project Structure

src/
  components/
    Card.jsx
    ThemeBtn.jsx
  contexts/
    theme.js
  App.jsx
  main.jsx

License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages