Glassmorphism CSS Generator (backdrop-filter, Tailwind)

Create a frosted glass effect: blur, transparency, saturation, border and shadow, with live gradient preview and copy-ready CSS or Tailwind code.

The glassmorphism effect in CSS

Glassmorphism combines a semi-transparent background, a blur of what lies behind with backdrop-filter: blur(), and a thin light border. A common setup: 10 to 20 px blur, white background at 15-30% opacity, 120 to 180% saturation. Add -webkit-backdrop-filter for Safari.

The properties

  • background: rgba(255, 255, 255, 0.25): the glass tint.
  • backdrop-filter: blur(16px) saturate(140%): blurs and intensifies what lies behind.
  • border: 1px solid rgba(255, 255, 255, 0.3): the thin edge that outlines the card.
  • box-shadow: lifts the card off the background.

Example

A card with 25% white opacity and a 16 px blur over a purple-pink gradient keeps white text legible if the background is dark enough; on a light background, switch to dark text or raise the opacity.

Accessibility and limits

Contrast depends on what passes behind the glass: aim for 4.5:1 for body text and 3:1 for large text and interface components. The tool estimates this contrast from an average background colour, not pixel by pixel. backdrop-filter is costly on modest devices: avoid applying it to large areas and provide an opaque fallback background.

Sources and dates: WCAG 2.2, W3C Recommendation published on 5 October 2023 (consolidated version of 12 December 2024 checked): success criterion 1.4.3 (level AA), contrast of at least 4.5:1 for text, 3:1 for large text (18 point, or 14 point bold); criterion 1.4.11, 3:1 for interface components. backdrop-filter support: Chrome 76, Edge 79, Firefox 103, Safari 9 with the -webkit- prefix and unprefixed since Safari 18; MDN rates it "Baseline 2024, newly available" since September 2024. Version numbers come from web.dev and should be cross-checked with MDN and caniuse (checked on 14/10/2026)

Frequently Asked Questions

How do I create a glassmorphism effect in CSS?

Combine a semi-transparent background (rgba(255,255,255,0.25)), backdrop-filter: blur(16px) and a 1 px border at 30% opacity. Without a coloured background or image behind the element, the effect stays invisible.

Why does backdrop-filter not work on Safari?

Older Safari versions require the -webkit-backdrop-filter prefix. The generator outputs both declarations; the element also needs a partly transparent background for the blur to show.

Is glassmorphism accessible?

Only if text contrast reaches 4.5:1 (WCAG) whatever the backdrop. Raise the background opacity or blur, and test with the real backdrop.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.