The React Dark Mode App is a simple web application built with Vite, React, Tailwind CSS, and Context API. The app includes a dark mode functionality allowing users to switch between light and dark themes seamlessly.
Dark Mode Toggle: Allows users to switch between light and dark themes.
Context API: Utilizes Context API for managing the dark mode state.
Clone the repository to your local machine.
git clone https://github.com/utkarshgupta04092003/darkmode.git
Navigate to the project directory.
cd darkmode
Install dependencies.
npm install
Start the development server.
npm run dev
Open your browser and visit http://localhost:5173 to explore the React Dark Mode App.
src/components/ToggleButton.jsx: Component for the dark mode toggle button.
src/components/Home.jsx: Component for the home page content having two card.
src/context/ThemeContext.js: Context API for managing dark mode state.
src/App.js: Main application component defining routes.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
This project is licensed under the MIT License, allowing you to use and modify the code for personal and commercial purposes.