Replies: 2 comments
-
Original discussion in Slack: [joe]
The ? I have is do we need to specify what the cascade is or can it be flexible. For example. Do component tokens reference all the way down to primitives, something else or can it be a mix? Do semantic tokens always references alias tokens or can they directly reference primitive tokens? [sara] [joe] [aaron] |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
As part of polaris token work, we are considering the need for component or pattern specific tokens.
We're finding there are cases across token groups where this makes sense.
To use color as an example, we have a few what we're currently calling "specialty roles" that get more specific in their application than the general role based tokens.
Below is a suggested pattern for component level tokens:
--p-color-{component}-{variant}-{default-token-structure}
examples:
--p-color-nav-surface
--p-color-avatar-fill
--p-color-avatar-one-icon-onfill
Points of discussion:
Beta Was this translation helpful? Give feedback.
All reactions