Replies: 1 comment
-
Ah, I should have read the documentation more carefully. By writing: scrollbarColor: "token(colors.thumb) token(colors.track)" I was able to reference the tokens as intended. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
scrollbar-color
property always requires two color values to be specified.Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color#formal_syntax
However, in PandaCSS, when I try to specify two colors using tokens, Panda does not recognize them as tokens and does not convert them to variables.
demo:
https://play.panda-css.com/EmVHWyDh-4
↓
To make it work correctly, I have to write the variable names directly:
This breaks type safety, so if there is a better way to write this, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions