Can we use design tokens with cloudscape component #4033
-
|
for ex - Using color design token like this |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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: