What Is Glassmorphism?
Glassmorphism is a design trend that creates frosted glass UI elements using CSS backdrop-filter, transparency, and subtle borders. The effect makes components appear to float above the content behind them with a soft, blurred translucency — popularized by Apple's macOS Big Sur, iOS, and Windows 11 Acrylic design.
This generator lets you fine-tune every parameter — blur intensity, background opacity, border opacity, and border radius — while previewing the result against a colorful background. Copy the production-ready CSS with one click.
The CSS Behind the Glass
Three properties create the effect: background: rgba(255,255,255,0.1) for transparency, backdrop-filter: blur(10px) for the frosted blur, and border: 1px solid rgba(255,255,255,0.2) for the subtle edge. Layer these on an element positioned over a colorful or image-based background for the full effect.
How to Use This Glassmorphism
- Set the background blur — Adjust the
backdrop-filter: blur()value — 10–20px creates the classic frosted glass effect. - Control the transparency — Set the background color's alpha channel. Lower opacity (0.1–0.3) shows more background through the glass.
- Add the subtle border — A semi-transparent white or light border (1px solid rgba(255,255,255,0.2)) creates the glassy edge highlight.
- Set border-radius — Round the corners — glassmorphism panels typically use 12–20px border-radius for a soft, modern feel.
- Copy the CSS — Grab the complete glassmorphism CSS including the backdrop-filter, background, border, and border-radius.
Worked example: is text readable on the default glass?
The tool starts with white glass at 15% opacity, blur(16px) saturate(120%). On October 12, 2026 we rendered that exact glass in Chromium over every colour stop of the eight background presets, read the resulting pixel and computed the WCAG contrast ratio for white text (as in the preview) and for near-black #111 text. Ranges run from the lightest to the darkest stop of each preset.
| Preset | White text | #111 text |
|---|---|---|
| Gradient | 2.88–4.51 | 4.18–6.55 |
| Sunset | 1.83–2.76 | 6.85–10.32 |
| Ocean | 1.29–2.10 | 9.01–14.68 |
| Forest | 1.27–1.45 | 13.01–14.90 |
| Fire | 1.26–2.36 | 8.01–14.97 |
| Dark | 10.48–12.92 | 1.46–1.80 |
| Mesh 1 | 1.81–3.36 | 5.62–10.43 |
| Mesh 2 | 1.37–2.44 | 7.75–13.77 |
- White text passes 4.5:1 only on Dark. It stays under 4.5:1 across all of six presets, and under 3:1 (the large-text minimum) across all of five. Blur does not change this: it averages the colours behind the glass, so the result stays between the lightest and darkest stops.
- White glass makes the backdrop lighter. A 15% white layer raises the lightness of everything behind it, which helps dark text and hurts light text. For white text on a bright background, tint the glass dark instead (pick a dark glass colour) or raise its opacity until the measured ratio passes.
- Check the darkest and the lightest point behind the text. A gradient can pass at one end and fail at the other (Gradient preset: 4.51 at the purple end, 2.88 at the blue end).
- Browser support. Per MDN's compatibility data, unprefixed
backdrop-filtershipped in Chrome 76, Edge 79, Firefox 103 and Safari 18; Safari 9–17 needs-webkit-backdrop-filter, which the copied CSS includes. Firefox before 123 skipped the effect on systems with an unknown GPU vendor, so keep the semi-transparent background readable on its own.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools