Highlighted value

A colored label with an optional icon to indicate a status

Overview

  • Available since: New York
  • A11Y: WCAG 2.1 AA

A highlighted value indicates a status or a category through the use of icons, text, and color. It helps users prioritize data or categorize related content.

Loading playground

When to use

Use a highlighted value to indicate a status or category you want to emphasize. A highlighted value should be used consistently across similar pages and components to enhance scannability. Status colors should match its label.

When not to use

Don't overuse highlighted values, or they'll lose their impact. Use them sparingly to ensure they serve their purpose without unnecessarily overwhelming users.


Anatomy

anatomy of the highlighted value component
  1. Icon: Visual element that supplements a highlight color to indicate a status or category
  2. Label: Text that describes the status or category of the highlighted value
  3. Highlight: Background color that visually expresses the status of the highlighted value; the status or category color you choose determines the color highlight

Subcomponents

See usage guidance for label-value pair (stacked)

See usage guidance for label-value pair (tabbed)

See usage guidance for card

See the icon gallery for available icons

Usage

Learn how to use highlighted value in a list, as a label-value pair, and with cards.

List

You can use highlighted values in a list to visually indicate the priority of certain items.

example of how to use highlighted value in a record list

Label-value pair

You can also use a highlighted value within the stacked or tabbed type of the label-value pair component to indicate a status or category.

label-value pair example

Cards

You can use highlighted values to group similar card content.

card with a purple highlight value and 'Report' label

In this example, all cards related to a report can have a category color of purple and a label citing 'Report.'

You can also use highlighted values to emphasize a state of card content.

card with a red highlight value and 'Due Soon' label

In this example, a pending action of high importance can have a status color of red and a 'Due soon' label.

Variants

Learn about highlighted value and find out how to use it in your design.

Colors

Highlighted value has the following different color variants: primary, secondary, and tertiary. These variants communicate a hierarchy of importance. Color saturation also provides a differentiation and changes in intensity between variants.

Primary

Use the primary variant to signify items that are important and require immediate attention.

card with a red highlight value and 'Due Soon' label

Secondary

Use the secondary variant to signify items that are important but don't need immediate attention.

card with a red highlight value and 'Due Soon' label

Tertiary

Use the tertiary variant to signify items that are of minor importance. The tertiary variant is the default for highlighted value.

card with a red highlight value and 'Due Soon' label

Configurations

Learn how to customize highlighted value by configuring the available properties.

Colors

Sets the background color. See “Design recommendations” below for determining which highlighted value colors to use for your use cases.

Color Use Primary Variant Secondary Variant Tertiary Variant
Critical now-highlighted-value now-highlighted-value now-highlighted-value
High now-highlighted-value now-highlighted-value now-highlighted-value
Warning now-highlighted-value now-highlighted-value now-highlighted-value
Moderate now-highlighted-value now-highlighted-value now-highlighted-value
Positive now-highlighted-value now-highlighted-value now-highlighted-value
Info now-highlighted-value now-highlighted-value now-highlighted-value
Low now-highlighted-value now-highlighted-value now-highlighted-value
Magenta now-highlighted-value now-highlighted-value now-highlighted-value
Pink now-highlighted-value now-highlighted-value now-highlighted-value
Orange now-highlighted-value now-highlighted-value now-highlighted-value
Yellow now-highlighted-value now-highlighted-value now-highlighted-value
Brown now-highlighted-value now-highlighted-value now-highlighted-value
Green now-highlighted-value now-highlighted-value now-highlighted-value
Green-yellow now-highlighted-value now-highlighted-value now-highlighted-value
Blue now-highlighted-value now-highlighted-value now-highlighted-value
Gray now-highlighted-value now-highlighted-value now-highlighted-value
Teal now-highlighted-value now-highlighted-value now-highlighted-value
Purple now-highlighted-value now-highlighted-value now-highlighted-value

Icon

The highlighted value can contain an icon that supplements the label and reflects a status or category. Avoid using an icon that can be misunderstood for a button.

Without icon With icon
now-highlighted-value now-highlighted-value

The icon in the highlighted value defaults to a circular status icon that is always filled and matches the highlight style. However, you can choose an icon other than the status icon. If you implement a different icon, remember to use either the outlined version to complement the label or the filled version to convey more importance.

Text wrapping

If highlighted values are set to wrap, the label wraps to the container width.

Design recommendations

Learn how to apply highlighted value in your design.

Colors

Highlighted value supports the following color palettes: Status colors and category colors.

Status

Status colors convey an importance range from most critical to least critical.

Color Use Primary Variant Secondary Variant Tertiary Variant
Critical now-highlighted-value now-highlighted-value now-highlighted-value
High now-highlighted-value now-highlighted-value now-highlighted-value
Warning now-highlighted-value now-highlighted-value now-highlighted-value
Moderate now-highlighted-value now-highlighted-value now-highlighted-value
Positive now-highlighted-value now-highlighted-value now-highlighted-value
Info now-highlighted-value now-highlighted-value now-highlighted-value
Low now-highlighted-value now-highlighted-value now-highlighted-value

Category

Category colors can represent groups of content, such as parts of an organization, including human resources, marketing, or finance. The colors can also designate types of objects, such as articles on troubleshooting, information security, or travel policy. Use the color that best fits your use case.

Color Use Primary Variant Secondary Variant Tertiary Variant
Magenta now-highlighted-value now-highlighted-value now-highlighted-value
Pink now-highlighted-value now-highlighted-value now-highlighted-value
Orange now-highlighted-value now-highlighted-value now-highlighted-value
Yellow now-highlighted-value now-highlighted-value now-highlighted-value
Brown now-highlighted-value now-highlighted-value now-highlighted-value
Green now-highlighted-value now-highlighted-value now-highlighted-value
Green-yellow now-highlighted-value now-highlighted-value now-highlighted-value
Blue now-highlighted-value now-highlighted-value now-highlighted-value
Gray now-highlighted-value now-highlighted-value now-highlighted-value
Teal now-highlighted-value now-highlighted-value now-highlighted-value
Purple now-highlighted-value now-highlighted-value now-highlighted-value
used to display importance of a task
Do

Use a highlighted value to display the importance of a specific task.

used improperly as a numerical counter
Don’t

Don't use a highlighted value as a numerical counter. Use a badge instead. Highlighted values indicate status, while badges are dynamic numeric counters.

category color that reflects task importance
Do

Use a highlighted value that captures attention and reflects the importance of the task.

inappropriate category color to show urgency
Don’t

Don't use a category color that reflects low-priority status for something important.

category color that reflects task importance
Do

Use a highlighted value to draw attention to important information, such as when content has been generated by AI.

inappropriate category color to show urgency
Don’t

Don't use a highlighted value as an interactive element, such as a button or link, to avoid confusion and maintain the clarity of its purpose.

UI text guidelines

These are some recommendations for using text within highlighted value:

  • Keep the text brief but informative to make scanning easier
  • Use the label to help the person make a decision, inform them, or help them move forward
    • For example, a “Draft” label can tell a person that the object hasn’t been published yet
  • You can also use the label to provide categories for UI elements (like cards)
    • For example, you can use “Article” and “Video” to categorize content
  • The label should be relevant to the person’s task at hand and should be in words they understand
  • Make sure the label you use matches the criticality of the color.
    • For example, an item that is “Due soon” should have a yellow highlighted value color to indicate a warning

Behavior

Learn how highlighted value behaves when the display changes or a user interacts with the component.

Usability

Highlighted value complies with all internationalization and accessibility requirements.

Internationalization

When the display translates to a right-to-left (RTL) language, the highlighted value flips. If it contains an icon, the icon appears to the right of the text.

label and indicator position for right-to-left languages

Accessibility

Learn how to access the actionable elements of highlighted value through keyboard interactions and screen readers.

Visual

Label and icon colors for the highlighted value have a minimum 5:1 contrast ratio that applies to all variants and both the status and category colors.

Screen readers

The screen reader can announce the highlighted value and any related content together. Use aria-labelledby and aria-describedby to connect the highlighted value to the related content.