适合场景
粘土 / 3D / 可爱
Claymorphism
给这个风格评分柔软的粘土质感设计,通过超大圆角、内外阴影组合和柔和渐变,创造出可爱的 3D 立体效果,适合儿童应用和趣味产品。
适合场景
粘土 / 3D / 可爱
设计重点
使用超大圆角 rounded-3xl 或 rounded-full
注意事项
禁止使用尖锐的直角 rounded-none
design.md
一份文档说明这套风格的配色职责、字体规则、间距与组件构造。复制或下载后直接交给 Claude Code 或 Codex。
像捏出来的一块软糖:超大圆角、内外双阴影、按下去会扁。
Theme: light
粘土拟态是新拟物的可爱版本:形状必须圆到近乎球体(按钮 24px、卡片 32px、hero 容器 48px),每个元素同时拥有内外两层阴影——外层负责体积、内层负责高光与暗缘。颜色全部为粉彩(粉、奶油、薄荷、薰衣草、柠檬),饱和度低、明度高,靠色相而不是明度区分层级。交互最特别:按下时不是位移,而是横向拉宽 5%、纵向压扁 10% 并下沉 8px,像真正的粘土被按住。动效使用带回弹的弹簧曲线,让柔软被感知。
| Name | Value | Token | Role |
|---|---|---|---|
| Clay Pink | #f8b4d9 | --color-clay-pink | 主行动与主色块。整套系统的基准色相,其他颜色都围绕它取值。 |
| Cream | #fef3c7 | --color-cream | 卡片与分区底。比粉更浅,用来承载内容而不抢戏。 |
| Mint | #a7f3d0 | --color-mint | 成功与「新」语义,用于标签与徽标。 |
| Lavender | #c4b5fd | --color-lavender | 次级强调与信息块。与粉形成同明度的色相对比。 |
| Lemon | #fcd34d | --color-lemon | 提醒与数字高亮。出现频率最低,面积最小。 |
| Sky | #b6e9ff | --color-sky | 链接与可点击标记,是唯一偏冷的粉彩。 |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 800 | 48px | 1.15 | -0.01em | --text-display |
| heading | — | 700 | 34px | 1.2 | — | --text-heading |
| subheading | — | 700 | 24px | 1.3 | — | --text-subheading |
| body-lg | — | 400 | 18px | 1.6 | — | --text-body-lg |
| body | — | 400 | 15px | 1.6 | — | --text-body |
| label | — | 700 | 13px | 1.4 | 0.06em | --text-label |
Base unit: 8px Density: airy
| Name | Value | Token |
|---|---|---|
| 8 | 8px | --spacing-8 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| 96 | 96px | --spacing-96 |
| Element | Value |
|---|---|
| cards | 32px |
| buttons | 24px |
| inputs | 16px |
| hero-panels | 48px |
Role: 主行动按钮
粉色纵向渐变填充、白字、24px 圆角、无描边,字级 18px、字重 700、padding 16px 32px。阴影为四段组合:外阴影 8px 8px 16px 粉 50% 与 -8px -8px 16px 白 80%,内阴影 inset 4px 4px 8px 白 40% 与 inset -4px -4px 8px 深粉 20%。hover 时四段阴影各扩 2px 并上浮 4px;按下时横向缩放 1.05、纵向 0.9、下沉 8px,阴影收缩到 2px 档。过渡 300ms,弹簧缓动 cubic-bezier(0.34, 1.56, 0.64, 1)。
Role: 功能卡与内容卡
奶油到琥珀的斜向渐变、32px 圆角、无描边、内边距 32px。阴影为 12px 12px 24px 黑 8% 加两层内阴影(6px 6px 12px 白 60%、-4px -4px 8px 黑 5%)。标题 24px/700 深琥珀色。hover 时阴影各扩 4px、上浮 4px,过渡 300ms 弹簧。
Role: 表单输入
灰到浅灰的纵向渐变、16px 圆角、无描边、内边距 16px 24px、15px 字。基础状态就是凹陷的:inset 4px 4px 8px 黑 10% 与 inset -4px -4px 8px 白 90%。聚焦时内阴影加深到 6px 12px,并外扩一圈 4px 粉 30% 的光环。过渡 300ms 弹簧。
Role: 标签与状态徽标
全圆角、粉彩填充(薄荷、薰衣草或柠檬之一)、内部用一层 2px 内高光与 2px 内暗缘,字级 13px/700、padding 6px 14px。不描边、不加外阴影,靠内阴影保持粘土感。
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Cream Page | #fef3c7 | 页面底色 |
| 1 | Clay Card | #ffffff | 卡片(配渐变到粉彩) |
8px 8px 16px rgba(255,182,193,0.50), -8px -8px 16px rgba(255,255,255,0.80), inset 4px 4px 8px rgba(255,255,255,0.40), inset -4px -4px 8px rgba(219,112,147,0.20)12px 12px 24px rgba(0,0,0,0.08), inset 6px 6px 12px rgba(255,255,255,0.60), inset -4px -4px 8px rgba(0,0,0,0.05)2px 2px 4px rgba(255,182,193,0.30), -2px -2px 4px rgba(255,255,255,0.90), inset 4px 4px 8px rgba(219,112,147,0.25)3D 渲染的软质物体、圆润插画、粉彩渐变背景。允许把界面元素做成「实物」——按钮像糖果、卡片像积木。不使用锐利摄影、深色背景与几何线稿。
上限 1120px、容器内边距 24px,区块间距 96px,卡片间距 24px。元素之间至少留 24px,因为四段阴影会互相侵占。允许卡片轻微旋转(±2 度)增加手工感,但同屏不超过两张。
QUICK COLOR REFERENCE:
#7c3f58#fef3c7#ffffff#f8b4d9#c4b5fd#a7f3d0EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-clay-pink: #f8b4d9;
--color-cream: #fef3c7;
--color-mint: #a7f3d0;
--color-lavender: #c4b5fd;
--color-lemon: #fcd34d;
--color-sky: #b6e9ff;
/* Typography — Font Families */
--font-sans: 'Nunito', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 48px;
--leading-display: 1.15;
--tracking-display: -0.01em;
--text-heading: 34px;
--leading-heading: 1.2;
--text-subheading: 24px;
--leading-subheading: 1.3;
--text-body-lg: 18px;
--leading-body-lg: 1.6;
--text-body: 15px;
--leading-body: 1.6;
--text-label: 13px;
--leading-label: 1.4;
--tracking-label: 0.06em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-bold: 700;
--font-weight-extrabold: 800;
/* Spacing */
--spacing-unit: 8px;
--spacing-8: 8px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-96: 96px;
/* Layout */
--page-max-width: 1120px;
--section-gap: 96px;
--card-padding: 32px;
--element-gap: 24px;
--density: airy;
/* Border Radius */
--radius-cards: 32px;
--radius-buttons: 24px;
--radius-inputs: 16px;
--radius-hero-panels: 48px;
/* Surfaces */
--surface-cream-page: #fef3c7;
--surface-clay-card: #ffffff;
}
组件模板
粘土风格按钮,Q弹按压形变 + 弹簧缓动
指针交互气质
这套风格定制的指针交互——同一个光标,完全不同的性格。在舞台上移动鼠标感受它。
常见问题
/* Claymorphism 全局样式 */
:root {
--clay-pink: #f8b4d9;
--clay-cream: #fef3c7;
--clay-mint: #a7f3d0;
--clay-lavender: #c4b5fd;
--clay-lemon: #fcd34d;
--clay-shadow-light: rgba(255, 255, 255, 0.7);
--clay-shadow-dark: rgba(0, 0, 0, 0.08);
--clay-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* 基础粘土效果类 */
.clay {
border-radius: 24px;
box-shadow:
8px 8px 16px var(--clay-shadow-dark),
inset 4px 4px 8px var(--clay-shadow-light),
inset -2px -2px 4px var(--clay-shadow-dark);
}
/* 粘土按钮效果 — Q弹物理 */
.clay-button {
border-radius: 9999px;
box-shadow:
6px 6px 12px var(--clay-shadow-dark),
inset 3px 3px 6px var(--clay-shadow-light),
inset -2px -2px 4px var(--clay-shadow-dark);
transition: all 0.3s var(--clay-spring);
}
.clay-button:hover {
transform: translateY(-4px);
box-shadow:
10px 10px 20px var(--clay-shadow-dark),
inset 3px 3px 6px var(--clay-shadow-light),
inset -2px -2px 4px var(--clay-shadow-dark);
}
.clay-button:active {
transform: scaleX(1.05) scaleY(0.9) translateY(2px);
box-shadow:
2px 2px 4px var(--clay-shadow-dark),
inset 8px 8px 16px rgba(0, 0, 0, 0.15),
inset -2px -2px 4px var(--clay-shadow-light);
}
/* 粘土输入框(内凹效果) */
.clay-input {
border-radius: 16px;
box-shadow:
inset 4px 4px 8px var(--clay-shadow-dark),
inset -4px -4px 8px var(--clay-shadow-light);
transition: all 0.3s var(--clay-spring);
}
@keyframes claymorphism-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes claymorphism-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.claymorphism-card {
position: relative;
overflow: hidden;
}
.claymorphism-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(248, 180, 217, 0.05), transparent);
pointer-events: none;
}
.claymorphism-card:hover::before {
opacity: 1;
}
.claymorphism-gradient {
background: linear-gradient(135deg, #f8b4d9, #a7f3d0);
}
.claymorphism-gradient-text {
background: linear-gradient(135deg, #f8b4d9, #a7f3d0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.claymorphism-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(248, 180, 217, 0.08);
}
.claymorphism-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.claymorphism-animate-in {
animation: claymorphism-fade-in 0.5s ease-out both;
}相关风格
探索这些风格获取现成的 tokens 和组件。
粘土拟态 和 非对称网格 是最接近的两个方向。下表列出它们在配色、适用场景和标签上的实际差异,选之前先看这一栏。
| 维度 | 粘土拟态 | 非对称网格 |
|---|---|---|
| 主色 | #f8b4d9 | #0f0f0f |
| 辅助色 | #fef3c7 | #ffffff |
| 适合场景 | 粘土 / 3D / 可爱 | 非对称 / 网格 / 不规则 |
| 独有标签 | — | high-contrast |
Claymorphism(粘土拟态)是一种模拟粘土或橡皮泥质感的 UI 设计风格,通过超大圆角、内外阴影组合和柔和的渐变色彩,创造出柔软、可爱的 3D 立体效果。