Skip to content

Badges ​

Badges are used as indicators to convey dynamic information, such as counts or status. A badge can include labels or numbers.

Overview · Specs · Guidelines · Accessibility

5 aspects of badge anatomy on a navigation bar.

Navigation bar

  1. Small badge
  2. Large badge container
  3. Large badge label
  4. Large badge maximum character count container
  5. Large badge maximum character count label

5 aspects of badge anatomy on a navigation rail.

Navigation rail

  1. Small badge
  2. Large badge container
  3. Large badge label
  4. Large badge maximum character count container
  5. Large badge maximum character count label

Tokens & specs ​

Browse the component elements, attributes, tokens, and their values.

Design tokens

Token table

Machine-readable relationship table

Badges tokens · 1 token set · 13 tokens · live token table · DSDB TOKEN_TABLE.59a1b3a9a90ca8b3

  • Default context: Theme: Light · Platform: Android · Audience: 3P · Font: Static · Contrast: Default · iOS dark theme elevation: None · iOS weight setting: Default
  • Not configurable here (group default used): Motion scheme: Standard · Language height: Small
  • Other contexts: Theme: Dark · Contrast: Medium contrast, High contrast. "Other contexts" lists values that differ from the default when only that one context changes.
  • Reference chain: aliases from the token to its source value (token → alias → … → value). "—" means the token holds a literal value.

Badges · md.comp.badge · 13 tokens

For badges.

GroupTokenTypeReference chainResolved valueOther contexts
Enabled › Containermd.comp.badge.colorColormd.sys.color.error → md.ref.palette.error40#B3261EDark: #F2B8B5 via md.ref.palette.error80
Medium contrast: #8C1D18 via md.ref.palette.error30
High contrast: #601410 via md.ref.palette.error20
Enabled › Containermd.comp.badge.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)—
Enabled › Containermd.comp.badge.sizeLength—6dp—
Enabled › Containermd.comp.badge.large.colorColormd.sys.color.error → md.ref.palette.error40#B3261EDark: #F2B8B5 via md.ref.palette.error80
Medium contrast: #8C1D18 via md.ref.palette.error30
High contrast: #601410 via md.ref.palette.error20
Enabled › Containermd.comp.badge.large.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)—
Enabled › Containermd.comp.badge.large.sizeLength—16dp—
Enabled › Label textmd.comp.badge.large.label-text.colorColormd.sys.color.on-error → md.ref.palette.error100#FFFFFFDark: #601410 via md.ref.palette.error20
Enabled › Label textmd.comp.badge.large.label-text.fontFont namesmd.sys.typescale.label-small.font → md.ref.typeface.plainRoboto—
Enabled › Label textmd.comp.badge.large.label-text.line-heightLine heightmd.sys.typescale.label-small.line-height16pt—
Enabled › Label textmd.comp.badge.large.label-text.sizeFont sizemd.sys.typescale.label-small.size11pt—
Enabled › Label textmd.comp.badge.large.label-text.trackingFont trackingmd.sys.typescale.label-small.tracking0.5pt—
Enabled › Label textmd.comp.badge.large.label-text.weightFont weightmd.sys.typescale.label-small.weight → md.ref.typeface.weight-medium500—
Enabled › Label textmd.comp.badge.large.label-text.typeTypographycomposite
font names: md.comp.badge.large.label-text.font → md.sys.typescale.label-small.font → md.ref.typeface.plain
font weight: md.comp.badge.large.label-text.weight → md.sys.typescale.label-small.weight → md.ref.typeface.weight-medium
font size: md.comp.badge.large.label-text.size → md.sys.typescale.label-small.size
line height: md.comp.badge.large.label-text.line-height → md.sys.typescale.label-small.line-height
font tracking: md.comp.badge.large.label-text.tracking → md.sys.typescale.label-small.tracking
Roboto · weight 500 · size 11pt · line height 16pt · tracking 0.5pt—

Color ​

Color values are implemented through design tokens. For design, this means working with color values that correspond with tokens. For implementation, a color value will be a token that references a value. Learn more about design tokens

5 applications of badge color on light and dark theme navigation bars.

Badge color roles used for light and dark schemes in navigation bar:

  1. Error
  2. Error
  3. On error
  4. On error
  5. Error

5 applications of badge color on light and dark theme navigation rails.

Badge color roles used for light and dark schemes in navigation rail:

  1. Error
  2. On error
  3. Error
  4. On error
  5. Error

Measurements ​

Annotation of badge sizes, padding, and measurements from the corner of the icon to the badge opposite corner.

Badge padding and size measurements

AttributeValue
Small badge shape3dp corner radius
Small badge size (HxW)6dp
Large badge shape8dp corner radius
Large badge one digit size (HxW)16dp
Large badge max character count size (HxW)16x34dp
Small badge: distance from top trailing icon corner to bottom leading badge corner (HxW)6x6dp
Large badge: distance from top trailing icon corner to bottom leading badge corner (HxW)14x12dp
Large badge padding between badge and text container4dp

Configuration ​

Different badges are shown on navigation destinations in various states.

Diagram of 3 badge variations shown on navigation destinations in various states.

  1. Inactive with label - small badge
  2. Inactive with label - large badge
  3. Inactive with label - large badge max character count
  4. Inactive - small badge
  5. Inactive - large badge
  6. Inactive - large badge max character count
  7. Active with label - small badge
  8. Active with label - large badge
  9. Active with label - large badge max character count
  10. Active nav bar no label - small badge
  11. Active nav bar no label - large badge
  12. Active nav bar no label - large badge max character count
  13. Active nav rail no label - small badge
  14. Active nav rail no label - large badge
  15. Active nav rail no label - large badge max character count

Unofficial offline mirror. Content © Google, licensed under CC BY 4.0.