elefcode

Glassmorphism Generator

Build frosted-glass cards with backdrop-filter and copy the CSS.

Glass card

Frosted panel over a colorful backdrop.

CSS
background: rgba(255, 255, 255, 0.20);
backdrop-filter: blur(12px) saturate(140%);
-webkit-backdrop-filter: blur(12px) saturate(140%);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.30);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
Glass tint

Advertisement

Guide

About the Glassmorphism Generator

Glassmorphism is the frosted-glass look — a translucent panel that blurs whatever sits behind it, with a subtle light border and soft shadow. It's used across modern OS interfaces and landing pages to float cards and navigation bars above colorful backgrounds.

The effect comes from CSS backdrop-filter combined with a semi-transparent background. This generator lets you tune every part of it and copy production-ready CSS.

The four ingredients

  • Semi-transparent background — usually white at 10–25% opacity.
  • backdrop-filter: blur() — blurs what's behind; this is what makes it glass.
  • A light border — a 1px translucent edge catches the light and defines the panel.
  • A soft shadow — lifts the card off the background.

It needs a busy background

Glassmorphism only reads as glass when there's something interesting behind it to blur. Over a flat, solid color the effect is invisible. Use it over gradients, photos, or shapes — which is why the preview here includes colorful blobs behind the card.

Accessibility and support

Translucent panels can hurt text contrast, so check that your text still passes WCAG against the blurred background — a slightly more opaque panel usually fixes it. Also include the -webkit-backdrop-filter prefix (this tool does) for Safari, and remember the effect is GPU-intensive, so use it sparingly rather than on dozens of elements.

How to use it

  1. 1Pick a backdrop so you can judge the effect over real color.
  2. 2Set the blur and transparency — this is the core of the look.
  3. 3Adjust the tint, border opacity, and corner radius.
  4. 4Copy the CSS and apply it to your card or navbar.

Frequently asked questions

What is glassmorphism?

A design style where panels look like frosted glass: semi-transparent, blurring the content behind them, with a light border and soft shadow.

Why does my glass effect look invisible?

There is probably nothing interesting behind it. backdrop-filter blurs the backdrop, so over a flat solid color there is nothing to blur. Place it over a gradient or image.

Does backdrop-filter work in all browsers?

It is widely supported in modern browsers, but Safari needs the -webkit-backdrop-filter prefix, which this tool includes in the output.

Is glassmorphism bad for accessibility?

It can be, because translucency reduces text contrast. Increase the panel opacity until your text comfortably passes WCAG contrast requirements.

Is anything uploaded?

No. The preview and CSS are generated entirely in your browser.

Related tools