figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

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

Open NuthanHyma opened this issue 5 months ago • 1 comments

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

NuthanHyma avatar Sep 18 '24 14:09 NuthanHyma