SuperDevTools

Glassmorphism Generator: Frosted Glass CSS Effect

Frosted glass card

The background shows through the card, blurred. Use this text to judge readability.

Presets:

Card

Background

Drop an image on the preview or pick a file: it stays on your device and is not part of the code.

CSS code

The @supports fallback makes the card background more opaque (at least 85%) where blur is not supported, so the text stays readable.

Everything is calculated in your browser: nothing is sent. Your last settings stay on this device.

A frosted glass effect you tune by eye

This glassmorphism generator shows a translucent card on a colorful background: the shapes behind it look blurred, as if seen through frosted glass. You adjust blur, transparency, border and shadow; the tool writes the shortest CSS that matches the preview and estimates the text contrast, which is where most glass designs fail.

How to use it

  1. Pick a background: “Aurora”, “Ocean”, “Sunset”, “Mint”, a “Solid color”, or drop an image on the preview.
  2. Choose “Light glass” (text #111111) or “Dark glass” (white text, navy card #0f172a).
  3. Tune the card: “Blur”, “Saturation”, “Card background opacity”, “Border width”, “Border opacity”, “Corner radius”, “Shadow” and “Card color”.
  4. Keep or untick the “-webkit- prefixed line” and the “@supports fallback”, then click “Copy code”. “Copy link” reopens the tool with the same settings, handy for a design review.

To start fast, use a preset: “Subtle”, “Strong”, “Dark” or “Colorful”.

What each property does

The “Subtle” preset gives this code:

DeclarationPurpose
background: rgba(255, 255, 255, 0.2);white at 20%: without transparency, no visible blur
backdrop-filter: blur(10px);blurs what is behind the card, not its content
-webkit-backdrop-filter: blur(10px);for browsers that only read the prefixed version
border: 1px solid rgba(255, 255, 255, 0.3);the edge of the glass
border-radius: 16px;rounded corners
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);lifts the card off the background

Set saturation above 100% and the filter becomes, for example, blur(10px) saturate(160%), which makes the colors behind the card pop. A value of zero removes the matching line, so a card with no shadow gets no box-shadow at all.

The @supports fallback

Where blur is not supported, a card at 20% opacity leaves the background sharp under the text, and the text becomes hard to read. The tool therefore adds an @supports not (...) rule that raises the card background to at least 85% opacity: rgba(255, 255, 255, 0.85) in the example above.

Contrast and accessibility

The tool takes the average color of the background under the card, applies the saturation and the card color on top, then measures the WCAG ratio against the text. An exact example: solid black background, “Light glass”, white card at 20%. The effective background is #333333 and the dark text only reaches 1.49:1, rated too low. Switch to “Dark glass”, still at 20%, and the white text reaches 20.40:1. WCAG AA asks for 4.5:1 for body text and 3:1 for large headings. On a busy photo, a bright patch can still sit right under the text, so check the preview.

Blur has a cost

The browser recomputes the blur on every frame, across the whole area of the element. Keep it for a few cards, a navigation bar or a modal, and avoid animating it: on a budget phone, scrolling can stutter. A blur of 8 to 16px is usually enough.

FAQ

Why can't I see any blur?

On a solid color there is nothing to blur. Pick a background with colored shapes or an image.

Do I still need the -webkit- line?

It helps slightly older devices and does no harm elsewhere. Untick it for shorter code.

Is the contrast value exact?

It is exact on a solid color and estimated on a gradient or an image.

Are my settings saved?

Your last settings stay on this device. The image is never saved, uploaded or put in the link.