Replies: 3 comments 1 reply
-
To my knowledge, stitches does not offer nested theming tokens. Rather, it offers the ability to associate custom "tokens" (keys) with each color "value" https://stitches.dev/docs/tokens#defining-tokens. Can you explain the use-case of why one might want to group several colors together without having a token to differentiate which value is being referenced? |
Beta Was this translation helpful? Give feedback.
-
A couple of use-cases come into my mind:
Compared with these, the theme format of Stitches feels limited. |
Beta Was this translation helpful? Give feedback.
-
Thanks for checking this and for the suggestions! I wasn't sure if I'm just missing something or if this is a missing feature in Stitches. Perhaps I'll do a feature request then. |
Beta Was this translation helpful? Give feedback.
-
Theming of Stitches is based on the System UI format. System UI supports nested tokens, such as colors, in this way:
https://system-ui.com/theme/
However, I can't get this to work in Stitches ("blues" shows up as just one token). Am I doing something wrong, is this not supported by Stitches? If not then perhaps I should do an issue on this.
Beta Was this translation helpful? Give feedback.
All reactions