Roman Kamushken
Most tutorials show a card over a purple gradient and stop there. Real products live on white pages, so I calculated the contrast of every recipe instead of trusting my eyes. The classic one, a 12% white tint with white text, scores 1.00:1 on a white page, and the card disappears. Below is the version that holds.
If you have two minutes. The guide runs long because glass fails on details. Five decisions carry most of the result.
❶ Dense tint. 70% white holds dark text over anything. A 40% tint holds nothing. See tint and saturation.
❷ Dark ink on light glass. White text on a light tint loses contrast wherever the backdrop turns pale.
❸ Check the worst pixel. Measure the composite against the darkest or lightest point behind the panel, never against the swatch in your design file. See contrast math.
❹ Ship a solid fallback as the base rule and let @supports upgrade it. See the fallback section.
❺ Blur static surfaces only. Animation is the case where the frame budget runs out, and it has to be measured on your own markup. See the measurement protocol.
What glassmorphism actually is
Glassmorphism is a layering trick, and the material has no colour. Everything you see through the panel belongs to whatever sits behind it.

Take one glass card apart and you get four sheets, stacked in this order.
❶ Backdrop blur. backdrop-filter: blur() smears everything behind the panel. This is the only layer that makes it glass. The other three make it usable.
❷ Tint. A semi-transparent fill between the backdrop and your content. It decides how much colour survives and how much contrast your text gets.
❸ Border. A 1px light line along the edge. It separates the panel from the page when the blur alone cannot.
❹ Inner highlight. An inset shadow on the top edge that reads as the thickness of the pane.
Three things get mistaken for glassmorphism all the time.
→ A card with opacity: 0.5. Text fades with the surface, and nothing behind it blurs.
→ A solid pastel card with a white border. No backdrop shows through, so nothing frosts.
→ Liquid glass. Apple's 2025 material bends the backdrop like a lens, a separate technique I took apart in the liquid glass practical guide.
One consequence follows: glass needs something to blur. Half of this guide is about what goes behind it.
The types of glassmorphism that actually differ
Glass types differ in two things you can see: how much of the backdrop survives, and what the surface adds on top. Five combinations show up in real products.

| Type | Blur | What you see | Where it works |
|---|---|---|---|
| Clear | Under 8px | A thin tint over a barely softened backdrop. Shapes behind stay recognisable | Over a photo or video only. Never over text |
| Frosted | 16px and up | The backdrop melts into soft colour fields | Navigation bars, modals, sheets. The default choice |
| Tinted | 24px | Frosted glass with a visible hue in the tint | Status toasts, selected items, brand panels |
| Textured | 24px | Frosted glass with a fine grain over the surface | Big panels where a smooth blur shows banding |
| Gradient-backed | 24px | Frosted glass with its own gradient placed behind it | Hero and pricing cards on a white or flat page |
The first four depend on the page behind them. Gradient-backed carries its own colour and works the same anywhere.

Clear is the type that also constrains what may sit behind it. It works over photos and video, where the shapes behind the panel are the content people came for. It fails over text: an 8px blur is too weak to separate a label from a headline on the other side, so the two layers read as one mess.
Inside every type sits a second dial, intensity. Subtle glass means a tint so dense the panel is almost solid: at 72% white, dark text holds 9.36:1 even over a dark navy photo (#0b1220). That is the version that survives in dashboards and settings screens.
Heavy glass drops below 40%, so the backdrop floods through and the panel looks spectacular in a Dribbble shot. Run the numbers and it falls apart: dark text on a 40% white tint over pure black gets 3.08:1, under the 4.5:1 body text needs. I keep heavy glass for decoration and display type.
☛ Pick the type by the backdrop you cannot control. If users upload their own wallpaper or photos, clear and heavy glass are off the table.
Why frosted glass keeps coming back
Frosted glass returns because it solves a layout problem: it shows that one layer sits above another without hiding the layer below. A depth cue with a job outlives trends.

Windows Vista shipped Aero in 2007 with blurred translucent window frames. It looked expensive and it was, since the effect needed graphics hardware that many PCs lacked. Microsoft flattened everything again with Windows 8 in 2012.
A year later Apple brought the blur back. iOS 7 (2013) put frosted panels under Control Center and the notification shade, so you always sensed the app underneath. macOS followed with Yosemite in 2014 and went further with Big Sur in 2020. That same year designer Michał Malewicz gave the style its name, and the Dribbble wave started. The web caught up late: Chrome shipped backdrop-filter in 2019, and Firefox turned it on by default in 2022.
Apple never let go of it. visionOS, announced in 2023, made glass the base material of the whole system, because a window floating in your living room has to stay readable over any wall. In 2025 the company pushed the idea further with Liquid Glass in iOS 26, adding refraction on top of the blur. The reasoning is written down in the materials section of the Human Interface Guidelines. If you design for iOS or visionOS today, glass is the platform default, and the only open question is how well you control it.
Five glass aesthetics, one family
Five styles, one idea: fake depth on a flat screen, solved with different materials.
The family looks alike at thumbnail size and splits the moment you ask what each surface does with the page behind it. Only the first two blur what sits underneath; liquid glass bends it, and the two soft styles never touch it at all.

| Style | What the surface does | Depth cue | Main risk |
|---|---|---|---|
| Glassmorphism | Blurs and tints the backdrop | Blur plus a light edge | Text contrast changes with the backdrop |
| Frosted UI | Blurs the backdrop under a dense neutral tint | Blur alone, almost no colour | Turns grey and flat on plain pages |
| Liquid glass | Bends and refracts the backdrop like a lens | Refraction and moving highlights | Heavy on the GPU, hard to keep legible |
| Neumorphism | Matches the page colour exactly | One light shadow, one dark shadow | Low contrast between component and page |
| Claymorphism | Covers the page with a saturated opaque colour | Thick radius and inner shadows | Reads as playful, wrong for dense tools |
Glassmorphism and frosted UI share the same CSS and differ in dose. Frosted UI is what operating systems ship under names like Acrylic and vibrancy: neutral, dense, built to stay out of the way. Glassmorphism turns the colour up.
The two soft styles ignore the backdrop entirely, which is why they get their own guides: neumorphism and claymorphism. I compared the whole family axis by axis in a separate post, glassmorphism versus liquid glass and the soft styles. Use it as the map. The rest of this guide stays in the first row of the table.
The anatomy of a glass surface

Order is the part that breaks. The backdrop has to be the lowest layer, because everything else is computed from it; the tint sits over the blur, never under it, or the blur has nothing to smear; and the highlight belongs last, on the front face, where light would land.
Swap the tint and the blur and the panel loses its colour control, because the tint is no longer averaging a blurred image. Move the border outside the radius and it clips to a square corner. Put the highlight behind the tint and the top edge goes flat. None of these look broken in a design file; they show up once the backdrop changes.
In code the order is the order of properties in one rule: the tint first, then the blur it sits on, then the edge, and the highlight last. Values arrive in the recipe.
.glass {
background: /* tint, over the backdrop */
backdrop-filter: /* blur, applied to the backdrop */
border: /* edge, on the front face */
box-shadow: /* highlight, last */
}
The distinction that trips people up first is filter against backdrop-filter. On a card, filter: blur(20px) blurs the card together with its text, so the label goes soft along with the surface. backdrop-filter leaves the card alone and blurs only what sits behind it. Glass needs the second one, and a filter on the same element is what turns a readable panel into a smudge.
On iOS, the same idea appears as a named material rather than a property. The depth cues in iOS design cover how those materials signal elevation.
Backdrop blur and how much is too much
Blur has five useful stops, each answering a different question.

→ 4px. The backdrop stays recognisable. Shapes behind the panel still read as shapes, which makes the glass look like a thin coloured scrim.
→ 8px. Edges behind soften and text stops resolving. Fine for a caption over a photo.
→ 16px. The threshold where glass becomes safe for content on top. Forms behind turn into colour fields, and nothing in the backdrop competes with your label.
→ 24px. My default for cards and navbars. The backdrop is a soft wash, and the tint has room to do its job.
→ 40px. Only colour survives. Use it on large surfaces, where a smaller blur would still show a recognisable edge behind the panel.
The practical rule: a blur smaller than the text behind it is a bug. Put a headline 20px behind an 8px blur and people will try to read both at once.
Tint and saturation
The tint is where most glass designs fail, and the numbers explain why.

The recipe everyone copies is a white tint at 12% with white text. Over our brand violet #7c4dff the surface becomes #8c62ff, where white text scores 3.95:1, under the 4.5:1 body text needs. At 20% it drops to 3.45:1, at 40% you get #b094ff and 2.46:1.
Now put the same card over a light part of the page, where most products live. Over pale pink #fbcfe8 the surface is #fbd5eb and white text scores 1.33:1. Over a photo highlight it scores 1.15:1. On white it scores 1.00:1 and the card is gone.
The fix is to stop treating the tint as a whisper. At 60% white, dark ink #19181b holds 9.94:1 over the violet orb, 17.68:1 over white, and 6.21:1 over pure black, so the card survives any backdrop you can throw at it. At 50% the same ink drops to 4.45:1 over black, which is where the recipe starts to fail.
Dense tints wash colour out of the backdrop, and that is what saturate() is for. Pairing blur(24px) with saturate(180%) puts back the chroma the white film removes. Drop the filter and a 60% white tint reads as milk.
The border that saves readability
The border earns its place when the blur is weak, and it also carries the light direction of the whole interface.

A single 1px line along the inside of the top and left edge does two jobs. It shows where light lands on a thick pane, and it separates the panel from a busy backdrop when the tint is too thin.
On a photo the light line carries the edge. On a white page it vanishes, because white on white has no contrast to give. That is why the light recipe adds a darker line outside it: 0 0 0 1px rgba(25,24,27,.08) at 1.18:1 against white, enough to separate surfaces and too little to signal state.
Light falls from the top left in almost every interface, so the bright edge belongs on the top and left. Flip it and the surface reads as pressed in.
The inner highlight that fakes thickness
Two details do the work.

The first is a single inset shadow on the top edge, inset 0 1px 0 rgba(255,255,255,.9). One pixel, no blur, and it creates the idea of a top surface catching light at an angle. Without it the card looks like a rounded rectangle of colour.
The second is grain. A large blur produces smooth gradients, and those band on 8-bit displays, most visibly in dark areas. Noise at 2-3% opacity breaks the bands without showing at normal zoom.
Both cost one line of CSS and no performance. The inset shadow rides on the same box-shadow as the lift, and the grain is a baked texture. Together they turn a flat fill into a pane you feel before you name it.
☞ If you can add only one of the two, add the highlight. Grain fixes an artefact, the highlight fixes the material.
A copy-paste CSS recipe
The recipe ships the solid fallback first and upgrades to glass only where the browser can blur. Every value lives in a custom property, so a theme changes variables and never touches the rules. Replace the four colours with your own and the structure still holds.

:root {
--glass-fallback: #f7f4ff;
--glass-tint: rgba(255, 255, 255, .6);
--glass-ink: #19181b;
--glass-blur: 24px;
--glass-saturate: 180%;
--glass-border: rgba(255, 255, 255, .7);
--glass-highlight: rgba(255, 255, 255, .9);
--glass-shadow:
0 0 0 1px rgba(25, 24, 27, .08), /* edge on white */
0 1px 2px rgba(25, 24, 27, .06), /* contact */
0 24px 48px -16px rgba(124, 77, 255, .28); /* lift */
}
.glass {
background: var(--glass-fallback);
color: var(--glass-ink);
border: 1px solid rgba(25, 24, 27, .08);
border-radius: 24px;
box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
.glass {
background: var(--glass-tint);
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
border-color: var(--glass-border);
box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}
}
Two values in that recipe carry the whole look. The shadow is violet at 28%, because a black shadow makes a white page look dirty. Action buttons inside the card stay solid #7c4dff with white text (4.81:1), since a glass button on glass loses its edge.
How to build the same surface in Figma
The recipe translates one property at a time, and the first one is the one people get wrong. Apply background blur to the fill, not layer blur to the frame. Layer blur is a visual effect that softens the object itself, so the text inside the card goes soft along with the edge. Background blur samples whatever sits under the layer, which is exactly what backdrop-filter does, and leaves the content on top sharp.
Then the edge treatments, all from the recipe above. Fill with a white tint at 60%, then an inside stroke of 1px at 70% white for the light edge. Two strokes on one layer is not something Figma will let you draw, so the darker hairline at 0 0 0 1px rgba(25,24,27,.08) goes on a separate rectangle underneath, or into the effect stack as a shadow with zero blur. Then the lift, 0 24px 48px -16px rgba(124,77,255,.28), and the inner top highlight as its own inset.
Store the four values as variables named glass/blur at 24, glass/tint at 60%, glass/border at 70% and glass/highlight at 90%. Those are the same four numbers the CSS uses, so a change in Figma can be copied into :root without translation.
Figma does not compute contrast against the backdrop, because the backdrop is a picture there under your panel rather than a live page. The check happens in the browser, and it is the contrast math below.
Light theme and dark theme
The dark theme swaps the tint colour and keeps every other number.

.dark {
--glass-fallback: #1b1d29;
--glass-tint: rgba(16, 18, 27, .6);
--glass-ink: #ffffff;
--glass-saturate: 160%;
--glass-border: rgba(255, 255, 255, .14);
--glass-highlight: rgba(255, 255, 255, .12);
--glass-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5);
}
Dark glass is easy on a dark page, where white text scores 18.76:1. The hard case is a dark card over something light: over white it drops to 4.88:1, and a 50% tint fails at 3.52:1. The dark tint needs 58% at minimum.
Fallback for browsers without backdrop-filter
The fallback is the design for everyone the blur cannot reach, so give it the same care as the glass. The property itself is documented on MDN, in backdrop-filter, including the cases where it silently does nothing.

Older Safari still needs the -webkit- prefix, and the blur gets switched off in more places than you expect, for example when GPU acceleration is disabled or when users ask for less transparency.
@supports handles the first case. The pale lavender #f7f4ff with dark ink scores 16.28:1, and the dark fallback #1b1d29 with white text scores 16.74:1. Both read better than the glass they replace, so nobody is being served a worse interface for having an older browser.
The mistake is treating the solid version as a patch applied at the last minute. Design it alongside the glass, with the same radius, the same shadow and the same spacing, and the two look like one system. Ship the solid colour as the base rule and let @supports switch it to glass.
Contrast math you can check before shipping
A glass surface takes its colour from the page, so you check contrast against the worst point of the backdrop and never against the swatch in your design file.
The WCAG 2.2 contrast minimum asks for 4.5:1 for body text and 3:1 for large text. The formula compares two fixed colours, and a glass card has a different colour over every pixel of the backdrop. That is why a design passing in Figma fails in production.
The fix takes two steps. Blend the tint over the backdrop channel by channel with result = alpha × tint + (1 − alpha) × backdrop, then run the WCAG formula on the result.
Worked example, the light recipe over the violet orb. White at 60% over #7c4dff gives red 0.6 × 255 + 0.4 × 124 = 203 and green 0.6 × 255 + 0.4 × 77 = 184, blue 255. The surface is #cbb8ff at a relative luminance of 0.5406. Ink #19181b sits at 0.0094, so contrast is (0.5406 + 0.05) / (0.0094 + 0.05) = 9.94:1.
☛ Run the check on the unblurred backdrop. Blur averages neighbouring pixels, so the real surface is never more extreme than the sharpest point behind it. If the sharp version passes, the blurred one passes too.
The worst case gives you a floor that holds on any backdrop. Dark ink on a white tint over pure black needs just over 50% for 4.5:1 and 64% for 7:1. White text on the dark tint over pure white needs 58% for 4.5:1.
Doing this by hand on every component gets old, so here is the whole check as one function with no dependencies. It takes a backdrop hex, a tint hex, the tint alpha and an ink hex, and returns both the composite colour and the ratio. Run it in the console against the worst pixel you can find.
const hex = (h) =>
h.replace("#", "").match(/../g).map((c) => parseInt(c, 16) / 255);
const lin = (c) => (c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4);
const lum = (rgb) => {
const [r, g, b] = rgb.map(lin);
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
};
const ratio = (a, b) => {
const [hi, lo] = [lum(a), lum(b)].sort((x, y) => y - x);
return (hi + 0.05) / (lo + 0.05);
};
const composite = (backdrop, tint, alpha) => {
const b = hex(backdrop);
const t = hex(tint);
return b.map((c, i) => alpha * t[i] + (1 - alpha) * c);
};
const toHex = (rgb) =>
"#" +
rgb.map((c) => Math.round(c * 255).toString(16).padStart(2, "0")).join("");
function contrastOnGlass(backdrop, tint, alpha, ink) {
const surface = composite(backdrop, tint, alpha);
const value = ratio(surface, hex(ink));
return { surface: toHex(surface), ratio: Math.round(value * 100) / 100 };
}
contrastOnGlass("#7c4dff", "#ffffff", 0.6, "#19181b");
// { surface: "#cbb8ff", ratio: 9.94 }
The call returns 9.94, which is the same number the worked example above reaches by hand, and the surface hex #cbb8ff matches too. Swap the backdrop for #0b1220 and the same call returns 6.76. That two-line check is the whole verification step for a glass panel.
A three-background stress test
Before a glass component ships, I put it on three backdrops that break glass in different ways.

| Backdrop | Classic, 12% white, white text | Light recipe, 60% white, dark ink |
|---|---|---|
Pastel gradient #c4b5fd to #fbcfe8 | 1.33:1 | 14.02:1 |
Night photo, #0b1220 with #e8eef5 lights | 1.15:1 | 6.76:1 |
Checker #111111 and #ffffff | 1.00:1 | 6.74:1 |
White text fails over the lightest part of a backdrop and dark text over the darkest, so the classic column is measured on highlights and the light recipe on shadows. The classic recipe fails all three. The light recipe passes all three with room to spare.
States on a glass component
A state on glass has to change the structure of the component. Tint shifts get lost, because the backdrop already changes the tint under every pixel.

❶ Default. Resting glass, top highlight, soft violet shadow.
❷ Hover. Brighter highlight, the shadow grows and the card lifts 2px.
❸ Focus. A solid 2px ring in #19181b with a 2px white gap. A violet ring scores only 2.71:1 against the glass surface over the orb, under the 3:1 that WCAG asks for focus indicators.
❹ Active. The highlight disappears and the shadow tightens, so the pane looks pressed into the page.
❺ Disabled. No highlight and no shadow, with a dimmed label. The flat surface reads as unavailable before the label does.
❻ Error. A solid #c62828 border with an icon. White text on that red scores 5.62:1, while the lighter #e03e3e stops at 4.26:1.
❼ Loading. A spinner replaces the label and the width stays fixed.
The same seven states come up again in the button UI design guide, where the base component carries them without any glass.
Where glass belongs and where it breaks
Glass belongs on chrome and breaks on content. A navigation bar, a toolbar or a modal sits above the page, and the blur says so. A table lives on the page, so frosting it only makes data harder to read.

My test is one question. Does this surface need to show that the page continues underneath? If yes, glass earns its place. If the surface is the page, glass is decoration with a cost.
Three places where glass keeps winning.
❶ The sticky top bar. Content scrolls under it and the blur keeps the title readable without a solid block that eats a strip of the screen.
❷ The modal and the sheet. Glass separates the dialog from the dimmed page without a hard black scrim. The dialog design guide covers the focus and dismissal rules that sit on top of the material.
❸ The floating control. A media player or a map panel, anything that stays on top of content it must not hide.
Three places where I take it out on sight: dense data tables, long forms and settings screens. Nothing sits behind them, so the material has no job. The data table guide shows what dense rows need instead, which is solid alignment and no transparency at all. Neumorphism runs into the same wall in reverse, which is why both styles end up confined to chrome.
Scroll behind the panel is the case people forget to design. A sticky navbar sits over text that slides underneath it, so labels on the bar compete with the words passing behind. That is why a navbar tint is denser than a card tint, and why the bottom edge of the bar gets a gradient mask: the mask fades the last few pixels instead of cutting the scroll at a hard line.
Glass over video needs its own rule, because the backdrop changes brightness every frame. Fix the tint against the worst frame rather than the average one, and put a solid underlay beneath the video so a white flash does not turn the panel into a white block.
Examples from shipped products
Six surfaces that survived production, each built differently. The blur value barely separates them; the decision about what may sit behind the panel does.

Control Center in iOS. The panel uses a dense tint and a fixed corner radius, and the whole surface moves as one sheet when it opens. Readability comes from that tint density rather than from the blur, which is why it still works over a camera feed.
Window chrome in macOS. The title bar draws its separation from a light edge and a shadow rather than from a blur, and the sidebar receives a vibrancy material that blurs the window backdrop rather than the document inside it. Apple's own materials guidance recommends the regular material wherever content under it could hurt legibility.
visionOS. Here glass is the base surface rather than an accent, and Apple documents it as an unmodifiable window background that the system supplies. Because the background keeps moving as people move, the material is built to stay legible over motion instead of over one static image.
Mica in Windows 11. Mica never blurs live content. It samples the desktop wallpaper once, applies the theme and paints the window backdrop, which keeps the cost flat and the material opaque. Microsoft documents it as built for performance for exactly that reason.
Acrylic in Windows. The one material built explicitly for transient surfaces: context menus, flyouts, light-dismiss panes. It does blur live content, which is why Microsoft limits where it may be used and switches it to a solid colour in Battery Saver mode or when transparency effects are turned off in Settings.
The Linear web app. linear.app ships the case a web product recognizes. The top bar is position: fixed, 73 pixels tall, with backdrop-filter: blur(20px), a fully transparent background and a 1px bottom border at 8% white. The issue list keeps scrolling underneath it.
I confirmed the values by reading computed styles in a headless Chromium at 1280 by 800, then took a screenshot with the page scrolled 700 pixels. The sidebar rows and the activity feed stay visible, softened, behind the bar, and the border draws the edge that the tint does not. That is the cheapest working glass in this list, and it is the one to copy in a browser product.
Six products, one lesson: every one of them decided what the panel may cover before it picked a blur. iOS and visionOS accept motion behind the glass. macOS splits the job, with an edge on the title bar and a material on the sidebar that blurs the window backdrop. Mica refuses live content entirely, while Acrylic blurs it but stays confined to transient surfaces. Linear goes furthest of all and blurs live scrolling text, paying for it with a dense tint, a hard border and one layer only.
Component recipes
Six components carry almost every glass interface. Each needs the shared variables plus a couple of local numbers.

| Component | Tint | Blur | Corner | Note |
|---|---|---|---|---|
| Card | 60% white | 24px | 24px | Add a colour wash behind it, or it vanishes on white |
| Modal | 72% white | 32px | 24px | Denser than a card, because a scrim already sits behind it |
| Navbar | 72% white | 16px | 0, bottom border only | Same density as a modal for the opposite reason: no scrim under it, but rows scrolling behind |
| Toast | 72% white | 24px | full pill | Sits over anything, so it needs the densest tint |
| Input | 60% white | 12px | 12px | Focus ring solid, never glass inside glass |
| Dropdown | 72% white | 24px | 16px | Opaque enough to read rows over a busy page |
The modal is the interesting one. Its scrim already darkens the page, so a light panel recovers contrast the scrim removed. A navbar keeps the same light family but a denser tint, because it sits over text that moves.
The picture shows four of the six. Input and dropdown earn their rows without illustration: both sit inside other surfaces, so both stay opaque enough to read rows, and neither may hold glass inside itself.

Toasts deserve their own rule, because they arrive over whatever the user was reading. A quiet toast stays neutral glass. A success toast mixes #1f9d6b into the tint and keeps dark content, which holds 14.45:1 on a white page and 8.69:1 over the violet orb. A critical toast goes solid #c62828 with white text.
A toast also travels, so it crosses more backdrops than any other component in the whole system. Give it the densest tint you allow, then test it over the busiest screen in the product, not over a clean settings page.
Exceptions belong to a component, not to the system. One component changes its tint for a semantic reason. The whole library keeps the same three numbers.
Glassmorphism on mobile

Mobile is where glass gets expensive, and the bill arrives in frame time. A 60 fps budget gives each frame 16.7 milliseconds, and every blurred layer costs part of it.
I measured the cost instead of quoting it. The harness is a 390 by 844 viewport at 2x, CPU throttled six times, ten seconds of continuous scroll over a striped backdrop, and a Chrome trace recording two numbers: the time each frame spends inside DirectRenderer::DrawFrame, and the gap between consecutive DrawAndSwap frames. A gap wider than 25 ms means the frame arrived a frame and a half late, which is a visible stutter.
| Blurred layers | Frames | Frame draw, average | Frame draw, p95 | Gaps over 25 ms |
|---|---|---|---|---|
| None | 540 | 0.07 ms | 0.14 ms | 0 |
| One | 541 | 0.96 ms | 1.06 ms | 0 |
| Two | 541 | 1.89 ms | 2.05 ms | 0 |
| Three | 541 | 2.72 ms | 2.85 ms | 0 |
| Four | 541 | 3.71 ms | 3.99 ms | 0 |
The cost is close to linear, about 0.9 ms per layer at blur(24px), and at two layers it takes 11% of the 16.7 ms budget. Nothing in that run drops a frame. The median gap stays between 16.65 and 16.70 ms across all five rows, and the worst single gap reaches 21.6 ms with two layers, which the compositor absorbs without a visible hitch.
Static glass is cheaper than the internet says, and the layer count behaves as a budget rather than a danger. What the table cannot show is what happens when the surface moves, because a moving blur is recomputed against a moving backdrop instead of being cached.
So I ran the same two layers twice: still, and with the top panel sliding on a 1.1 second loop.
| Two blurred layers | Frames | Frame draw, average | Frame draw, p95 | Gaps over 25 ms |
|---|---|---|---|---|
| Panel still | 541 | 1.89 ms | 2.05 ms | 0 |
| Panel sliding | 540 | 1.70 ms | 2.22 ms | 0 |
In my trace neither variant misses a frame, and the sliding one is not obviously worse. That result is worth stating plainly rather than dressing up: on this harness, at this device width, an animated glass panel is not the automatic disaster that the advice claims. The average stays flat because the compositor caches the backdrop while the panel translates, and only the p95 creeps up as the moving layer occasionally fights for the same frame slot.
Two conclusions hold. Static glass costs what the table says and no more, so the layer count is a budget, not a danger. A transform on a glass panel is the cheap animation, since the compositor moves the already-blurred surface instead of recomputing it. The expensive case is animating the backdrop under a fixed panel, because then the blur has to be recalculated every frame. That case is not in the table, and it is what to test first on your own markup.
Three rules keep a glass interface smooth on a mid-range Android phone.
→ Blur one element per screen. A bottom bar or a sticky header, not both.
→ Keep backdrop-filter off elements that sit over moving content. A translating panel is cheap because the compositor moves the blurred surface, but a fixed panel over a scrolling list recomputes the blur every frame.
→ Give the fixed height element a stable size. A glass panel that grows as content arrives forces the compositor to re-blur on every resize.
How to measure it on a real phone
The protocol takes fifteen minutes and needs no lab. Open DevTools, switch to the Performance panel, set CPU throttling to 6x, and record ten seconds of scrolling through the busiest screen with the glass visible. Count the gaps longer than 25 ms rather than every frame past 16.7 ms, because plain scrolling produces jitter on its own, and compare the number against a run with the glass hidden. The target is your own baseline plus a small margin, not zero.
Then repeat with a second blurred layer added. The difference between the two runs is the price of that layer on your actual markup, and it is the number worth putting in a ticket. The third pass is the one my own table could not cover: keep the panel fixed and scroll the content underneath it, since that is where the blur is recomputed against a moving backdrop every frame.
Two habits keep the result honest. Throttle the CPU rather than the network, since the cost is paint rather than download. Measure on the device class your users carry, because a desktop browser at full speed finishes every frame and reports nothing.
Touch targets keep a 44 by 44 pixel floor however small the pill looks. Glass surfaces shrink visually because the edge reads as padding that is not there.
Accessibility beyond contrast
The setting is prefers-reduced-transparency: reduce, and it deserves an answer: point the tint variable at the fallback colour and drop the filter. Apple documents the same idea in its materials guidance, which states that the system responds to accessibility settings that reduce transparency or increase contrast, and that the regular material is the variant to use when the content behind it could hurt legibility.
Four more rules travel with it. prefers-contrast: more gets the same response as reduced transparency, first a denser tint and then a solid fill, because on a low-contrast panel the tint is what carries legibility. A glass panel says nothing to a screen reader, so a modal still needs aria-modal, a landmark role and a focus trap: the material is decoration and assistive technology ignores it. At 200% zoom the blurred backdrop stays in place while the text beside it grows, so the tint has to survive both states rather than only the default one. And backdrop-filter inside a transformed or animated parent can break in Safari, so test that combination separately instead of assuming the desktop result carries over.
The last rule is not technical. A glass panel must not be the only signal that something is a dialog. If the material is what tells people the surface is modal, then a user with transparency off sees an undifferentiated rectangle.
Design tokens for a glass system
A glass system fits in four variables. Everything else is per-component, and the four keep the material from turning into six slightly different materials.

Name them in Figma the way you name them in CSS:
→ glass/blur maps to --glass-blur, 24px
→ glass/tint maps to --glass-tint, white at 60%
→ glass/border maps to --glass-border, white at 70%
→ glass/highlight maps to --glass-highlight, white at 90%
Shadow and radius follow the global scales you already have. The four variables above are the ones that make glass glass.
The failure mode is a team where each component picks its own blur. Two cards at 16px and 24px look like two materials. The UI kit foundation guide covers that discipline for the rest of the system, and the React UI kit ships the token layer already wired this way.
Eight anti-patterns that make glass unreadable
Each breaks one rule, and each shows up in shipped products.

❶ No tint. background: transparent with only a blur. Text over a busy backdrop turns into noise. Add a tint.
❷ Stacked glass. A glass button on a glass card on a glass navbar. Contrast compounds downward and the material turns muddy. One layer of glass per stack.
❸ Flat backdrop. A white-tinted card on a white page. Nothing to blur, so the card is invisible. Put colour behind it.
❹ Milky tint. A 40% white tint with white text, which is the recipe from most tutorials. It scores 2.46:1 over a vivid backdrop. Move to dark text and a denser tint.
❺ No edge. No border and no shadow. The panel melts into whatever sits behind it. Add the hairline and the lifted shadow.
❻ Dense data on glass. A frosted table with twenty rows. Every row fights the backdrop. Keep glass on chrome.
❼ Tint-only states. Hover and selected differ by a slightly lighter tint. On a changing backdrop the difference disappears. Change the structure instead.
❽ No fallback. The design exists only inside @supports. Ship the solid version as the base and upgrade from it.
☛ Anti-pattern ❸ is the one I see most in 2026, usually on a landing page whose hero happens to be white. The design was made over a colourful illustration and shipped on a blank section.
Before you ship
Ten checks, each worth failing a build over.

❶ Contrast checked at the worst point of the backdrop, not on the swatch in your design file.
❷ Fallback ready as the base layer, with the glass as the upgrade inside @supports.
❸ Focus visible through a solid ring, because a tinted ring drops to 2.71:1 on glass.
❹ States differ in structure, never in tint alone.
❺ One glass layer per stack. A glass control on a glass card is the second most common failure.
❻ Blur measured against the text size behind the panel, not against the mood board.
❼ Phone tested on a mid-range Android device, since a simulator hides frame drops.
❽ Tokens named after the CSS variables, so the handoff needs no translation table.
❾ Reduced transparency answered with the solid colour, for the users who ask for it.
❿ Colour behind the glass on every page where the component appears, including the empty one.
The last item breaks in production, because a component tested on one page ships to twelve. I keep shipped examples from the AI inspiration gallery for this check, and the glass files I reuse live in the Liquid Glass freebie.
Frequently asked questions
What are the types of glassmorphism?
Five, and they split on two visible questions: how much of the backdrop survives, and what the surface adds on top. Clear keeps shapes recognisable, frosted melts them into colour fields, tinted carries a hue of its own, textured adds grain, and gradient-backed supplies its own colour. The types section has a table with the blur value behind each, plus the reason the clear variant only works over photos and video rather than over text.
Is glass morphism the same as glassmorphism?
Same style, two spellings. Early coverage and search queries used the two-word form, and designers settled on the single word around 2020 when the style got its name. Both describe one frosted surface built from a blurred backdrop, a translucent tint, a light edge and an inner highlight. Spelling does not change what you build, and it does not change the four layers either.
Is glassmorphism outdated?
Its scope narrowed rather than its relevance fading. The 2020 Dribbble wave is over, and what survived is glass doing a job: navigation bars, modals, sheets and floating controls. Apple kept the material in iOS and visionOS, which makes it a platform default rather than a trend. What aged badly is the decorative card on a landing page, where nothing sits behind the panel and the material carries no information. The section on placement draws that line.
What can I use instead of glassmorphism?
Three answers, depending on what you want to keep. Frosted UI keeps the blur and drops the colour play, which is the calmer version of the same material. Neumorphism and claymorphism build depth from shadows and opaque surfaces instead of transparency. If the page needs density, a plain surface with a hairline border beats every option here. The family comparison puts all five on one axis, and each soft style has its own guide.
How do I keep text readable on glass?
Dense tint first, then verify. White at 60% with ink #19181b holds 9.94:1 over a vivid backdrop and 6.21:1 over black, which covers any backdrop a product can produce. Then measure the composite against the worst pixel behind the panel rather than the swatch in the design file. The contrast section carries the formula, the worked example and a function you can paste into a console.
Does glassmorphism hurt mobile performance?
It costs time, and the cost is measurable rather than fatal. Each blurred layer added about 0.9 ms to frame draw in my throttled trace, so two layers take 11% of a 16.7 ms budget, and none of the six runs lost a frame. The case that misses is animating the backdrop under a fixed panel. The mobile section has the tables and a fifteen-minute protocol for your own markup.
How do I build glassmorphism in Figma?
Background blur on the fill rather than layer blur on the frame, because layer blur softens the text inside the card along with its edge. Then a white tint at 60%, an inside stroke of 1px at 70% white, two drop shadows and the inset top highlight. Store the four values as glass/blur, glass/tint, glass/border and glass/highlight. The Figma section lists the numbers that match the CSS exactly.


