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.
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;
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.
| Declaration | Default | Control and range |
|---|---|---|
| background | rgba(255, 255, 255, 0.60) | Tint color; opacity 0 to 100% |
| backdrop-filter | blur(14px) saturate(1.40) | Blur 0 to 40px; saturation 50 to 250% |
| -webkit-backdrop-filter | blur(14px) saturate(1.40) | Same values, for Safari before 18 |
| border | 1px solid rgba(255, 255, 255, 0.20) | Border opacity 0 to 100% |
| border-radius | 20px | Radius 0 to 48px |
04 · Use cases
When to use the Glassmorphism Generator
- 01
Build a glass nav bar that floats over a hero image
- 02
Find the blur amount for a frosted modal backdrop
- 03
Rebuild a glass card from a design file as CSS or Tailwind classes
- 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 01background: 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 02background: 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 03bg-[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 04background: 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?
Does glassmorphism work over solid backgrounds?
What's a good starting point for blur and opacity?
Why is nothing blurring behind my element?
Is glassmorphism accessible?
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.
- backdrop-filter
MDN Web Docs. The property that produces the frosted-glass blur, plus its browser support notes.
- Filter Effects Module Level 2 (Editor's Draft)
W3C. The draft that defines backdrop-filter; the blur() and saturate() functions it accepts come from Level 1.
- Understanding SC 1.4.3: Contrast (Minimum)
W3C WAI. Why translucent surfaces need contrast checking against the worst-case backdrop.
- CSS Backdrop Filter
Can I use. Browser support data: unprefixed in Chrome 76, Firefox 103 and Safari 18, with the -webkit- prefix in Safari 9 to 17.
08 · More
Tools that pair with Glass
CSS Box Shadow Generator
Build CSS box shadows with sliders for offset, blur, spread, color and opacity. Stack up to 6 layers, preview live, copy as CSS or Tailwind.
CSS Gradient Generator
Build linear, radial and conic CSS gradients with 2 to 8 color stops. Drag the stops or type exact values, then copy the CSS or a Tailwind class.
Color Palette GeneratorAI-powered
Type a vibe such as 'desert at dusk' or 'cyberpunk lab' and get a 5-color palette with hex, RGB, HSL and OKLCH for every swatch.
CSS Animation Generator
Pick one of 12 CSS keyframe animations, set duration, delay, easing, iterations and direction, preview it, and copy the @keyframes CSS or a Tailwind class.