Skip to content
OddsockLocal
Local
Base color#427f9c
Opacity (%)20
Backdrop blur (px)12
Corner radius (px)8
Base color#427f9c
Opacity (%)20
Backdrop blur (px)12
Corner radius (px)8
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Pick the tint, the opacity, the blur, and the radius.
  2. Copy the rule onto an element that actually overlays other content.
  3. Set a text color yourself and check it against the background that shows through.
  4. Reduce the blur if a large panel feels sluggish.

What is Frosted glass CSS?

Frosted glass is a translucent fill plus a blur of whatever is behind the element. The page writes a .glass rule: the base color at the opacity you set, a 1px white border at 28% strength, and backdrop-filter with the matching WebKit prefix. The opening values are #427f9c at 20% opacity, a 12px blur, and an 8px radius, which comes out as background rgba(66, 127, 156, 0.2) and blur(12px).

Read more

If the element sits on a flat empty section, the blur has nothing to blur and the card looks like a pale tint. Put a photo, a gradient, or busy content behind it. Heavy blur is also expensive on large areas and on low-power screens. A 12px blur on a small card is the effect. A 80px blur on a full-viewport panel is a battery cost.

The fill is see-through, so text contrast depends on the page behind, not only on the base color. Check the contrast of the label against the worst background that can scroll under the card. The snippet does not set a text color.

Use cases

  • A card floats over a photograph and needs the photo to remain faintly visible.
  • A toolbar over a colorful page uses a short blur so icons stay crisp.
  • A designer compares 8px and 24px of blur on the same tint.
  • A prototype proves the card fails when the section behind it is a flat color.
  • A docs example shows both the standard property and the WebKit prefix together.

A teal card at 20% over a busy page

Base #427f9c, opacity 20%, blur 12px, radius 8px.

.glass { background: rgba(66, 127, 156, 0.2); border-radius: 8px; border: 1px solid rgb(255 255 255 / 28%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Backdrop blur only changes pixels behind the element. On a solid empty section there is nothing to frost. Move an image or a gradient underneath.