适合场景
学术 / 科普 / 论文排版
Distill Style
给这个风格评分以 Distill.pub 为原型的学术科普设计语言:窄列 serif 正文承载论证,边注承载旁白,图表突破版心承载证据。适合科普博客、研究者主页与学术型作品集。
适合场景
学术 / 科普 / 论文排版
设计重点
正文使用 font-serif 窄列 max-w-[42rem] mx-auto,行高 leading-[1.75]
注意事项
禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
design.md
一份文档说明这套风格的配色职责、字体规则、间距与组件构造。复制或下载后直接交给 Claude Code 或 Codex。
一条窄衬线栏讲论证,边注放旁白,图表突破版心放证据。
Theme: light
学术科普风以 Distill.pub 为范式:正文是 42rem 宽的窄衬线栏、行高 1.75,边注(sidenote)在大屏上绝对定位悬浮到右缘、小屏折叠为浅灰内联块,图表则突破版心到 64rem 居中展示证据。它的规则严格到近乎期刊——分割只用 1px 的 hairline,表格用 booktabs 风格(上下两条粗横线加表头细线,绝无竖线与斑马纹),引用用上标编号配参考文献,颜色只有两种职能:学术蓝给链接与引用,图表橙给数据强调。
| Name | Value | Token | Role |
|---|---|---|---|
| Ink | #1f2933 | --color-ink | 正文与标题。深灰蓝,比纯黑更适合长文。 |
| Paper | #ffffff | --color-paper | 页面底。纯白无纹理,论文不需要气氛。 |
| Academic Blue | #2a7ae2 | --color-academic-blue | 链接、上标引用与关键强调。只有这三个用途。 |
| Chart Orange | #e4572e | --color-chart-orange | 数据强调与图表主序列,绝不用于界面装饰。 |
| Muted Grey | #6b7280 | --color-muted-grey | 图注、边注与元信息。永远是第三层级。 |
| Grey Block | #f3f4f6 | --color-grey-block | 小屏的边注折叠块与代码块底。 |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | Source Serif | 600 | 36px | 1.2 | -0.01em | --text-display |
| heading-lg | Source Serif | 600 | 28px | 1.25 | — | --text-heading-lg |
| heading | Source Serif | 600 | 21px | 1.35 | — | --text-heading |
| body-lg | Source Serif | 400 | 17px | 1.75 | — | --text-body-lg |
| body | Source Serif | 400 | 15px | 1.75 | — | --text-body |
| label | Inter | 500 | 12px | 1.4 | 0.06em | --text-label |
Base unit: 4px Density: comfortable
| Name | Value | Token |
|---|---|---|
| 4 | 4px | --spacing-4 |
| 8 | 8px | --spacing-8 |
| 12 | 12px | --spacing-12 |
| 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 | 6px |
| buttons | 4px |
| figures | 0 |
Role: 正文窄栏(核心结构)
max-width 42rem(672px)、左右各 24px 内边距、居中。正文 17px 衬线、行高 1.75、段间距 24px、段首不缩进。绝不允许正文全宽铺满——全宽只属于图表。
Role: 边注(旁白)
大屏(1280px 以上)绝对定位到正文右缘外侧 24px、宽 200px、12px 灰字、行高 1.5;小屏折叠为正文内的浅灰块(#f3f4f6)、4px 圆角、内边距 12px、12px 灰字。锚点用上标数字。
Role: 图表(突破版心)
max-width 64rem(1024px)、居中,比正文宽出一倍。图注 13px 灰、以「图 N:」开头,与图之间 12px。图表区域零圆角、无边框。这是唯一允许突破版心的元素。
Role: booktabs 风格表格
顶部 2px 墨色横线、表头下 1px 墨色横线、底部 2px 墨色横线,中间绝无竖线与斑马纹。单元格内边距 8px 12px、14px 衬线,数值列右对齐并用等宽数字。
Role: 上标引用
正文后跟 12px 上标数字(学术蓝、不换行、与正文间距 2px),文末参考文献列按编号排列,每条 13px、含标题与出处。点击上标跳转到条目并高亮 2 秒。
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Paper | #ffffff | 页面底 |
| 1 | Grey Block | #f3f4f6 | 代码与折叠边注 |
none — hairlines and whitespace do the work0 1px 2px rgba(31,41,51,0.05)图表即图像:散点、折线、网络、注意力热图,必须带坐标轴与图注。允许作者照片。不使用装饰摄影、插画与背景图,气氛在这套语言里没有位置。
正文版心 42rem、图表 64rem、页面上限 1024px。区块间距 64px,标题上方留 48px。分割一律 1px #e5e7eb 的 hairline。整页单栏,不做侧栏导航。
QUICK COLOR REFERENCE:
#1f2933#ffffff#2a7ae2#e4572e#6b7280#e5e7ebEXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-ink: #1f2933;
--color-paper: #ffffff;
--color-academic-blue: #2a7ae2;
--color-chart-orange: #e4572e;
--color-muted-grey: #6b7280;
--color-grey-block: #f3f4f6;
/* Typography — Font Families */
--font-serif: 'Source Serif', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 36px;
--leading-display: 1.2;
--tracking-display: -0.01em;
--text-heading-lg: 28px;
--leading-heading-lg: 1.25;
--text-heading: 21px;
--leading-heading: 1.35;
--text-body-lg: 17px;
--leading-body-lg: 1.75;
--text-body: 15px;
--leading-body: 1.75;
--text-label: 12px;
--leading-label: 1.4;
--tracking-label: 0.06em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
/* Spacing */
--spacing-unit: 4px;
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-96: 96px;
/* Layout */
--page-max-width: 672px;
--section-gap: 64px;
--card-padding: 24px;
--element-gap: 16px;
--density: comfortable;
/* Border Radius */
--radius-cards: 6px;
--radius-buttons: 4px;
--radius-figures: 0;
/* Surfaces */
--surface-paper: #ffffff;
--surface-grey-block: #f3f4f6;
}
组件模板
克制的主操作按钮,墨灰底、rounded-md、小字号,像期刊页上的下载入口
常见问题
.distill-style-article {
max-width: 42rem;
margin-left: auto;
margin-right: auto;
font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
font-size: 1.0625rem;
line-height: 1.75;
color: #1F2933;
}
.distill-style-article p + p {
margin-top: 1.25rem;
}
.distill-style-cite {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.68em;
font-weight: 600;
vertical-align: super;
line-height: 0;
color: #2A7AE2;
text-decoration: none;
cursor: pointer;
}
.distill-style-cite:hover {
text-decoration: underline;
}
.distill-style-sidenote {
display: block;
margin: 1rem 0;
padding: 0.625rem 0.875rem;
border-left: 2px solid rgba(42, 122, 226, 0.4);
border-radius: 0.125rem;
background: #F3F4F6;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.8125rem;
line-height: 1.6;
color: #6B7280;
}
@media (min-width: 1280px) {
.distill-style-sidenote {
position: absolute;
top: 0;
right: -14rem;
width: 12rem;
margin: 0;
padding: 0.5rem 0 0 0;
border-left: none;
border-top: 1px solid #E5E7EB;
background: transparent;
font-size: 0.75rem;
}
}
.distill-style-figure {
max-width: 56rem;
margin: 2.5rem auto;
}
.distill-style-figcaption {
margin-top: 0.75rem;
padding-top: 0.5rem;
border-top: 1px solid #E5E7EB;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.8125rem;
line-height: 1.6;
color: #6B7280;
}
.distill-style-table {
width: 100%;
border-collapse: collapse;
border-top: 2px solid #1F2933;
border-bottom: 2px solid #1F2933;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.875rem;
}
.distill-style-table thead th {
border-bottom: 1px solid #1F2933;
padding: 0.5rem 0.75rem;
text-align: left;
font-weight: 600;
color: #1F2933;
}
.distill-style-table tbody td {
padding: 0.5rem 0.75rem;
color: #1F2933;
}
.distill-style-hairline {
border: none;
border-top: 1px solid #E5E7EB;
}
.distill-style-smallcaps {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.6875rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #6B7280;
}相关风格
探索这些风格获取现成的 tokens 和组件。
学术科普风 和 流利设计 是最接近的两个方向。下表列出它们在配色、适用场景和标签上的实际差异,选之前先看这一栏。
| 维度 | 学术科普风 | 流利设计 |
|---|---|---|
| 主色 | #1F2933 | #0078d4 |
| 辅助色 | #FFFFFF | #106ebe |
| 适合场景 | 学术 / 科普 / 论文排版 | Fluent / 微软 / 亚克力 |
| 独有标签 | — | — |
学术科普风是"论文排版的网页化":把期刊三百年攒下的排版严谨,翻译成网页原生的呼吸感。