1.0.4-alpha.0 • Published 4 years ago
@chocolab/css-utils v1.0.4-alpha.0
Install
yarn add @chocolab/css-utils
Usage
import { getVar, setVar } from '@chocolab/css-utils'
// CSS variable format
setVar('--potato', '#000')
getVar('--potato') // #000
// Javascript variable format
setVar('potato', '#000', true)
getVar('potato', true) // #000