0.3.1 ā€¢ Published 1 year ago

theme-darker v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Theme Darker šŸŒ—

Build Status NPM total downloads

Toggle dark mode with Theme Darker

ThemeDarker_Baner

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 mode
  • DARK : dark mode

Example

enum Theme {
  LIGHT,
  DARK,
}

ThemeDarker

It's a Component that has three arguments

Params

  • theme { Theme | undefined }: Put your current theme
  • toggleTheme { () => 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

License

MIT

0.3.1

1 year ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago