1.0.5 • Published 2 years ago
usemagic-theme v1.0.5
useMagicTheme is a magical theme library, useMagicTheme is basically a function that accept a boolean value as a parameter and return prebuilt object of css HEX value
Installation
npm install usemagic-theme
or
yarn add usemagic-theme
Usage
Javascript
import {useMagicTheme} from 'usemagic-theme'
const button = document.getElementById('merlinButton')
const { background, brandColor} = useMagicTheme( true )
button.style.backgroundColor = brandColor