lukasoppermann / design-tokens

🎨 Figma plugin to export design tokens to json in an amazon style dictionary compatible format.
https://www.figma.com/community/plugin/888356646278934516/Design-Tokens
MIT License
964 stars 134 forks source link

About typography #266

Closed hayawata3626 closed 1 year ago

hayawata3626 commented 1 year ago

@lukasoppermann I want to understand the necessity of the typography property(ref). It seems similar to font, but what are the use cases where it proves beneficial? I feel that font alone should suffice, and I've been intentionally removing typography using the design-token-transformer. Is this approach correct?

lukasoppermann commented 1 year ago

A text style by default is a composite token, meaning a token that consists of multiple tokens itself.

The typography option allows you to also export individual properties. This can be helpful as figma does not yet allow you to define e.g. just the font-weight as a property.

Basically with this option you get all the tokens that make up the composite token as individual tokens as well.

hayawata3626 commented 1 year ago

@lukasoppermann Thank you, I understand. I will close this issue. (I apologize, maybe I should have discussed this in the discussion section.)

lukasoppermann commented 1 year ago

All good, don't worry about it. Fine here as well. 👍