Using colorPalette in a shadows token? #2569
Answered
by
astahmer
NateWritesCode
asked this question in
Q&A
-
Hello, Thank you to creators for this awesome library! Does anyone know how to use a colorPalette in a shadows token? I tried the following, but it does not appear to work.
Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
astahmer
May 7, 2024
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NateWritesCode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tldr:
colorPalette
can not be used intokens
/semanticTokens
due to the way CSS workslet's say you have this
tokens
object in your configalthough it seems valid, it's not (and it's actually reported by the CLI when
config.validation
is not explicitly set tonone
)the reason why is that tokens will generate CSS variables using the
config.cssVarRoot
selector (1), whereascolorPalette
will be applied through a matc…