Best For
academic / paper / LaTeX
论文排版风
Rate this styleThe typographic language of LaTeX academic papers, brought to the web: Computer Modern feel, centered title and abstract, hierarchically numbered sections, theorem environments, numbered equations, booktabs tables, and hanging-indent references. Built for research homepages, lecture notes, and scholarly portfolios.
Best For
academic / paper / LaTeX
Primary Move
Use serif fonts throughout with font-serif; add tracking-tight on headings for a Computer Modern feel
Watch Out
Never draw vertical rules or zebra striping in tables — booktabs allows horizontal rules only
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.
Computer Modern proportions, numbered hierarchy, booktabs restraint — one sheet of paper.
Theme: light
LaTeX Paper carries LaTeX's typographic language onto the web: serif throughout with tightened tracking to imitate Computer Modern, headings numbered 1 and 1.1, the abstract as a narrow inset block under a small centred label, theorems on a light ground or behind a 2px left rule with a bold label and italic body, tables as booktabs three-line compositions (heavy top and bottom, thin header rule, never verticals or stripes), and links in hyperref blue. It forbids large colorful buttons, gradients, sans body copy, radius, shadow and decorative graphics — paper is flat, so hierarchy comes from rules and whitespace alone.
| Name | Value | Token | Role |
|---|---|---|---|
| Ink | #111111 | --color-ink | Body, headings and the heavy booktabs rules — printing black. |
| White | #ffffff | --color-white | The sheet — pure white with no yellowing. |
| Hyperref Blue | #0b5394 | --color-hyperref-blue | Links and cross-references — the only color permitted. |
| Theorem Ground | #f5f5f0 | --color-theorem-ground | The light ground behind theorems and code. |
| Muted Grey | #6b6b66 | --color-muted-grey | Captions, metadata and secondary reference detail. |
| Rule Grey | #d4d4d0 | --color-rule-grey | Thin header rules and the faintest dividers. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | Latin Modern Roman | 700 | 34px | 1.2 | -0.01em | --text-display |
| heading | Latin Modern Roman | 700 | 26px | 1.25 | — | --text-heading |
| subheading | Latin Modern Roman | 700 | 20px | 1.3 | — | --text-subheading |
| body-lg | Latin Modern Roman | 400 | 17px | 1.55 | — | --text-body-lg |
| body | Latin Modern Roman | 400 | 14px | 1.55 | — | --text-body |
| label | Latin Modern Roman | 700 | 12px | 1.4 | 0.04em | --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 |
| Element | Value |
|---|---|
| cards | 0 |
| buttons | 0 |
| inputs | 0 |
Role: The numbered section heading
Formatted as '1 Introduction' or '1.1 Background' with a 12px gap between number and title instead of a tab. Level one runs 26px/700 and level two 20px/700, both serif on tight tracking. The number is unindented and flush with the title.
Role: The theorem environment
A #f5f5f0 ground (or white with a 2px ink left rule), zero radius, 12px 16px padding, no shadow. The label runs 12px/700 upright — 'Theorem 1' — with the body in 14px italic serif on 1.55 leading, one space after the label.
Role: The three-line table
A 2px ink rule on top, a 1px rule (black or #d4d4d0) under the header, and a 2px rule at the bottom, with 4px 12px cell padding at 14px serif and numeric columns right-aligned. Verticals and striping are absolutely excluded. The caption sits above as 'Table 1:'.
Role: The abstract
Capped at 36rem and centred with 32px side padding. A 12px/700 centred label sits above, with the body at 14px serif on 1.6 leading and justified.
Role: A reference entry
14px serif on 1.5 leading with a hanging indent (padding-left 1.5em against text-indent -1.5em), numbered with square brackets like [1], and 8px between entries. Authors and years stay unbolded and flat.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | White | #ffffff | 纸面 |
| 1 | Theorem Ground | #f5f5f0 | 定理与代码块 |
none — paper is flatGraphics appear only as numbered figures: line plots, bar charts, diagrams, in black-and-white or low saturation. The caption sits below at 14px in muted grey as 'Figure 1:'. No decorative illustration, emoji, large color images or unnumbered visuals.
A 700px measure, centred, with justified text. Sections sit 48px apart and headings reserve 32px above. One column with symmetrical margins. Every division is a horizontal rule — never a filled block or a shadow.
QUICK COLOR REFERENCE:
#111111#ffffff#0b5394#f5f5f0#6b6b66#d4d4d0EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-ink: #111111;
--color-white: #ffffff;
--color-hyperref-blue: #0b5394;
--color-theorem-ground: #f5f5f0;
--color-muted-grey: #6b6b66;
--color-rule-grey: #d4d4d0;
/* Typography — Font Families */
--font-serif: 'Latin Modern Roman', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: 'Latin Modern Mono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 34px;
--leading-display: 1.2;
--tracking-display: -0.01em;
--text-heading: 26px;
--leading-heading: 1.25;
--text-subheading: 20px;
--leading-subheading: 1.3;
--text-body-lg: 17px;
--leading-body-lg: 1.55;
--text-body: 14px;
--leading-body: 1.55;
--text-label: 12px;
--leading-label: 1.4;
--tracking-label: 0.04em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-bold: 700;
/* 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;
/* Layout */
--page-max-width: 700px;
--section-gap: 48px;
--card-padding: 16px;
--element-gap: 12px;
--density: comfortable;
/* Border Radius */
--radius-cards: 0;
--radius-buttons: 0;
--radius-inputs: 0;
/* Surfaces */
--surface-white: #ffffff;
--surface-theorem-ground: #f5f5f0;
}
Component Templates
FAQ
/* LaTeX Paper global styles */
:root {
--ltx-ink: #111111;
--ltx-paper: #FFFFFF;
--ltx-href: #0B5394;
--ltx-thm-bg: #F5F5F0;
--ltx-rule: #D4D4D0;
--ltx-muted: #6B6B66;
}
body {
font-family: "Computer Modern Serif", Georgia, Cambria, "Times New Roman", Times, serif;
background: var(--ltx-paper);
color: var(--ltx-ink);
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
font-family: inherit;
letter-spacing: -0.01em;
}
::selection {
background: var(--ltx-thm-bg);
color: var(--ltx-ink);
}
/* Theorem environment: bold label, italic body, light fill */
.ltx-theorem {
background: var(--ltx-thm-bg);
border-left: 2px solid var(--ltx-ink);
padding: 1.25rem 1.5rem;
}
.ltx-theorem .ltx-theorem-label {
font-weight: 700;
font-style: normal;
}
.ltx-theorem .ltx-theorem-body {
font-style: italic;
}
/* Display equation: centered formula, (n) tag on the right */
.ltx-equation {
display: flex;
align-items: baseline;
margin: 1.5rem 0;
}
.ltx-equation .ltx-equation-math {
flex: 1;
text-align: center;
font-style: italic;
}
.ltx-equation .ltx-equation-tag {
font-style: normal;
color: var(--ltx-ink);
}
/* booktabs table: heavy top/bottom rules, thin midrule, no vertical rules */
.ltx-booktabs {
width: 100%;
border-collapse: collapse;
border-top: 2px solid var(--ltx-ink);
border-bottom: 2px solid var(--ltx-ink);
}
.ltx-booktabs thead th {
border-bottom: 1px solid var(--ltx-ink);
font-weight: 400;
font-style: italic;
padding: 0.5rem 0.75rem;
}
.ltx-booktabs td {
padding: 0.45rem 0.75rem;
}
/* Hanging-indent reference list */
.ltx-refs {
list-style: none;
padding: 0;
}
.ltx-refs li {
padding-left: 2rem;
text-indent: -2rem;
margin-bottom: 0.5rem;
}
/* Small-caps label, e.g. for keywords line */
.ltx-smallcaps {
font-variant: small-caps;
letter-spacing: 0.05em;
}
@keyframes latex-paper-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.latex-paper-animate-in {
animation: latex-paper-fade-in 0.5s ease-out both;
}Related Styles
Explore these styles for ready-made tokens and components.
LaTeX Paper and Arcade CRT 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 | LaTeX Paper | Arcade CRT |
|---|---|---|
| Primary color | #111111 | #39ff14 |
| Secondary color | #FFFFFF | #050505 |
| Best for | academic / paper / LaTeX | CRT effect / arcade style / scanlines |
| Unique tags | — | — |
LaTeX Paper treats the typesetting system of academic papers as a visual language: everything is numbered, everything is citable. The sense of order itself is the visual grammar of scholarly credibility.