Inconsistent color tokens for text/icons #2586
-
Hello, I'm using a color token for an icon and noticed that the rgb value in the documentation is different from what I'm getting in the browser. Here's what I'm expecting: What I have in my code and what I got: Am I missing something? I'm looking for a yellow warning icon but using that token isn't giving me the expected RGB values. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @dholliday3, Our token values change with the theme you're using (default or dark) to serve multiple design languages and comply with accessibility standards. When using the light/dark toggle on the Paste docs site, the token list page will swap to either show default theme values with light mode, or dark theme values in dark mode. So in default theme, Hope that clarifies things. Feel free to reply here if you have any other questions! |
Beta Was this translation helpful? Give feedback.
Hi @dholliday3,
Our token values change with the theme you're using (default or dark) to serve multiple design languages and comply with accessibility standards.
When using the light/dark toggle on the Paste docs site, the token list page will swap to either show default theme values with light mode, or dark theme values in dark mode. So in default theme,
colorTextIconWarning
points to rgb(227, 106, 25) and in dark theme,colorTextIconWarning
points to rgb(255, 179, 122).Hope that clarifies things. Feel free to reply here if you have any other questions!