Open nekitk opened 3 years ago
Options if we want code to be the source of truth:
Seems convenient to write dsgen config looking at design tokens page in Figma: https://www.figma.com/file/VDUpuf2P6uHwUkEaFVTChsch/CSSSR.Tracker?node-id=2864%3A51194
Maybe we should consider design as the source of truth also.
It could be beneficial to not only import variables into Figma, but also autochange absolute values to variables (as we do with CSS). E.g. if text node has color #000
we can change it to use style Light/Text/Default
Another part of the project could be Figma page with color and size variables. We could either sync from config to Figma or read variables from Figma into config. Seems like it could be achived via Figma plugins.
References: