Surface:
Glass surface
Tune blur, saturate, brightness, and tint — the four knobs that turn flat plastic into refractive glass.
Advertisement
Blur20px
Sat160%
Bright100%
TintNone
⚠ 2.3:1

About this generator

Most CSS glassmorphism generators give you a blur slider, a transparency slider, and a copy button. The output looks like flat plastic, not glass — and on a busy background, your text becomes unreadable. This generator was rebuilt to ship the full vibrancy formula Apple uses: blur, saturation, brightness, and tint, all tunable in real time on nine different surface presets.

Four things make this different from every other free glass generator. Saturation + brightness controls — the missing knobs that turn flat glass into refractive glass. Background-aware WCAG contrast scoring — every background sample is alpha-blended through your glass and the resulting effective surface is checked against your text color, so contrast failures get flagged before you ship. Reduced-transparency fallback — the export includes a @media (prefers-reduced-transparency: reduce) block that swaps the glass for a solid surface when the user has accessibility transparency reduction enabled. Seven framework exports — CSS, SCSS @mixin, Tailwind arbitrary classes, CSS Modules, styled-components, React inline-style, and Vue scoped CSS.

Curated preset library covers the full glassmorphism timeline: Frosted Card and Subtle Pane for the 2020-era flat aesthetic; Crystal Modal and Heavy Frost for stronger blur applications; Tinted Violet and Tinted Rose for brand-color glass; Liquid Glass for the iOS 26 / macOS Tahoe Apple style; Vibrancy Pane for the macOS app-window classic.

Permalink: every adjustment encodes into the URL hash, so you can bookmark a tuned glass or send it to a teammate. No login, no watermark, no paywall. Free and MIT-licensed.

Why use this Glassmorphism Generator?

Nine live backgrounds
Glass needs vivid backdrop to read as glass. Switch between aurora, sunset, mesh, tide, editor, photo still, plain, white, and pastel to verify your design holds up everywhere — including light backgrounds where most glassmorphism tools fall apart.
Full vibrancy formula
Blur + saturate + brightness + tint — the four knobs Apple uses for iOS / macOS vibrancy. Saturate > 100% bleeds the color underneath through brighter; brightness adds the highlight that mimics real refraction. Most generators ship blur-only and produce flat plastic.
Seven export formats
CSS, SCSS @mixin, Tailwind arbitrary classes (v3.3+), CSS Modules, styled-components, React inline-style, Vue scoped CSS. Skip the manual conversion; copy what your stack uses.
Reduced-transparency fallback
Toggle the accessibility option and the export includes a @media (prefers-reduced-transparency: reduce) block that swaps glass for a solid surface when the user has the OS accessibility setting on. Roughly 4-8% of users need it.
A
WCAG contrast scoring
Every background sample is alpha-blended through your glass and contrast-checked against your text color. Worst-case ratio surfaced live; AA / AAA badges flip green or red as you tune.
Share via URL
Every recipe encodes into the URL hash. Copy the link to send a tuned glass to a teammate — they open it and see the exact same surface, no account needed.

How to use this generator

01
Pick a preset to start
Eight curated recipes covering the full glassmorphism timeline — Frosted Card (2020 flat), Crystal Modal, Subtle Pane, Heavy Frost, Tinted Violet / Rose, Liquid Glass (iOS 26 / Tahoe), macOS Vibrancy. Pick one as a starting point and tune from there.
02
Choose a surface
Click a Surface pill above the preview — nine backdrops including light, dark, vivid mesh, code editor, and pastel. Glass without color behind it looks like a faint outline; verify your design against the worst-case background you expect.
03
Tune the vibrancy
Blur is the depth of the frost. Saturate (100-250%) is what turns flat plastic into refractive glass — the higher, the more the colors underneath bleed through brighter. Brightness (80-130%) adds a subtle highlight that mimics real light catching the surface.
04
Add a tint
Optionally tint the glass with violet, rose, cyan, teal, or amber. Tinted glass works well for color-coded categories or brand-aligned chrome.
05
Verify contrast
Watch the AA / AAA score in the right rail as you adjust. Failing samples turn red — raise bg alpha, change tint, or switch text color until every sample passes 4.5:1. The worst sample is what determines accessibility, not the average.
06
Enable reduced-transparency
Toggle the Accessibility option. The export then ships a @media (prefers-reduced-transparency: reduce) block that swaps glass for a solid surface for users with the OS accessibility setting on. This satisfies WCAG 2.2 1.4.3 and 1.4.11 trivially.
07
Export and ship
Switch the export tab to your stack (CSS, SCSS, Tailwind, Modules, styled, React, Vue) and copy. Or use the Share button in the topbar to send the URL.

Glass property reference

PropertyTypical valueWhat it does
backgroundrgba(TINT, ALPHA)Translucent tint sits on top of the page background — alpha 0.05–0.18 is the sweet spot for "frosted" rather than "ghost" or "milk". Tint defaults to white (255,255,255) but accepts any brand color.
backdrop-filterblur(N) saturate(N%) brightness(N%)Blurs the pixels behind, then re-saturates and re-brightens them. Saturate > 100% is the secret ingredient that turns flat glass into refractive Apple-style glass; brightness adds the subtle highlight.
-webkit-backdrop-filtersame as backdrop-filterSafari required the prefix until ~Safari 17. Always include both for cross-browser support.
border1px solid rgba(255,255,255,ALPHA)A hairline rim catches light at the glass edge. 0.18–0.32 alpha; thicker for "premium" weight, thinner for subtle.
border-radius10–22pxSoft corners read as polished glass. Sharp corners (0–4px) read as architectural panels. iOS Liquid Glass uses 22px+ for prominent pills.
box-shadow0 8px 32px rgba(0,0,0,0.18)Floats the glass off its background. Keep it soft and dark — competing color shadows fight the glass effect.
@media (prefers-reduced-transparency: reduce)fallback solid colorDetects when a user has the OS accessibility transparency-reduction setting on. The generator emits a fallback block that swaps glass for a solid tinted surface — ~4-8% of users need this for readability.

Common glass patterns

Frosted card
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
Tinted violet glass
.glass-violet {
  background: rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 22px;
}
Heavy frost (modal)
.glass-modal {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  padding: 26px;
}
Liquid Glass (iOS 26 / macOS Tahoe)
.glass-liquid {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(220%) brightness(110%);
  -webkit-backdrop-filter: blur(30px) saturate(220%) brightness(110%);
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-transparency: reduce) {
  .glass-liquid {
    background: #2a2238;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

Pro tips

01
Glass needs vivid backdrop
On a flat grey or white background, glass is invisible. Place glass over photos, gradients, or busy mesh — the more color behind, the more "glass" reads as glass.
02
Blur is GPU-accelerated, but layered
backdrop-filter is GPU-friendly, but stacking 4+ blurred surfaces compounds cost. On large surfaces (full-screen overlays) consider reducing blur to 12–16px.
03
Always set saturate too
Pure blur drains color from the underlying pixels. Adding saturate(160–180%) pumps the chroma back up — the difference between "drab fog" and "premium frost".
04
Test on real content
Glass on a static gradient looks fine. Glass over scrolling video, dark code, or a UI screenshot reveals contrast issues. Use the contrast checker against your worst-case background.

Search CodeFronts

Loading…