1.0.0-b0 • Published 7 years ago
css-var v1.0.0-b0
css-var
CSS custom properties helper utility
npm i css-var
import cv from 'css-var'
// Set a custom property
cv({ blue: '#07c' })
const style = {
// Use custom property
color: cv('blue') // 'var(--blue)'
}
Currently only works client-side
MIT License
1.0.0-b0
7 years ago