The goal is to have a solution directly integrated into DesignSystemHub.
Details
All the solutions use the intermediate system of tokens. There is currently a W3C draft to standardize these tokens. So we should follow this approach.
It will be also useful to use style-dictionary to convert the token into CSS variables and tailwind config.
We need a solution to extract the styles from Figma and load them in the code.
A lot of solutions already exists:
The goal is to have a solution directly integrated into DesignSystemHub.
Details
All the solutions use the intermediate system of tokens. There is currently a W3C draft to standardize these tokens. So we should follow this approach.
It will be also useful to use style-dictionary to convert the token into CSS variables and tailwind config.
TODOs
We have the concept of Style in the code.
dshub
to fetch the token JSON file into style-dictionary files.A follow up ticket will be #62 in order to load the styles from the variables and not only the styles.