design-tokens / community-group

This is the official DTCG repository for the design tokens specification.
https://tr.designtokens.org
Other
1.56k stars 63 forks source link

Add support for escaping #171

Closed ChucKN0risK closed 2 years ago

ChucKN0risK commented 2 years ago

The only thing that really sticks out in my mind as high pri for v1 here is escaping, because it permanently prevents some input. IMO we should do something like escape characters (\.) to ensure it's possible to:

Everything else I've thought of so far, to my mind, can be (somewhat) cleanly added or changed in future versions without invalidating old files. (If we ever did expression support, that might get harder.

Escaping is going to be importantly largely because people will autogenerate these files based on names they have specified elsewhere, in languages or formats that do support dots. I've had a lot of times where I want to keep values in sync across several languages and I'm always sad at the amount of destructive name transformations I have to do (which often ends up with invalid characters replaced with _, making them potentially non-unique).

romainmenke commented 2 years ago

see : https://github.com/design-tokens/community-group/issues/167

ChucKN0risK commented 2 years ago

The editors group reviewed this issue and decided to close it as it's a duplicate of #167.