Skip to content
All designer tools

Glassmorphism Generator

Frosted-glass cards with backdrop-blur

Glass card
backdrop-filter: blur(16px)
#f43f5e
#8b5cf6
#06b6d4
cssCSS
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%) brightness(100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(100%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: #ffffff;
  }
}
htmlTailwind classes
bg-[rgb(255_255_255_/_0.65)] backdrop-blur-[16px] backdrop-saturate-[180%] backdrop-brightness-[100%] border-[1px] border-[rgb(255_255_255_/_0.3)] rounded-[16px] shadow-[0_8px_24px_rgb(0_0_0_/_0.15),_inset_0_1px_0_0_rgb(255_255_255_/_0.4)]

The Tailwind form has no equivalent of the @supports fallback above — add an opaque background for browsers without backdrop-filter if you need one.

Now use it on something

Every effect, block, page and template in the catalog is styled against tokens shaped exactly like these — so they take your values rather than fighting them.

npx shadcn@latest add https://hoverlab.dev/r/hoverlab.json

Blur16px

How far the backdrop is smeared behind the card. This is the whole effect — at 0 the glass is only a tinted rectangle.

Saturation180%

Pushes colour back into the blurred backdrop. Blurring averages colours toward grey, so convincing frosted glass usually sits above 100%.

Brightness100%

Lightens or darkens whatever shows through. Drop it when the glass sits on a pale background and the text on top starts losing contrast.

Tint opacity0.65

How much of the glass colour sits over the blur. Past about 0.3 it stops reading as glass and starts reading as a solid panel.

Border width1px

A hairline edge is what separates the panel from the page. 1px is usually enough; thicker starts to look like a frame rather than an edge.

Border opacity0.30

How visible that edge is. Real glass catches light unevenly, so a semi-transparent white border reads better than a solid one.

Y offset8px

How far the shadow drops below the card. This is what sets the apparent height of the panel above the page.

Shadow blur24px

Softness of the shadow edge. Keep it larger than the Y offset — a shadow tighter than its drop reads as a hard outline.

Shadow opacity0.15

Strength of the shadow. Glass sits close to the surface, so this wants to stay low — heavy shadows make it look like plastic.

Adds a bright inset line along the top edge, the way light catches the lip of a real pane. It is the cheapest thing here and does the most.

Corner radius16px

Rounding on the panel itself. Larger radii read as softer and more physical; 0 gives you a sheet of glass cut square.

Keep this glass style. This browser remembers what you last had open. A free account remembers the ones you name, on every machine you use.

More designer tools

All 36 run in the tab — no account, no upload.See all