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

Issue with exported JSON #271

Closed
lunik2 opened this issue Sep 12, 2023 · 3 comments
Closed

Issue with exported JSON #271

lunik2 opened this issue Sep 12, 2023 · 3 comments

Comments

@lunik2
Copy link

lunik2 commented Sep 12, 2023

Hi! We're having an issue with the JSON structure when we export it and want to use it further in our designs. There is an object called "mode 1" that appears out of nowhere. the frustrating part is, it arbitrarily contains part of the tokens object and breaks up the hierarchy in an unfortunate way. Any way we can control this, or any idea why this happens? thanks!

Bildschirmfoto 2023-09-12 um 11 33 07
design-tokens.tokens_new.json.zip

@caoimghgin
Copy link

Might consider using modes in Figma variables rather than defining light/dark within a single mode?

@andrewpucci
Copy link

@lukasoppermann I believe that #273 and #274 are duplicates of this issue. I am also having this same problem.

To me, it looks like any variables that are referencing another variable get put into the redundant mode in the hierarchy. In my example below, all of these tokens should be in color.default.component.logo.company but there is one that references other variables that has another mode injected into the hierarchy for unknown reasons, which becomes color.default.default.component.logo.company.

image

@lukasoppermann
Copy link
Owner

This should be fixed thanks to @jonbrooks in the latest release, if so, please comment and close. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants