Intro

You can use badges to display important information about the card status, such as New, Updated, or :icon-pushpin-off(pinned).

When to Use

Do

Use card badges:

  • To display important information about the card status at a glance.

Don't

Don’t use card badges:

  • To show an object status.
  • To show tags.

Examples

Use a short and clear text to avoid truncation.

Use a short and clear text to avoid truncation.

Don’t phrase the badge text as a sentence and avoid using too many words.

Don’t phrase the badge text as a sentence and avoid using too many words.

Use the badge to show a card status, like 'New', 'Updated', or 'Pinned'.

Use the badge to show a card status, like 'New', 'Updated', or 'Pinned'.

Don’t use badges to display tags or an object status. Don't use semantic colors.

Don’t use badges to display tags or an object status. Don't use semantic colors.

Anatomy: Badge on the card canvas (left), example of a card with a badge (right)

Anatomy: Badge on the card canvas (left), example of a card with a badge (right)

Anatomy

  1. Card Canvas: The card canvas is the visual base of a card.
  2. Badge: The badge is placed on the top right corner of the card canvas. It can contain a text, an icon, or both an icon and a text. Badges are non-interactive.

Types

Examples of different badge variants on a card

Examples of different badge variants on a card

  1. The badge can contain text, an icon, or an icon and text.
  2. The badge on cards consumes all indication color sets. Don’t use semantic colors on badges for cards.
  3. You can display up to two badges per card.

Behavior and Interaction

When badges appear and disappear can be determined by the application or by the user’s interaction with the card.

Case 1: Application determines when a badge appears/disappears

Example:

Example: Appearance and disappearance of a 'New' badge

Example: Appearance and disappearance of a 'New' badge

Case 2: User interaction determines when a badge appears/disappears

Example:

Example: Appearance and disappearance of a 'Pinned' badge

Example: Appearance and disappearance of a 'Pinned' badge

Case 3: A combination of case 1 and case 2

Example:

Example: Two badges on one card

Example: Two badges on one card

Responsive Behavior

Truncation

The text on a card badge truncates when there’s not enough space. Wrapping isn’t allowed.

information
To avoid truncation, always keep the badge text as crisp and short as possible.

Minimum/Maximum Badge Width

Examples

Responsive behavior of badges on a card

Responsive behavior of badges on a card

  1. One badge with long text: When space is limited, the badge text truncates.
  2. T wo badges, one icon-only badge: When space is limited, the badge text truncates. The icon-only badge never truncates.
  3. Two badges, both with text: When space is limited, the longer text begins to truncate until its width aligns with the shorter text. Subsequently, the shorter text also truncates if necessary.

Components

Specifications