适合场景
摄影 / 画廊 / 暗色
Dark Gallery
暗色调摄影画廊作品集风格:近黑背景让全出血图片成为绝对主角,温琥珀色点缀无信息,超轻极简排版安静退后。适合摄影师、电影人、视觉艺术家的作品展示。
适合场景
摄影 / 画廊 / 暗色
设计重点
全出血图片:在容器上用 overflow-hidden、图片上用 object-cover w-full h-full,容器 padding-0
注意事项
禁止使用彩色阴影(shadow-lg shadow-2xl)与渐变背景(bg-gradient-*)——破坏暗场纯净度
Showcase 入口
Showcase 页面的实时预览,点击查看完整体验。
配色方案
Primary
#0A0A0A
Secondary
#FFFFFF
Accent 1
#C4956A
Accent 2
#FFFFFF
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 暗色画廊风
style_slug: gallery-dark
style_source: /styles/gallery-dark
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
# Dark Gallery (暗色画廊风) Design System
> 暗色调摄影画廊作品集风格:近黑背景让全出血图片成为绝对主角,温琥珀色点缀无信息,超轻极简排版安静退后。适合摄影师、电影人、视觉艺术家的作品展示。
## 核心理念
暗色画廊风是"减法即策展"的设计实践——拿掉一切与作品争抢注意力的元素,只留下承载观看的框架。
核心理念:
- 暗场即画框:#0A0A0A 近黑背景不是"深色模式",而是实体画廊的暗场空间——让每一张照片从黑暗中浮现,像展厅里被聚光灯照亮的作品
- 全出血即尊重:图片撑满容器边缘,不设 padding、不加阴影、不设边框——让图像自身成为边界,让细节无所遁形
- 琥珀色即现场感:#C4956A 温琥珀色只用于日期、标签、图注与展签——就像暗室里那盏小暖灯,只照亮信息的轮廓,不照亮信息本身
- 克制即信任:超轻字重(font-light)、hairline 细线分隔、大间距、大字号字距(tracking-wider)——设计越退让,观看越专注
- 无衬线即当代:正文必须无衬线(font-sans),杜绝一切装饰性字体与华丽字形——像画廊导览册一样安静、精准、不打扰
设计原则:
- 色彩即氛围:#0A0A0A 底色创造沉浸暗场,#1A1A1A 用于卡片与容器的微妙分层,#2A2A2A 用于分隔线与边框的分界——视觉层次靠灰度堆叠完成,不靠色相变化
- 排版即呼吸:标题用超大字号、极轻字重、紧密行距制造视觉冲击;元信息用超小号、大写、大字号字距保持克制——两种节奏互为观照
- 图片即叙事:传统"标题在上、正文在下"的卡片布局在此消解——图片本身就是标题。caption 仅补充上下文:时间、地点、媒介、尺寸
- 网格即节奏:等宽网格排列作品缩略图,行与行之间预留呼吸感;hover 仅做微弱的亮度变化——让观看者自主选择目光的落点
- 转场即沉浸:页面切换与 lightbox 打开应当平滑、不抢戏——至少 300ms ease-out,像电影 fade 一样自然
这就是暗色画廊风:不是"深色版极简",而是"实体画廊体验的数字化"——把展厅的仪式感、暗场的沉浸感、展签的克制感,忠实翻译成像素。
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-[#2A2A2A]
圆角: rounded-sm
```
### 阴影
```
小: shadow-none
中: shadow-none
大: shadow-none
悬停: shadow-none
聚焦: shadow-none
```
### 交互效果
```
悬停位移: undefined
过渡动画: transition-all duration-300
按下状态: active:opacity-80
```
### 字体
```
标题: font-sans font-light tracking-tight text-white
正文: font-sans font-light text-white leading-relaxed
```
### 字号
```
Hero: text-5xl md:text-7xl lg:text-8xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-4xl
H3: text-lg md:text-xl
正文: text-sm md:text-base
小字: text-xs
```
### 间距
```
Section: py-16 md:py-24 lg:py-32
容器: px-6 md:px-8 lg:px-12
卡片: p-0
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `rounded-md`
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `font-serif`
- `font-bold`
- `font-semibold`
### 禁止的模式
- 匹配 `^rounded-(?:md|lg|xl|2xl|3xl|full)$`
- 匹配 `^shadow-(?:sm|md|lg|xl|2xl|inner)$`
- 匹配 `^bg-gradient`
### 禁止原因
- `rounded-md`: Dark Gallery caps radii at rounded-sm; full-bleed images must be square-cornered
- `rounded-lg`: Dark Gallery avoids rounded corners; images require sharp edges
- `rounded-full`: Dark Gallery never uses pill shapes; geometry must remain minimal
- `shadow-sm`: Dark Gallery surfaces are flat; depth comes from grayscale stacking, not elevation
- `shadow-lg`: Dark Gallery has no shadows in the dark field; elevation breaks immersion
- `bg-white`: White backgrounds puncture the immersive dark; use bg-[#0A0A0A] instead
- `bg-gray-50`: Light grays destroy the gallery atmosphere; use bg-[#1A1A1A] for elevated surfaces
- `font-serif`: Dark Gallery is contemporary sans-serif; serif belongs in academic contexts
- `font-bold`: Dark Gallery uses light weights only (font-light); bold is too aggressive for the aesthetic
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
border border-[#2A2A2A]
rounded-sm
font-light
tracking-wider
transition-all duration-300
```
### 卡片必须包含
```
bg-[#0A0A0A]
border border-[#2A2A2A]
rounded-sm
```
### 输入框必须包含
```
bg-[#0A0A0A]
border border-[#2A2A2A]
rounded-sm
font-light
text-white
focus:outline-none focus:border-[#C4956A] focus:ring-1 focus:ring-[#C4956A]/30
```
---
## [COMPARE] 错误 vs 正确对比
### 按钮
[WRONG] **错误示例**(使用了圆角和模糊阴影):
```html
<button class="rounded-lg shadow-lg bg-blue-500 text-white px-4 py-2 hover:bg-blue-600">
点击我
</button>
```
[CORRECT] **正确示例**(使用硬边缘、无圆角、位移效果):
```html
<button class="border border-[#2A2A2A] rounded-sm font-light tracking-wider transition-all duration-300 bg-[#ff006e] text-white px-4 py-2 md:px-6 md:py-3">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(使用了渐变和圆角):
```html
<div class="rounded-xl shadow-2xl bg-gradient-to-r from-purple-500 to-pink-500 p-6">
<h3 class="text-xl font-semibold">标题</h3>
</div>
```
[CORRECT] **正确示例**(纯色背景、硬边缘阴影):
```html
<div class="bg-[#0A0A0A] border border-[#2A2A2A] rounded-sm p-0">
<h3 class="font-sans font-light tracking-tight text-white text-lg md:text-xl">标题</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(灰色边框、圆角):
```html
<input class="rounded-md border border-gray-300 px-3 py-2 focus:ring-2 focus:ring-blue-500" />
```
[CORRECT] **正确示例**(黑色粗边框、聚焦阴影):
```html
<input class="bg-[#0A0A0A] border border-[#2A2A2A] rounded-sm font-light text-white focus:outline-none focus:border-[#C4956A] focus:ring-1 focus:ring-[#C4956A]/30 px-3 py-2 md:px-4 md:py-3" placeholder="请输入..." />
```
---
## [TEMPLATES] 页面骨架模板
使用以下模板生成页面,只需替换 `{PLACEHOLDER}` 部分:
### 导航栏骨架
```html
<nav class="bg-white border-b-2 md:border-b-4 border-black px-4 md:px-8 py-3 md:py-4">
<div class="flex items-center justify-between max-w-6xl mx-auto">
<a href="/" class="font-black text-xl md:text-2xl tracking-wider">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-8 font-mono text-sm md:text-base">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="min-h-[60vh] md:min-h-[80vh] flex items-center px-4 md:px-8 py-12 md:py-0 bg-{ACCENT_COLOR} border-b-2 md:border-b-4 border-black">
<div class="max-w-4xl mx-auto">
<h1 class="font-black text-4xl md:text-6xl lg:text-8xl leading-tight tracking-tight mb-4 md:mb-6">
{HEADLINE}
</h1>
<p class="font-mono text-base md:text-xl max-w-xl mb-6 md:mb-8">
{SUBHEADLINE}
</p>
<button class="bg-black text-white font-black px-6 py-3 md:px-8 md:py-4 border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px] transition-all text-sm md:text-base">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="py-12 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-black text-2xl md:text-4xl mb-8 md:mb-12">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-white border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] p-4 md:p-6 hover:shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:hover:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:-translate-y-1 transition-all">
<h3 class="font-black text-lg md:text-xl mb-2">{CARD_TITLE}</h3>
<p class="font-mono text-sm md:text-base text-gray-700">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 页脚骨架
```html
<footer class="bg-black text-white py-12 md:py-16 px-4 md:px-8 border-t-2 md:border-t-4 border-black">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-black text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-mono text-sm mt-4 text-gray-400">{TAGLINE}</p>
</div>
<div>
<h4 class="font-black text-lg mb-4">{COLUMN_TITLE}</h4>
<ul class="space-y-2 font-mono text-sm text-gray-400">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] 生成后自检清单
**在输出代码前,必须逐项验证以下每一条。如有违反,立即修正后再输出:**
### 1. 圆角检查
- [ ] 搜索代码中的 `rounded-`
- [ ] 确认只有 `rounded-none` 或无圆角
- [ ] 如果发现 `rounded-lg`、`rounded-md` 等,替换为 `rounded-none`
### 2. 阴影检查
- [ ] 搜索代码中的 `shadow-`
- [ ] 确认只使用 `shadow-[Xpx_Xpx_0px_0px_rgba(...)]` 格式
- [ ] 如果发现 `shadow-lg`、`shadow-xl` 等,替换为正确格式
### 3. 边框检查
- [ ] 搜索代码中的 `border-`
- [ ] 确认边框颜色是 `border-black`
- [ ] 如果发现 `border-gray-*`、`border-slate-*`,替换为 `border-black`
### 4. 交互检查
- [ ] 所有按钮都有 `hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px]`
- [ ] 所有卡片都有 hover 效果(阴影变色或位移)
- [ ] 都包含 `transition-all`
### 5. 响应式检查
- [ ] 边框有 `border-2 md:border-4`
- [ ] 阴影有 `shadow-[4px...] md:shadow-[8px...]`
- [ ] 间距有 `p-4 md:p-6` 或类似的响应式值
- [ ] 字号有 `text-sm md:text-base` 或类似的响应式值
### 6. 字体检查
- [ ] 标题使用 `font-black`
- [ ] 正文使用 `font-mono`
> CRITICAL: **如果任何一项检查不通过,必须修正后重新生成代码。**
---
## [EXAMPLES] 示例 Prompt
### 1. 摄影作品集主页
全出血图片网格、展览头部 hero、温琥珀色元信息的完整摄影作品集首页
```
Build a photography portfolio homepage in Dark Gallery style: a full-screen hero section with a large headline 'The Space Between' and a warm amber 'Featured Exhibition' label above it, a grid of full-bleed thumbnail cards (grid-cols-2 md:grid-cols-3) where each card shows a placeholder image with amber date/location metadata and a light caption below, a minimal gallery masthead nav with uppercase tracked navigation links, and a dark footer with amber-labeled contact info and opening hours. Use bg-[#0A0A0A] throughout, hairline borders, font-light sans-serif typography, and no shadows or gradients.
```
### 2. 展览专题页
单场展览详情页,含策展陈述、作品列表与参观信息
```
Design an exhibition feature page in Dark Gallery style: a large full-bleed hero image representing the exhibition, the exhibition title in oversized font-light text, a curatorial statement paragraph in text-[#666666] font-light, a horizontal scrollable row of full-bleed artwork thumbnails each with amber metadata (title, year, medium, dimensions), a visitor info section with amber-labeled fields (Location, Hours, Admission) in the dark footer, and a gallery masthead with a back link. Use rounded-sm on cards only, rounded-none on images, border-[#2A2A2A] hairlines throughout.
```
### 3. 艺术家简介页
艺术家详情页面:肖像、简历、作品节选与展览履历
```
Create an artist profile page in Dark Gallery style: a hero section with a large portrait image on the left and the artist name in oversized font-light text, a nationality and birth year in amber meta text, a biography paragraph in text-[#666666] font-light, a 'Selected Works' section with a grid of full-bleed thumbnail cards each having amber metadata (title, year, medium), an 'Exhibitions' timeline where each entry has an amber year label and gray venue text, separated by border-[#2A2A2A] hairlines, and a dark footer. No shadows, no gradients, no light backgrounds.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- 使用彩色阴影(shadow-lg shadow-2xl)与渐变背景(bg-gradient-*)——破坏暗场纯净度
- 亮色背景(bg-white bg-gray-50 bg-gray-100)——打破暗场沉浸感
- 彩色或明亮的分隔线:所有分隔线使用 border-[#2A2A2A] hairline 极细
- 衬线字体(font-serif)与粗重字重(font-bold font-semibold)——保持当代无衬线与轻量化
- 在图片周围添加 padding 或边框——图片必须全出血
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 标题上面
- [ ] 禁止使用彩色阴影(shadow-lg shadow-2xl)与渐变背景(bg-gradient-*)——破坏暗场纯净度
- [ ] 禁止亮色背景(bg-white bg-gray-50 bg-gray-100)——打破暗场沉浸感
- [ ] 禁止彩色或明亮的分隔线:所有分隔线使用 border-[#2A2A2A] hairline 极细
- [ ] 禁止衬线字体(font-serif)与粗重字重(font-bold font-semibold)——保持当代无衬线与轻量化
- [ ] 禁止在图片周围添加 padding 或边框——图片必须全出血组件模板
暗面按钮,hairline 边框,hover 时边框变为琥珀色,极轻字重与大字号字距
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
.gallery-dark-card {
background: #0A0A0A;
border: 1px solid #2A2A2A;
border-radius: 0.125rem;
overflow: hidden;
transition: all 300ms ease-out;
}
.gallery-dark-card:hover {
border-color: #4A4A4A;
}
.gallery-dark-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.gallery-dark-image-container {
overflow: hidden;
position: relative;
background: #1A1A1A;
}
.gallery-dark-image-container:hover .gallery-dark-image {
opacity: 0.9;
transition: opacity 300ms ease-out;
}
.gallery-dark-caption {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.75rem;
font-weight: 300;
line-height: 1.6;
color: #666666;
letter-spacing: 0.05em;
}
.gallery-dark-meta {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.625rem;
text-transform: uppercase;
letter-spacing: 0.15em;
font-weight: 300;
color: #C4956A;
}
.gallery-dark-hairline {
border: none;
border-top: 1px solid #2A2A2A;
}
.gallery-dark-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
@media (min-width: 768px) {
.gallery-dark-grid {
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
}
.gallery-dark-hero-overlay {
position: absolute;
inset: 0;
background: rgba(10, 10, 10, 0.5);
}
.gallery-dark-body {
background: #0A0A0A;
color: #FFFFFF;
font-family: ui-sans-serif, system-ui, sans-serif;
font-weight: 300;
}
.gallery-dark-section {
padding: 4rem 0;
}
@media (min-width: 768px) {
.gallery-dark-section {
padding: 6rem 0;
}
}
.gallery-dark-lightbox {
position: fixed;
inset: 0;
background: rgba(10, 10, 10, 0.95);
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 300ms ease-out;
pointer-events: none;
}
.gallery-dark-lightbox.open {
opacity: 1;
pointer-events: auto;
}
.gallery-dark-lightbox img {
max-height: 90vh;
max-width: 90vw;
object-fit: contain;
}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 的技能包
暗色画廊风是"减法即策展"的设计实践——拿掉一切与作品争抢注意力的元素,只留下承载观看的框架。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: D - 较差
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #0A0A0A | 19.8:1 | ||
| Secondary text on background | /#666666 / #0A0A0A | 3.45:1 | ||
| Muted text on background | /#4A4A4A / #0A0A0A | 2.23:1 | ||
| Text on secondary background | /#ffffff / #1A1A1A | 17.4:1 | ||
| Secondary text on secondary | /#666666 / #1A1A1A | 3.03:1 | ||
| Button primary | /#ffffff / #1A1A1A | 17.4:1 | ||
| Text on accent 1 | /#ffffff / #C4956A | 2.67:1 | ||
| Alt text on accent 1 | /#666666 / #C4956A | 2.15:1 | ||
| Text on accent 2 | /#ffffff / #ffffff | 1:1 | ||
| Alt text on accent 2 | /#666666 / #ffffff | 5.74:1 | ||
| Text on accent 3 | /#ffffff / #2A2A2A | 14.35:1 | ||
| Alt text on accent 3 | /#666666 / #2A2A2A | 2.5:1 | ||
| Text on accent 4 | /#ffffff / #1A1A1A | 17.4:1 | ||
| Alt text on accent 4 | /#666666 / #1A1A1A | 3.03:1 |
可读性
分数
80/100
字号
text-sm md:text-base
字重
font-sans font-light tracking-tight text-white
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。