StyleKit

Distill Style

学术科普风

Rate this style

An 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.

academicscholarlyexplainerscientific publishingsidenotecitationfigureserif typographyresearcher homepageDistill.pubjournalpaper

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

Distill Style as a design document

One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.

Document view

Distill Style — Style Reference

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.

Colors

NameValueTokenRole
Ink#1f2933--color-inkBody and headings — deep grey-blue, better than black for long text.
Paper#ffffff--color-paperThe page ground — pure white and untextured, since a paper needs no atmosphere.
Academic Blue#2a7ae2--color-academic-blueLinks, superscript citations and key emphasis — only these three uses.
Chart Orange#e4572e--color-chart-orangeData emphasis and the lead chart series — never on interface decoration.
Muted Grey#6b7280--color-muted-greyCaptions, sidenotes and metadata — always the third tier.
Grey Block#f3f4f6--color-grey-blockCollapsed sidenote blocks on narrow screens, and code grounds.

Typography

Source Serif — Body and headings must be serif. The 1.75 leading is the floor for long reading and never compresses.
  • 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 — Confined to UI control labels and metadata. Body copy never goes sans.
  • 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: 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.

  • Sizes: 42rem measure
Sidenote

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.

Evidence Figure

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.

Booktabs Table

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.

Citation Sup

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.

Do's and Don'ts

Do
  • A 42rem text column at 1.75 leading
  • Body must be serif; sans only for UI
  • Sidenotes float right when wide, collapse when narrow
  • Figures break out to 64rem
  • Booktabs tables with no verticals or stripes
  • Separation uses 1px hairlines only
Don't
  • No gradients anywhere
  • No heavy shadows
  • No large radii
  • Never run body copy full width
  • No colorful decoration or large blocks
  • Never add verticals or zebra striping to tables

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

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.

Layout

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.

Agent Prompt Guide

Implementation Contract
  • Use the requested page, user task and real content as the brief. Implement only the requested scope; identify missing business information instead of inventing data or capabilities.
  • Inspect the current project, stack and components first. Reuse its structure, routes, dependencies and components; do not rebuild unrelated pages or features.
  • Use the project's breakpoints to adapt columns and spacing for narrow and desktop screens. Preserve hierarchy and prevent accidental horizontal overflow.
  • For interactions in scope, support keyboard focus and reduced motion, with applicable disabled, loading, empty and error states.
  • Run the project's existing checks after implementation. Report only tests and visual checks actually run, and list unverified behavior.

QUICK COLOR REFERENCE:

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

EXAMPLE COMPONENT PROMPTS:

  1. Build an academic explainer page: a 42rem body column, centred, 17px serif on 1.75 leading with 24px between paragraphs. Headings run 36, 28 and 21px serif. Figures cap at 64rem centred with zero radius and a 13px #6b7280 caption opening with 'Figure N:'. Tables follow booktabs: 2px top, 1px under the header, 2px bottom, all in #1f2933, with no verticals or stripes. Citations are 12px superscript in #2a7ae2. Every separation is a 1px #e5e7eb hairline. The page ground is #ffffff.

Similar Brands

  • Editorial — Both serif reading experiences, though editorial cares about visual expression while this cares about evidence
  • F-Pattern Layout — Both serve long-form scanning, though F-pattern compresses hierarchy while this uses measure and sidenotes

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;
}

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

Button

FAQ

Distill Style — Frequently Asked Questions

What is the Distill Style design style?
An 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. Its core principle: Distill Style is "paper typography, translated to the web": three centuries of journal rigor rebuilt with web-native breathing room.
What colors does Distill Style use?
Distill Style uses #1F2933 as its primary color and #FFFFFF as its secondary color, with accent colors #2A7AE2, #E4572E, #6B7280, #F3F4F6. Every hex value can be copied from the palette on this page.
How do I apply Distill Style correctly?
Key practices: Body text uses font-serif in a narrow column max-w-[42rem] mx-auto with leading-[1.75]. Sidenotes float into the right margin on large screens (xl:absolute, text-xs text-[#6B7280]) and collapse inline as light-gray blocks bg-[#F3F4F6] on small screens. Numbered citations use superscript <sup>[1]</sup> in academic blue text-[#2A7AE2], resolved in a references list.
What are common mistakes with Distill Style?
Avoid: Never use gradients bg-gradient-* (papers have no gradients; evidence needs no filter). Never use heavy shadows: shadow-sm at most, no shadow-lg/shadow-2xl or colored shadows. Never use large radii: rounded-md at most; prefer square corners for prose and figure containers.
How do I prompt AI to generate Distill Style UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: academic, scholarly, explainer, scientific publishing.
Global Styles

Global 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;
}

Related Styles

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.

AttributeDistill StyleFluent Design
Primary color#1F2933#0078d4
Secondary color#FFFFFF#106ebe
Best foracademic / scholarly / explainerFluent Design / Microsoft Fluent / acrylic material
Unique tags——
Design Philosophy

Distill Style is "paper typography, translated to the web": three centuries of journal rigor rebuilt with web-native breathing room.