Cards

The stat card component groups related information in a flexible-size container. It is widely used across the Morningstar B2B web experience to contain and present specific information, namely, data and statistics.

Anatomy

Stat cards are made up of two elements: a text block and links. A stat card can include one tertiary button or a list group.

Stat Cards Anatomy
  1. Number sets the number data for the card. It has a limit of eight characters (numbers and monetary symbols).
  2. Description gives more context. It has a limit of 150 characters.
  3. Background defines the space of the text block. It can be a solid color or transparent with or without an outline.

Usage

When to Use

Use stat cards to display a number.

When Not to Use

Don’t use stat cards to display text. Use a general card instead.

Variants

There is only one type of stat cards, with no variations.

Stat Card Variant
Variation
Purpose
CTA
Background

Stat card

Use to show numbers.

No CTA

Fill, outline, float

Types

Use the content with a solid background, a transparent background and an outline, or a transparent background only.

Stat Cards Type

Container

Use a card container for consistent behavior and standard spacing and sizing within a group of cards.

Spacing

Ensure that proper space is given between each card item.

Stat Cards Spacing

Ensure that proper space is given between each card. Both, the vertical and the horizontal space between cards, should be 2px.

Stat Cards Container Spacing

Hierarchy

A proper hierarchy must be ensured for the elements that compose the card. The number has the highest level of importance. The body, which describes the number to give more context, has to be placed near the number (top-aligned).

Alignment

The alignment of the components within the card depends of the type of component. The number and the description are left-aligned.

Stat Cards Alignment
Stat Card Do

Do keep the non variable padding between the number and the description. The description needs to be top aligned, near the number.

Stat Card Don't

Don’t change the padding between the number and the description or align it to the bottom of the card.

State Card Do

Do use abbreviations for larger numbers to avoid having more than the eight character limit.

Stat Card Don't

Don’t exceed the character limit for numbers.

Sizing

Cards don’t manage sizes like other components do. Their width will adapt to the card container and the view-port size, and it won’t be less than 295px. Their height, on the other hand, will adapt to the content length. The card can become taller, but it should never be less than 200px in height.

Stat Card Sizing

Behavior

Flexible Height

All card types will match sizes across rows to the tallest card. Keep in mind that the card become taller, but it should never be smaller than 200px in height. Links top hang.

Stat Card Behavior: Flexible Height

Single Card

Themes

Single stat card on dark theme
Dark
Single stat card on mid theme
Mid
Single stat card on light theme
Light

Group of cards

Grouped stat cards on dark theme
Dark
Grouped stat cards on mid theme
Mid
Grouped stat cards on light theme
Light