1.0.1 • Published 2 years ago

usemagical-theme v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

useMagicalTheme is a magical theme library, useMagicalTheme is basically a function that accept a boolean value as a parameter and return prebuilt object of css HEX value

Installation

npm install usemagical-theme

or

yarn add usemagical-theme

Usage

Javascript

import {useMagicalTheme} from 'usemagical-theme'

const button = document.getElementById('merlinButton')
const { background, brandColor} = useMagicalTheme( true )

button.style.backgroundColor = brandColor