Gradient Badge

Small pill badge with gradient background.

Live
Tailwind CSS
<span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-bold text-white bg-gradient-to-r from-indigo-500 to-purple-500">
  <span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse"></span>
  Live
</span>

Free to use in personal and commercial projects. No attribution required.

Variants

Same component, different looks. Preview each one live and copy the code you like.

New, emerald

Green gradient for new feature announcements and fresh content.

New
Tailwind CSS

Solid

Flat solid color when gradients feel too loud for the interface.

Live
Tailwind CSS

Outline

Subtle outline style for secondary badges next to a loud primary one.

Live
Tailwind CSS

About this gradient badge

Badges label the new, the live, the beta. This gradient badge pairs a pill shape with an indigo-to-purple gradient and a pulsing dot, the 'Live' indicator pattern. It is small, colorful, and impossible to miss without shouting.

The pulsing white dot (animate-pulse) inside the badge signals activity. The gradient background elevates it above flat badges. At text-xs with bold weight, it reads clearly at small sizes.

Badges are metadata, not content. They annotate (Live, New, Beta, Pro) but should never carry the primary message. One badge per element; two badges compete and both lose.

Interfaces constantly need to whisper status: this feature is new, the service is live, you are on the Pro plan. A banner would be overkill and plain text gets skipped in a scan. The badge is the middle layer: small enough to sit beside a heading, colorful enough to catch the eye mid-scroll. Status becomes glanceable instead of something users must hunt for.

The pill is inline-flex with rounded-full, px-3 py-1, and bg-gradient-to-r from-indigo-500 to-purple-500. Inside, a w-1.5 h-1.5 rounded-full bg-white animate-pulse dot broadcasts liveness, and text-xs font-bold white text stays legible over the gradient. The items-center gap-1.5 keeps the dot and the word optically aligned at small sizes.

Map gradients to meaning and hold the mapping: emerald for Live, amber for Beta, rose for urgent. Drop the pulse dot for static labels like version numbers or Pro; motion promises liveness, so only animate what is actually live. Keep the word to a single token (Live, v3.2) since badges are scanned, not read.

The mistake is the pulsing Live badge on content that is not live. A marketing page with a throbbing Live pill teaches visitors that your badges exaggerate, and then the real live indicator gets ignored when it matters. Reserve the pulse for genuinely live state; everything static gets a static badge. A signal that cries wolf stops being a signal.

Where to use it

  • ✓ Live indicators
  • ✓ New feature tags
  • ✓ Beta labels
  • ✓ Status pills

Customization tips

Match gradient to severity: emerald for live, amber for beta, red for urgent. Remove the pulse dot for static labels. Keep text to one word.

Design notes

When to use

Use it to annotate status in a single word: Live, New, Beta, or Pro. The gradient pill with a pulsing dot is impossible to miss without shouting, which makes it ideal for feature tags and status pills next to headings. One badge per element keeps it sharp.

What to avoid

Do not let a badge carry the primary message; badges are metadata, not content. Do not stack two badges on one element, they compete and both lose.

Accessibility

The pulsing dot should pause under prefers-reduced-motion. The word inside the badge already names the status, which is good; never use a badge whose meaning lives only in its color.

Frequently asked questions

When should I use a badge?

For short metadata: status (Live), recency (New), tier (Pro). Never for primary content or long text. One badge per element max.

How do I make a pulsing dot in a badge?

Add a small white dot with animate-pulse inside the badge. The pulse suggests live activity.

Badge vs pill vs chip?

These terms overlap. Badges are typically small status labels; chips often include a close button; pills describe the shape. The implementation is similar.

How do I keep badge text readable on a gradient background?

Use white text with a slightly darker gradient, and check the contrast against the lightest part of the gradient, not the darkest. If the gradient gets too light in the middle, add a subtle text shadow or darken the gradient stops. Small badge text needs stronger contrast than body text.

How do I make a gradient version badge like v3.2?

Use a pill shape with rounded-full, a horizontal gradient background like bg-gradient-to-r from-purple-500 to-violet-500, and small bold white text with tracking. Version badges usually sit next to headings, so keep them compact with tight padding.

Can I animate a gradient badge background?

Yes. Animate background-position with a 200 percent background-size for a slow shimmer, or pulse the whole badge for attention. Keep badge animation subtle: badges are labels, not CTAs, so a gentle shimmer beats a flashing animation that distracts from the content.

Customize it with our tools