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.35k stars 194 forks source link

Gradients with Token-Referenced Variables Do Not Update Correctly When Applying Theme with “Resolved Values #3147

Open NuthanHyma opened 3 weeks ago

NuthanHyma commented 3 weeks ago

Describe the bug When using variables connected to tokens inside gradients, they do not update correctly when applying a theme from the plugin using “Resolved values.” Regular color fills work fine, but gradients fail to update as expected.

To Reproduce

  1. Create a gradient token with referring base color tokens
  2. now create styles and variables with the Create styles with variable references option.
  3. now apply the gradient token on any frame
  4. change the applied current tokens as to resolved values, no variables or styles in the plugin and click on the apply to selection button.
  5. Now click on the fill-in Figma and see the error

Expected behavior selecting the resolved values, no variables or styles, shouldn't apply any variables or styles to the elements.

Screenshots or Screencasts

https://github.com/user-attachments/assets/87dd1000-dab6-4b48-9696-92f456f9074d

C3PablO commented 2 weeks ago

This is causing problems when swapping themes for big selections as we need to go individually and fix the issue for every element using a gradient.