Claymorphism: what it is, where it came from, and CSS for clay cards.
By Max Zeshut, Tech Lead · Updated 2026-11-17
The short answer
Claymorphism is a UI style of soft, puffy shapes that look moulded from clay: large rounded corners, pastel fills, one soft outer shadow and two inner shadows, light at the top left and dark at the bottom right. Designer Michał Malewicz of Hype4 Academy named it in late 2021.
Where it came from.
- Around 2020, the -morphisms. Michał Malewicz, the designer behind Hype4 Academy, wrote the articles that put neumorphism (soft shapes pressed out of a same-coloured background) and glassmorphism into wide use. Neumorphism was criticised for low contrast and edges too faint to see.
- 2021, fluffy 3D everywhere. 3D tools such as Spline made inflated, rounded 3D shapes easy to produce, and they spread through illustration, icon sets and NFT art. Malewicz credits Pitch's key visuals with taking the look mainstream, followed by illustrators and icon makers such as Icons8.
- December 2021, the name. In “Claymorphism in user interfaces”, Malewicz gave the look a name and a recipe: two inner shadows for the clay shape, one larger outer shadow for depth. Hype4 Academy followed that month with a CSS walkthrough, and later with a claymorphism generator.
How to recognise it.
- Shapes that look inflated or pressed from clay: big radii, sometimes bulging edges, never sharp corners.
- Pastel or candy fills: peach, mint, lavender, sky blue, often on a pastel page of a different hue.
- An inner glow at the top left and an inner shade at the bottom right, so the face of each shape looks rounded.
- One soft outer shadow, often pushed down and to the side, so the shape floats above the page.
- 3D characters, icons and objects in the same soft material.
- Minimal type that lets the shapes do the talking.
Claymorphism and its neighbours.
| Style | How depth is made | Edge |
|---|---|---|
| Skeuomorphism | Real materials: leather, metal, paper, knobs | Drawn into the texture |
| Neumorphism | Same colour as the page, a light and a dark outer shadow | Faint: the shape grows out of the page |
| Glassmorphism | Translucent fill and background blur | A thin light border |
| Claymorphism | A different pastel fill, one outer shadow, two inner shadows | The colour change, plus a soft shadow |
| Neo-brutalism | A hard offset shadow with no blur | A thick black outline |
The original shadow recipe.
Malewicz's article gives the structure but no numbers. The values came with Hype4 Academy's own tools, read on 17 November 2026:
| Source | Outer shadow | Inner shadows | Radius |
|---|---|---|---|
| Hype4 generator, default | 35 px 35 px, 68 px blur, blue at 50% | −8 px −8 px 16 px blue at 60%; 0 11 px 28 px white | 26 px |
| Hype4 CSS walkthrough | 0 35 px, 68 px blur, violet at 42% | One: 0 −8 px 16 px lilac | 30 px |
| What a design! recipe | 8 px 8 px, 14 px blur | Light top left, dark bottom right, 8 px blur | 28 px card, 14 px button, 10 px input |
The early values use a 68 px blur, made for one card on its own. The recipe keeps card-row blur near 14 px, since soft clay reads well at 12 to 20 px, and flags any row of three or more cards that pairs a visible hairline border with a blur of 32 px or more.
How to build it.
These steps come from the What a design! recipe for clay, skeuomorphic and dimensional UI, checked in a Chrome demo. Every colour pair was computed with the WCAG 2 formula:
| Pair | Contrast | Needed |
|---|---|---|
| Ink #1E2B27 on clay surface #F3F9F6 | 13.77 : 1 | 4.5 : 1 |
| Ink on canvas #E6F0EC | 12.61 : 1 | 4.5 : 1 |
| Ink on lavender card #E9E2FF | 11.74 : 1 | 4.5 : 1 |
| Muted #44524D on clay surface | 7.69 : 1 | 4.5 : 1 |
| Muted on lavender card | 6.56 : 1 | 4.5 : 1 |
| Ink on peach button #FFB8A3 | 8.84 : 1 | 4.5 : 1 |
| White on blue button #2F5BEA | 5.52 : 1 | 4.5 : 1 |
| Input edge #5E7A70 on clay surface | 4.38 : 1 | 3 : 1 |
| Input edge on canvas | 4.01 : 1 | 3 : 1 |
| Clay surface on canvas (no boundary) | 1.09 : 1 | Not a boundary |
| Dark: ink #E8F0EC on surface #1D2426 | 13.59 : 1 | 4.5 : 1 |
| Dark: muted #A9B8B2 on surface | 7.64 : 1 | 4.5 : 1 |
| Dark: edge #7E948B on surface | 4.87 : 1 | 3 : 1 |
| Dark: ink #1E2B27 on mint button #7FD1B9 | 8.20 : 1 | 4.5 : 1 |
- Treat the shadow as mood. Anything a person has to find gets a real edge or fill: inputs a 2 px #5E7A70 edge, buttons a coloured fill with a dark label, not a surface-coloured pill that only a shadow separates from the page.
- Give every raised surface and control a 2 px transparent border and draw focus with an outline. In forced-colors mode the shadows are removed and the transparent border turns into a visible edge; in Chrome with forced colours emulated it rendered as a 2 px black line.
- Name a radius per role (card 28, media 20, control 14, input 10, badge pill) and an elevation per state (raise, inset, press), and use each the same way everywhere.
- Let a clay card hold unboxed content: headings, text and list rows separated by space. Controls can sit inside it; another raised box cannot.
- Draw UI icons as inline SVG in currentColor, so hover, dark mode and forced colours recolour them. Keep 3D renders for illustration.
- Show on, off and pressed by shape and text, not by a colour or shadow shift alone: a knob that moves, a label that says On or Off, and aria-pressed or a native checkbox carrying the state.
- In dark mode, replace dark drop shadows with lighter surfaces and a thin inset highlight, and re-pick the edge colour.
- Write card grids as repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) and cut padding to 1rem under 30rem, so nothing scrolls sideways at 320 px with text at 200%.
:root {
--canvas: #e6f0ec;
--surface: #f3f9f6; /* 1.09 : 1 on canvas: a look, not a boundary */
--lavender: #e9e2ff; /* a second pastel card fill */
--ink: #1e2b27; /* 13.77 : 1 on surface, 12.61 : 1 on canvas, 11.74 : 1 on lavender */
--muted: #44524d; /* 7.69 : 1 on surface, 7.05 : 1 on canvas, 6.56 : 1 on lavender */
--btn: #ffb8a3; /* peach; ink on it 8.84 : 1 */
--btn-ink: #1e2b27;
--primary: #2f5bea; /* white on it 5.52 : 1 */
--edge: #5e7a70; /* 4.38 : 1 on surface, 4.01 : 1 on canvas (controls need 3 : 1) */
/* Radius per role, not one radius for everything. */
--r-card: 28px;
--r-media: 20px;
--r-control: 14px;
--r-input: 10px;
--r-badge: 999px;
/* Elevation per state: one soft outer shadow (14 px blur) and two inner
shadows, light at the top left, dark at the bottom right. */
--raise: 8px 8px 14px rgb(30 43 39 / 0.16),
inset -4px -4px 8px rgb(30 43 39 / 0.08),
inset 4px 4px 8px rgb(255 255 255 / 0.85);
--press: inset 4px 4px 8px rgb(30 43 39 / 0.14),
inset -4px -4px 8px rgb(255 255 255 / 0.7);
}
body {
background: var(--canvas);
color: var(--ink);
}
/* The transparent border draws nothing here; in forced-colors mode the
shadows are removed and it becomes a visible system-colour edge. */
.clay-card {
background: var(--surface);
color: var(--ink);
border: 2px solid transparent;
border-radius: var(--r-card);
box-shadow: var(--raise);
padding: 1.5rem;
overflow-wrap: anywhere;
}
.clay-card p { color: var(--muted); }
.clay-card--lavender { background: var(--lavender); }
.clay-card img { border-radius: var(--r-media); }
/* Buttons carry a coloured fill and a dark label, not a surface-coloured pill. */
.clay-btn {
min-height: 44px;
max-inline-size: 100%;
padding: 0 1.25rem;
background: var(--btn);
color: var(--btn-ink);
border: 2px solid transparent;
border-radius: var(--r-control);
font-weight: 700;
box-shadow: var(--raise);
transition: box-shadow 120ms ease-out, transform 120ms ease-out;
}
.clay-btn:active {
box-shadow: var(--press);
transform: translateY(1px);
}
.clay-btn--primary { background: var(--primary); color: #fff; }
/* Inputs get a real 2 px edge; the shadow is only mood. */
.clay-input {
background: var(--surface);
color: var(--ink);
border: 2px solid var(--edge);
border-radius: var(--r-input);
box-shadow: inset 2px 2px 4px rgb(30 43 39 / 0.08);
}
/* Focus is an outline: it survives forced colours, shadows do not. */
:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 3px;
}
/* Cards wrap at 320 px even with text zoomed to 200%. */
.clay-grid {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
@media (max-width: 30rem) {
.clay-card { padding: 1rem; }
}
/* Dark clay: lighter surfaces and a thin highlight instead of dark shadows. */
@media (prefers-color-scheme: dark) {
:root {
--canvas: #14191a;
--surface: #1d2426;
--ink: #e8f0ec; /* 13.59 : 1 on surface, 15.30 : 1 on canvas */
--muted: #a9b8b2; /* 7.64 : 1 on surface */
--edge: #7e948b; /* 4.87 : 1 on surface */
--btn: #7fd1b9; /* mint; #1e2b27 on it 8.20 : 1 */
--btn-ink: #1e2b27;
--raise: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 6px 14px rgb(0 0 0 / 0.45);
--press: inset 0 2px 6px rgb(0 0 0 / 0.5);
}
.clay-card--lavender { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
.clay-btn { transition: none; }
}On standard components.
The same navigation, buttons, badge, card, stat, form field and toggle every style in the wiki is shown on, in claymorphism. Every colour pair passes WCAG contrast. Compare it with seven other styles on one page.
Plan your week in minutes.
One calm place for the team's tasks, notes and deadlines.
Weekly review
Every Friday, see what moved and what is stuck.
Read the weekly reviewIn the library.
No site in the library is tagged claymorphism yet, so this entry has no real examples to show. The nearest parent term, dimensional, covers depth made with light and material in general; its sites get their depth from lit 3D scenes, not from clay. Clay sites will appear here as they are added.
Pitfalls.
- Shadow as the only boundary. A pale card on a pale page is 1.09 : 1 in the recipe palette. That is fine for a card; an input or button needs an edge or fill at 3 : 1.
- Focus and state drawn with shadows. Forced-colors mode removes box-shadow, so a pressed look or a glow focus ring vanishes. Use an outline for focus and text or shape for state.
- White text on pastel. Pastels are light, so white labels on peach, mint or lavender fail. Keep text dark, or darken the fill until white passes, as the recipe's #2F5BEA does at 5.52 : 1.
- Clay inside clay. Raised cards inside raised cards turn a page into nested pillows and hide the hierarchy.
- One radius for everything. When cards, buttons, inputs and badges share one large radius, nothing tells them apart.
- Huge blurs on rows. A 68 px blur was made for one card. Three cards side by side with blurs of 32 px or more and a hairline border look muddy; keep row blurs near 14 px.
- Too childish for the subject. Malewicz's own advice: offset the toy look with minimal typography, strong accent colours and good contrast.
Questions.
What is claymorphism?
Claymorphism is a UI style of soft, puffy shapes that look moulded from clay: large rounded corners, pastel fills, one soft outer shadow and two inner shadows, light at the top left and dark at the bottom right. Designer Michał Malewicz of Hype4 Academy named it in late 2021.
Who coined claymorphism?
Michał Malewicz of Hype4 Academy, in an article he wrote in December 2021, “Claymorphism in user interfaces”. He named the inflated, fluffy 3D look that had spread through illustration and UI assets. He had earlier written about neumorphism and glassmorphism.
How do you make claymorphism in CSS?
A pastel fill, a large border-radius (around 28 px for a card), and a box-shadow with three layers: one soft outer shadow and two inset shadows, a light one at the top left and a darker one at the bottom right. Add a 2 px transparent border and draw focus with an outline, so the shape keeps an edge when shadows are removed.
What is the difference between claymorphism and neumorphism?
Neumorphism extrudes shapes from a background of the same colour with a light and a dark outer shadow, so its edges are faint. Claymorphism puts the shape on a different pastel colour, lifts it with one outer shadow and shapes it with two inner ones, so it floats above the page instead of growing out of it.
Is claymorphism accessible?
It can be. Text on pastel clay is easy to get above 4.5 : 1 with a dark ink. The traps are elsewhere: a soft shadow is not a boundary (the recipe's clay surface on its canvas is 1.09 : 1), shadows disappear in forced-colors mode, and states shown only by a pressed shadow are invisible to many people. Give controls a real edge, an outline focus and a text label for state.
Does claymorphism work in dark mode?
Yes, if the shapes are not pure black: Malewicz notes the inner shadows have to stay visible. Swap dark drop shadows for lighter surfaces and a thin inset highlight, and pick new text and edge colours for the dark theme rather than reusing the light ones.
Sources
- Michał Malewicz, “Claymorphism in User Interfaces”, Hype4 Academy (read 17 November 2026)
- Hype4 Academy, Claymorphism CSS Generator, which dates the original article to December 2021 (read 17 November 2026)
- Albert Walicki, “How To Create Claymorphism Using CSS”, Hype4 Academy, December 2021
- Angela Fabunan, “What is claymorphism in web design?”, LogRocket Blog, 22 May 2024
- MDN Web Docs, forced-colors
- What a design! recipe “Clay, skeuomorphic and dimensional UI with real edges and legible text”, checked in Chrome 156, contrast pairs computed with the WCAG 2 formula