0.3.1 ā¢ Published 1 year ago
theme-darker v0.3.1
Theme Darker š
Toggle dark mode with Theme Darker
Installation
Below Command is an example of how to install Theme Darker
npm
npm install theme-darker@latest -g
clone
git clone https://github.com/HJ2Yoon/themedarker.git ./
Usage
Getting started with theme darker
import { Theme, ThemeDarker } from 'theme-darker';
Theme
Enums
LIGHT
: light modeDARK
: dark mode
Example
enum Theme {
LIGHT,
DARK,
}
ThemeDarker
It's a Component that has three arguments
Params
theme
{ Theme | undefined }: Put your current themetoggleTheme
{ () => void }: The function to set theme.size
{ number }: Size of component
Example
<ThemeDarker
theme={curTheme === Theme.LIGHT ? Theme.DARK : Theme.LIGHT}
toggleTheme={toggleTheme}
size={15}
/>
Release History
š v0.3.0 ā (Valid version)
- Button reface
- v0.2.3 -dev
- v0.2.2 -dev
- v0.2.1 -dev ā (Error exist)
- v0.2.0 -dev ā (Error exist)
š v0.1.0 ā (Error exist)
- Work in progress