Add CSS variable helper function

This commit is contained in:
Talia 2021-08-18 11:25:14 +02:00
parent 7b29582c8c
commit 05a673cb59
No known key found for this signature in database
GPG Key ID: AD727AD22802D0D6
1 changed files with 2 additions and 0 deletions

2
css.js
View File

@ -32,3 +32,5 @@ export const style = styles => {
style.innerHTML = css(styles)
return style
}
export const v = name => `var(--${keyToPropName(name)})`