Re: [community-group] Typography type feedback (#102)

Hi, 
I wonder if you have considered adding color as part of the composite typography token.

Whilst I know color is not part of the typography properties as fontSize, lineHeight or even textDecoration, it is intrinsically related to the overall style. ie: assigning specific colors to links or connoting danger through the use of red typography is a common practice. 

The use of a "typography composite token" relating 2 existing tokens could be extremely beneficial to the overall simplicity. What I mean by this is the following use case.

1. Create tokens specific to font family, size, weight, etc.
2. Create, for example, a Heading 3 token, referencing the previously created font family, size, weight...
3. Create a "Danger heading 3" token, referencing the Heading 3 token + a color token ( ie: color.danger)

This logic could be applied to even a default color across typography, communicate different status, etc...

-- 
GitHub Notification of comment by emilianorodriguez
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/102#issuecomment-1154560316 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 13 June 2022 23:54:02 UTC