Neumorphism, glassmorphism and claymorphism are three soft, depth-based UI styles built almost entirely from CSS shadows and filters. Glassmorphism is translucent and blurred, made for panels over colourful backgrounds. Neumorphism makes elements look pressed out of a same-coloured surface. Claymorphism gives elements their own colour and a puffy, inflated 3D look.
They are easy to confuse and easy to misuse. This comparison shows how each one works in CSS, where each fits, and the accessibility and performance trade-offs, so you can pick the right one for a project.
Key takeaways
- Glassmorphism: semi-transparent background plus
backdrop-filter: blur(). Best over imagery and gradients. - Neumorphism: element and page share one colour, with a light and a dark shadow. Lowest contrast of the three.
- Claymorphism: a coloured element with one outer and two inner shadows. Playful and stands out from the page.
- All three need a contrast check. Neumorphism is the most likely to fail WCAG’s 3:1 rule for controls.
- Use one style as an accent, not for every element on the page.
The three styles side by side
| Glassmorphism | Neumorphism | Claymorphism | |
|---|---|---|---|
| Look | Frosted glass | Extruded from the surface | Soft, inflated clay |
| Key CSS | backdrop-filter + transparent background | Two opposing box-shadows | One outer + two inset shadows |
| Background needs | Colourful or detailed | Same colour as the element | Any; works on plain pages |
| Best for | Navigation, modals, overlays on images | Secondary controls, toggles, decorative panels | Landing pages, onboarding, illustrations |
| Accessibility risk | Text contrast varies with what’s behind | Low contrast edges and states | Light colours may need dark text |
| Performance | Blur has a cost on large or animated areas | Cheap | Cheap |
Glassmorphism
Glass panels show the content behind them, softened. The effect comes from backdrop-filter, which blurs whatever sits behind the element, plus a semi-transparent tint and a thin light border:
.glass {
background: rgba(255, 255, 255, 0.15);
-webkit-backdrop-filter: blur(14px) saturate(160%);
backdrop-filter: blur(14px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 20px;
}
It only works when there’s something interesting behind the panel. Over a flat colour it looks like a plain transparent box. The full details, including browser support and the nesting quirk, are in the glassmorphism guide.
Neumorphism
Neumorphism, short for “new skeuomorphism”, makes elements look extruded from or pressed into the page. The element and its background must be the same colour. A dark shadow on one side and a light shadow on the other suggest a light source in one corner:
.neu {
background: #e0e5ec;
border-radius: 20px;
box-shadow:
9px 9px 16px #a3b1c6,
-9px -9px 16px #ffffff;
}
.neu:active {
box-shadow:
inset 6px 6px 10px #a3b1c6,
inset -6px -6px 10px #ffffff;
}
The style’s strength is also its weakness: elements barely stand out from the page. Buttons defined only by soft shadows often fall below the 3:1 contrast WCAG asks for interface components, and the difference between pressed and unpressed can be too subtle to see.
Claymorphism
Claymorphism gives each element its own colour, which stands out from the page, and shapes it with three shadows: an outer drop shadow to lift it, a dark inner shadow at the bottom and a light inner shadow at the top for a rounded surface:
.clay {
background: #8ec5ff;
border-radius: 32px;
box-shadow:
0 18px 30px rgba(52, 96, 160, 0.35),
inset 0 -10px 18px rgba(30, 70, 140, 0.35),
inset 0 10px 18px rgba(255, 255, 255, 0.6);
}
Large corner radii and bold, rounded type complete the look. Because clay elements have their own colour, they are easier to see than neumorphic ones, but light clay colours often need dark text to pass contrast.
Which one should you use?
- Choose glassmorphism when content sits on top of photos, video or rich gradients: sticky headers, modals, media controls, hero cards.
- Choose neumorphism for a calm, monochrome interface with a few tactile controls, such as a settings panel or a music player, and add clear labels, icons and focus states.
- Choose claymorphism for friendly, playful brands: landing pages, onboarding steps, feature cards and illustrations.
- Choose none of them for dense data, long reading or forms with many fields. Flat surfaces with a soft layered shadow are clearer there.
Tip: Whichever style you choose, run every text and control colour through a contrast check. The contrast checker tests both the 4.5:1 text rule and the 3:1 rule for interface components; the WCAG contrast guide explains them.
Making them accessible
- Glass: test text against the lightest and darkest areas behind the panel, and raise the tint opacity behind body text. Respect
prefers-reduced-transparencywhere supported. - Neumorphism: give buttons a visible border, icon or label, not just a shadow, and make focus states obvious with an outline.
- Claymorphism: check text contrast on each clay colour, and keep body text out of heavily shaded areas.
- All three: don’t rely on depth alone to show state. Pair pressed or selected states with a colour, icon or text change.
Can you combine them?
Sparingly. A glass navigation bar over a hero image can sit happily above clay feature cards further down the page, because each style is doing a different job in a different place. Problems start when two styles compete in the same area: neumorphic buttons inside a glass panel, for example, lose the matching background that neumorphism depends on.
A simple rule is one expressive style per section, with plain, flat components for everything people need to read or fill in.
Try each style
The quickest way to decide is to see your own colours in each style. Each has its own generator: the glassmorphism generator previews glass over three backdrops, the neumorphism generator offers flat, concave, convex and pressed shapes with a movable light source, and the claymorphism generator lets you dial in depth, rounding and highlight. All three give you CSS to copy.


