Can we use design tokens with cloudscape component #4033
Answered
by
jperals
rishabh-jain-2101
asked this question in
Q&A
|
for ex - Using color design token like this |
Answered by
jperals
Nov 14, 2025
Replies: 1 comment
|
Hi, You can use But if you want to use a token, you can just use a native HTML paragraph instead of the Box: You can also use design tokens in your CSS. Check our documentation for more information. |
0 replies
Answer selected by
YueyingLu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
You can check the API to see the values that are supported as
colorfor the Box component: https://cloudscape.design/components/box/?tabId=api#property-colorYou can use
text-status-infoto render the text in the same color used for info notifications. This will also work better in dark mode than using a token, because the value fortext-status-infoin dark mode is lighter, giving it better contrast against the dark background.But if you want to use a token, you can just use a native HTML paragraph instead of the Box: