Skip to content
Discussion options

You must be logged in to vote

Hi,
You can check the API to see the values that are supported as color for the Box component: https://cloudscape.design/components/box/?tabId=api#property-color

You can use text-status-info to 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 for text-status-info in 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:

import { info600 } as awsui from '@cloudscape-design/design-tokens/index.js';

<p style={{ color: info600 }}>
  When you launch an instance, the instance class that
   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YueyingLu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants