Skip to content

Glassmorphism Generator

Build a frosted-glass card with sliders for blur, opacity, saturation, border and radius. Preview it over five backdrops and copy the CSS or Tailwind.

Frosted

The glass effect previews live.

Tune blur, opacity and saturation below.

Backdrop
CSS
background: rgba(255, 255, 255, 0.60);
backdrop-filter: blur(14px) saturate(1.40);
-webkit-backdrop-filter: blur(14px) saturate(1.40);
border: 1px solid rgba(255, 255, 255, 0.20);
border-radius: 20px;
Tailwind
bg-[rgba(255,255,255,0.60)] backdrop-blur-[14px] backdrop-saturate-[1.40] border border-white/[0.20] rounded-[20px]

01 · Definition

What is glassmorphism?

Glassmorphism is a UI style that makes a panel look like frosted glass. In CSS it is a semi-transparent background plus backdrop-filter: blur(), which blurs whatever is painted behind the element, usually finished with a thin light border and rounded corners.

02 · Overview

How the Glassmorphism Generator works

A live workbench for the glassmorphism effect. Adjust backdrop blur, background opacity, saturation, border opacity, corner radius and tint, and see the result on a sample card over five backdrops: three gradients, a pattern of shapes, and a dark one. Copy the result as CSS, with the -webkit- prefix included, or as Tailwind classes. The backdrops are drawn with CSS and everything runs in your browser.

03 · Guide

The CSS behind a glass card

The effect is five declarations. The table lists each one as the tool writes it for the default card, with the control that sets it and the range of that control. The border is always white at the opacity you choose.

backdrop-filter is written twice. According to caniuse, Chrome has supported the unprefixed property since version 76, Firefox since 103 and Safari since 18; Safari 9 to 17 need -webkit-backdrop-filter, which is why the prefixed line is included.

DeclarationDefaultControl and range
backgroundrgba(255, 255, 255, 0.60)Tint color; opacity 0 to 100%
backdrop-filterblur(14px) saturate(1.40)Blur 0 to 40px; saturation 50 to 250%
-webkit-backdrop-filterblur(14px) saturate(1.40)Same values, for Safari before 18
border1px solid rgba(255, 255, 255, 0.20)Border opacity 0 to 100%
border-radius20pxRadius 0 to 48px
Declarations in the generated CSS

04 · Use cases

When to use the Glassmorphism Generator

  1. 01

    Build a glass nav bar that floats over a hero image

  2. 02

    Find the blur amount for a frosted modal backdrop

  3. 03

    Rebuild a glass card from a design file as CSS or Tailwind classes

  4. 04

    See how one glass treatment reads over light, dark and busy backdrops

05 · Examples

Glassmorphism Generator examples

Default: white tint, blur 14px, opacity 60%, saturation 140%

ex 01

background: rgba(255, 255, 255, 0.60); backdrop-filter: blur(14px) saturate(1.40); -webkit-backdrop-filter: blur(14px) saturate(1.40); border: 1px solid rgba(255, 255, 255, 0.20); border-radius: 20px;

A typical light glass card surface.

Tint #14141e, opacity 50%, blur 20px, saturation 120%, border 8%

ex 02

background: rgba(20, 20, 30, 0.50); backdrop-filter: blur(20px) saturate(1.20); -webkit-backdrop-filter: blur(20px) saturate(1.20); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;

Darker glass with a hairline highlight border for a clear edge.

Tailwind output for the default card

ex 03

bg-[rgba(255,255,255,0.60)] backdrop-blur-[14px] backdrop-saturate-[1.40] border border-white/[0.20] rounded-[20px]

The same treatment as utility classes, using arbitrary values so the numbers match the CSS.

Tint #0a0a0c, opacity 40%, blur 24px, saturation 100%, border 0%, radius 0

ex 04

background: rgba(10, 10, 12, 0.40); backdrop-filter: blur(24px) saturate(1.00); -webkit-backdrop-filter: blur(24px) saturate(1.00); border: 1px solid rgba(255, 255, 255, 0.00); border-radius: 0px;

A full-screen modal scrim: heavier blur and a dark tint, so the dialog stays the focal point.

06 · FAQ

Glass: frequently asked questions

Why doesn't backdrop-filter work in my browser?

Current versions of Chrome, Edge, Firefox and Safari all support backdrop-filter. Older Safari versions need the -webkit-backdrop-filter prefix, so the generated CSS includes both lines.

Does glassmorphism work over solid backgrounds?

The blur only does visible work when there's something behind it to blur. Over a flat solid color you'll just see the background tint, so pair it with imagery, gradients, or a busy backdrop. The Shapes backdrop in the preview is there to show the blur clearly.

What's a good starting point for blur and opacity?

Try 10 to 16px blur with 50 to 70% background opacity. Boosting saturation by 20 to 40%, saturate(1.2) to saturate(1.4), keeps colors from going grey. The sliders cover blur 0 to 40px, opacity 0 to 100%, saturation 50 to 250%, border opacity 0 to 100% and radius 0 to 48px.

Why is nothing blurring behind my element?

backdrop-filter blurs whatever is painted behind the element, so the element's own background has to be partially transparent for any of it to show. A solid background: #fff cancels the effect entirely. Start around rgba(255, 255, 255, 0.6) and adjust from there.

Is glassmorphism accessible?

It can be, but contrast becomes a moving target because the text sits over whatever happens to be scrolling underneath. Test against the worst-case backdrop rather than the demo image, and if you can't hold 4.5:1 for body text, put the text on a more opaque inner layer and keep the glass purely decorative.

07 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

08 · More

Tools that pair with Glass

Last updated .