A react theme switcher component
npm install react-theme-switcher> A react theme switcher component
``bashusing yarn
yarn add 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
cssSelector="body"
switcherColor="#2775cc"
darkColor="#282c34"
lightColor="#ffffff"
lightTextColor="#272b33"
darkTextColor="#ffffff"
/>
``Preview it on CodeSandbox