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
Maintainers
jefer94 |