-
Is it possible to use space tokens in media tokens when creating a stitches config? Example: createStitches({
space: {
'desktop-min': '1234px',
},
media: {
'desktop-and-up': `(min-width: $space$desktop-min)`,
},
}); Right now I'm just using variables and template literals. Maybe a better question is what tokens can be used in other tokens? |
Beta Was this translation helpful? Give feedback.
Answered by
peduarte
Nov 4, 2021
Replies: 1 comment
-
No, you cant do that. You can use tokens within other tokens in the same scale. https://stitches.dev/docs/tokens#token-aliases |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ianduvall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, you cant do that.
media
is outside of thetheme
config.You can use tokens within other tokens in the same scale. https://stitches.dev/docs/tokens#token-aliases