tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)

Home Page:https://www.figma.com/community/plugin/843461159747178978

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.0: Trying to apply a composite token that is a reference to another token fails if the referenced token comes from another set

six7 opened this issue · comments

To reproduce:

  • Create a typography token called original in a set called A.
  • Create another typography token called secondary that references {original}.
  • Create a set B
  • In set B create a typography token called tertiary that references {secondary}
  • Try to apply tertiary to a text layer
  • Notice it does not do anything

On debugging it seems resolvedValueWithReferences is not set for those tokens when the reference comes from another set and is a reference to a typography token (and very likely also border / box shadow - any composite token that can reference another token)

CleanShot.2024-05-15.at.07.58.48.mp4