Web design styles - depth and material
Claymorphism web design
Claymorphism makes cards and buttons look like soft, puffy shapes made from modelling clay. It uses pastel colours, big rounded corners and a mix of inner and outer shadows. Interest in it is growing fast, and it suits apps and brands that want to feel friendly and approachable.
A live example
This sample page is built with this page’s own CSS. Switch to the common mistake to see how quickly pastels and soft shadows wash out the content.
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: dark purple text on every pastel, a deep colour on the main button, and a solid focus outline that doesn’t get lost in the soft shadows.
What makes it claymorphism
Pastel fills
Soft pinks, blues, mints and yellows, usually one per card.
background: #ffd6e7Big rounded corners
Corners of 24px or more, so shapes look squeezed rather than cut.
border-radius: 32pxInner shadows
A light inner shadow at the top and a darker one at the bottom give the puffy look.
box-shadow: inset ...A soft drop shadow
A large, blurred outer shadow lifts the shape off the page.
12px 14px 28pxThe CSS
The look comes from three shadows layered on one element. The comments say what each one does, so you can tune them for your own colours.
.clay {
background: #ffd6e7;
border-radius: 32px;
box-shadow:
12px 14px 28px rgba(76, 29, 149, 0.18), /* soft drop shadow */
inset -8px -10px 18px rgba(76, 29, 149, 0.12), /* shade on the lower edge */
inset 8px 10px 18px rgba(255, 255, 255, 0.8); /* highlight on the upper edge */
}
.clay-button {
background: #7c3aed;
color: #ffffff;
border-radius: 999px;
box-shadow:
6px 8px 16px rgba(76, 29, 149, 0.2),
inset -4px -5px 10px rgba(0, 0, 0, 0.12),
inset 4px 5px 10px rgba(255, 255, 255, 0.6);
}
/* Dark text on pastel fills, never white */
.clay p { color: #4c1d95; }
.clay-button:focus-visible {
outline: 3px solid #2e1065;
outline-offset: 3px;
}Tuning the values
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
border-radius | 24px to 40px | Smaller and it looks like neumorphism. Much larger and content gets clipped at the corners. |
| Inner shadow strength | 0.08 to 0.2 opacity | Too strong and shapes look dented. Too weak and they look flat. |
| Drop shadow | Large and soft, tinted | A grey or black shadow looks dirty under pastels. Tint it with a darker version of your brand colour. |
| Text colour | A deep shade of the palette | Pale text on pastel is the most common failure. |
When it works
- Apps, onboarding and marketing for friendly consumer products.
- Children’s products, education and wellbeing brands.
- Icons, illustrations and hero elements, alongside a calmer layout.
When to avoid it
- Serious or corporate brands, such as finance or legal services.
- Dense interfaces with many small controls, where every shape competes for attention.
- Dark themes, where the soft shadows are hard to get right.
Similar, but not the same
Claymorphism vs neumorphism
The two are often confused, because both use soft shadows to create depth. Neumorphism pushes shapes out of a single background colour. Claymorphism gives each shape its own colour and makes it float above the page, which makes it much easier to see what’s what. There’s a full guide to neumorphism too.
| Neumorphism | Claymorphism | |
|---|---|---|
| Colour | Same as the background | Its own pastel fill |
| Depth | Pressed out of the page | Floating above the page |
| Shadows | Two outer shadows | Inner shadows plus a drop shadow |
| Corners | Rounded | Very rounded |
| Accessibility | Hard to get right | Easier, if the text is dark enough |
What to check when you review a claymorphism site
Claymorphism is friendlier to use than neumorphism, but it has its own problems, mostly with pale colours and shapes that all look clickable.
.clay p1. Pale text on pastels
Lilac or grey text on a pastel card usually fails. Check every card’s text reaches 4.5:1 against its own fill.
.clay2. Cards that look like buttons
When cards and buttons share the same puffy shadow, people try to click cards. Check that only clickable things look pressable, or make whole cards clickable.
:focus-visible3. Focus outlines
A thin outline gets lost among the soft shadows. Check focus is a solid, dark outline with an offset.
.clay-button4. White text on pale fills
White text on a pale purple or pink button fails contrast. Use a deep fill or dark text.
.clay img5. Corners that clip content
Big radii cut into images and text near the corners. Check cards with real images and longer copy.
img, svg6. Heavy 3D illustrations
The style is often paired with 3D renders. Check their file sizes and that they’re served at sensible dimensions.
@media (prefers-color-scheme: dark)7. Dark mode
The shadows are tuned for light backgrounds. If the site has a dark theme, check the cards don’t look muddy.
.clay { box-shadow }8. Shadows on long pages
Large layered shadows on many elements can slow scrolling on older phones. Check a long page on a real device.
Reviewing with clients
Notes on the text that’s too pale to read
Contrast problems on pastels are easy to miss on a bright monitor and obvious on a phone outdoors, which is exactly where clients will notice them. 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 text that’s hard to read and say where they were reading it.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
This text is really pale on the pink, I struggled to read it outside.
mobile · Safari on iPhone - 390 x 844
.d-card.c1 > .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.