tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.36k stars 196 forks source link

Can't update variables using multiple modes #3136

Closed bzupancic closed 1 month ago

bzupancic commented 1 month ago

Describe the bug After importing variables from Figma, I'm unable to update them using the same collection.

To Reproduce Steps to reproduce the behavior:

  1. Create a variable in Figma with 2 modes—light and dark. image

  2. Click on "Styles and Variables" and select "Import variables" image

Both "Light" and "Dark" modes are created (as expected). image image

  1. Update light mode gray-100 value image

  2. Using the "Export styles & variables" action, with "Create and update - Variables - Color" selected, confirming, and "Exporting to Figma" image image image

Another collection is created.

Expected behavior My expectation is the value for gray 100 would be updated for the light mode column.

keeganedwin commented 1 month ago

heyy @bzupancic, it looks like you're trying to import and export variables to keep them in sync but this is currently not possible. These are two separate functions. Here's my response to ticket from another user reporting the same issue. Here's also the ticket for a feature on our feedback platform FeatureBase, that if implemented can possibly resolve the flow of using both functions to keep variables in sync.