Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NuthanHyma opened this issue Sep 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working Figma variables needs-responder setting - apply token resolved values setting export - styles with variable references In the export to Figma options menu themes pro feature for theme groups and themes token type gradient Not a type yet but exists in DTCG W3C

Comments

@NuthanHyma
Copy link
Collaborator

NuthanHyma commented Sep 18, 2024

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

Screen.Recording.2024-09-18.at.8.06.09.PM.mov

Figma File (Optional)
Figma File

@C3PablO
Copy link

C3PablO commented Sep 23, 2024

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.

@NuthanHyma
Copy link
Collaborator Author

Still reproducible in V 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Figma variables needs-responder setting - apply token resolved values setting export - styles with variable references In the export to Figma options menu themes pro feature for theme groups and themes token type gradient Not a type yet but exists in DTCG W3C
Projects
Status: 📥 Triage
Development

No branches or pull requests

3 participants