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.gitRemove .git an README.md if you want to push this repo on your github.com.
Go to the project directory
cd my-projectInstall dependencies
npm installOR
npm iStart the server
npm run devIf you want to see live project on your mobile or other local machine with same wifi connection.
npm run dev -- --hostDon'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.
