style-dictionary icon indicating copy to clipboard operation
style-dictionary copied to clipboard

Associate or transform key names

Open PavelLaptev opened this issue 11 months ago • 2 comments

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?

PavelLaptev avatar Jul 13 '23 13:07 PavelLaptev

Have a look here: w3c-token-json-parser.ts

@lukasoppermann also wrote an article about that: W3C Design Tokens with Style Dictionary

fALKENdk avatar Jul 28 '23 22:07 fALKENdk

Thank you @fALKENdk that's really helpful

PavelLaptev avatar Jul 28 '23 22:07 PavelLaptev

W3C support added to v4 branch, so you can use it without needing a custom parser

jorenbroekema avatar Mar 27 '24 00:03 jorenbroekema