Skip to content
English
Don't know what it's called57 / 71

Count badge

What it's calledCount badgenotification badgeGlossary

What goes wrong

A fixed little circle crams "128" into tiny digits that spill over its edge, and a badge reading "0" still calls for attention when there is nothing to see.

The fix

Let the badge grow into a pill with the digits, cap it at 99+, and remove it at zero.

Tell your AI

Draw count badges as pills of min-width 20px and height 20px with 0 var(--ds-space-6) (6px) padding, var(--ds-radius-full) (999px) corners, a var(--ds-danger) fill, var(--ds-on-accent) text at var(--ds-font-size-xs) (12px) with tabular-nums and a 2px ring of var(--ds-surface); show "99+" above 99, hide the badge at 0, and pop it with var(--ds-ease-spring) when the number changes.

  • --ds-space-66px
  • --ds-radius-full999px
  • --ds-danger
  • --ds-on-accent
  • --ds-font-size-xs12px
  • --ds-surface
  • --ds-ease-spring
Why AI-generated UIs all look the same: 12 rules that fix it

Front desk

Riverside Clinic · Today

  • Messages
  • Appointments
  • Reviews

Fixed circles: 128 spills out, 0 still shows