适合场景
枯山水 / 日式 / 禅
日本枯山水庭园的数字化诠释,以砂纹、石组、苔藓为灵感,追求极致静谧与冥想感。沙白与苔绿的搭配传递出自然之道的宁静力量。
适合场景
枯山水 / 日式 / 禅
设计重点
使用沙白色背景 bg-[#f5f3ee]
注意事项
禁止使用明亮鲜艳的色彩
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 枯山水
style_slug: zen-garden
style_source: /styles/zen-garden
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
You are designing in Zen Garden (Karesansui) style.
- Sand-white backgrounds: #f5f3ee, #ede9e1
- Moss-green primary text: #4a5548
- Muted natural accents: moss #8a9a7b, sand #c4bba8, stone #7a7062
- Always use serif fonts with light weight (font-serif font-light)
- Extreme whitespace: py-32, generous gaps between all sections
- Ultra-thin borders: border-[#c4bba8]/30
- Very slow transitions: duration-700 or longer
- No bright colors, no heavy borders, no fast animations
- Think raked sand patterns, carefully placed stones, quiet moss
- Every element should feel like it was placed with meditative intention
Animation & Interaction Rules:
- Meditative Slowness: 交互必须缓慢克制,使用 `duration-700` 到 `duration-1000` 与 `ease-in-out`。
- Zero Displacement: 禁止使用 `translate`、`rotate`,避免任何物理位移动效;焦点应通过显隐与色阶变化表达。
- Ephemeral Fades: 仅使用低对比度的颜色加深、透明度浮现、或极淡阴影淡入淡出,不做弹跳与高对比闪烁。
- Quiet Focus: 文本可默认半透明(如 `text-[#4a5548]/70`),hover/focus 时缓慢趋于清晰,保持冥想式节奏。
绝对禁止:
- 禁止使用明亮鲜艳的色彩
- 禁止使用厚重边框和粗线条
- 禁止使用快速动画和弹跳效果
- 禁止密集排列元素,留白是核心
必须遵守:
- 使用沙白色背景 bg-[#f5f3ee]
- 苔藓绿作为重点色 text-[#8a9a7b]
- 极致留白,慷慨的垂直间距 py-32
- 纤细自然的边框 border-[#c4bba8]/30
- 衬线字体搭配轻字重 font-serif font-light
- 非常缓慢的过渡动画 transition duration-700
---
# Zen Garden (枯山水) Design System
> 日本枯山水庭园的数字化诠释,以砂纹、石组、苔藓为灵感,追求极致静谧与冥想感。沙白与苔绿的搭配传递出自然之道的宁静力量。
## 核心理念
枯山水(Karesansui)是日本禅宗庭园的最高表现形式。
核心理念:
- 以砂代水:白砂上的纹路象征水面的涟漪与波纹,无水却见水
- 石组之美:精心放置的石组代表山岳与岛屿,以少胜多
- 苔藓之生:苔绿是时间沉淀的痕迹,是静中有动的生命力
- 冥想之境:整座庭园是一个供人静观、内省的空间
- 借景与留白:将周围自然纳入构图,空间本身即是表达
设计原则:
- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调
- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级
- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈
- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验
- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-[#c4bba8]/30
圆角: rounded-none
```
### 阴影
```
小: shadow-none
中: shadow-sm
大: shadow-sm
悬停: hover:shadow-sm
聚焦: focus:ring-1 focus:ring-[#8a9a7b]/20
```
### 交互效果
```
悬停位移: (无)
悬停缩放: (无)
悬停透明度: (无)
过渡动画: transition-colors duration-700
按下状态: active:opacity-80
```
### 字体
```
标题: font-serif font-light tracking-wide
正文: font-serif font-light
等宽: font-mono font-light
```
### 字号
```
Hero: text-3xl md:text-5xl lg:text-6xl
H1: text-2xl md:text-4xl
H2: text-xl md:text-2xl
H3: text-lg md:text-xl
正文: text-sm md:text-base
小字: text-xs
```
### 间距
```
Section: py-24 md:py-32 lg:py-40
容器: px-8 md:px-16 lg:px-24
卡片: p-8 md:p-10
小间距: gap-6
中间距: gap-10
大间距: gap-16
```
### 颜色角色
```
背景主色: bg-[#f5f3ee]
背景辅色: bg-[#ede9e1]
背景强调色: bg-[#8a9a7b]/10, bg-[#c4bba8]/10, bg-[#7a7062]/10
正文主色: text-[#4a5548]
正文辅色: text-[#7a7062]
正文弱化色: text-[#c4bba8]
按钮主色: bg-transparent border-b border-[#4a5548]/25 text-[#4a5548]
按钮辅色: bg-transparent border-b border-[#c4bba8] text-[#7a7062]
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `bg-black`
- `bg-gray-900`
- `bg-slate-900`
- `font-black`
- `font-extrabold`
- `font-bold`
- `border-2`
- `border-4`
- `border-[3px]`
- `border-[4px]`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `bg-gradient-to-r`
- `bg-gradient-to-b`
- `text-6xl`
- `text-7xl`
### 禁止的模式
- 匹配 `^bg-(?:black|gray-9|slate-9)`
- 匹配 `^font-(?:black|extrabold|bold)$`
- 匹配 `^shadow-(?:lg|xl|2xl)$`
- 匹配 `^bg-gradient`
- 匹配 `^animate-(?:bounce|spin|pulse)$`
- 匹配 `^text-(?:[6-9]xl|\dxl)$`
- 匹配 `^border-(?:[2-9]|\[\d+px\])$`
- 匹配 `^bg-(?:red|blue|yellow|pink|orange|purple)-`
### 禁止原因
- `bg-black`: Zen garden uses natural sand/stone tones, not darkness
- `font-bold`: Only light and extralight weights convey meditative calm
- `shadow-lg`: Shadows must be minimal or absent for quiet aesthetic
- `bg-gradient-to-r`: No gradients; use flat, natural tones only
- `animate-bounce`: No energetic animations; only very slow transitions allowed
- `border-2`: Thick borders disrupt the delicate zen garden balance
- `bg-red-500`: Bright colors violate the muted natural palette
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
bg-transparent
transition-colors
duration-700
```
### 卡片必须包含
```
transition-colors
```
### 输入框必须包含
```
bg-transparent
focus:outline-none
```
---
## [COMPARE] Zen Garden 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="bg-transparent transition-colors duration-700 bg-transparent border-b border-[#4a5548]/25 text-[#4a5548]">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="transition-colors p-8 md:p-10">
<h3 class="font-serif font-light tracking-wide text-lg md:text-xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="bg-transparent focus:outline-none" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Zen Garden 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-[#f5f3ee] text-[#4a5548] border border-[#c4bba8]/30 px-8 md:px-16 lg:px-24">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-10">
<a href="/" class="font-serif font-light tracking-wide text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-10 font-serif font-light text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-[#8a9a7b]/10 text-[#4a5548] py-24 md:py-32 lg:py-40 px-8 md:px-16 lg:px-24">
<div class="max-w-4xl mx-auto">
<h1 class="font-serif font-light tracking-wide text-3xl md:text-5xl lg:text-6xl">
{HEADLINE}
</h1>
<p class="font-serif font-light text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="bg-transparent transition-colors duration-700 bg-transparent border-b border-[#4a5548]/25 text-[#4a5548]">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-[#f5f3ee] text-[#4a5548] py-24 md:py-32 lg:py-40 px-8 md:px-16 lg:px-24">
<div class="max-w-6xl mx-auto">
<h2 class="font-serif font-light tracking-wide text-xl md:text-2xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10">
<!-- Card template - repeat for each card -->
<div class="transition-colors p-8 md:p-10">
<h3 class="font-serif font-light tracking-wide text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-serif font-light text-sm md:text-base text-[#c4bba8]">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="bg-transparent focus:outline-none" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#ede9e1] text-[#7a7062] py-24 md:py-32 lg:py-40 px-8 md:px-16 lg:px-24">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-16">
<div>
<span class="font-serif font-light tracking-wide text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-serif font-light text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-serif font-light tracking-wide text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-serif font-light text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Zen Garden 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `bg-transparent transition-colors duration-700`
- [ ] 卡片包含: `transition-colors`
- [ ] 输入框包含: `bg-transparent focus:outline-none`
### 禁止项检查
- [ ] 没有使用 `bg-black`
- [ ] 没有使用 `bg-gray-900`
- [ ] 没有使用 `bg-slate-900`
- [ ] 没有使用 `font-black`
- [ ] 没有使用 `font-extrabold`
- [ ] 没有使用 `font-bold`
- [ ] 没有使用 `border-2`
- [ ] 没有使用 `border-4`
### 风格规则检查
- [ ] 使用沙白色背景 bg-[#f5f3ee]
- [ ] 苔藓绿作为重点色 text-[#8a9a7b]
- [ ] 极致留白,慷慨的垂直间距 py-32
- [ ] 纤细自然的边框 border-[#c4bba8]/30
- [ ] 衬线字体搭配轻字重 font-serif font-light
### 风格漂移检查
- [ ] 没有违反:禁止使用明亮鲜艳的色彩
- [ ] 没有违反:禁止使用厚重边框和粗线条
- [ ] 没有违反:禁止使用快速动画和弹跳效果
- [ ] 没有违反:禁止密集排列元素,留白是核心
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Zen Garden
---
## [EXAMPLES] 示例 Prompt
### 1. SaaS 着陆页
生成 枯山水风格的 SaaS 产品着陆页
```
Create a SaaS landing page using Zen Garden style with hero section, feature grid, testimonials, pricing table, and footer.
```
### 2. 作品集展示
生成 枯山水风格的作品集页面
```
Create a portfolio showcase page using Zen Garden style with project grid, about section, contact form, and consistent visual language.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- 使用明亮鲜艳的色彩
- 使用厚重边框和粗线条
- 使用快速动画和弹跳效果
- 密集排列元素,留白是核心
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 Inter / Roboto / Geist 等过度使用的字体
- [ ] 没有嵌套卡片(卡片里面套卡片)
- [ ] 没有在彩色背景上放灰色文字
- [ ] 正文对比度满足 WCAG AA(≥4.5:1)
- [ ] 没有 bounce / elastic 缓动曲线
- [ ] 动效有 prefers-reduced-motion 备选方案
- [ ] 正文行宽不超过 65-75 个字符
- [ ] 没有单侧粗边框装饰(border-left/right accent stripe)
- [ ] 没有渐变文字(background-clip: text)
- [ ] 没有把玻璃态(glassmorphism)当作默认风格
- [ ] 没有 tiny uppercase tracked eyebrow 放在每个 section 标题上面
- [ ] 禁止使用明亮鲜艳的色彩
- [ ] 禁止使用厚重边框和粗线条
- [ ] 禁止使用快速动画和弹跳效果
- [ ] 禁止密集排列元素,留白是核心更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
枯山水按钮,透明底色搭配细底线
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* Zen Garden (Karesansui) */
:root {
--zen-bg: #f5f3ee;
--zen-surface: #ede9e1;
--zen-text: #4a5548;
--zen-muted: #7a7062;
--zen-moss: #8a9a7b;
--zen-sand: #c4bba8;
--zen-stone: #7a7062;
--zen-border: #c4bba8;
}
@keyframes zen-garden-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes zen-garden-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.zen-garden-card {
position: relative;
overflow: hidden;
}
.zen-garden-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(74, 85, 72, 0.05), transparent);
pointer-events: none;
}
.zen-garden-card:hover::before {
opacity: 1;
}
.zen-garden-gradient {
background: linear-gradient(135deg, #4a5548, #8a9a7b);
}
.zen-garden-gradient-text {
background: linear-gradient(135deg, #4a5548, #8a9a7b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.zen-garden-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(74, 85, 72, 0.08);
}
.zen-garden-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.zen-garden-animate-in {
animation: zen-garden-fade-in 0.5s ease-out both;
}
.zen-garden-focus { outline: 2px solid var(--zen-garden-primary, currentColor); outline-offset: 2px; }
/* Responsive utilities */
@media (prefers-reduced-motion: reduce) {
.zen-garden-animate-in {
animation: none;
}
}
@media (min-width: 768px) {
.zen-garden-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}
/* Print styles */
@media print {
.zen-garden-gradient,
.zen-garden-frosted {
background: none;
backdrop-filter: none;
}
}IDE 集成
下载 AI 编码助手的配置文件,使其按照此风格生成代码。
风格包
获取完整的可机器读取风格资源,包括 Design Tokens、Tailwind 预设、CSS 变量和 shadcn/ui 主题。
Metadata
Style metadata including version information
Design Tokens
Figma / Style Dictionary / Tokens Studio 兼容
Tailwind Preset
Tailwind CSS 主题预设,可直接在配置中引用
Global CSS
包含 CSS 变量和基础样式
shadcn Theme
shadcn/ui 主题配置
CSS Variables
纯 CSS 变量,适用于任何项目
SKILL.md
可加载到 Cursor / Claude Code / VS Code 的技能包
枯山水(Karesansui)是日本禅宗庭园的最高表现形式。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: F - 不合格
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#4a5548 / #f5f3ee | 7.06:1 | ||
| Secondary text on background | /#7a7062 / #f5f3ee | 4.38:1 | ||
| Muted text on background | /#c4bba8 / #f5f3ee | 1.72:1 | ||
| Text on secondary background | /#4a5548 / #ede9e1 | 6.46:1 | ||
| Secondary text on secondary | /#7a7062 / #ede9e1 | 4.01:1 | ||
| Text on accent 1 | /#4a5548 / #8a9a7b | 2.6:1 | ||
| Alt text on accent 1 | /#7a7062 / #8a9a7b | 1.62:1 | ||
| Text on accent 2 | /#4a5548 / #c4bba8 | 4.11:1 | ||
| Alt text on accent 2 | /#7a7062 / #c4bba8 | 2.55:1 | ||
| Text on accent 3 | /#4a5548 / #7a7062 | 1.61:1 | ||
| Alt text on accent 3 | /#7a7062 / #7a7062 | 1:1 |
可读性
分数
80/100
字号
text-sm md:text-base
字重
font-serif font-light tracking-wide
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。