Design with depth & light

Frosted glass,
done right.

Glassmorphism is the UI design style that makes interface elements look like sheets of frosted glass: translucent, layered, and alive under light. It started with Apple's design language, and now it's everywhere in premium digital products.

One skill file. Every component. Works with Claude, Cursor, or any AI coding tool.

The Glass Formula · v1.0
/* white-neutral fill, blobs provide color */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px)
    saturate(180%);
  border: 1px solid
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 12px 40px rgba(0,0,0,0.35);
}
backdrop-filter rgba layers specular highlight
WHAT IS IT

Three principles,
one effect.

Glassmorphism is built on a small set of CSS properties working together. Each one plays a specific role in creating the illusion of depth and light.

The frosted glass effect

CSS backdrop-filter: blur() blurs everything behind a panel before it reaches your eyes, exactly how frosted glass works in real life. The result is a soft, diffused view of the content beneath.

blur(20px)

Depth through layers

Multiple translucent panels at different opacities create a spatial hierarchy. Some elements feel close, and others sit deep in the background. That sense of depth is what gives glassmorphism its character.

Light-catching borders

A 1px semi-transparent white border copies the way a real glass edge catches and bends light. That thin, bright edge is what makes a panel read as glass.

USE CASES

What it's
perfect for.

Glassmorphism shines in contexts where premium feel, visual hierarchy, and a sense of "living interface" matter most.

A · FEATURED

Dashboards & analytics

Data-heavy UIs where glass panels float above charts create clear visual separation without heavy borders or shadows.

B

Mobile app interfaces

iOS and Android apps that want that native-feeling translucency in modals, sheets, toolbars, and control centres.

C

Portfolio & creative sites

Design portfolios and creative agencies where aesthetic richness and visual differentiation matter as much as content.

D

SaaS marketing pages

Product landing pages where UI screenshots should look premium and alive.

KNOW THE LIMITS

When to leave it
on the shelf.

Glassmorphism has a short list of conditions where it simply doesn't work. Knowing them up front saves hours of frustration.

  • Glass needs a rich, colourful background to work. Over a grey, white, or neutral surface, the panels just come out looking dirty and muted. If your background isn't vibrant, skip it.
  • Don't stack more than three blurred layers on top of each other. Each layer reprocesses what's behind it, so too many slow things down and turn the blur muddy.
  • Dense data tables, code editors, and text-heavy document UIs are the wrong home for glassmorphism. The translucency competes with readability and accessibility contrast requirements become hard to meet.
HOW IT WORKS

The four properties
that do it all.

Every glassmorphism panel is built from the same four ingredients. Adjust the values and you control how subtle or dramatic the effect is.

A · Translucency rgba(…, 0.08)
B · Frost depth blur(20px)
C · Specular edge rgba(…, 0.20)
D · Lift shadow 0 12px 40px
/* intensity: sheer → frosted → heavy */
 
.glass {
  background:  rgba(255, 255, 255, 0.08);  /* 0.04–0.28 */
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}
A · Translucency
rgba(…, 0.08)
B · Frost depth
blur(20px)
C · Specular edge
rgba(…, 0.20)
D · Lift shadow
0 12px 40px
COMPONENT ATOMS

Glass applied to
common UI patterns.

Buttons, inputs, toggles, and badges all get the same physical-light treatment.

Button · Primary
Input · Search
Day
Night
Toggle · Active
Free tier
Badge · Status
Palette