This is the Light and Dark Mode Using ReactJs and Taiwind CSS.
Install with npm
Clone the project
git clone https://github.com/gokarna123-goku/light-dark-mode-react-tailwindcss.git
Remove .git
an README.md
if you want to push this repo on your github.com.
Go to the project directory
cd my-project
Install dependencies
npm install
OR
npm i
Start the server
npm run dev
If you want to see live project on your mobile or other local machine with same wifi connection.
npm run dev -- --host
Don't forgot to insert this code on tailwind.config.js
, To Enable Dark & Light Mode
in the system.
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
darkMode: "class",
}
- Light/dark mode toggle
Client: ReactJs, ViteJs, TailwindCSS
Live Demo:-
Video Link:-
For support, email agokarna444@gmail.com or DM us on Instagram.
Don't Forgot to Follow me on Github.