Exporting Multiple Themes at Once Leads to Broken Variables #3275
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
Describe the bug
Currently (sometimes inconsistent) if you're exporting a collection that serves as the
core
and thealias/theme
collection at the same time, the plugin exports thealias/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 thealias
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:
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:

Figma file (optional):
Test file
The text was updated successfully, but these errors were encountered: