Skip to content

Commit 4d91125

Browse files
authored
Merge pull request #351 from BJJLangedijk/main
fix: use attributes instead of path for formatting tokens
2 parents 836ff3f + 6c3aada commit 4d91125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const formatTokens = (
2121

2222
if (cur.attributes.category === type || type === 'all') {
2323
if (isVariables) {
24-
acc[cur.path.join('.')] = prefix
24+
acc[Object.values(cur.attributes).join('.')] = prefix
2525
? `var(--${addHyphen(prefix) + cur.name})`
2626
: `var(--${cur.name})`
2727
} else {
28-
acc[cur.path.join('.')] = cur.value
28+
acc[Object.values(cur.attributes).join('.')] = cur.value
2929
}
3030
}
3131

0 commit comments

Comments
 (0)