Skip to main content

Which Docusaurus documentation sites set the typography standard, and what should DropTerm's site adopt?

Question: Which Docusaurus-based documentation sites from highly usable, well-regarded software products set the standard for readable docs, and what concrete typography and information-design choices do they make — base font size, line height, measure (line length), heading scale, code-block sizing, table/sidebar sizing — that DropTerm's Docusaurus site should adopt? The owner reports the body text feels too small.

Date: 2026-12-05

TL;DR​

The six verified Docusaurus sites ship stock Infima type or one sanctioned variable bump, and none exceeds DropTerm's current sizes: the body-size ceiling across the corpus is 17px — held by exactly the two sites that deliberately sized up (React Native and Redux) — which is what DropTerm's .markdown already runs at 1.65 line height (line height has been Infima stock since 2021). Four of six sites (Jest, docusaurus.io, Playwright, Relay) run the 16px stock body untouched, so the corpus offers no precedent for anything larger than DropTerm has today. The levers peers actually pull are elsewhere: tables and code blocks are always shrunk, never grown (React Native: th 80% / td 90% / code fences 80%); size overrides go on :root so the whole page scales (DropTerm's 17px is article-only, its sidebar/TOC stay 16px); and Infima's own doc-page heading scale is 3rem/2rem/1.5rem — larger than DropTerm's capped 2.5/1.75/1.375. One live conflict needs an owner ruling: the 2026-12-05 no-measure-cap ruling has no peer precedent in its absolute form — no surveyed site sets a ch cap either, but every one bounds the article to ≤1400px through containers, while DropTerm runs the corpus's widest container (1680px) with the cap removed. Both sides are recorded in finding 7; no winner is picked here.

Findings​

1. The verified corpus: six Docusaurus sites; tRPC and react-hook-form dropped​

Docusaurus-ness was verified from each site's own repository (dependency declarations, not page markers). All fetched 2026-12-05.

SiteRepoDocusaurus pinStyle file (pinned)
reactnative.devfacebook/react-native-website3.10.2 (website/package.json: "@docusaurus/core": "3.10.2", plus docusaurus-plugin-sass)website/src/css/customTheme.scss @ fe6a90bd0add45a7a9d42597dcdcaeb78e0e8f4c (2026-12-02)
jestjs.iojestjs/jest^3.0.0 (website/package.json)website/src/css/docusaurusTheme.css @ 6d2632adae0f0fa1fe116d3b475fd9783d0de1b5 (2023-02-09)
redux.js.orgreduxjs/reduxDocusaurus site in-repo (website/src/css/custom.css carries the stock scaffold comment "The classic template bundles Infima by default")website/src/css/custom.css @ 5a612d3b3b1d19b0f6e6c1df01f7626eb7f9e863 (2026-09-28)
docusaurus.iofacebook/docusaurusDocusaurus's own sitewebsite/src/css/custom.css @ ff28bdf06237631a3a8022030688c94993fc7eaa (2026-05-29)
relay.devfacebook/relay^3.6.3 (website/package.json)website/src/css/custom.css @ d0a7817aaafc3f8cebb686ae7a84ad294836e3b2 (2026-01-05)
playwright.devmicrosoft/playwright.dev3.10.1 (package.json)src/css/custom.css @ 7894321b81a324326bb54e275bfcfe93f5189c0a (2026-07-14)

Two candidates failed verification and were dropped per the task's rule:

  • tRPC (trpc.io): trpc/trpc www/src/ is a TanStack Router/Vite app (routeTree.gen.ts, router.tsx, styles.css) — not Docusaurus (GitHub contents listing, fetched 2026-12-05).
  • react-hook-form (react-hook-form.com): repo react-hook-form/documentation is Next.js 16 + contentlayer2 — not Docusaurus (package.json via GitHub contents API, fetched 2026-12-05).

DropTerm's own stack (Docusaurus 3.10.2, docs/package.json:12-14) is version-identical to React Native's and one patch behind Playwright's, so the stock baseline below is the same one these peers compile against.

2. The values matrix: what each site sets vs stock​

"Stock" = Infima 0.2.0-alpha.45, the exact copy DropTerm's build ships (docs/node_modules/@docusaurus/theme-classic/package.json:39 pins "infima": "0.2.0-alpha.45"), read from the local dist docs/node_modules/infima/dist/css/default/default.css and cross-checked against the source .pcss files at facebookincubator/infima@ebd117fc0ad82a4fd3fdab1dd79c26747522ae50 (repo head 2026-12-03). All peer values below from the pinned files in finding 1; px figures derived arithmetically from the stated base.

ValueStock (Infima α45)React NativeReduxJestdocusaurus.ioPlaywrightRelay
Body size--ifm-font-size-base: 100% (16px)17px17px ≥997px / 15px ≤996px————
Line height--ifm-line-height-base: 1.65——————
Doc h13rem (.markdown h1:first-child)article header h1 2.5rem !important, line-height 3rem—————
Doc h2 / h32rem / 1.5rem (.markdown > h2 / > h3)——————
Inline code--ifm-code-font-size: 90%85%95%——95%16px (= 100%)
Code fencefont: 90%/1.45 mono (--ifm-pre-line-height: 1.45)lines at 80%, --ifm-pre-line-height: 1.6————.exampleSection pre 80%
Table cellsinherit body sizeth 80%, td 90%/1.3em, padding 6px/10px—————
Container1140px / 1320px (--ifm-container-width[-xl]).main-wrapper max-width 1400px; --doc-sidebar-width: 266px !important—————
Sidebar/TOC/nav font sizesnone — inherit basenone (only navbar title 18px, tabs 15px)—————
Dark body text--ifm-color-content: #e3e3e3custom font shades ("ui: improve code blocks contrast, tweak dark theme shades (#5362)")—colors only—colors onlycolors only

Dashes are stock: the file sets nothing in that category. The headline pattern: no surveyed site sets a body size above 17px, and none overrides the heading-size variables or the line height. React Native and Redux are the only two that touched the base at all.

3. What stock Infima actually ships (the "no override" baseline)​

From the shipped dist file (docs/node_modules/infima/dist/css/default/default.css, infima 0.2.0-alpha.45; source files at the pinned infima head):

  • Base size is percentage-relative, not fixed: --ifm-font-size-base: 100% (:150), and the html rule consumes it as the font shorthand with the line height — font: var(--ifm-font-size-base) / var(--ifm-line-height-base) var(--ifm-font-family-base) (:373-378). Stock body = browser default 16px, line height 1.65 (:158). The 1.65 is not a recent change: the variable already reads --ifm-line-height-base: 1.65; at facebookincubator/infima@7e3a1e5 (2021-07-27), so every 3.x-era peer in the corpus compiled against the same baseline.
  • The article (.markdown) sets no base font size of its own — it inherits the 16px from html and carries only vertical rhythm: --ifm-leading-desktop: 1.25 and --ifm-leading: calc(var(--ifm-leading-desktop) * 1rem) (:209-210) drive .markdown > pre, .markdown > ul, .markdown > p paragraph spacing (source packages/core/styles/content/markdown.pcss), plus per-heading rhythm multipliers (:1052-1060).
  • Doc-page heading scale, on Infima's own selectors: .markdown h1:first-child → --ifm-h1-font-size: 3rem (:1077-1083), .markdown > h2 → 2rem (:1085-1092), .markdown > h3 → 1.5rem (:1094-1101), stepping down to 2rem/1.5rem/1.25rem at ≤576px (:2989-2999); the :root globals are 2/1.5/1.25/1/0.875/0.85rem with --ifm-heading-line-height: 1.25 (:198-205).
  • Code: --ifm-code-font-size: 90% (:184), pre set as font: var(--ifm-code-font-size) / var(--ifm-pre-line-height) var(--ifm-font-family-monospace) with --ifm-pre-line-height: 1.45 (:191, :953-962), pre code reset to 100% (:964-970), kbd at 80% (:972-980), --ifm-pre-padding: 1rem.
  • Chrome inherits, it does not size: .table-of-contents__link sets color only (:2054-2057), .menu__link color/padding/line-height 1.25 with no font-size (:2354-2360), .navbar__link weight only (:2517-2520); --ifm-navbar-height: 3.75rem (:329). Anything raised on --ifm-font-size-base therefore lifts the sidebar, TOC, and navbar with the body.
  • Containers: --ifm-container-width: 1140px / --ifm-container-width-xl: 1320px (:180-181).

4. Infima's own doc-page heading scale is bigger than DropTerm's​

DropTerm caps doc headings at 2.5/1.75/1.375rem on the same selectors Infima uses (docs/src/css/custom.css:224-232), i.e. below Infima's doc-page scale of 3/2/1.5rem — the only site in the corpus that overrides heading sizes downward. The comment there records why: "mono's fixed advance wraps titles early, so the h1 stops at 2.5rem" (custom.css:216-218). React Native independently caps its article titles at exactly DropTerm's value — article header h1 { font-size: 2.5rem !important; line-height: 3rem } at its pinned customTheme.scss — which is precedent for the h1 cap specifically; no peer data point exists for h2/h3 below stock. Heading sizes are in rem against the root element, so they do not scale with a .markdown body bump.

5. The body-size ceiling: 17px, and DropTerm is already there​

The two corpus sites that deliberately sized up both landed on 17px:

  • React Native: :root { --ifm-font-size-base: 17px; } — a fixed px value, not the stock 100% (customTheme.scss @ fe6a90b).
  • Redux: the same 17px, but responsive — @media (min-width: 997px) :root { --ifm-font-size-base: 17px } with a @media (max-width: 996px) :root { --ifm-font-size-base: 15px } arm (custom.css @ 5a612d3), the corpus's only mobile base-size treatment.

The other four (Jest, docusaurus.io, Playwright, Relay) ship the 16px stock — including docusaurus.io itself, whose custom.css contains zero typography rules beyond an announcement-bar 20px and a 0.875rem dropdown (custom.css @ ff28bdf). DropTerm's .markdown 17px / 1.65 (custom.css:220-223) therefore already matches the corpus maximum for both axes; nothing in the surveyed set supports going above it. The owner's "too small" report is against a baseline every one of these sites accepts: four ship smaller than DropTerm, two ship equal.

6. Code, tables, and chrome: peers shrink, never grow​

Every content-size deviation in the corpus is downward, and cluster around the information-dense regions:

  • React Native: inline code 85% (14.45px at 17px body), code-fence lines at 80% (13.6px) with fence line-height raised to --ifm-pre-line-height: 1.6 (stock 1.45), links-wrapping-code at 92%, table headers 80% with padding: 6px var(--ifm-table-cell-padding) and cells 90%/1.3em — plus the information-design comments in the file: "Keep cells on a single line; scroll horizontally instead of wrapping", an opt-in <div className="table-scroll"> wrapper for wide tables, and the 2026-12-02 commit touching this exact file is titled "ui: improve code blocks contrast, tweak dark theme shades (#5362)". Reference-density typography is an active, maintained concern there.
  • Redux (95%) and Playwright (95%, set per theme) take the mildest shrink; Relay is the outlier — --ifm-code-font-size: 16px, i.e. inline code at full body size, never shrunk.
  • No site sets sidebar, TOC, or menu font sizes (finding 3): chrome sizing is universally left to inheritance from the base variable.

DropTerm today: stock 90% inline code (15.3px at its 17px body — already above every peer's inline code except Relay's), stock fence 15.3px/1.45 (RN's fences are smaller and airier), stock full-size tables (17px cells — the corpus's largest table text; RN's are 13.6-15.3px).

7. Measure: the corpus conflicts with the no-measure-cap ruling — recorded, not resolved​

Both sides, as the evidence shows them:

  • The ruling's side (owner, 2026-12-05, custom.css:208-219): prose has no measure cap and fills the article column edge to edge; the reading pass's 60ch measure and its 74ch successor were both removed because "a capped column left the article's right half blank on a 1920 screen, and reference tables and fences already ran the full width around it."
  • The corpus's side: no surveyed site sets a ch or px max-width on .markdown or article — React Native's file explicitly has no max-width on either, so a literal measure cap is indeed not peer practice. But none of them lets an article run wide either: width is bounded structurally, through containers and columns. Stock Infima containers are 1140/1320px (finding 3), which inside a docs page leaves the article column roughly half a 1920 screen after the sidebar and TOC; React Native caps the entire .main-wrapper at 1400px (max-width: 1400px; width: 1400px, reverting to 100% only below 1416px) with the sidebar pinned at 266px. DropTerm's container is the corpus's widest — 1400px/1680px (custom.css:41-42) — and with the cap removed (plus the TOC column pinned to 15rem and the article column uncapped above 1440px, custom.css:240-251) its article is the only one in the corpus that can exceed 1400px.

So the corpus refutes neither the ruling's mechanism (a ch cap is not the peers' tool) nor its observation that fences and tables already run full width — but it offers zero precedent for an uncapped article at a 1680px container, and every peer bounds width harder than DropTerm does. Whether "too small" is a size problem or a measure problem (17px text at a ~1100px+ line length reads smaller than 17px at ~700px) is exactly the question the corpus cannot settle; per the task constraint, no winner is picked here. The owner rules.

8. The sanctioned override path, and where DropTerm sits on it​

  • The official styling docs (docusaurus.io/docs/styling-layout, fetched 2026-12-05) name the mechanism: "You can override Infima CSS variables globally", with :root { --ifm-color-primary: #25c2a0; --ifm-code-font-size: 95%; } in src/css/custom.css as the canonical example, and "@docusaurus/preset-classic uses Infima as the underlying styling framework" — with the advice to target stable theme class names for anything beyond variables, listing docMarkdown: 'theme-doc-markdown'.
  • Every peer override in finding 2 is exactly that: --ifm-* variables on :root (or a media-scoped :root) in the site's single global custom stylesheet. None overrides heading-size variables; none sizes chrome elements directly.
  • DropTerm is on-path where it overrides (the token mapping onto --ifm-*, custom.css:44-82; the heading-size variables set on Infima's own selectors, custom.css:224-232; container widths, custom.css:41-42) and structurally divergent in one place: its body size lives on .markdown rather than :root (custom.css:214-215 documents why — the landing page sets its own sizes). Consequence: DropTerm's article runs 17px while its sidebar, TOC, and navbar stay at the stock 16px — a split no peer ships, since every peer that raised the base raised it page-wide.

9. Dark-mode text colors​

Stock Infima dark body text is --ifm-color-content: #e3e3e3 (dist :2898, inside the dark scheme block at :2879); light is gray-900 #1c1e21 (:114, mapped via --ifm-color-emphasis-900 at :126). DropTerm's dark --text is #fafafa (custom.css:16) — brighter than stock — and its light #18181b (custom.css:121) is effectively stock. No peer's body text color exceeds stock brightness in the fetched files (Jest's and Playwright's dark files set only accent colors); text color is not a "feels small" lever in this corpus, and DropTerm is already at the bright end. Code-fence contrast is the one dark-mode legibility item a peer actively maintained during this window (RN's 2026-12-02 commit, finding 1) — DropTerm's prism tokens are pinned to the site checker's 4.5:1 gate (docs/docusaurus.config.js:356-361), an equivalent discipline.

What DropTerm has today​

Grounding, cited by file:line:

  • Body: .markdown 17px / line-height 1.65 (docs/src/css/custom.css:220-223), scoped off :root so the landing page keeps its own sizes (comment at custom.css:214-219).
  • Measure: no cap — the owner ruling of 2026-12-05 removed the 60ch and 74ch measures; prose fills the article column edge to edge (comment custom.css:208-219). Container 1400px/1680px (custom.css:41-42); TOC column pinned to 15rem and the article column uncapped at ≥1440px viewports (custom.css:240-251).
  • Headings: h1 2.5rem (h1:first-child), h2 1.75rem (> h2), h3 1.375rem (> h3) — below stock, capped for mono advance (custom.css:224-232); text-wrap: balance on headings and pretty on paragraphs (custom.css:252-260).
  • Code: stock 90% inline (≈15.3px), stock fence 90%/1.45; colors from the prism theme objects (docs/docusaurus.config.js:362-383), mermaid at 16px (docusaurus.config.js:312-315).
  • Tables: stock body-size cells, with the first-column key-chip handling (20% width hint, overflow-wrap: anywhere, custom.css:334-356).
  • Chrome: sidebar/TOC/navbar inherit stock 16px (no size overrides in custom.css); self-hosted Inter + JetBrains Mono via three mono weights and one variable-weight Inter (custom.css:179-206).
  • Stack: Docusaurus 3.10.2 exact pins (docs/package.json:12-14), infima 0.2.0-alpha.45 (docs/node_modules/@docusaurus/theme-classic/package.json:39).

Recommendation​

Adopt what the corpus sanctions, in precedent order; nothing below raises the body size, because the corpus ceiling is where DropTerm already is.

  1. Keep 17px / 1.65 on .markdown. It equals the corpus maximum (React Native, Redux — finding 5) and stock line height (finding 3). Raising above 17px is rejected: zero precedent across six sites, four of which ship less.
  2. Adopt the :root-wide sizing mechanism for the chrome split. Redux's and React Native's 17px is page-wide (--ifm-font-size-base on :root), lifting sidebar/TOC/navbar with the article; DropTerm's article-only bump leaves chrome at 16px (finding 8). If the small-text feel includes the sidebar and TOC, the sanctioned move is the variable on :root, with the landing-page caveat DropTerm's .markdown scope was built to avoid (custom.css:214-215) — a trade to weigh, recorded here without deciding it.
  3. Adopt React Native's dense-table treatment (finding 6): th at 80%, td at 90%/1.3em with tightened padding, keeping DropTerm's existing first-column chip rules. DropTerm's config-reference tables are the same species as RN's API tables and are currently the corpus's largest table text; this also moves tables with the no-cap ruling (full-width tables read denser, not larger).
  4. Optional: Redux's responsive arm — 15px base below 997px (finding 5), the corpus's only mobile treatment, if small-viewport density matters.
  5. Leave code-block sizing alone or shrink it, never grow: stock 90% inline already exceeds RN's 85% and the 95% pair; RN's fence pattern (lines 80%, line-height 1.6) is the precedent if fences should read denser-and-airier. Relay's full-size inline code is the documented counter-precedent if inline code ever feels cramped.
  6. Heading scale: record the trade, don't move silently. Infima's own doc scale is 3/2/1.5rem and DropTerm under-runs it at 2.5/1.75/1.375 (finding 4); restoring h2/h3 toward stock would strengthen hierarchy against the 17px body without touching body size, but the mono-advance wrap constraint that produced the cap (custom.css:216-218) applies more, not less, at larger sizes. React Native's 2.5rem article titles support the h1 cap as-is.

Rejected alternatives, spelled out:

  • A body size above 17px — no corpus precedent; the two sites that chose deliberately stopped at 17px and the site catalog (docusaurus.io) ships 16px.
  • Re-introducing a ch measure cap — conflicts with the 2026-12-05 owner ruling on file (custom.css:208-219), and the corpus shows the peers' actual width tool is the container, not a measure rule. Per the task constraint this record does not pick between the ruling and the corpus's structural width-bounding; that conflict is finding 7's subject and goes to the owner.
  • Shrinking the body on small viewports without Redux's precedent shape — the only peer mobile treatment is Redux's explicit 15px media arm; an unscoped shrink has no precedent.

Sources​

All fetched 2026-12-05. Repo sources pinned by commit (the SHA given is the newest commit touching that file, so content at the SHA equals content at fetch time).

  • facebook/react-native-website @ fe6a90bd0add45a7a9d42597dcdcaeb78e0e8f4c website/src/css/customTheme.scss — 17px base, code 85%, fences 80%/1.6, tables 80/90, article h1 2.5rem, main-wrapper 1400px, sidebar 266px, Optimistic Display; typography-relevant audit via the blob view's rendered portion (see Unverified). website/package.json @ main — Docusaurus 3.10.2 pins + docusaurus-plugin-sass.
  • jestjs/jest @ 6d2632adae0f0fa1fe116d3b475fd9783d0de1b5 website/src/css/docusaurusTheme.css — colors only, zero typography (stock body). website/package.json @ main — Docusaurus ^3.0.0.
  • reduxjs/redux @ 5a612d3b3b1d19b0f6e6c1df01f7626eb7f9e863 website/src/css/custom.css — 17px ≥997px / 15px ≤996px, code 95%, everything else stock; stock-scaffold header comments.
  • facebook/docusaurus @ ff28bdf06237631a3a8022030688c94993fc7eaa website/src/css/custom.css — no typography overrides (announcement bar 20px, archived-versions 0.875rem, video 560px only).
  • facebook/relay @ d0a7817aaafc3f8cebb686ae7a84ad294836e3b2 website/src/css/custom.css — --ifm-code-font-size: 16px only; .exampleSection pre 80%. website/package.json @ main — ^3.6.3.
  • microsoft/playwright.dev @ 7894321b81a324326bb54e275bfcfe93f5189c0a src/css/custom.css — --ifm-code-font-size: 95% per theme only. package.json @ main — Docusaurus 3.10.1.
  • facebookincubator/infima @ ebd117fc0ad82a4fd3fdab1dd79c26747522ae50 (head 2026-12-03), packages/core/styles/common/variables.pcss, common/variables-dark.pcss, content/heading.pcss, content/markdown.pcss, content/code.pcss — Infima source for the stock values; line-height 1.65 verified also at 7e3a1e5 (2021-07-27).
  • Local, DropTerm's shipped copy: docs/node_modules/infima/dist/css/default/default.css (infima 0.2.0-alpha.45 per docs/node_modules/infima/package.json:3 and docs/node_modules/@docusaurus/theme-classic/package.json:39) — the authoritative values this site's build compiles against.
  • docusaurus.io/docs/styling-layout — "You can override Infima CSS variables globally", the :root + --ifm-code-font-size example, "uses Infima as the underlying styling framework", and the stable-theme-class-name guidance (docMarkdown: 'theme-doc-markdown').
  • Dropped-candidate verification: trpc/trpc www/src/ contents listing (TanStack Router artifacts); react-hook-form/documentation package.json (Next.js 16.4.5).
  • DropTerm ground truth: docs/src/css/custom.css, docs/docusaurus.config.js (line cites in "What DropTerm has today").

Unverified​

  • React Native customTheme.scss tail: the file is 2571 lines; the audit ran over the GitHub blob view's rendered portion (first ~1000 lines) plus a whole-file category pass. All typography categories sought were either found there or reported absent, but raw-file routes (raw.githubusercontent.com, jsDelivr, statically.io, raw.githack.com) were unreachable or rate-limited this session, so lines ~1000-2571 (blog/author/showcase regions) were not audited line-by-line. A base-size or heading override hiding there cannot be ruled out.
  • Per-peer resolved Infima versions: the six repos' lockfiles were not fetched, so each site's exact shipped Infima alpha is unknown; stock values are cited at alpha.45. The stock typography baseline has been stable since at least 2021 (finding 3), which bounds the risk.
  • Peer intent: no fetched source states why RN/Redux chose 17px or why the others stayed stock — this record claims their values, not their reasoning. No surveyed file contains a readability rationale comment beyond RN's table-overflow notes (finding 6).
  • Playwright / Jest / docusaurus.io / Relay "well-regarded" standing is taken as given by their product status (major frameworks' official docs); no usability ranking was fetched or claimed.