All styles
Glassmorphism

Glass Pill CSS Button

Free28 lines · no JS · WCAG fails 1.0
Open in Studio
Theme

A real <button> carrying .btn-glass-pill — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
disabled
not declared
.btn-glass-pill {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, letter-spacing 0.2s ease;
}
.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}
.btn-glass-pill:active {
  background: rgba(255, 255, 255, 0.38);
}
.btn-glass-pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-glass-pill
GlassmorphismPillText FX

Implementation notes

About the Glass Pill CSS button

Glass Pill uses a translucent surface designed to work over rich backgrounds. Its pill silhouette makes the label easy to scan in compact layouts. The text fx details are included in the copy-paste CSS.

Usage

<button class="btn-glass-pill">Button</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Pill
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal85% match

Glass Orbit Decision Modal

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Free sample
Input85% match

Glass Orbit Smart Input

Glass Orbit kit

Glassmorphism characterglass surface
Pro preview
Toggle85% match

Glass Orbit Preference Toggle

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Card85% match

Glass Orbit Feature Card

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Dropdown85% match

Glass Orbit Action Menu

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Form85% match

Glass Orbit Signup Form

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Get the complete Glass Orbit kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Glass Candy

Glass Deep

Glass Edge

Glass Frost

Glass Rose

Liquid Glass Lens

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does