Add CSS variable helper function
This commit is contained in:
parent
7b29582c8c
commit
05a673cb59
1 changed files with 2 additions and 0 deletions
2
css.js
2
css.js
|
@ -32,3 +32,5 @@ export const style = styles => {
|
|||
style.innerHTML = css(styles)
|
||||
return style
|
||||
}
|
||||
|
||||
export const v = name => `var(--${keyToPropName(name)})`
|
||||
|
|
Loading…
Reference in a new issue