Theme

80% of Fortune Global 500 telecom companies1

80% of Fortune Global 500 telecom companies1

Color

Statistic component styling - color

Sizes

The default size uses 36pt for the number and 40px for an icon. A large stat uses 48pt for the number and 64px for an icon. Both size variations use 18pt for body text and 20pt for titles.

Examples of stat in the default and large sizes

Configurations/variants

An icon can be added as the first element in a statistic.

Learn more about using icons

80% of Fortune Global 500 telecom companies1

A call to action can be added as the last element in a statistic.

80% of Fortune Global 500 telecom companies1 Learn more

A stat can be placed inside a card.

Example of a stat centered in a card

Alignment

All content in a stat should use the same alignment. Currently all stat content is centered.

More than 90% of Fortune 500 companies rely on Red Hat1

Accessibility

Color contrast

A stat's colors may change based on the theme. This is done to ensure that the color contrast meets WCAG AA standards.

Light theme - primary background

A stat against a white background has a red title and number, black body text, and a blue CTA.

Dark theme - primary background

A stat against a black background has a white title, white number, white body text, and a light blue CTA.

Light theme - secondary background

A stat against a white background has a red title and number, black body text, and a blue CTA.

Dark theme - secondary background

A stat against a dark grey background has a white title and number, very light grey body text, and a light blue CTA.

Responsive design

Large screens

A single stat will span a maximum of 6 columns.

Example of a stat centered in a card

Small screens

Stats in a row on large screens will stack on smaller screens. Font sizes will adjust based on the mobile typography scale.

Three stats stacked in a 328px container with 16px margins on either side

Spacing

Within the component

The Statistic component uses spacers to define space values between elements. The default and large variations use the same spacing.

Stat uses 8px of space below icon, 8px of space below number, and 24px of space below body text.

Within groups of stats

Spacing between vertically stacked stats should be 48px.

Example of two stats stacked with a 48px spacer in between.
© 2021-2023 Red Hat, Inc. Deploys by Netlify