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

Referencing Gradient Tokens does not Export Correct Styles

Open keeganedwin opened this issue 4 months ago • 0 comments

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:

  1. Create a gradient token with referencing two base tokens
  2. Create another token referencing the first gradient token
  3. Export styles as color
  4. 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:

CleanShot 2024-10-17 at 13 00 21@2x

Figma file (optional) Test file

keeganedwin avatar Oct 17 '24 11:10 keeganedwin