We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77023a2 commit 148b717Copy full SHA for 148b717
src/index.ts
@@ -37,7 +37,9 @@ const toCSSVariables = (object: CSSObject, options?: Options) => {
37
addCSSVariable(value, [...parentKeys, paramCase(key)])
38
} else {
39
cssVariables.push({
40
- key: `--${(options && options.prefix && `${options.prefix}-`) || ''}${[...parentKeys, key].join('-')}`,
+ key: `--${(options && options.prefix && `${options.prefix}-`) || ''}${[...parentKeys, paramCase(key)].join(
41
+ '-'
42
+ )}`,
43
value,
44
})
45
}
0 commit comments