style-dictionary
style-dictionary copied to clipboard
Associate or transform key names
In my design tokens file, I have keys like $value
instead of just value
.
Is there a way ho I can tell to Style Dictionary that $value
is value
?
Have a look here: w3c-token-json-parser.ts
@lukasoppermann also wrote an article about that: W3C Design Tokens with Style Dictionary
Thank you @fALKENdk that's really helpful
W3C support added to v4 branch, so you can use it without needing a custom parser