StyleKit

学术科普风

Distill Style

给这个风格评分

以 Distill.pub 为原型的学术科普设计语言:窄列 serif 正文承载论证,边注承载旁白,图表突破版心承载证据。适合科普博客、研究者主页与学术型作品集。

学术科普论文排版边注引用图表衬线正文研究者主页Distillserifacademic期刊

适合场景

学术 / 科普 / 论文排版

设计重点

正文使用 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 风格(上下两条粗横线加表头细线,绝无竖线与斑马纹),引用用上标编号配参考文献,颜色只有两种职能:学术蓝给链接与引用,图表橙给数据强调。

Colors

NameValueTokenRole
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小屏的边注折叠块与代码块底。

Typography

Source Serif — 正文与标题必须衬线。行高 1.75 是长文可读性的下限,不可压缩。
  • Substitute: Georgia, 'Songti SC', serif
  • Weights: 400, 600
  • Sizes: 13, 15, 17, 21, 28, 36
  • Line height: 1.2 (display), 1.3 (headings), 1.75 (body)
  • Letter spacing: -0.01em on display, 0.06em on uppercase labels
Inter — 仅用于 UI 控件标签与元信息。正文绝不使用无衬线。
  • Substitute: system-ui, sans-serif
  • Weights: 400, 500
  • Sizes: 12, 13
  • Line height: 1.4 (display), 1.4 (headings), 1.6 (body)
  • Letter spacing: 0 on display, 0.06em on uppercase labels
Type Scale
RoleFamilyWeightSizeLine HeightLetter SpacingToken
displaySource Serif60036px1.2-0.01em--text-display
heading-lgSource Serif60028px1.25—--text-heading-lg
headingSource Serif60021px1.35—--text-heading
body-lgSource Serif40017px1.75—--text-body-lg
bodySource Serif40015px1.75—--text-body
labelInter50012px1.40.06em--text-label

Spacing & Layout

Base unit: 4px Density: comfortable

Spacing Scale
NameValueToken
44px--spacing-4
88px--spacing-8
1212px--spacing-12
1616px--spacing-16
2424px--spacing-24
3232px--spacing-32
4848px--spacing-48
6464px--spacing-64
9696px--spacing-96
Border Radius
ElementValue
cards6px
buttons4px
figures0
  • Page max-width: 672px
  • Section gap: 64px
  • Card padding: 24px
  • Element gap: 16px

Components

Reading Column

Role: 正文窄栏(核心结构)

max-width 42rem(672px)、左右各 24px 内边距、居中。正文 17px 衬线、行高 1.75、段间距 24px、段首不缩进。绝不允许正文全宽铺满——全宽只属于图表。

  • Sizes: 42rem measure
Sidenote

Role: 边注(旁白)

大屏(1280px 以上)绝对定位到正文右缘外侧 24px、宽 200px、12px 灰字、行高 1.5;小屏折叠为正文内的浅灰块(#f3f4f6)、4px 圆角、内边距 12px、12px 灰字。锚点用上标数字。

Evidence Figure

Role: 图表(突破版心)

max-width 64rem(1024px)、居中,比正文宽出一倍。图注 13px 灰、以「图 N:」开头,与图之间 12px。图表区域零圆角、无边框。这是唯一允许突破版心的元素。

Booktabs Table

Role: booktabs 风格表格

顶部 2px 墨色横线、表头下 1px 墨色横线、底部 2px 墨色横线,中间绝无竖线与斑马纹。单元格内边距 8px 12px、14px 衬线,数值列右对齐并用等宽数字。

Citation Sup

Role: 上标引用

正文后跟 12px 上标数字(学术蓝、不换行、与正文间距 2px),文末参考文献列按编号排列,每条 13px、含标题与出处。点击上标跳转到条目并高亮 2 秒。

Do's and Don'ts

Do
  • 正文窄栏 42rem、行高 1.75
  • 正文必须衬线,无衬线只给 UI
  • 边注在大屏浮到右缘、小屏折叠
  • 图表突破版心到 64rem
  • 表格用 booktabs,无竖线无斑马纹
  • 分割只用 1px hairline
Don't
  • 不要用任何渐变
  • 不要用重阴影
  • 不要用大圆角
  • 不要让正文全宽铺满
  • 不要用多彩装饰与大色块
  • 不要给表格加竖线与斑马纹

Surfaces

LevelNameValuePurpose
0Paper#ffffff页面底
1Grey Block#f3f4f6代码与折叠边注

Elevation

  • None: none — hairlines and whitespace do the work
  • Max allowed: 0 1px 2px rgba(31,41,51,0.05)

Imagery

图表即图像:散点、折线、网络、注意力热图,必须带坐标轴与图注。允许作者照片。不使用装饰摄影、插画与背景图,气氛在这套语言里没有位置。

Layout

正文版心 42rem、图表 64rem、页面上限 1024px。区块间距 64px,标题上方留 48px。分割一律 1px #e5e7eb 的 hairline。整页单栏,不做侧栏导航。

Agent Prompt Guide

Implementation Contract
  • 以用户请求中的页面、用户任务和真实内容为依据,只实施指定范围;标明缺失的业务信息,不编造数据或能力。
  • 先检查现有项目、技术栈与组件;沿用项目结构、路由和依赖,复用已有组件,不重建未要求的页面或功能。
  • 沿用项目断点,调整窄屏与桌面的网格和留白;保留信息层级,避免意外横向溢出。
  • 对本次涉及的交互,处理键盘焦点与减少动态效果;补齐适用的禁用、加载、空内容与错误状态。
  • 完成后按项目现有脚本检查,仅报告实际运行的测试与视觉检查,并列出未验证项。

QUICK COLOR REFERENCE:

  • text: #1f2933
  • background: #ffffff
  • accent: #2a7ae2
  • chart: #e4572e
  • muted: #6b7280
  • rule: #e5e7eb

EXAMPLE COMPONENT PROMPTS:

  1. 做一个学术科普页面:正文栏 max-width 42rem、居中、17px 衬线、行高 1.75、段间距 24px。标题层级 36px/28px/21px 衬线。图表区 max-width 64rem 居中、零圆角,图注 13px #6b7280、以「图 N:」开头。表格用 booktabs:顶部 2px、表头下 1px、底部 2px 的 #1f2933 横线,无竖线无斑马纹。上标引用用 12px #2a7ae2。所有分割用 1px #e5e7eb。页面底色 #ffffff。

Similar Brands

  • Editorial — 同为衬线阅读体验,但编辑风更重视觉表现,学术风更重证据结构
  • F-Pattern Layout — 同样服务长文扫读,但 F 型用层级压缩,学术风用窄栏与边注

Quick Start


: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.pub 为原型的学术科普设计语言:窄列 serif 正文承载论证,边注承载旁白,图表突破版心承载证据。适合科普博客、研究者主页与学术型作品集。 它的设计理念:学术科普风是"论文排版的网页化":把期刊三百年攒下的排版严谨,翻译成网页原生的呼吸感。 核心理念: - 论证优先:一切视觉决策服务于论证的可读与可信,装饰是噪音 - 窄列即尊重:正文列宽锁定约 42rem(65-75 字符),这是眼睛完成一次换行扫视的舒适极限 - 三层信息带宽:正文承载主线论证,边注承载旁白与出处,突破版心的图表承载证据 - 引用即链接:编号上标引用是学术写作的超链接原型,在网页上两者合一 - 色彩即语义:墨灰负责陈述,学术蓝只指向可点击与被引用之物,图表橙只强调数据 设计原则: - 层级靠排版建立:字号、字重、间距和 hairline 细线完成全部层级,不借助色块与阴影 - 图表是一等公民:figure 允许突破正文列宽居中展开,配编号图注(图 1:)说明来源与结论 - 元信息仪式感:作者、机构、日期、DOI 组成 byline 信息块,hairline 分隔,像论文首页一样可信 - 表格用 booktabs 语法:上下粗横线加表头细线,无竖线无斑马纹 - 克制的交互:hover 只做下划线与浅灰底,转场不超过 200ms,禁止一切炫技动效
学术科普风风格常用什么配色?
学术科普风 的主色是 #1F2933,辅色是 #FFFFFF,强调色包括 #2A7AE2、#E4572E、#6B7280、#F3F4F6。每个色值都可以在本页色板中复制。
怎样把学术科普风风格做对?
关键做法:正文使用 font-serif 窄列 max-w-[42rem] mx-auto,行高 leading-[1.75]. 边注 sidenote:大屏 xl:absolute 悬浮到右缘的小号灰字(text-xs text-[#6B7280]),小屏折叠为内联浅灰块 bg-[#F3F4F6]. 编号引用使用上标 <sup>[1]</sup>,学术蓝 text-[#2A7AE2],页脚给出对应参考文献.
学术科普风风格最常见的错误是什么?
应避免:禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜). 禁止重阴影:最多 shadow-sm,杜绝 shadow-lg/shadow-2xl 与彩色阴影. 禁止大圆角:最多 rounded-md,正文与图表容器优先直角.
如何让 AI 生成学术科普风风格的界面?
复制本页提供的 AI 提示词(含设计 tokens 与组件规则),粘贴到 ChatGPT、Claude、Claude Code 或 Codex。提示词中应包含关键词:学术、科普、论文排版、边注。
全局样式

全局 CSS

css
.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 / 微软 / 亚克力
独有标签——
设计哲学

学术科普风是"论文排版的网页化":把期刊三百年攒下的排版严谨,翻译成网页原生的呼吸感。