Glassmorphism

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

  1. Set the background blur — Adjust the backdrop-filter: blur() value — 10–20px creates the classic frosted glass effect.
  2. Control the transparency — Set the background color's alpha channel. Lower opacity (0.1–0.3) shows more background through the glass.
  3. Add the subtle border — A semi-transparent white or light border (1px solid rgba(255,255,255,0.2)) creates the glassy edge highlight.
  4. Set border-radius — Round the corners — glassmorphism panels typically use 12–20px border-radius for a soft, modern feel.
  5. 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.

PresetWhite text#111 text
Gradient2.88–4.514.18–6.55
Sunset1.83–2.766.85–10.32
Ocean1.29–2.109.01–14.68
Forest1.27–1.4513.01–14.90
Fire1.26–2.368.01–14.97
Dark10.48–12.921.46–1.80
Mesh 11.81–3.365.62–10.43
Mesh 21.37–2.447.75–13.77

Frequently Asked Questions

What is glassmorphism?
Glassmorphism is a UI design trend creating frosted glass effects using CSS backdrop-filter, transparency, and subtle borders. Elements appear to float above the background with a translucent, blurred look — popularized by Apple's macOS and iOS interfaces.
How do I create a glass effect in CSS?
Combine a semi-transparent background (rgba), backdrop-filter: blur() for the frosted effect, and a subtle semi-transparent border. The backdrop-filter property blurs content behind the element.
Is backdrop-filter supported in all browsers?
In all current major browsers: unprefixed since Chrome 76, Edge 79, Firefox 103 and Safari 18 (MDN compatibility data). Safari 9 to 17 needs -webkit-backdrop-filter, which the generated CSS includes. Firefox before version 123 skipped the effect on systems with an unknown GPU vendor, so make sure the semi-transparent background stays readable without the blur.
What is the difference between glassmorphism and neumorphism?+
Glassmorphism creates frosted glass panels using blur and transparency, so elements float above content. Neumorphism creates elements that appear to extrude from or press into the surface using light and dark shadows. Both need a contrast check: neumorphism often has low-contrast edges, and glassmorphism text depends on whatever sits behind the glass (white text on the default white glass fails 4.5:1 on six of this tool's eight backgrounds).
What CSS properties create the glass effect?+
The core properties are backdrop-filter: blur(10px) for the frosted effect, background: rgba(255, 255, 255, 0.1) for transparency, border: 1px solid rgba(255, 255, 255, 0.2) for the glass edge, and border-radius for rounded corners. Optional: box-shadow for elevation and a slight gradient for the glass highlight.

📖 Learn More

Related Article Glassmorphism and Neumorphism Design Guide →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service