Best For
academic / paper / LaTeX
论文排版风
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.
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
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#111111
Secondary
#FFFFFF
Accent 1
#0B5394
Accent 2
#F5F5F0
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: LaTeX Paper
style_slug: latex-paper
style_source: /styles/latex-paper
# 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 LaTeX Paper design expert. Everything is numbered, everything is citable.
## Core Palette
- Paper: #FFFFFF (page background, the only background)
- Ink: #111111 (all text, heavy rules, primary buttons)
- Hyperref blue: #0B5394 (links and cross-references ONLY; blue means clickable)
- Theorem fill: #F5F5F0 (theorem/definition/remark environments)
- Rule gray: #D4D4D0 (thin rules, input borders); muted text: #6B6B66
## Typography
- Serif everywhere: font-serif with tracking-tight on headings (Computer Modern feel)
- Document head is centered: title, then author line with superscript affiliations, then italic date
- Section headings carry hierarchical numbers: 1, 1.1, 1.2 — bold number and title on one line
- Body column: max-w-2xl or max-w-3xl, text-[15px] or text-base, leading-relaxed
- Code uses font-mono inside bg-[#F5F5F0]; math is simulated with italic serif
## Structural Environments
- Abstract: narrow centered block (max-w-xl mx-auto px-8) with centered bold "Abstract" heading
- Theorem box: bg-[#F5F5F0] or border-l-2 border-[#111111], bold label ("Theorem 1."), italic body
- Display equation: own centered line in italic serif, with (n) number flushed right
- Table: booktabs only — border-t-2 and border-b-2 in #111111, thin border-b under header, NO vertical rules, NO zebra rows; caption ABOVE the table ("Table 1: ...")
- Figure: content + centered caption BELOW ("Figure 1: ..."), caption in text-sm
- References: hanging indent (pl-8 -indent-8), [n] labels, cited inline as [1] in #0B5394
- Footnotes: superscript numbers in #0B5394 linking to a rule-separated footer block
## Interactions
- Links: text-[#0B5394] hover:underline underline-offset-2, no color change on hover
- Buttons: rounded-none; primary = solid #111111 that inverts to white on hover; secondary = thin border
- Focus: focus:border-[#111111], never rings or glows
## Absolutely Forbidden
- Vertical rules or zebra striping in tables
- Colorful buttons, gradients, brand colors beyond the five-color palette
- Sans-serif body text
- Rounded corners (always rounded-none)
- Shadows of any kind (shadow-*)
- Decorative graphics, emoji, illustrations — visuals appear only as numbered figures
## Responsive
- Mobile: single column, keep the centered document head, tables scroll horizontally (overflow-x-auto)
- Desktop: centered column max-w-3xl; wide screens keep margins generous like a printed page
- Font sizes shift subtly: text-3xl md:text-4xl for the title; body stays 15-16px
## Self-Check
1. Does every section, equation, figure, and table carry a number?
2. Is blue used ONLY for links and cross-references?
3. Are all corners square and all surfaces flat (no shadow)?
4. Do tables have horizontal rules only?
5. Does the page read like a printable PDF?
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- draw vertical rules or zebra striping in tables — booktabs allows horizontal rules only
- use large colorful buttons or gradients — actions are solid ink, thin outlines, or hyperref-blue links
- set body text in sans-serif — it breaks the paper feel; use monospace only for code
- round corners — rounded-none everywhere, paper has no border radius
- use shadows (shadow-*) — paper is flat; hierarchy comes from rules and whitespace
- add decorative graphics, emoji, or illustrations — graphics may only appear as numbered, captioned figures
## 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 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
- [ ] never round corners — rounded-none everywhere, paper has no border radius
- [ ] never use shadows (shadow-*) — paper is flat; hierarchy comes from rules and whitespaceUse 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/latex-paper.jsonGrab this style's theme without leaving your terminal.
npx stylekit-cli add latex-paperLet Claude, Cursor & Windsurf apply “LaTeX Paper” while you code.
npx stylekit-mcpComponent Templates
论文语境的操作元素:墨黑实底主按钮、细边框次按钮、hyperref 蓝引用式链接
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
/* 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;
}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
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.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#111111 / #FFFFFF | 18.88:1 | ||
| Secondary text on background | /#6B6B66 / #FFFFFF | 5.36:1 | ||
| Muted text on background | /#6B6B66 / #FFFFFF | 5.36:1 | ||
| Text on secondary background | /#111111 / #F5F5F0 | 17.27:1 | ||
| Secondary text on secondary | /#6B6B66 / #F5F5F0 | 4.9:1 | ||
| Button primary | /#FFFFFF / #111111 | 18.88:1 | ||
| Text on accent 1 | /#111111 / #111111 | 1:1 | ||
| Alt text on accent 1 | /#6B6B66 / #111111 | 3.52:1 | ||
| Text on accent 2 | /#111111 / #F5F5F0 | 17.27:1 | ||
| Alt text on accent 2 | /#6B6B66 / #F5F5F0 | 4.9:1 |
Readability
Score
68/100
Font Size
text-[15px] md:text-base
Font Weight
font-serif 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.