All styles
Glassmorphism

Liquid Glass Pill CSS Button

Free31 lines · no JS
Open in Studio
Theme

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

States
default
hover
focus-visible
active
disabled
not declared
.btn-liquid-glass-pill {
  position: relative;
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.07) 55%, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.35), 0 3px 9px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.btn-liquid-glass-pill:hover {
  transform: translateY(-2px);
  backdrop-filter: blur(22px) saturate(210%) brightness(1.07);
  -webkit-backdrop-filter: blur(22px) saturate(210%) brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 20px 44px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-liquid-glass-pill:active {
  transform: translateY(0) scale(0.96);
}
.btn-liquid-glass-pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-liquid-glass-pill
GlassmorphismPillLiquid

Implementation notes

About the Liquid Glass Pill CSS button

Liquid Glass Pill uses a translucent surface designed to work over rich backgrounds. Its pill silhouette makes the label easy to scan in compact layouts. It combines a five-layer shadow and a 250ms hover lift. The liquid details are included in the copy-paste CSS.

Usage

<button class="btn-liquid-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
Modal86% match

Glass Orbit Decision Modal

Glass Orbit kit

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

Glass Orbit Smart Input

Glass Orbit kit

Glassmorphism characterglass surface
Pro preview
Toggle86% match

Glass Orbit Preference Toggle

Glass Orbit kit

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

Glass Orbit Feature Card

Glass Orbit kit

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

Glass Orbit Action Menu

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Form86% 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

Liquid Glass Lens

Liquid Glass Sheen

Liquid Glass Depth

Liquid Glass Morph

Glass Candy

Glass Pill

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