StyleKit

LaTeX Paper

论文排版风

Rate this style

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

academicpaperLaTeXtypesettingtheoremnumbered equationsbooktabsreferencesresearch homepagelecture notesComputer Modernscholarlyserif

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

LaTeX Paper 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

LaTeX Paper — Style Reference

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.

Colors

NameValueTokenRole
Ink#111111--color-inkBody, headings and the heavy booktabs rules — printing black.
White#ffffff--color-whiteThe sheet — pure white with no yellowing.
Hyperref Blue#0b5394--color-hyperref-blueLinks and cross-references — the only color permitted.
Theorem Ground#f5f5f0--color-theorem-groundThe light ground behind theorems and code.
Muted Grey#6b6b66--color-muted-greyCaptions, metadata and secondary reference detail.
Rule Grey#d4d4d0--color-rule-greyThin header rules and the faintest dividers.

Typography

Latin Modern Roman — Serif throughout, headings on tight tracking for the Computer Modern feel. Body leading runs 1.55 — slightly looser than print for the screen.
  • Substitute: 'Computer Modern', 'Source Serif', Georgia, serif
  • Weights: 400, 700
  • Sizes: 12, 14, 17, 20, 26, 34
  • Line height: 1.2 (display), 1.3 (headings), 1.55 (body)
  • Letter spacing: -0.01em on display, 0.04em on uppercase labels
Latin Modern Mono — Code, equation numbers and algorithm blocks. Monospace appears only there, never in body copy.
  • Substitute: ui-monospace, 'Courier New', monospace
  • Weights: 400
  • Sizes: 12, 13
  • Line height: 1.4 (display), 1.4 (headings), 1.5 (body)
  • Letter spacing: 0 on display, 0.04em on uppercase labels
Type Scale
RoleFamilyWeightSizeLine HeightLetter SpacingToken
displayLatin Modern Roman70034px1.2-0.01em--text-display
headingLatin Modern Roman70026px1.25—--text-heading
subheadingLatin Modern Roman70020px1.3—--text-subheading
body-lgLatin Modern Roman40017px1.55—--text-body-lg
bodyLatin Modern Roman40014px1.55—--text-body
labelLatin Modern Roman70012px1.40.04em--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
Border Radius
ElementValue
cards0
buttons0
inputs0
  • Page max-width: 700px
  • Section gap: 48px
  • Card padding: 16px
  • Element gap: 12px

Components

Numbered Section

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.

Theorem Block

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.

Booktabs Table

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:'.

Abstract Block

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.

Reference Entry

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.

Do's and Don'ts

Do
  • Serif throughout with tight heading tracking
  • Number sections as 1 and 1.1
  • Tables use booktabs three-line rules
  • Links use hyperref blue throughout
  • Theorems use a light ground or a left rule
  • Zero radius, zero shadow
Don't
  • No verticals or zebra stripes in tables
  • No large colorful buttons or gradients
  • No sans body copy
  • No radius anywhere
  • No shadows
  • No decorative graphics or emoji

Surfaces

LevelNameValuePurpose
0White#ffffff纸面
1Theorem Ground#f5f5f0定理与代码块

Elevation

  • None: none — paper is flat

Imagery

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

Layout

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.

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: #111111
  • background: #ffffff
  • link: #0b5394
  • theorem: #f5f5f0
  • muted: #6b6b66
  • rule: #d4d4d0

EXAMPLE COMPONENT PROMPTS:

  1. Build a LaTeX paper page: a 700px measure, centred, serif throughout (Latin Modern Roman or Source Serif), body at 14px on 1.55 leading and justified. Headings number as 1 and 1.1 with a 12px gap, at 26px and 20px weight 700. The abstract is a 36rem centred block under a 12px centred label. Tables follow booktabs: 2px #111 on top, 1px #d4d4d0 under the header, 2px #111 at the bottom, and no verticals. Links are #0b5394. Zero radius, zero shadow.

Similar Brands

  • Distill Style — Both scholarly, though Distill adds sidenotes and breakout figures while LaTeX keeps the measure strict
  • F-Pattern Layout — Both serve long reading, though F-pattern optimizes scanning while LaTeX optimizes close reading

Quick Start


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

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

Button

FAQ

LaTeX Paper — Frequently Asked Questions

What is the LaTeX Paper design style?
The 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. Its core principle: LaTeX Paper treats the typesetting system of academic papers as a visual language: everything is numbered, everything is citable.
What colors does LaTeX Paper use?
LaTeX Paper uses #111111 as its primary color and #FFFFFF as its secondary color, with accent colors #0B5394, #F5F5F0, #6B6B66, #D4D4D0. Every hex value can be copied from the palette on this page.
How do I apply LaTeX Paper correctly?
Key practices: Use serif fonts throughout with font-serif; add tracking-tight on headings for a Computer Modern feel. Center the document head: title text-3xl md:text-4xl, author line text-sm, italic date, stacked vertically. Set the abstract as a narrow indented block max-w-xl mx-auto px-8 with a centered bold small heading.
What are common mistakes with LaTeX Paper?
Avoid: Never draw vertical rules or zebra striping in tables — booktabs allows horizontal rules only. Never use large colorful buttons or gradients — actions are solid ink, thin outlines, or hyperref-blue links. Never set body text in sans-serif — it breaks the paper feel; use monospace only for code.
How do I prompt AI to generate LaTeX Paper 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, paper, LaTeX, typesetting.
Global Styles

Global CSS

css
/* 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

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.

AttributeLaTeX PaperArcade CRT
Primary color#111111#39ff14
Secondary color#FFFFFF#050505
Best foracademic / paper / LaTeXCRT effect / arcade style / scanlines
Unique tags——
Design Philosophy

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.