• Home
  • Getting started
  • Foundation
  • Components
    • Badge
    • Bet Button
    • Button
    • Floating Action Bar
    • Popover
    • Radio group
    • Snackbar
  • Patterns
  • Writing (SE)
  • Brands
Legacy
  • Components

Search the design system

Components

Badge

A badge is a visual indicator that communicates a status or description of an associated component. They use short text and color for quick recognition and are placed near the relevant content.

1
Online

Usage

Badges are used to indicate a notification, item count, or other information. Badges should be placed on or near the component they describe. There are six variant of badges, each in 5 different sizes.

Variant of badges

There are six badge variants: Brand, Contrast, Neutral, Success, Attention, and Important. The appropriate variant depends on what you need to communicate and the context in which the badge is used.

Each badge can be displayed in two emphasis levels: Filled or Tint. A filled badge provides higher emphasis, while the tint offers a more subtle appearance.

The colors of Brand and Contrast adapt to the specific product's color theme. Global colors for Success, Attention, and Important may be adjusted if they conflict with the brand's accent color.

Brand

Example of Brand variant badge

Used to convey information with a strong connection to the brand. Suitable for use outside product interfaces where brand expression is emphasized.

Contrast

Example of Contrast variant badge

Used to convey and highlight points of information that need high visual contrast to stand out within a product interface.

Neutral

Example of Neutral variant badge

Used to present points of information in a neutral and balanced way without emphasizing importance or status.

Success

Example of Success variant badge

Used to convey statuses such as “online” or “completed”.

Attention

Example of Attention variant badge

Used to convey statuses such as “away”, “be right back” or “need attention”.

Important

Example of Important variant badge

Used in notifications and to convey statuses such as “busy” or “do not disturb”.

Badge sizes

Use appropriate size of the badge for the context. Create balance by considering size and position. Avoid a situation in which the badge compete with important interactive components. Different sizes support different content.

Example of Different badge sizes
  1. Extra small
  2. Small
  3. Medium
  4. Large
  5. Extra large
Example of incorrect badge size usage
Avoid mixing badges of different sizes in the same content.

Anatomy

Example of badge anatomy

A. Container
B. Label (Available in small to large badges)
C. Icon (Available in small to large badges)

While content is required in small to extra large badges, they don't require both icon and label.

Behavior

Badges don't have a built-in max-width and will keep growing. You can, however, add your own max-width and truncation style.

Placement

Badges should be placed on or near the component they describe. They should be close enough that people can make intuitive connections between a badge and its associated component. For example, an online status badge can be placed on top of or offset on an avatar component.

Example of badge placed on top

Placed on top

Example of badge placed next to component

Placed next to

Example of correct badge placement
Place badges on the edge of a lockup to avoid visual collisions.
Example of incorrect badge placement
Avoid using a large badge when it might overlap with a trailing element. Either place it at the ending edge of the lockup or use a extra small badge instead.

Content

Badges with text should be short and descriptive. Aim for one or two words that describe a state. Don't try to include too much.

Example of correct badge content
Use words that describe a state or status.
Example of incorrect badge content
Avoid labels that will truncate.

Theming

Context-adaptive badges will be color mapped according to the overlying theme of the product or the context.

The corner radius of badges will also be set as a part of the overlying theme.

Accessibility

If a badge is only an icon, its information needs to be communicated with an aria label. If the badge is connected to another component, that component's aria label should communicate the badge's information.

Components
Components / Code

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.0.5-dev.2

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se