Skip to content

sanjaraiy/Toggle_btn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Toggle Feature In React.js

This project is built on JavaScript, Tailwind CSS and React.js .It is useful for enabling the dark and light mode feature in the React created card.

Install Vite :-

npm latest@vite

NPM Json Package Install :-

npm install

Tailwind Install Link :-

npm install -D tailwindcss
npx tailwindcss init

Tailwind Configure your template paths :-

module.exports = {
  content: ["./src/**/*.{html,js}"],
  theme: {
    extend: {},
  },
  darkMode:"class",
  plugins: [],
}

Add the Tailwind directives to your CSS :-

@tailwind base;
@tailwind components;
@tailwind utilities;

Install React-Redux :-

npm i react-redux

About

This repository features a React-based Toggle Button for enabling dark mode. Switch effortlessly between light and dark themes with style! ๐Ÿš€๐ŸŽจ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors