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

2
css.js
View file

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