Open demo

CSS code

HTML
<button type="button" class="gl gl-light">Frosted light</button>
<button type="button" class="gl gl-solid">Frosted solid</button>
<button type="button" class="gl gl-dark">Frosted dark</button>
<button type="button" class="gl gl-round" aria-label="Play"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5l11 7-11 7z"/></svg></button>
CSS
/* Frosted glass buttons: a translucent fill, a hairline border and backdrop-filter blur over a colourful ground. */
.gl{border-radius:13px;padding:14px 30px;font:inherit;font-size:.93rem;font-weight:700;line-height:normal;cursor:pointer;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:background-color .2s,transform .14s,box-shadow .2s}
.gl:hover{transform:translateY(-2px)}
.gl:focus-visible{outline:2px solid #fff;outline-offset:3px}
.gl-light{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.34);color:#fff;
  box-shadow:0 8px 26px -12px rgba(0,0,0,.5)}
.gl-light:hover{background:rgba(255,255,255,.26)}
.gl-solid{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.7);color:#1b2540}
.gl-solid:hover{background:#fff}
.gl-dark{background:rgba(10,15,28,.42);border:1px solid rgba(255,255,255,.2);color:#fff}
.gl-dark:hover{background:rgba(10,15,28,.6)}
.gl-round{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#fff;
  width:52px;height:52px;padding:0;border-radius:50%;display:grid;place-items:center}
.gl-round svg{display:block;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2}
.gl-round:hover{background:rgba(255,255,255,.26)}
@media (prefers-reduced-motion:reduce){.gl{transition:none}.gl:hover{transform:none}}

Bootstrap 5 code

Requires: Bootstrap 5.3.8 CSS

HTML
<button type="button" class="btn gl gl-light">Frosted light</button>
<button type="button" class="btn gl gl-solid">Frosted solid</button>
<button type="button" class="btn gl gl-dark">Frosted dark</button>
<button type="button" class="btn gl gl-round rounded-circle" aria-label="Play"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5l11 7-11 7z"/></svg></button>
CSS
/* Frosted glass buttons: .btn restyled through --bs-btn-* variables (translucent fill and border), plus the
   backdrop-filter blur that Bootstrap has no utility for. */
.gl{--bs-btn-padding-x:30px;--bs-btn-padding-y:14px;--bs-btn-font-size:.93rem;--bs-btn-font-weight:700;
  --bs-btn-line-height:normal;--bs-btn-border-radius:13px;--bs-btn-color:#fff;--bs-btn-hover-color:#fff;
  --bs-btn-active-color:#fff;--bs-btn-focus-box-shadow:0 0 0 3px rgba(15,32,54,.6),0 0 0 5px #fff;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:background-color .2s,transform .14s,box-shadow .2s}
.gl:hover{transform:translateY(-2px)}
.gl-light{--bs-btn-bg:rgba(255,255,255,.16);--bs-btn-border-color:rgba(255,255,255,.34);
  --bs-btn-hover-bg:rgba(255,255,255,.26);--bs-btn-hover-border-color:rgba(255,255,255,.34);
  --bs-btn-active-bg:rgba(255,255,255,.26);--bs-btn-active-border-color:rgba(255,255,255,.34);
  box-shadow:0 8px 26px -12px rgba(0,0,0,.5)}
.gl-solid{--bs-btn-color:#1b2540;--bs-btn-hover-color:#1b2540;--bs-btn-active-color:#1b2540;
  --bs-btn-bg:rgba(255,255,255,.9);--bs-btn-border-color:rgba(255,255,255,.7);
  --bs-btn-hover-bg:#fff;--bs-btn-hover-border-color:rgba(255,255,255,.7);
  --bs-btn-active-bg:#fff;--bs-btn-active-border-color:rgba(255,255,255,.7)}
.gl-dark{--bs-btn-bg:rgba(10,15,28,.42);--bs-btn-border-color:rgba(255,255,255,.2);
  --bs-btn-hover-bg:rgba(10,15,28,.6);--bs-btn-hover-border-color:rgba(255,255,255,.2);
  --bs-btn-active-bg:rgba(10,15,28,.6);--bs-btn-active-border-color:rgba(255,255,255,.2)}
.gl-round{--bs-btn-padding-x:0;--bs-btn-padding-y:0;--bs-btn-bg:rgba(255,255,255,.14);
  --bs-btn-border-color:rgba(255,255,255,.3);--bs-btn-hover-bg:rgba(255,255,255,.26);
  --bs-btn-hover-border-color:rgba(255,255,255,.3);--bs-btn-active-bg:rgba(255,255,255,.26);
  --bs-btn-active-border-color:rgba(255,255,255,.3);width:52px;height:52px;display:grid;place-items:center}
.gl-round svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2}
@media (prefers-reduced-motion:reduce){.gl{transition:none}.gl:hover{transform:none}}

Tailwind 4 code

Requires: Tailwind CSS 4

HTML
<button type="button" class="rounded-[13px] border border-white/34 bg-white/16 px-[30px] py-3.5 text-white shadow-[0_8px_26px_-12px_rgba(0,0,0,.5)] hover:bg-white/26 cursor-pointer backdrop-blur-[14px] text-[.93rem] font-bold transition-[background-color,transform,box-shadow] duration-200 hover:-translate-y-0.5 focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-white motion-reduce:transition-none motion-reduce:hover:translate-y-0">Frosted light</button>
<button type="button" class="rounded-[13px] border border-white/70 bg-white/90 px-[30px] py-3.5 text-[#1b2540] hover:bg-white cursor-pointer backdrop-blur-[14px] text-[.93rem] font-bold transition-[background-color,transform,box-shadow] duration-200 hover:-translate-y-0.5 focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-white motion-reduce:transition-none motion-reduce:hover:translate-y-0">Frosted solid</button>
<button type="button" class="rounded-[13px] border border-white/20 bg-[rgba(10,15,28,.42)] px-[30px] py-3.5 text-white hover:bg-[rgba(10,15,28,.6)] cursor-pointer backdrop-blur-[14px] text-[.93rem] font-bold transition-[background-color,transform,box-shadow] duration-200 hover:-translate-y-0.5 focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-white motion-reduce:transition-none motion-reduce:hover:translate-y-0">Frosted dark</button>
<button type="button" aria-label="Play" class="grid size-[52px] place-items-center rounded-full border border-white/30 bg-white/14 text-white hover:bg-white/26 cursor-pointer backdrop-blur-[14px] text-[.93rem] font-bold transition-[background-color,transform,box-shadow] duration-200 hover:-translate-y-0.5 focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-white motion-reduce:transition-none motion-reduce:hover:translate-y-0"><svg viewBox="0 0 24 24" aria-hidden="true" class="block size-5 fill-none stroke-current stroke-[2.2]"><path d="M8 5l11 7-11 7z"/></svg></button>

About this set

Four frosted glass buttons shown over a colourful ground of amber, pink and blue light on deep navy. Frosted light is a thin white tint with a hairline border and a soft drop shadow, Frosted solid is nearly opaque white with dark text, Frosted dark is a smoked tint for bright areas, and the round Play button is a 52 pixel circle for media controls. Each one uses a translucent rgba fill, a translucent one pixel border and a 14 pixel backdrop-filter blur, so whatever sits behind the button is softened rather than hidden. Use them over hero photographs, video and gradient backgrounds, where a solid button would look pasted on. Pick Frosted solid or Frosted dark when the ground behind the button is busy or bright, because the white label of Frosted light needs a mid-to-dark ground to stay readable; over the demo ground its label measures at least 4.8:1. Every button lifts two pixels on hover. The Bootstrap version restyles .btn through the –bs-btn-* variables with .rounded-circle for the round button, and the Tailwind version uses white/opacity utilities and backdrop-blur.

What’s included

  • Light, solid and dark frosted fills plus a round icon button
  • Backdrop-filter blur with translucent borders
  • Labels measured at 4.8:1 or more over the demo ground
  • Play button named with aria-label
  • Hover lift and transitions off under reduced motion

Accessibility

All four are native buttons; the round one has aria-label="Play" and its SVG is hidden. Label contrast over the demo background was measured at 4.8:1 or higher at mobile and desktop sizes; on your own ground, check the white labels over the brightest area behind them. Keyboard focus draws a 2px white outline offset by 3px. Under prefers-reduced-motion the transitions and hover lift are removed.

Customise it

Change the rgba fill and border alpha on .gl-light, .gl-solid, .gl-dark and .gl-round, and the blur radius in backdrop-filter on .gl. In Bootstrap the same values are --bs-btn-bg and --bs-btn-border-color on each class; in Tailwind edit the bg-white/16, border-white/34 and backdrop-blur- utilities.