GamutDesk Logo
GamutDesk

CSS Glassmorphism (Frosted Glass) Generator

Create CSS frosted glass with backdrop-filter blur, saturation, tint opacity and border opacity controls. Live preview and copy-ready CSS in your browser.

Client-Side ArchitecturePrivate Client-Side Processing

Glass card

Frosted glass with backdrop blur

Text contrast depends on what is behind the panel.

Preview background

Glass settings

15%
14px
160%
30%
20px
CSS
background: rgba(255, 255, 255, 0.15);
-webkit-backdrop-filter: blur(14px) saturate(160%);
backdrop-filter: blur(14px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);

Technical Specification & Mathematical Principles

How the Glassmorphism Generator Works

Glassmorphism combines a translucent background, a blur of whatever sits behind the element and a thin light border. The core is backdrop-filter: blur(Npx) saturate(S%), which filters the pixels behind the element rather than its own content. Saturation boosts the muted colors that blur produces.

The background must be semi-transparent (for example rgba(255, 255, 255, 0.15)) or the blur is invisible. A 1px border with 20 to 40% white opacity simulates a glass edge. Add the -webkit-backdrop-filter prefix for Safari. Keep contrast in mind: text on glass over busy images can fail WCAG, so test it.

Frequently Asked Questions

Why is my backdrop-filter not working?
The element needs a semi-transparent background, and something visible must sit behind it. Also check that no ancestor has overflow rules or opacity that creates a different stacking context blocking the filter.
Does backdrop-filter hurt performance?
Blur is GPU-heavy, especially at large radii and on large areas. Use it on small panels, keep radii at or below 20px and avoid stacking many glass layers on mobile.
Is text on glass accessible?
Only if contrast holds over every possible background. Use a stronger tint, darker text or the contrast checker on this site to verify at the worst-case background.

Related Design & Color Instruments