Skip to content
IndexRequest a UIAboutContact

Clay Puffy Buttons

Inflated, clay-like buttons and a toggle in four colours, with a puffiness slider and a satisfying press.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Soft 3D UI render in a claymorphism style: three inflated pastel peach buttons, one wide and two round with simple icons, plus a pill toggle switched on, all with very large radii, glossy top-left inner highlight, darker inner shadow at the bottom right and a soft peach-toned drop shadow, on a warm cream background, studio softbox light, tactile and playful. Variants: mint, lilac and sky blue. Negative: hard edges, harsh black shadows, text errors, grey tones, clutter. Reduced motion: static render.

About this pattern

Definition

Claymorphism makes interface elements look like soft clay or inflated plastic. It uses large radii, a soft outer shadow, a light inner highlight at the top left and a darker inner shadow at the bottom right, so the shape looks round and squeezable.

Purpose & UX principles

  • Radius of at least 20px, often fully round.
  • Outer shadow in a darker tone of the same colour, not grey.
  • Two inner shadows: light on the top left, dark on the bottom right.
  • On press, move down a pixel or two and soften the shadows so it feels squashed.

Interaction states

  • Four colour buttons and a Puffiness slider; press the buttons and the toggle.

Motion specification

  • Press compresses in 120ms.
  • Reduced motion: no movement, shadows still change.

Responsive behaviour

  • Keep label contrast high; pastel clay colours need dark text.
  • Use it for playful products and keep it to a few key controls.

Code

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Colour"><button data-p="0" aria-pressed="true">Peach</button><button data-p="1" aria-pressed="false">Mint</button><button data-p="2" aria-pressed="false">Lilac</button><button data-p="3" aria-pressed="false">Sky</button></div><div class="st" id="st"><button class="cb wide" type="button">Get started</button><button class="cb round" type="button" aria-label="Like">♥</button><button class="cb tg" id="tg" type="button" role="switch" aria-checked="true" aria-label="Toggle"><i></i></button></div><label class="rw">Puffiness <b id="pv">60%</b><input id="pf" type="range" min="10" max="100" value="60"></label></div>

Related patterns

Soft UI Raised & Pressed

↗
Soft UI Raised & PressedGlass & Tactile

Soft Rubber Squish

↗
Soft Rubber SquishSurfaces & Objects

Liquid Glass Button

↗
Liquid Glass ButtonGlass & Tactile