Can you use strings for var keys? #102
Replies: 2 comments 1 reply
-
I don't think this is a test case I've tried. Can you make a codesandbox or stackblitz that reproduces the issue? |
Beta Was this translation helpful? Give feedback.
-
I've found the source of this problem - it's the I've encountered this problem as well - scale keys cannot contain hyphens (-) or periods which are supported in Vanilla-Extract/sprinkles. The issue lies in this regex: which only allows values containing "word characters" (which hyphen, period etc are not). I've opened a PR to address this, hope it helps! 🙏 #113 |
Beta Was this translation helpful? Give feedback.
-
The official sprinkles parses var object keys that are strings,
"1/2", "accent-hover", "0.5"
for example, just fine. Rainbow Sprinkles just passes along such keys as the values of vars when they're consumed.Beta Was this translation helpful? Give feedback.
All reactions