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.36k stars 195 forks source link

Allow `description` in token groups #1811

Open six7 opened 1 year ago

six7 commented 1 year ago

The DTCG format specifies that you can have a description property on token groups. Let's allow that.

Add an entry point to edit token groups in the UI

Display the token description in the UI (when present)

Image

Image

SamIam4Hyma commented 7 months ago

@six7 while reviewing this for V2 planning I have some questions/unknowns:

  1. Where does this information appear in the process / why would I bother to populate it / who cares about this metadata?
    • Today, in the plugin, we group by type, but in the future, we can group by intuitive measures, so is this to support that?
  2. How does this appear in the JSON? Is it different if I am switching between the new DTCG and legacy token formats?
  3. What happens when I have several nested groups? (ex: actions.cta-buttons.brand-tier1.icon.size)
  4. When the description is added and truncated, how can I see the full name in the plugin?
  5. When token group type is assigned, does that change the token type?
  6. On token group type, you have copy that says "unless otherwise specified" - what does that mean?
  7. What impact does this have on transformation/using in code if any?
SamIam4Hyma commented 6 months ago

@six7 are we moving from V2 to a later release? can you please adjust the label for me to reflect what you are thinking?

SamIam4Hyma commented 6 months ago

Added to Featurebase Roadmap- ❇️ DTCG W3C | Token Group Metadata - Description and Type

SamIam4Hyma commented 6 months ago

Added to Featurebase Roadmap- ❇️ DTCG W3C | Token Group Metadata - Description and Type