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

2804 20 gradients that have references to variables inside fail to applycreate #2815

Closed robinhoodie0823 closed 2 months ago

robinhoodie0823 commented 2 months ago

Why does this PR exist?

Current plugin dose not apply gradient token which have reference tokens.

Closes #2804

What does this pull request do?

Updated the value of gradient token when passing to function to apply token on node. Updated convertStringToFigmaGradient function to handle several kinds of gradient tokens.

Testing this change

Additional Notes (if any)

https://github.com/tokens-studio/figma-plugin/assets/103296157/1b55835a-c9d9-4638-bf40-6918c815ce3f

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: 16399386e020d17df475c9eb348459e2d02da6db

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR