Export to Figma feature doesn't export all the variables associated to the Theme
Describe the bug Export to Figma feature doesn't export all the variables associated to the Theme.
The theme:
The exported variables:
Since the prim/mtl/color/value doesn't get exported into variables, all the variables in sem/color/mtl-light are all referenced to empty variable, thus, cannot be used.
To Reproduce Steps to reproduce the behavior:
- Create a token set that refer the color of another token set
- Create a theme with those 2 sets, make sure to
Enabled( NOTReference Only) - Export Variables to Figma using
Style & Variables > Export styles & Variables - See error
Expected behavior
- It should export both token sets as variables, when I pick
EnabledTheme configuration - It should NOT export the token, if I pick
Reference Onlyin Theme configuration
Screenshots or Screencasts (See above)
hey @marach-t-mtl, it looks like you've only created a collection for the sem/color, but you're variables are missing hte core/primitives collection.
It is advised to always create a separate variable collection of your
core/primitive tokens. These core/primitive sets need to always be enabled and then subsequent sets that are referencing these tokens need to be enabled BUT have the core set to reference only.
Closing, this should work with the above steps