Glassmorphism Generator

Glassmorphism makes a card look like frosted glass: whatever sits behind it is blurred and lightly tinted, with a thin bright edge. Set the tint, blur, colour boost, border and corners, and watch the card over a colourful background. Copy the CSS (with the -webkit- prefix Safari needs) or the Tailwind classes.

Preview background
Monthly planUnlimited projects, priority support and a custom domain.
Presets
Code
.glass {
  background: rgb(255 255 255 / 0.2);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 0.35);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.12);
}

Glass only shows over something colourful: put the card on a photo or gradient.

Generating runs in your browser. What you type never leaves this device.

Features

  • Tint colour and opacity, blur and saturation boost

  • Optional light border and soft shadow

  • Presets: light frost, dark glass, clear and tinted

  • Preview over a colourful scene, a dark or a light background

  • CSS includes -webkit-backdrop-filter for Safari; Tailwind classes too

Where glass works

Cards over photos or gradients

Pricing cards, login boxes and feature tiles over a vivid hero background.

Navigation bars

A frosted sticky header keeps content visible as it scrolls underneath.

Overlays and modals

A blurred panel keeps the page behind it in view without distracting from the content.

Getting glass right

Glass needs something behind it

backdrop-filter only blurs what is behind the element. On a plain white page, a glass card just looks pale grey. Use it over photos, gradients, blobs or busy content.

Keep text readable

  • Raise the fill opacity or the blur if the background shows through too strongly behind text.
  • Use dark text on light glass and white text on dark glass.
  • Check the text against the darkest and lightest parts of the background with the colour contrast checker.

Browser support and speed

backdrop-filter works in all current browsers; Safari still wants the -webkit- prefixed line, which the CSS includes. Large blurred areas cost more to draw on low-end phones, so keep glass to cards and bars rather than whole pages.

Related tools

Glassmorphism Generator - FAQ