From 05a673cb59b8c04d41b3d92d91a83b7862f8d027 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 18 Aug 2021 11:25:14 +0200 Subject: [PATCH] Add CSS variable helper function --- css.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css.js b/css.js index 928849d..6ceccce 100644 --- a/css.js +++ b/css.js @@ -32,3 +32,5 @@ export const style = styles => { style.innerHTML = css(styles) return style } + +export const v = name => `var(--${keyToPropName(name)})`