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. Born from Apple's design language and adopted by everyone building premium digital experiences.

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
§ 01 / 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.

Principle 01

The frosted glass effect

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

blur(20px)
Principle 02

Depth through layers

Multiple translucent panels at different opacities create a spatial hierarchy — some elements feel close, others feel deep in the background. This dimensionality is what separates glassmorphism from flat design.

Principle 03

Light-catching borders

A 1px semi-transparent white border simulates the way a real glass edge catches and refracts light. Without it, panels look like coloured fog. With it, they read as glass.

§ 02 / 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 — 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 — not flat Figma exports.

§ 03 / KNOW THE LIMITS

When to leave it
on the shelf.

Glassmorphism is powerful but not universal. It has a short list of conditions where it simply doesn't work — and knowing them saves hours of frustration.

  • 01 Glass needs a rich, colourful background to work. Over a grey, white, or neutral surface the effect produces "dirty" muted panels instead of frosted glass. If your background isn't vibrant, skip it.
  • 02 Don't stack more than three blurred layers on top of each other. Each layer reprocesses what's behind it — too many cause performance issues and the blur becomes visually muddy.
  • 03 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.
§ 04 / 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
§ 05 / COMPONENT ATOMS

Glass applied to
common UI patterns.

Buttons, inputs, toggles, badges — every primitive inherits the same physical-light treatment.

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