Claymorphism
黏土拟态
Soft corners, colored highlights and inset shadows give a shape the volume of molded clay.
Where to use it
Add depth to a playful badge, icon or onboarding illustration. Use a colored highlight and a wide shadow on large, rounded shapes so their volume survives at small sizes.
Practical example
A children’s reading app shows a large mint-green clay book in the illustration for finishing a first story. A bright inner top edge and a darker base make the book look hand-shaped, with the completion text on a plain area beside it.
AI prompt
Style [target tile] with Claymorphism. Use a rounded silhouette and a colored surface, with inset highlights on the top edge and a wide soft inset shadow below. Pair it with a subtle cast shadow and keep overlaid text clearly legible.
Example code
Save the standalone HTML as a file and open it in your browser. It uses the same code as the preview.
View HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Claymorphism</title>
<style>
:root {
color-scheme: dark;
--demo-bg: #171629;
--demo-ink: #f8f5ff;
--demo-accent: #b9a6ff;
--demo-muted: #bfbbd3;
font-family: system-ui, sans-serif;
color: var(--demo-ink);
background: var(--demo-bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
.demo {
display: grid;
place-items: center;
align-content: center;
min-height: 100vh;
padding: 14px;
overflow: hidden;
background: radial-gradient(ellipse at 50% 24%, #28233f, var(--demo-bg) 78%);
}
.demo-button {
border: 1px solid #ffffff3d;
border-radius: 7px;
background: #ffffff12;
color: var(--demo-ink);
padding: 6px 11px;
font-size: 12px;
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--demo-accent);
outline-offset: 3px;
}
.visual-specimen {
width: min(100%, 290px);
height: 124px;
display: grid;
place-items: center;
position: relative;
isolation: isolate;
}
.clay-shape {
display: flex; justify-content: center; align-items: center; gap: 10px;
width: 119px; height: 76px; transform: rotate(-7deg);
border-radius: 26px 31px 23px 27px; background: #f5a291;
box-shadow: inset 5px 5px 13px #ffe2c9, inset -9px -11px 16px #bb547c, 3px 15px 22px -5px #a7496f81;
}
.clay-shape i { width: 12px; height: 14px; border-radius: 50%; background: #a35572; box-shadow: inset -2px -2px 2px #e1848e; }
</style>
</head>
<body>
<main class="demo">
<div class="visual-specimen" aria-hidden="true"><div class="clay-shape"><i></i><i></i></div></div>
</main>
</body>
</html>Original example by UI Skills