claymorphism
它能做什么
Claymorphism 是一种让元素看起来像柔软的数字黏土做成的设计风格。它使用柔和的阴影和圆角,营造出俏皮、有触感的效果,就像在玩橡皮泥一样。
适用场景
- ✓当你希望按钮或方框看起来像是从屏幕中凸显出来时。
- ✓想要制作可爱、有趣的图标或插画时。
- ✓设计需要显得友好、亲切的界面时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/claymorphism/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
📦 包含此技能的技能包
可以这样问 AI
“帮我做一个 claymorphism 风格的按钮,上面写着“Click Me”。”
每周 5 个新技能,1 分钟读完。
工作原理
这种风格的做法是在元素的内侧和外侧都添加阴影。左上方使用浅色阴影,右下方使用深色阴影,营造出像黏土雕塑一样的立体感。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Claymorphism
"Like interacting with a pristine, digital claymation set. Soft, bubbly, and incredibly approachable."
When to Use
Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.
Core Principles
- Fluffy 3D Volume: Elements look like inflated balloons or soft clay blocks.
- Double Inner Shadows: The signature of claymorphism is an inset light shadow on the top-left and an inset dark shadow on the bottom-right, giving 3D volume to a solid shape.
- Continuous Curves: Maximum border-radius. No sharp edges exist in this universe.
Visual DNA
- Colors: Thrives on pastels and bright, friendly hues. Desert Mirage, Earth-Grounded Elegance, or custom pastel palettes work best.
- Typography: Playful, thick, rounded fonts (e.g.,
Sniglet,Fredoka One,Nunito). - Shapes: 'Squicles' (squares with heavily rounded, continuous corners) and perfect circles.
Web Implementation
- Distinct from Neumorphism: Claymorphism elements detach from the background (they have drop shadows) and use inner shadows to create volume, often using colors that contrast with the background.
- CSS Example:
.clay-card {
background-color: #F8B4A6; /* Soft coral */
border-radius: 32px;
padding: 40px;
/*
1. Outer drop shadow (detaches from background)
2. Inner top-left highlight (volume)
3. Inner bottom-right shadow (volume)
*/
box-shadow:
8px 8px 24px rgba(0, 0, 0, 0.15), /* Outer */
inset -8px -8px 16px rgba(0, 0, 0, 0.1), /* Inner dark */
inset 8px 8px 16px rgba(255, 255, 255, 0.4); /* Inner light */
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy */
}
.clay-card:hover {
transform: translateY(-5px) scale(1.02);
}
App Implementation
SwiftUI
struct ClayCard: View {
@State private var isPressed = false
var body: some View {
VStack(spacing: 16) {
Image(systemName: "cloud.sun.fill")
.font(.system(size: 48))
.foregroundColor(.white)
Text("Claymorphic Card")
.font(.system(size: 20, weight: .bold, design: .rounded))
.foregroundColor(.white)
}
.padding(40)
.background(Color(red: 0.97, green: 0.71, blue: 0.65)) // Soft coral
.cornerRadius(32)
// Outer shadow — detaches from background
.shadow(color: .black.opacity(0.15), radius: 12, x: 8, y: 8)
// Inner highlight (top-left) — faked with overlay
.overlay(
RoundedRectangle(cornerRadius: 32)
.stroke(
LinearGradient(
colors: [.white.opacity(0.5), .clear, .black.opacity(0.1)],
startPoint: .topLeading,
endPoint: .bottomTrailing
),
lineWidth: 3
)
)
// Bouncy spring animation on tap
.scaleEffect(isPressed ? 0.95 : 1.0)
.animation(.interpolatingSpring(stiffness: 300, damping: 10), value: isPressed)
.onTapGesture { }
.simultaneousGesture(
DragGesture(minimumDistance: 0)
.onChanged { _ in isPressed = true }
.onEnded { _ in isPressed = false }
)
}
}
- The "clay" volume comes from a gradient stroke overlay: white on top-left, dark on bottom-right.
- Use
.interpolatingSpring(stiffness: 300, damping: 10)for the bouncy feel — critical for clay aesthetics. - Background color should be pastel/bright but NOT the same as the parent (unlike neumorphism).
Flutter
class ClayCard extends StatefulWidget {
@override
State<ClayCard> createState() => _ClayCardState();
}
class _ClayCardState extends State<ClayCard> with SingleTickerProviderStateMixin {
double _scale = 1.0;
@override
Widget build(BuildContext context) {
return GestureDetector(
onTapDown: (_) => setState(() => _scale = 0.95),
onTapUp: (_) => setState(() => _scale = 1.0),
onTapCancel: () => setState(() => _scale = 1.0),
child: AnimatedScale(
scale: _scale,
duration: const Duration(milliseconds: 200),
curve: Curves.elasticOut, // Bouncy clay feel
child: Container(
padding: const EdgeInsets.all(40),
decoration: BoxDecoration(
…
常见问题
它和 Neumorphism 有什么区别?
Neumorphism 让元素与背景融为一体,而 Claymorphism 则通过阴影把元素从背景中凸显出来。
哪些颜色最合适?
粉彩色和明亮、欢快的色调效果很好,比如桃色、浅蓝色或柔和的黄色。
需要使用特定的字体吗?
Fredoka One、Nunito 这类圆润、较粗的字体,与 Claymorphism 柔和俏皮的风格很搭。
详情
作者的原始描述
Web and App implementation guide for Claymorphism. Trigger when user wants soft 3D elements, rounded shapes, and a playful, tactile appearance.
热度
- GitHub 星标
- 48k
- 排名
- #4385
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。