Skip to content

gokarna123-goku/light-dark-mode-react-tailwindcss

Repository files navigation

Dark & Light Mode (Localstorage)

This is the Light and Dark Mode Using ReactJs and Taiwind CSS.

Installation

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

Usages

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",
}

Features

  • Light/dark mode toggle

Tech Stack

Client: ReactJs, ViteJs, TailwindCSS

Screenshots

darklight

See Demo

Live Demo:-

Full Video Tutorial

Video Link:-

Author

Acknowledgements

Support

For support, email [email protected] or DM us on Instagram.

Appendix

Don't Forgot to Follow me on Github.