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

Exporting Multiple Themes at Once Leads to Broken Variables #3275

Open
keeganedwin opened this issue Feb 24, 2025 · 1 comment
Open

Exporting Multiple Themes at Once Leads to Broken Variables #3275

keeganedwin opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working Figma export - themes Figma export Previously create and sync styles variables Figma variables needs-responder plugin v2.3 designing with tokens

Comments

@keeganedwin
Copy link
Collaborator

keeganedwin commented Feb 24, 2025

Describe the bug
Currently (sometimes inconsistent) if you're exporting a collection that serves as the core and the alias/theme collection at the same time, the plugin exports the alias/theme collection with broken variables. This seems like it's unable to export a collection whilst simultaneously pulling the correct references from the correct collection at the same time. If you re-export just the alias collection it then export the variables with the correct references. Another case in which you can see this issue is when you delete a collection and re-export it. The plugin again exports broken variables.

To Reproduce
Steps to reproduce the behavior:
Available in test file

Expected behavior
It's time consuming for user to re-export tokens a second time when they've just made a couple of changes.

Screenshots or Screencasts
This is from a user where the plugin didn't fetch and export variables with the correct references the first time around, but they had to re-export the them which then fixed the broken references:
Image

From my own token-set. I deleted the primitive collection and exported it which led to broken variables. I had to re-export it again which then fixed the broken variables:
Image

Figma file (optional):
Test file

@Blyawon
Copy link

Blyawon commented Feb 25, 2025

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Figma export - themes Figma export Previously create and sync styles variables Figma variables needs-responder plugin v2.3 designing with tokens
Projects
Status: 📥 Triage
Development

No branches or pull requests

2 participants