lukasoppermann / design-tokens

🎨 Figma plugin to export design tokens to json in an amazon style dictionary compatible format.
https://www.figma.com/community/plugin/888356646278934516/Design-Tokens
MIT License
953 stars 131 forks source link

Include variables codeSyntax member in exported json #272

Open yinonov opened 1 year ago

yinonov commented 1 year ago

The codeSyntax property in variables helps defining alternative values which are not supported in Figma.

codeSyntax.WEB might contain a web supported color representation (e.g. LCH) which isn't supported by Figma but might add a better alternative to web pages.

codeSyntax is already included in the Figma's variable GET API so it might already make sense to be included in the extensions property?

yinonov commented 1 year ago

as this issue relates to color spaces especially, design-tokens/community-group#147 introduces a way to enhance color definitions in tokens. Not sure if this should be adopted at this point (as it's still a draft at the time of this writing), but maybe be considered to plan ahead?