Original illustrative specimen, generated from this entry’s specification. Not a photograph and not a third-party asset.
Definition
Builds surfaces from translucent, blurred panels that let a colored background show through, using light edges and depth ordering to separate layers.
Classification
Tagsglassmorphism · translucency · blur
Aliasesglass, frosted glass, aurora, glass ui
Specimen
OriginOriginal illustrative demonstration, rendered in HTML and CSS from this entry’s specification. Not a photograph and not a third-party asset.
Core principles
The background is the material.
The effect is produced by what shows through the glass, so the background carries as much design weight as the panels.
Translucency communicates order.
Depth is legible because a front surface reveals a blurred version of what sits behind it.
Light defines the edge.
A single thin bright border reads as the cut of the glass and keeps the panel from dissolving into its surroundings.
Reference material
Agent prompt
Applying a Glassmorphism visual direction
You are being asked to apply a Glassmorphism visual direction to a web interface. This document gives you framing and recommendations for that direction. It does not tell you what page, product, or feature to build — apply the guidance below to whatever interface you are already working on, at whatever scope that work requires.
What “Glassmorphism” means here
Glassmorphism builds surfaces that behave like frosted glass: partially transparent, blurring whatever passes behind them, and edged with a thin band of light where the material catches. The effect communicates layering — you can see that one thing is in front of another because you can see through it.
Two things make or break this direction, and both are frequently missed. The first is that glass needs something behind it. Over a flat gray background there is nothing to blur, and the panels read as slightly translucent boxes rather than as glass; the background is not decoration here, it is the material the effect is made of. The second is that translucency puts text on an unpredictable surface. A label that reads comfortably over the pale part of a gradient can become unreadable where the gradient darkens, and the only way to know is to check the worst point rather than the average. Most published glassmorphism fails exactly there.
Recommendations
- Build the background first: soft, out-of-focus color shapes, a broad gradient, or a blurred photograph. Give it real variation — at least two hues — so there is something worth seeing through the glass.
- Blur meaningfully. A backdrop blur of eight pixels or more actually frosts the background; anything less looks like a rendering artifact.
- Keep the panel fill barely there. A background alpha somewhere between ten and forty percent lets the material show through while still separating the panel from what is behind it.
- Give every panel a single thin light edge, brighter than its fill and only a pixel wide. That edge is what reads as the cut of the glass, and without it the panel dissolves into the background.
- Limit the stack. Two layers of glass over one another still read as depth; three or more turn into visual mud and stop communicating order.
- Choose text colors against the worst case. Find the darkest and lightest point of the background that falls under a text block and verify contrast at both, not against the panel’s nominal color.
- Decide what happens when backdrop blur is unavailable. A solid, opaque panel in a color that preserves the same text contrast is a good outcome; a transparent panel with no blur is a broken one.
Avoid
- Glass panels over a flat, single-color background, where the effect has nothing to work with.
- A panel fill so opaque that no background detail is visible through it, which is just a tinted card.
- Three or more translucent layers stacked at any point on the screen.
- Text contrast evaluated against the panel’s tint rather than against the background actually showing through it.
- Heavy drop shadows added under the glass to force separation; the light edge and the blur should be doing that work.
- Placing critical small text — labels, values, legal copy — directly over the busiest part of the background.
How to check your own work
Before considering the result finished, look at it and ask:
- Can I see what is behind each panel, blurred? If not, either the blur or the transparency is not actually applied.
- If I replaced the background with a flat gray, would anything remain of the effect? If the answer is no, that is correct — and it means the background deserves as much attention as the panels.
- Find the single worst pixel behind each block of text and check the contrast there. If it fails, either move the text, strengthen the panel fill, or change the background under it.
- Turn backdrop blur off entirely and look at the result. If text becomes unreadable, the fallback does not exist yet and needs to.
Specification
Glassmorphism — Specification
Definition
Glassmorphism is a web-interface design style in which surfaces behave like frosted glass: partially transparent, blurring the content behind them, and edged with a thin band of light. Layer order is communicated by seeing through one surface to another. The style depends on a background with real chromatic variation, and it is only shippable when text contrast is verified against the worst-case background pixel rather than against the panel’s nominal fill.
Core principles
- The background is the material. The effect is produced by what shows through the glass, so the background carries as much design weight as the panels.
- Translucency communicates order. Depth is legible because a front surface reveals a blurred version of what sits behind it.
- Light defines the edge. A single thin bright border reads as the cut of the glass and keeps the panel from dissolving into its surroundings.
- Depth is shallow by design. Two layers read as order; more read as mud.
- Contrast is measured at the worst point. Text sits on a variable surface, so legibility is evaluated against the least favorable pixel under it.
Visual characteristics
- Translucent panels with a visibly blurred background showing through.
- A background of soft gradient fields, out-of-focus color shapes, or a blurred photograph, in at least two hues.
- A single hairline border on each panel, lighter than the panel fill.
- Low-opacity panel fills that tint rather than obscure.
- At most two overlapping glass layers at any point on screen.
- Depth expressed by transparency and edge light rather than by heavy shadow.
Rules
-
Real backdrop blur. Each glass surface blurs what is behind it. Acceptance criterion: Every glass panel has a computed
backdrop-filtercontaining a blur radius of 8px or greater. -
Chromatic background behind the glass. The region under each panel has something worth seeing through it. Acceptance criterion: Sampling the background region beneath each panel yields at least two distinct hues or a gradient; it does not resolve to a single flat color.
-
Bounded transparency. The panel fill tints without obscuring. Acceptance criterion: The alpha channel of each panel’s computed
background-colorfalls between 0.1 and 0.4 inclusive. -
Hairline light edge. Each panel is cut from its surroundings by a single bright border. Acceptance criterion: Every panel has a 1px border whose color has an alpha between 0.1 and 0.5 and is lighter than the panel’s own fill.
-
Shallow stacking. Glass does not accumulate into unreadable depth. Acceptance criterion: At no point on the rendered screen do more than two translucent panels overlap.
-
Worst-case contrast. Text legibility is verified against the actual background, not an average. Acceptance criterion: Every text element over glass measures at least 4.5:1 against the least favorable pixel of the blurred background beneath it.
-
Defined degradation. The interface remains legible where backdrop blur is unsupported. Acceptance criterion: With
backdrop-filterdisabled, each panel renders an opaque background that preserves the same text contrast ratios required by Rule 6.
Avoid
- Glass panels over a flat, single-color background, where no material shows through.
- Panel fills opaque enough that no background detail is visible, producing a tinted card rather than glass.
- Three or more translucent layers overlapping at any screen position.
- Contrast evaluated against the panel’s nominal tint rather than the background showing through it.
- Heavy drop shadows added beneath panels to force separation that the edge and blur should provide.
- Critical small text placed over the busiest region of the background.
Acceptance criteria
- Rule 1: Every glass panel has a backdrop blur of at least 8px.
- Rule 2: The background beneath each panel contains at least two hues or a gradient.
- Rule 3: Every panel fill has an alpha between 0.1 and 0.4.
- Rule 4: Every panel has a 1px border, lighter than its fill, with alpha between 0.1 and 0.5.
- Rule 5: No more than two glass layers overlap at any point.
- Rule 6: All text over glass meets 4.5:1 against the worst-case background pixel.
- Rule 7: With backdrop blur disabled, panels render opaque and contrast is preserved.
Blocking failures
- Any text over glass falls below 4.5:1 against the worst-case pixel behind it, which is the most common failure of this style and makes the interface unusable for part of its audience.
- No fallback exists for absent
backdrop-filtersupport, so the interface renders as transparent panels over an unblurred background and content becomes unreadable. - A control’s only boundary is its translucent fill against a background of similar luminance, leaving the control undiscoverable.
These conditions make the work unacceptable to ship; they are not stylistic suggestions and are not subject to designer discretion.
Responsive adaptation guidance
- Blur radius (Rule 1) may reduce at narrow viewports for performance but never below 8px, since a smaller radius reads as a rendering artifact rather than as glass.
- The background (Rule 2) is re-composed rather than scaled at narrow widths, so each panel still has chromatic variation beneath it after reflow.
- Stacking (Rule 5) tends to resolve naturally as layouts collapse to one column; where it does not, layers are removed rather than made more transparent.
- Rule 6 is re-measured after every reflow without exception, because a panel that moves to a different part of the background sits over different pixels and its contrast result does not carry over.
- The fallback required by Rule 7 applies identically at every breakpoint.