Best For
academic / scholarly / explainer
学术科普风
Rate this styleAn academic explainer aesthetic modeled on Distill.pub: a narrow serif column carries the argument, sidenotes carry the asides, and figures break the measure to carry the evidence. Built for science blogs, researcher homepages, and scholarly portfolios.
Best For
academic / scholarly / explainer
Primary Move
Body text uses font-serif in a narrow column max-w-[42rem] mx-auto with leading-[1.75]
Watch Out
Never use gradients bg-gradient-* (papers have no gradients; evidence needs no filter)
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
A narrow serif column carries the argument, sidenotes carry asides, figures break the measure to carry evidence.
Theme: light
Distill Style takes Distill.pub as its model: a 42rem serif column at 1.75 leading, sidenotes absolutely positioned into the right margin on wide screens and collapsed to inline grey blocks on narrow ones, and figures breaking the measure to 64rem where the evidence sits. Its rules approach a journal's — separation uses 1px hairlines only, tables follow booktabs (two heavy top and bottom rules plus a thin header line, never verticals or zebra striping), citations run as superscript numbers resolved in a reference list, and color has two jobs only: academic blue for links and citations, chart orange for data emphasis.
| Name | Value | Token | Role |
|---|---|---|---|
| Ink | #1f2933 | --color-ink | Body and headings — deep grey-blue, better than black for long text. |
| Paper | #ffffff | --color-paper | The page ground — pure white and untextured, since a paper needs no atmosphere. |
| Academic Blue | #2a7ae2 | --color-academic-blue | Links, superscript citations and key emphasis — only these three uses. |
| Chart Orange | #e4572e | --color-chart-orange | Data emphasis and the lead chart series — never on interface decoration. |
| Muted Grey | #6b7280 | --color-muted-grey | Captions, sidenotes and metadata — always the third tier. |
| Grey Block | #f3f4f6 | --color-grey-block | Collapsed sidenote blocks on narrow screens, and code grounds. |
| 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: The reading column — the core structure
max-width 42rem (672px) centred with 24px side padding. Body at 17px serif on 1.75 leading, 24px between paragraphs, no first-line indent. Body copy never runs full width — full width belongs to figures.
Role: The sidenote aside
Above 1280px it positions absolutely 24px outside the column's right edge at 200px wide in 12px grey on 1.5 leading; on narrow screens it collapses into an inline grey block (#f3f4f6) on a 4px radius with 12px padding. A superscript number anchors it.
Role: The figure that breaks the measure
max-width 64rem (1024px), centred, twice the column's width. The caption runs 13px grey, opening with 'Figure N:' and sitting 12px under the figure. The figure area takes zero radius and no border. It is the only element allowed to break the measure.
Role: A booktabs table
A 2px ink rule on top, a 1px rule under the header, a 2px rule at the bottom, and absolutely no verticals or zebra striping between them. Cells pad 8px 12px at 14px serif, with numeric columns right-aligned in tabular figures.
Role: The superscript citation
A 12px superscript number in academic blue, non-breaking, 2px off the preceding word, resolved in a numbered reference list at the end where each entry runs 13px with title and source. Clicking scrolls to the entry and highlights it for two seconds.
| 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)Charts are the imagery: scatter, line, network, attention heatmaps, each with axes and a caption. Author photos are fine. No decorative photography, illustration or backgrounds — atmosphere has no standing here.
A 42rem text measure, 64rem figures, and a 1024px page cap. Sections sit 64px apart with 48px above each heading. Every separation is a 1px #e5e7eb hairline. The page is one column with no side navigation.
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;
}
Component Templates
FAQ
.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;
}Related Styles
Explore these styles for ready-made tokens and components.
Distill Style and Fluent Design sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.
| Attribute | Distill Style | Fluent Design |
|---|---|---|
| Primary color | #1F2933 | #0078d4 |
| Secondary color | #FFFFFF | #106ebe |
| Best for | academic / scholarly / explainer | Fluent Design / Microsoft Fluent / acrylic material |
| Unique tags | — | — |
Distill Style is "paper typography, translated to the web": three centuries of journal rigor rebuilt with web-native breathing room.