Skip to content

Commit

Permalink
fix: fix leaf object key is not converted to kebab-case
Browse files Browse the repository at this point in the history
Fix #66
  • Loading branch information
p-chan committed Oct 11, 2022
1 parent 77023a2 commit 148b717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const toCSSVariables = (object: CSSObject, options?: Options) => {
addCSSVariable(value, [...parentKeys, paramCase(key)])
} else {
cssVariables.push({
key: `--${(options && options.prefix && `${options.prefix}-`) || ''}${[...parentKeys, key].join('-')}`,
key: `--${(options && options.prefix && `${options.prefix}-`) || ''}${[...parentKeys, paramCase(key)].join(
'-'
)}`,
value,
})
}
Expand Down

0 comments on commit 148b717

Please # to comment.