Web design styles - depth and material
Glassmorphism web design
Glassmorphism uses see-through panels that blur whatever sits behind them, like frosted glass. It gives a page depth without heavy shadows, and it’s firmly back in fashion now that Apple has built its Liquid Glass interface around the same idea. This guide shows it working, gives you the CSS, and covers what to check before a client sees it.
A live example
This sample page is built with this page’s own CSS. Switch to the common mistake to see how quickly glass stops being readable.
Spring trips
Plan your next weekend away
Pick a city, choose your dates and we’ll put the whole trip in one place.
Stays
Hotels and flats near where you’ll be. Pick by area, price or how close you are to the station.
Find a stayDone well: a dark, rich background, a fill of about 14% white, a light edge on every panel and white text that stays readable wherever it sits.
What makes it glassmorphism
Translucency
The panel is a white or tinted fill at low opacity, so you can see through it.
rgba(255,255,255,.14)Background blur
Whatever sits behind the panel is blurred, which is what makes it feel like frosted glass.
backdrop-filter: blur()A light edge
A thin, semi-transparent border catches the light and separates the panel from the page.
1px solid rgba(255,255,255,.3)Something to blur
Glass needs colour or an image behind it. On a plain white page it just looks grey.
background-imageThe CSS
This is the rule the example above uses. It includes a solid fallback for browsers without blur, and it respects people who’ve asked their device for less transparency.
.glass {
background: rgba(255, 255, 255, 0.14);
-webkit-backdrop-filter: blur(18px) saturate(160%);
backdrop-filter: blur(18px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(10, 8, 40, 0.3);
}
/* A solid panel where blur isn't supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass { background: rgba(27, 23, 64, 0.88); }
}
/* Respect people who ask for less transparency */
@media (prefers-reduced-transparency: reduce) {
.glass {
background: rgba(27, 23, 64, 0.94);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}Tuning the values
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
blur() | 12px to 24px | Lower and the background shows through as a smudge that fights the text. Much higher and you pay for it in scrolling performance with little visible gain. |
| Fill opacity | 0.10 to 0.25 | Lower and text loses contrast. Higher and the panel looks like frosted plastic rather than glass. |
| Border opacity | 0.20 to 0.40 | Without the edge, panels melt into each other and into pale parts of the background. |
saturate() | 120% to 180% | Without it, blurred colours turn muddy and the glass looks dirty. |
When it works
- Floating elements over rich imagery, such as a header over a hero photo or a card on a map.
- A few layers at most, so the effect stays special.
- Brands that want to feel light, modern and a little premium.
When to avoid it
- Long reading content, forms and checkout, where legibility matters more than mood.
- Pages where the background is changeable, such as user-uploaded photos, so you can’t control contrast.
- Sites that need to run smoothly on older, low-powered phones.
Where glass is going
Apple’s Liquid Glass
Apple introduced Liquid Glass at WWDC in June 2025 as the new look across iOS 26, iPadOS 26 and macOS Tahoe 26. It takes the glassmorphism idea further. Rather than only blurring what’s behind it, Liquid Glass bends light at its edges, picks up highlights as you move, and shifts its tint to suit the content underneath. Controls float above the content and shrink out of the way as you scroll.
Legibility was the main complaint, and it’s a useful lesson for anyone using glass on the web. In iOS 26.1 Apple added a choice between Clear and Tinted, where Tinted makes the glass more opaque and adds contrast.
Liquid glass has its own guide, which goes further into how it works and how to switch it between Clear and Tinted on an iPhone. Here we stick to what it means for glassmorphism on the web.
| Glassmorphism | Liquid Glass | |
|---|---|---|
| Background | Blurred | Blurred and bent at the edges |
| Light | A static border | Highlights that move |
| Colour | A fixed tint | Adapts to what’s behind it |
| Shape | Fixed panels | Controls that morph and shrink |
Getting close on the web
You can get part of the way there. CSS handles the blur and the tint, and layered inset shadows give a convincing light edge. True refraction needs an SVG displacement filter applied through backdrop-filter: url(), which only works in Chromium-based browsers, so treat it as an extra and keep the plain blur as the fallback. The bar below is plain CSS.
.liquid {
background: rgba(255, 255, 255, 0.08);
-webkit-backdrop-filter: blur(6px) saturate(180%);
backdrop-filter: blur(6px) saturate(180%);
border-radius: 999px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.6), /* top highlight */
inset 0 -1px 0 rgba(255, 255, 255, 0.15), /* bottom rim */
inset 0 0 24px rgba(255, 255, 255, 0.1), /* inner glow */
0 10px 30px rgba(0, 0, 0, 0.3); /* lift */
}
@media (prefers-reduced-transparency: reduce) {
.liquid {
background: rgba(15, 23, 42, 0.9);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}What to check when you review a glassmorphism site
Glass looks great in a design file, where the background never moves. These are the things that tend to break once it’s live, in a real browser, on a real phone.
.glass p1. Text over the brightest part of the background
Contrast changes as the background shifts behind the panel. Check body text reaches 4.5:1 where the lightest colour sits behind it, not just where it looks fine.
a:focus-visible2. Focus outlines on every control
A thin white outline disappears on light glass. Tab through the page with a keyboard and make sure you can always see where you are.
@supports not (backdrop-filter)3. A fallback without blur
Where blur isn’t available or is switched off, the panel should still be readable. A missing fallback leaves white text on a nearly clear panel.
.glass { border }4. Panel edges on pale sections
The white edge that defines a panel vanishes over light parts of the page. Scroll the whole page and check every panel still has a visible edge.
.modal .glass5. Glass stacked on glass
Menus, modals and tooltips on top of glass panels muddy both layers. Open every overlay and check the text on the top layer.
body6. Scrolling on a mid-range phone
Large blurred areas are expensive to draw. Test on a real, older phone rather than a new laptop and look out for stuttering when you scroll.
@media (prefers-reduced-transparency)7. Reduced transparency
Some people turn transparency down in their device settings. Where the browser supports it, the site should switch to solid panels for them. Only Chrome and Edge support this so far, so test it there.
.hero img8. Real content behind the glass
Designs are approved with the perfect hero photo. Swap in the client’s real images and check the text on top still reads.
Reviewing with clients
Notes on exactly the panel that’s hard to read
Contrast problems on glass depend on where the panel sits and which device it’s on, so "the text is hard to read" in an email doesn’t get you far. With ClickNote, clients click directly on elements of the website and leave a note, without creating an account or installing a browser extension.
Send your client a review link for the page.
They click the paragraph they can’t read and say what’s wrong.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
I can’t read this line where it sits over the yellow on my phone.
mobile · Safari on iPhone - 390 x 844
.d-card > .d-textReviewing a site in one of these styles?
Send your client a review link and they can click directly on elements of the website and leave a note, without creating an account or installing a browser extension. You get the selector, a screenshot and their device with every note.
14-day free trial. No card needed. See pricing.