figma-plugin
figma-plugin copied to clipboard
refactor applying tokens + add support for binding variables to effects
Why does this PR exist?
Closes https://github.com/tokens-studio/figma-plugin/issues/2443
Figma recently added support for binding variables to effects such as shadows. This PR adds support for this.
What does this pull request do?
Changes seem big - which is because this PR includes a refactor of our update function to make it WAY easier to parse and add new features. The big setValuesOnNode
file has been split into many.
I also added a way to retrieve tokens and references from the plugin side from a central store instead of passing it through for every function, i could imagine this was another sort for memory leaks.
Testing this change
Apply a couple of tokens. Composition tokens, tokens using references. Create styles, create variables, give it a gooooood test.
⚠️ No Changeset found
Latest commit: 1033bdd3891126a1db69f47702bf8de97ab75801
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