Typography
arXiv sets all text in the IBM Plex family with STIX Two Math for notation. All fonts are self-hosted and open source with no external font services.
The font stack
The type family is IBM Plex, plus STIX Two Math for notation. Each face has a job.
IBM Plex Sans
Body text — paragraphs, author names, abstracts, UI.
Relevant code
font-family: var(--ds-font-sans);
- --ds-font-sans
- The default: where no other face applies, this is the answer. Weights 400 / 500 / 600 / 700, and 400 italic for emphasis.
IBM Plex Sans Condensed
Labels — metadata labels, table headers, uppercase section labels.
Relevant code
font-family: var(--ds-font-condensed);
- --ds-font-condensed
- Labels, table headers and metadata, usually small and uppercase. Weights 500 / 600.
- .ds-panel-label
- The ready-made label in this face; see Panel label below.
IBM Plex Mono
Code & identifiers — arXiv IDs, DOIs, BibTeX, code blocks.
Relevant code
font-family: var(--ds-font-mono);
- --ds-font-mono
- Identifiers and code. Weights 400 / 500; 600 and 700 for a note's label and a version mark. Inline
<code>and<pre>already use it; see Code blocks below.
IBM Plex Serif italic
Annotation voice — footnote text and figure alt-text in the reader margins. “The editor speaking quietly next to the body text.”
Relevant code
<p class="ds-annotation">Figure 2: the scalaron potential.</p>
- .ds-annotation
- The annotation voice:
--ds-font-serif, italic, 400, 0.8125rem,--ds-text-muted. It is a voice, not a layout role; where it sits is the consumer's decision. - --ds-font-serif
- The serif stack. On public pages and in internal tools it is used only through
.ds-annotation.
STIX Two Math
Mathematical notation.
Relevant code
font-family: "STIX Two Math", "Cambria Math", math;
- <math>
- No font token exists for math; use the stack directly on the notation. Loads with
font-display: autoper DESIGN-POLICIES.
The body text scale
The text sizes are set in rem so they move with the reader's base size. Browsers set the base size to 16px unless the reader changes it, so 1rem is 16px by default; the pixel sizes on this page assume that default.
Note
Meets accessibility guideline WCAG 2.2 SC 1.4.4 Resize Text (Level AA)
- 1rem · 16px
- Body text: paragraphs, abstracts, interface copy, on a 1.5 line-height.
- 0.875rem · 14px
- Small: secondary text, captions, and the code block.
- 0.8125rem · 13px
- Annotation: a margin footnote, figure alt text.
- 0.75rem · 12px
- Panel label
- 0.9em
inline codefollows the size of whatever it sits inside, a heading included.
Relevant code
<p>Body text.</p>
<small>Secondary text.</small>
<p class="ds-annotation">A margin footnote.</p>
<p class="ds-panel-label">Paper information</p>
<p>An identifier: <code>arXiv:2604.22725</code></p>
- <p>
- 1rem, the reader's base size. Nothing sets it; the browser does.
- <small>
- 0.875rem in
--ds-text-muted. - <pre>
- 0.875rem, line-height 1.6, on the dark chrome ground.
- .ds-annotation
- 0.8125rem, serif italic, line-height 1.45.
- .ds-panel-label
- 0.75rem, condensed, uppercase.
- <code>
- 0.9em, so it follows the size of its parent. When to use it rather than a block: Code blocks and the copy button.
The heading scale
Four levels, each larger than the one below it. On a laptop the step is about a quarter, which puts h1 at twice body size; on a phone it is 4px, so a long title takes fewer lines. Sizes are in rem so they follow the user's base setting. That base is 16px unless the reader has changed the browser's default, so the pixel sizes below assume 16px.
- h1 · 1.75–2rem · 700
- Gauge-independent approach to inflation
- h2 · 1.5rem · 600
- Submission history
- h3 · 1.25rem · 600
- Gauge-invariant perturbations
- h4 · 1rem · 600
- Boundary conditions
Relevant code
<h1>Gauge-independent approach to inflation</h1>
<h2>Submission history</h2>
<h3>Gauge-invariant perturbations</h3>
<h4>Boundary conditions</h4>
- <h1>
- The page's one subject: what the page is about, stated once — a paper title, a form name, a console view.
A page that seems to need two h1s is two pages.
clamp(1.75rem, 1rem + 2vw, 2rem): 28px on a phone, 32px from about 800px wide · 700 · line-height 1.25 · space above 0, below--ds-space-4. - <h2>
- A major section: a top-level division of that subject — Abstract, Submission history, References,
each step of a submission form. 1.5rem (24px) · 600 · line-height 1.25 · space above
--ds-space-8, below--ds-space-3. - <h3>
- A division inside one section: a subsection of a paper, or a card heading inside a panel. It only exists where an
h2 already does. 1.25rem (20px) · 600 · line-height 1.25 · space above
--ds-space-8, below--ds-space-2. - <h4>
- The smallest named step: a named paragraph in a paper, a field group in a form. This is the last level the
scale defines; needing an h5 is a sign the content wants restructuring, not a fifth size. 1rem (16px) · 600 · line-height 1.25 · space above
--ds-space-4, below--ds-space-2.
Text links
Links are typography too. Inline links in body text are always underlined (to pass WCAG 1.4.1). Standalone navigation links and groups of links that are not part of body text (headers, footers, author list) drop the underline to reduce noise.
Full state-by-state references (rest / hover / visited / focus / disabled, light and dark): Links. Link color tokens with ratios: Colors.
Note
Meets accessibility guideline WCAG 2.2 SC 1.4.1 Use of Color (Level A)
Relevant code
Reading text with <a href="/abs/2604.22725">an inline link</a> in it.
- a
- The inline text link: a bare
<a>inside.ds-page, with no class. Both surfaces use the same--ds-link-*tokens and the same values. - --ds-link, --ds-link-hover, --ds-link-visited
- Rest, hover and visited colors. The underline does not change between states.
- --ds-focus-ring
- The 3px keyboard focus ring, drawn on
:focus-visibleonly.
A list of author links
Adrian Palomares, Mei Lin Chen, Kwame Mensah, Abhay Ashtekar
Relevant code
<p class="ds-link-list">
<a href="/a/palomares_a_1">Adrian Palomares</a>,
<a href="/a/chen_m_1">Mei Lin Chen</a>,
<a href="/a/mensah_k_1">Kwame Mensah</a>
</p>
- .ds-link-list
- On the element that holds a list in which every item is a link, such as an author list or a column of footer links. The links drop the underline at rest and keep everything else: Link Blue, the underline on hover, the focus ring and the visited color. There is no ordinary text beside them for the underline to separate them from, so color alone is enough here.
Search-matched words
The words that matched a search are marked with <mark>, in the info blue and a heavier weight.
Note
Meets accessibility guidelines WCAG 2.2 SC 1.4.1 Use of Color (Level A) and WCAG 2.2 SC 1.4.3 Contrast (Minimum) (Level AA)
Weak-Lensing Shear Response for Photometric Redshift-Based Tomographic Binning
Relevant code
<p>Weak-<mark>Lensing</mark> Shear Response for Photometric Redshift-Based Tomographic Binning</p>
- <mark>
- One matched word or phrase. No class: the element is styled inside
.ds-page. The weight marks it as well as the color, so it is never color alone. The blue is--ds-info-bg, the same in internal tools.
Code blocks and the copy button
A code block uses Plex Mono on Repository Brown, and always
includes a copy button. Use a block for code a reader copies, or code that runs over more than
one line. A short name or example in running text that a reader would not copy, such as a file name
or a list of allowed characters, is inline <code>, which has no button.
Note
Meets accessibility guidelines WCAG 2.2 SC 4.1.2 Name, Role, Value (Level A) and WCAG 2.2 SC 4.1.3 Status Messages (Level AA)
The main action on a page takes .ds-btn-primary:
<button class="ds-btn ds-btn-primary" type="button">Save</button>
Relevant code
<!-- A name in running text: inline -->
<p>The main action on a page takes <code>.ds-btn-primary</code>:</p>
<!-- Code to copy: a block, written the way you already do -->
<pre><code><button class="ds-btn ds-btn-primary" type="button">Save</button></code></pre>
<!-- And include the script once, at the foot of the page -->
<script src="copy.js" defer></script>
- <code>
- Inline code: a short name or example inside a sentence, which a reader would not copy. No copy button.
- <pre><code>
- The block, for code a reader copies or code that runs over more than one line. Escape
<,>and&inside it. No wrapper and no button of your own. - <script src="copy.js" defer>
- Once per page, at the foot. It finds every
<pre>on the page and adds the control. - .ds-code, .ds-code-copy
- The wrapper and the button. The script writes both; never hand-build them.
- [data-no-copy]
- On a
<pre>, opts that block out — for a block that is an illustration of output rather than something to take away.
Panel label
The small uppercase Condensed label that names a panel, a column or
a group. It is not a heading level and stays out of the document outline — if a reader
needs to navigate to it, it is an h3 or an h4 at the sizes above.
The test: if a paragraph follows it, or it covers several examples, it is a heading. Otherwise it is a panel label, naming the one example directly below it. A panel label is a few words, never a sentence. Public and internal versions of one example take panel labels.
Note
Do not reach for it as a heading substitute. A label that a reader needs to navigate to is a heading.
Paper information
The label sits closer to what it introduces than to what precedes it, so it bonds downward. That relationship is intrinsic to the thing, not something its context supplies — which matters because half the instances in these pages are paragraphs rather than headings.
Relevant code
<p class="ds-panel-label">Paper information</p>
- .ds-panel-label
- One class for the label of a panel, a column or a group of controls: 0.75rem · 600 · Condensed · uppercase · 0.04em ·
--ds-text-muted, on whichever element is semantically right. A component that owns its internal spacing takes the margin back. A few small components, such as a data card and a popover, set the same treatment at their own smaller size.
Accessibility essentials
- Keep the heading order. One
<h1>per page, then<h2>,<h3>and<h4>in order, without skipping a level, inside a card too. Choose the level from the outline, not from the size you want; the scale gives each level its size. A screen reader user moves through the page by these levels. - Write sizes in rem, never in px. A reader who raises the browser font size
must see every piece of text grow. Give a control its padding and minimum width in
em, so the box grows with its label. - Let text reflow at 200% zoom. Do not give a box that holds text a fixed
height, and do not cut text off with
overflow: hiddenunless there is another way to read all of it. At 400% page zoom a 1280px screen is a 320px screen, and the page must not scroll sideways there. - Put text in text, not in images. An image of words cannot be resized,
translated, searched or read aloud. If an image must include words, the same words go in its
alttext or next to it. - Uppercase comes from CSS, never from the keyboard. The panel label is
uppercase because
.ds-panel-labelmakes it so. Type it in sentence case, so copy-and-paste, search and screen readers get the real words.
Rules
Which faces where — the three contexts
One family, three contexts. Internal tools and public pages share the working set; outreach properties add the upright serif and the heaviest sans. A face without a mark is not used in that context.
| Face · weights | Internal tools | Public pages | Outreach |
|---|---|---|---|
| IBM Plex Sans · 400 / 500 / 600, 400 italic | ✓ all text | ✓ all text | ✓ all text |
| IBM Plex Sans · 700 | ✓ h1, alert titles, a pressed toggle | ✓ h1, alert titles, a pressed toggle | ✓ the one heading that must not read as an article |
| IBM Plex Sans Condensed · 500 / 600 | ✓ labels, table headers | ✓ labels | ✓ labels |
| IBM Plex Mono · 400 / 500, 600 / 700 | ✓ IDs, code; 600 and 700 for note labels | ✓ arXiv IDs, code; 600 and 700 for note labels and version marks | ✓ code, plus a display register (wordmark, standfirst) |
| IBM Plex Serif · 400 italic | annotation voice only (.ds-annotation) | annotation voice only (.ds-annotation) | ✓ emphasis, bylines, prev/next |
| IBM Plex Serif · 400 / 600 upright | — | — | ✓ headlines to display size, pull quotes, drop caps |
| STIX Two Math · 400 | — | ✓ math in HTML papers | — |
- 700 is the ceiling. IBM Plex ships no heavier weight, so a CSS
800either falls back or gets faux-bolded, differently per browser. Ask for the weight that exists. - Two serif jobs, kept apart. Upright serif is the editorial voice — headlines, quotes, drop caps. Italic serif stays the annotation voice everywhere. A heading that must not read as "another article" uses the heavy sans instead, which is why 700 exists in this context at all.
- Mono as display type is an outreach liberty: the typewriter register echoes the main site's identifiers. On public pages, mono still means "this is an identifier or code."
Headings
Space is given as spacing tokens, not pixels, because that is
what design-system.css implements — --ds-space-8 is 2rem, --ds-space-6
is 1.5rem, and so on down the scale.
- On a laptop, the ratio is 1.25 — a major third — rounded to quarter-rem steps: 1, 1.25, 1.5, 2rem. A strict geometric run would put h2 at 1.5625rem; a quarter of a rem is the number a person can hold in their head and type without checking. The rounding is what makes h1 land on exactly double the body size.
- Among headings, 700 is the h1's alone. IBM Plex ships nothing heavier, so 700 is the ceiling,
and among headings it is spent on the one that names the page. Every heading below it is 600. Always state the weight: a rule
that sets only
font-sizeinherits the browser default bold, which is how several pages ended up with an h3 heavier than the h2 above it. - Space above is at least twice the space below. A heading belongs to the text it introduces, not the text it follows, and the gap has to say so. The values sit on the 4px rhythm in Spacing.
- The page heading scales with the screen, and the steps shrink with it. A step can shrink but never disappear: each level is at least a quarter of a rem (4px) larger than the one below. Most of its size is in rem and the largest is less than 2.5 times the smallest, so browser zoom scales it fully (WCAG 1.4.4); text-only zoom scales only the rem part, so there it grows a little less than body text.
- The uppercase Condensed label is not a heading level. Set in
--ds-font-condensedand--ds-text-muted, it marks a panel or a column and stays out of the document outline. If a reader needs to navigate to it, it is an h3 or an h4 at the size above, not a label.
The copy button
- There is no markup for the button, and that is the design.
copy.jsfinds every<pre>on the page, wraps it in.ds-codeand inserts the control, which is.ds-code-copy. A block added next year is covered without anyone remembering, which a per-block wrapper would not be. Every page underdocs/already loads the script. - The button sits over the top corner of the code, on a solid ground. The block keeps even padding, and a long line that scrolls under the button is hidden behind it rather than showing through.
- It is an icon, and it still says “Copy”. The two overlapping
sheets are the glyph people already know, so the control needs no label taking up room over
the code. Both SVGs are
aria-hiddenand the button hasaria-label="Copy code", which is what a screen reader announces. A block inside a<figure>is named by its<figcaption>instead: “Copy BibTeX” for a paper's citation. Thetitleis the pointer affordance only — assistive technology takes thearia-labeland ignores it. - Success is announced, not just shown. The icon becomes a green tick, and the status region says “Copied to clipboard”, as in Show that something was copied.
- It works from disk. The asynchronous Clipboard API needs a secure
context, which
file://is not, and it rejects when the window is not focused. Both cases fall back toexecCommand, and if that fails too the status region says so rather than the button quietly doing nothing. Either way, focus stays on the button. - A block wider than its box can be reached by keyboard. When a line of
code is too long to show, the script adds
tabindex="0"to the block, so a keyboard user can tab to it and scroll it with the arrow keys. It does this for every block, opted out or not, and takes it away again when the window is wide enough to show the whole block. - Without JavaScript there is no button and the code is still selectable. The button is a convenience; it is never the only way to get the text.
- Opt a block out with
<pre data-no-copy>— for a block that is an illustration of output rather than something to take away.
Sizes are rem, and a box that holds text scales with its text
A browser font-size setting has to reach arXiv content (DESIGN-POLICIES,
Magnification), so every type size is rem. But a label that grows
inside a box that does not is no better than a label that never grew: set a control's padding
and minimum width in em, against its own label, and the whole control follows the
reader. Absolute floors stay absolute — min-height: 24px is a WCAG target
size, not a type size. Body text never scales fluidly — it follows the user's base size exactly.
Self-hosted, with honest fallbacks
No Google Fonts, no Typekit, no CDN fonts (DESIGN-POLICIES.md). Every font-family declaration includes system fallbacks; text fonts load with font-display: swap (readability first), STIX Two Math with font-display: auto (math must render in the correct face).
Do not fight the reader
No fixed line-heights, no pinned letter-spacing, no !important on font-family in content areas. User stylesheets, reader-mode extensions, and OS settings win — "HTML gives you freedom: you can use software to change colors or typefaces" (research, dyslexia section).
Spec
Everything above is the design. This is what an implementer needs: the tokens, the
files, the @font-face rules and the fallbacks. Placed last because it is reference, not reading.
Why IBM Plex
Open source under the SIL Open Font License, so there is no licensing cost and no vendor dependency; self-hostable as woff2 from arXiv's own assets; one designer's family covering Sans, Condensed, Mono and Serif so nothing is mixed; broad language coverage including Latin Extended, Cyrillic, Greek, Arabic, Hebrew, Devanagari and Thai; and it pairs with STIX Two Math, which is built for the same technical context. The family was re-evaluated in June 2026 against Atkinson Hyperlegible Next, Source Sans 3, Inter and Public Sans, and kept — that comparison lives in the planning notes, not here.
Tokens
--ds-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--ds-font-condensed: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
--ds-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
--ds-font-serif: "IBM Plex Serif", Georgia, "STIX Two Text", "Times New Roman", serif;
Every stack includes system fallbacks so text stays readable if the web fonts fail: sans falls to the OS system font, mono to the platform monospace. There is no math token — STIX Two Math is applied by the paper renderer on HTML paper pages, not by the design system, so the stylesheet does not declare one.
Available weights, and sanctioned ones
Every weight and style IBM Plex ships is self-hosted — Thin 100, ExtraLight 200,
Light 300, Regular 400, Text 450, Medium 500, SemiBold 600 and Bold 700, each with an italic,
across Sans, Sans Condensed, Mono and Serif. That is 64 files and about 4 MB in the repository,
and it costs a reader nothing: a @font-face rule downloads only when a page uses
that face.
Available is not the same as approved. Only the faces the design system uses are declared in fonts.css; the rest are present but commented out, so you can see what exists without going to look for it. Uncommenting one is how you turn it on — and it is a decision, not a formality.
| Weight | Use it for |
|---|---|
| 400 Regular | Body copy, and anything that is read rather than scanned. |
| 500 Medium | Navigation, table headers, the quieter emphasis. |
| 600 SemiBold | Headings, button labels, and the label half of a label/value pair. |
| 700 Bold | The h1, alert titles and a pressed toggle's label — see the heading scale. |
| 100, 200, 300, 450 | Lighter weights are present, but unused and commented out. See warning below. |
Light weights are an accessibility problem that contrast ratios do not catch
Thin, ExtraLight and Light are in the repository but not used. At interface sizes their strokes are too fine for many readers to resolve even when the color passes AA — the ratio measures the hue, not whether the letterform survives. Body and interface text use 400 or heavier. Anything lighter belongs at display sizes, if anywhere, and is worth testing before it ships.
The files
Self-hosted woff2, from arXiv's static assets. No external font service — see DESIGN-POLICIES for why that one is a hard constraint.
/static/fonts/
IBMPlexSans-*.woff2 8 weights x roman/italic = 16 files
IBMPlexSansCondensed-*.woff2 8 weights x roman/italic = 16 files
IBMPlexMono-*.woff2 8 weights x roman/italic = 16 files
IBMPlexSerif-*.woff2 8 weights x roman/italic = 16 files
STIXTwoMath-Regular.woff2 ← HTML paper pages only
This repo's pattern pages serve the same files from docs/fonts/, declared in
fonts.css, which every page links ahead of the stylesheet. The
@font-face rules live in that separate file rather than in the design system itself, because
consumers bundle the design system with their own font paths. Files come from
IBM/plex (OFL).
@font-face
@font-face {
font-family: "IBM Plex Sans";
font-weight: 400;
font-style: normal;
font-display: swap;
src: url("/static/fonts/IBMPlexSans-Regular.woff2") format("woff2");
}
/* …one per weight and style… */
@font-face {
font-family: "STIX Two Math";
font-weight: 400;
font-display: auto;
src: local("STIX Two Math"),
url("/static/fonts/STIXTwoMath-Regular.woff2") format("woff2");
}
font-display: swapfor text: the fallback shows immediately and swaps when the real font arrives. Readability beats visual stability.font-display: autofor STIX Two Math: maths in a fallback font can be actively wrong, so it is better to wait briefly.local()for STIX Two Math skips the download if the reader already has it. Only paper pages load STIX.
Which faces each surface uses
| Surface | Body | Labels | Code | Math |
|---|---|---|---|---|
| Abstract pages | Plex Sans | Plex Sans Condensed | Plex Mono | — |
| HTML paper pages | Plex Sans | Plex Sans Condensed | Plex Mono | STIX Two Math |
| Internal tools | Plex Sans | Plex Sans Condensed | Plex Mono | — |
| Homepage, listings, search | Plex Sans | Plex Sans Condensed | Plex Mono | — |
Sizes in use
The sizes the stylesheet sets, in rem, with the pixel size at the browser's default base size of 16px.
| Use | Size | Weight | Face |
|---|---|---|---|
| Page heading (h1) | 1.75–2rem · 28–32px | 700 | Plex Sans |
| Section heading (h2) | 1.5rem · 24px | 600 | Plex Sans |
| Subsection heading (h3) | 1.25rem · 20px | 600 | Plex Sans |
| h4; body text | 1rem · 16px | 600; 400 | Plex Sans |
| Secondary text, captions | 0.875rem · 14px | 400 | Plex Sans |
| Code blocks | 0.875rem · 14px | 400 | Plex Mono |
| Inline code, identifiers | 0.9em of the text around it | 400 | Plex Mono |
| Annotation (margin footnote, alt text) | 0.8125rem · 13px, italic | 400 | Plex Serif |
| Header links | 0.8125rem · 13px | 500 | Plex Sans |
| Panel labels, table headers | 0.75rem · 12px, uppercase | 600 | Plex Sans Condensed |
| Popover title, switch label | 0.6875rem · 11px, uppercase | 600 | Plex Sans Condensed |
| Tags | 0.6875rem · 11px, uppercase | 500 | Plex Mono |
| Data card labels | 0.625rem · 10px, uppercase | 600 | Plex Sans Condensed |
| Modal title | 1.125rem · 18px | 600 | Plex Sans |
| Accordion label, modal body | 0.95rem · 15.2px | 600; 400 | Plex Sans |
Table cells (.ds-table) | 0.8125rem · 13px | 400 | Plex Sans |
A plain <table> in prose | 0.9375rem · 15px | 400 | Plex Sans |
| Accordion body, TOC bar list | 0.85rem · 13.6px | 400 | Plex Sans |