适合场景
摄影 / 画廊 / 暗色
Dark Gallery
给这个风格评分暗色调摄影画廊作品集风格:近黑背景让全出血图片成为绝对主角,温琥珀色点缀无信息,超轻极简排版安静退后。适合摄影师、电影人、视觉艺术家的作品展示。
适合场景
摄影 / 画廊 / 暗色
设计重点
全出血图片:在容器上用 overflow-hidden、图片上用 object-cover w-full h-full,容器 padding-0
注意事项
禁止使用彩色阴影(shadow-lg shadow-2xl)与渐变背景(bg-gradient-*)——破坏暗场纯净度
design.md
一份文档说明这套风格的配色职责、字体规则、间距与组件构造。复制或下载后直接交给 Claude Code 或 Codex。
近黑的展厅里只有照片发光,其余一切退到看不见。
Theme: dark
暗色画廊风为摄影师与影像作者服务:近黑底(#0a0a0a)让全幅照片获得绝对注意力,抬升面用 #1a1a1a,分隔线 #2a2a2a,元信息(日期、标签、地点、展签)一律用暖琥珀(#c4956a)的 10 到 11px 全大写 0.15em 细体,正文用白色细体,大标题 4xl 到 7xl 细体紧字距。卡片只加 1px 描边与 2px 圆角、绝不加阴影。它的禁令是:不许彩色阴影与渐变背景、不许亮色背景——任何提亮都会破坏暗场沉浸。
| Name | Value | Token | Role |
|---|---|---|---|
| Gallery Black | #0a0a0a | --color-gallery-black | 页面底。近黑,让照片成为唯一光源。 |
| Raised | #1a1a1a | --color-raised | 卡片与侧面板,只比底色亮一档。 |
| Divider | #2a2a2a | --color-divider | 所有 1px 描边与分隔线。暗场里唯一的结构手段。 |
| Amber | #c4956a | --color-amber | 唯一强调色:元信息、展签、链接与聚焦描边。 |
| White | #ffffff | --color-white | 正文与标题,一律用 300 细体。 |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 300 | 72px | 1.05 | -0.02em | --text-display |
| heading | — | 300 | 56px | 1.1 | -0.02em | --text-heading |
| subheading | — | 300 | 36px | 1.2 | — | --text-subheading |
| body-lg | — | 300 | 20px | 1.5 | — | --text-body-lg |
| body | — | 300 | 14px | 1.6 | — | --text-body |
| label | — | 300 | 11px | 1.5 | 0.15em | --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 |
| 128 | 128px | --spacing-128 |
| Element | Value |
|---|---|
| cards | 2px |
| buttons | 2px |
| inputs | 2px |
Role: 全幅作品(核心)
容器 overflow hidden、内边距 0,图片 object-fit: cover、占满、宽高 100%。零圆角零边框零阴影。上方或下方距离 48px 处放展签:10px 全大写 0.15em 的琥珀色元信息,加白色 20px 的作品名。图片绝不加遮罩或文字。
Role: 作品卡与缩略图格
抬升面 #1a1a1a 填充、2px 圆角、1px #2a2a2a 描边、无内边距(图片铺满)、无阴影。下方 16px 处放展签。hover 时图片整体不透明度降到 90%(亮度微变),不加缩放、不加阴影。
Role: 顶部导航
内边距 24px 32px、底部 1px #2a2a2a 描边、无模糊无底色变化。链接 11px 全大写 0.15em 细体白色,hover 时转琥珀。字标 20px/300。
Role: 搜索与订阅输入
展厅黑填充、2px 圆角、1px #2a2a2a 描边、padding 10px 14px、14px 细体。占位符白 40%。聚焦时描边转琥珀并加 1px 的琥珀 30% 外环。
Role: 展签元信息
固定格式:日期 · 地点 · 媒介,10px 全大写 0.15em 细体琥珀色,行高 1.5。它是这套风格唯一有颜色的文字,也是它区别于「极简暗色」的身份标记。
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Gallery Black | #0a0a0a | 页面底 |
| 1 | Raised | #1a1a1a | 卡片与侧栏 |
none — a shadow would interrupt the dark摄影是唯一内容,必须全幅、精确裁切、无滤镜。允许不同比例但同一系列的调色一致。不使用插画、图标装饰与任何非摄影图像。
上限 1440px,全幅作品可突破到 100vw。缩略图网格 2 列(移动)到 3 列(桌面)、间距 16 到 24px。区块间距 128px。垂直留白让每张照片单独成立。
QUICK COLOR REFERENCE:
#ffffff#0a0a0a#1a1a1a#c4956a#2a2a2a#8a8a8aEXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-gallery-black: #0a0a0a;
--color-raised: #1a1a1a;
--color-divider: #2a2a2a;
--color-amber: #c4956a;
--color-white: #ffffff;
/* Typography — Font Families */
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 72px;
--leading-display: 1.05;
--tracking-display: -0.02em;
--text-heading: 56px;
--leading-heading: 1.1;
--tracking-heading: -0.02em;
--text-subheading: 36px;
--leading-subheading: 1.2;
--text-body-lg: 20px;
--leading-body-lg: 1.5;
--text-body: 14px;
--leading-body: 1.6;
--text-label: 11px;
--leading-label: 1.5;
--tracking-label: 0.15em;
/* Typography — Weights */
--font-weight-light: 300;
--font-weight-regular: 400;
/* 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;
--spacing-128: 128px;
/* Layout */
--page-max-width: 1440px;
--section-gap: 128px;
--card-padding: 0px;
--element-gap: 24px;
--density: airy;
/* Border Radius */
--radius-cards: 2px;
--radius-buttons: 2px;
--radius-inputs: 2px;
/* Surfaces */
--surface-gallery-black: #0a0a0a;
--surface-raised: #1a1a1a;
}
组件模板
暗面按钮,hairline 边框,hover 时边框变为琥珀色,极轻字重与大字号字距
常见问题
.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;
}相关风格
探索这些风格获取现成的 tokens 和组件。
暗色画廊风 和 横滚画廊 是最接近的两个方向。下表列出它们在配色、适用场景和标签上的实际差异,选之前先看这一栏。
| 维度 | 暗色画廊风 | 横滚画廊 |
|---|---|---|
| 主色 | #0A0A0A | #1A1A1A |
| 辅助色 | #FFFFFF | #FCFCFA |
| 适合场景 | 摄影 / 画廊 / 暗色 | 横滚 / 画廊 / 策展 |
| 独有标签 | dark-theme | — |
暗色画廊风是"减法即策展"的设计实践——拿掉一切与作品争抢注意力的元素,只留下承载观看的框架。