Micro-typography rules for accessible status badges, pills, and notification counts
A miniature pill badge carries immense communicative weight during operational incidents or cart updates. Engineering badges with proportional font scales, vertical optical centering, and rigorous WCAG color contrast ensures critical alerts register instantly.
How to Use the Badges, Tags & Status Dots (3 Simple Steps)
Choose Badge Type & Shape
Select from Pill Badge, Rectangular Tag, Numeric Notification Counter, or Live Pulsing Status Dot.
Customize Color Roles & Sizing
Configure semantic color roles (success, warning, error, info), font sizes, paddings, and border strokes.
Copy HTML & CSS
Copy clean inline HTML markup and modular CSS ready to tag cards, avatars, table rows, and dashboard metrics.
Features & CSS Best Practices
Pulsing Live Status Dots
Includes pure CSS radar pulse animations for "Online", "Live Stream", "Recording", and "System Healthy" states.
Semantic Color System
Pre-configured color variables for Success (green), Warning (amber), Danger (red), and Info (blue) badges.
Notification Count Badges
Compact numeric bubble badges that position perfectly over avatar corners and navigation icons.
Subtle Translucent Tints
Modern pastel backgrounds paired with high-contrast text ensure badges pop without visual clutter.
Frequently Asked Questions
How do I position a notification badge on top of an icon?
Set position: relative; on the icon wrapper, and set position: absolute; top: -4px; right: -4px; on the badge element.
How is the live pulsing radar dot animated?
A central static dot is paired with an ::after pseudo-element that scales from 1 to 2.5 while fading opacity from 1 to 0 in an infinite CSS loop.
Should badges use uppercase text?
Many modern design systems use text-transform: uppercase; with a small font size (10px–11px) and letter-spacing: 0.5px; for clean readability.
Can I include icons inside badges?
Yes, setting display: inline-flex; align-items: center; gap: 4px; allows seamless pairing of SVGs with badge text.
How do I make a pulsing notification status badge dot in CSS?
Create a small circle with border-radius: 50% and position an absolute ::after pseudo-element behind it with animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;. Keyframes expand scale(2) and fade opacity to 0.
What is the best way to handle long text inside badge tags?
Apply max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; to truncate overflowing text gracefully, and provide the full unclipped label in a title attribute.
How do I ensure status badges meet accessibility contrast standards?
Avoid using low-contrast pastel combinations. When using soft tinted backgrounds (such as light green), pair them with high-luminance dark text (e.g. deep forest green #14532d) that delivers at least a 4.5:1 contrast ratio.