figma-plugin
figma-plugin copied to clipboard
Referencing Gradient Tokens does not Export Correct Styles
Describe the bug Currently the plugin does not export gradient styles when the token is referencing another gradient.
To Reproduce Steps to reproduce the behavior:
- Create a gradient token with referencing two base tokens
- Create another token referencing the first gradient token
- Export styles as color
- See error
Expected behavior Referencing another gradient should just be exported as a style.
Screenshots or Screencasts
From the screenshot the token Base.Gamepad.Sparks-Like
is referencing the two base tokens above. You can see (annotated in green) that this token is successfully created as a style. However the token Light.Semantic.Accent.Sparks-Like-Gradient
(annotated in red) that is referencing Base.Gamepad.Sparks-Like
is not successfully created as a token:
Figma file (optional) Test file