Best For
academic / scholarly / explainer
学术科普风
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.
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)
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#1F2933
Secondary
#FFFFFF
Accent 1
#2A7AE2
Accent 2
#E4572E
AI Implementation
Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Distill Style
style_slug: distill-style
style_source: /styles/distill-style
# Hard Prompt
## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.
## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.
Strictly follow the style rules below and maintain consistency. No style drift allowed.
## Requirements
- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.
## Style Rules
You are a Distill Style (academic explainer) design expert modeled on Distill.pub.
## Absolute Rules
- Pure white #FFFFFF background; #F3F4F6 for secondary surfaces only
- Serif body in #1F2933, column max-w-[42rem] mx-auto, leading-[1.75]
- Academic blue #2A7AE2 only for links, citations, key emphasis
- Chart orange #E4572E only for data emphasis in figures
- Sidenotes float in the right margin on xl screens, collapse inline below
- Numbered superscript citations resolved in a references list
- Figures break the measure at max-w-4xl with "Fig. N:" captions
- Booktabs tables: horizontal rules only
## Forbidden
- Gradients, heavy shadows, radii beyond rounded-md
- Full-width prose, sans-serif body copy
- Zebra striping and vertical table rules
## Responsive
- Mobile: inline sidenotes, scrollable wide tables
- Desktop: floating margin sidenotes beside a centered 42rem column
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use gradients bg-gradient-* (papers have no gradients; evidence needs no filter)
- use heavy shadows: shadow-sm at most, no shadow-lg/shadow-2xl or colored shadows
- use large radii: rounded-md at most; prefer square corners for prose and figure containers
- let body text run full width: the measure never exceeds 42rem; full bleed belongs to figures only
- add colorful decoration or large color fields: color serves information, not mood
- set body text in sans-serif: prose must be serif; sans is reserved for UI labels and metadata
- add vertical rules or zebra striping to tables (the two booktabs rules are enough)
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] 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
- [ ] never let body text run full width: the measure never exceeds 42rem; full bleed belongs to figures only
- [ ] never add colorful decoration or large color fields: color serves information, not moodUse it in your workflow
Drop this style's theme into an existing shadcn project with one command.
npx shadcn add https://www.stylekit.top/r/distill-style.jsonGrab this style's theme without leaving your terminal.
npx stylekit-cli add distill-styleLet Claude, Cursor & Windsurf apply “Distill Style” while you code.
npx stylekit-mcpComponent Templates
克制的主操作按钮,墨灰底、rounded-md、小字号,像期刊页上的下载入口
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
Default / Hover / Focus Visible / Active / Disabled
Input
Default / Hover / Focus Visible / Disabled / Error
Card
Default / Hover / Focus Visible / Loading / Skeleton
Form
Default / Focus Visible / Disabled / Loading / Error
.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;
}IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
Style Pack
Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.
Metadata
Style metadata including version information
Design Tokens
Compatible with Figma / Style Dictionary / Tokens Studio
Tailwind Preset
Tailwind CSS theme preset, import directly in config
Global CSS
CSS variables and base styles
shadcn Theme
shadcn/ui theme configuration
CSS Variables
Pure CSS variables, works with any project
SKILL.md
Loadable skill pack for Cursor / Claude Code / VS Code
Distill Style is "paper typography, translated to the web": three centuries of journal rigor rebuilt with web-native breathing room.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#1F2933 / #ffffff | 14.76:1 | ||
| Secondary text on background | /#6B7280 / #ffffff | 4.83:1 | ||
| Muted text on background | /#9CA3AF / #ffffff | 2.54:1 | ||
| Text on secondary background | /#1F2933 / #F3F4F6 | 13.41:1 | ||
| Secondary text on secondary | /#6B7280 / #F3F4F6 | 4.39:1 | ||
| Button primary | /#ffffff / #1F2933 | 14.76:1 | ||
| Text on accent 1 | /#1F2933 / #2A7AE2 | 3.5:1 | ||
| Alt text on accent 1 | /#6B7280 / #2A7AE2 | 1.15:1 | ||
| Text on accent 2 | /#1F2933 / #E4572E | 4.01:1 | ||
| Alt text on accent 2 | /#6B7280 / #E4572E | 1.31:1 | ||
| Text on accent 3 | /#1F2933 / #F3F4F6 | 13.41:1 | ||
| Alt text on accent 3 | /#6B7280 / #F3F4F6 | 4.39:1 | ||
| Text on accent 4 | /#1F2933 / #1F2933 | 1:1 | ||
| Alt text on accent 4 | /#6B7280 / #1F2933 | 3.05:1 |
Readability
Score
77/100
Font Size
text-base md:text-[1.0625rem]
Font Weight
font-serif font-semibold text-[#1F2933] tracking-tight
Line Height
default
Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.