https://github.com/itsabdessalam/react-theme-switcher
🌓 React theme switcher component
https://github.com/itsabdessalam/react-theme-switcher
color component dark light mode react switcher theme toggle
Last synced: 9 months ago
JSON representation
🌓 React theme switcher component
- Host: GitHub
- URL: https://github.com/itsabdessalam/react-theme-switcher
- Owner: itsabdessalam
- License: mit
- Created: 2019-05-08T16:42:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T21:42:04.000Z (about 3 years ago)
- Last Synced: 2025-04-26T12:47:37.205Z (10 months ago)
- Topics: color, component, dark, light, mode, react, switcher, theme, toggle
- Language: JavaScript
- Homepage: https://codesandbox.io/s/6yr87ozmkk
- Size: 6.52 MB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React theme switcher component
> A react theme switcher component
## Installation
```bash
# using yarn
yarn add react-theme-switcher
# using npm
npm install react-theme-switcher
```
## Usage
By default theme switcher is applied to body and colors are already setted
```js
import React from "react";
import ThemeSwitcher from "react-theme-switcher";
function App() {
return (
React theme switcher
);
}
export default App;
```
Props you can pass to the component:
```js
```
## Demo
Preview it on CodeSandbox
## Author
[Abdessalam BENHARIRA](https://github.com/abdessalamb98)