Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust token json export for Figma #326

Open
mrkskmn opened this issue Jul 25, 2023 · 0 comments
Open

Adjust token json export for Figma #326

mrkskmn opened this issue Jul 25, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@mrkskmn
Copy link
Contributor

mrkskmn commented Jul 25, 2023

The current token export as JSON file works when imported in Figma but is missing token aliases.
It would be desirable to tweak the exported JSON so that all the tokens reference the correct aliases when imported into Figma.

The export should be adjusted so it follows this format for aliases:

"theme": {
     "primary": {
       "bg": {
         "$type": "color",
         "$value": "{color.base.brand.400.value}",
         "cssProp": "primary-bg"
       }
}
@fynnfeldpausch fynnfeldpausch added the documentation Improvements or additions to documentation label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants