§ Theorem Docs v2.4 Search theorems… ⌘K 260 / 760 / 260 · FLAT 1PX § 02 · Technical Documentation System Theorem Docs Three-column technical clarity · burnt-orange bookmark VERIFIED PROOFS 1,284 +12.4% vs Sep § 02 · Core Theorems 12 § 03 · API Ledger 99.4% Publish spec Verified

Theorem Docs

Pro

Theorem Docs is a UI guide written for AI. Hand it to Claude Code, Cursor, or another AI coding tool, and the pages it builds look like this.

Best for: developer docs, API references, knowledge bases

  1. Copy the promptClick "Copy prompt". It copies an English prompt — no need to read it.
  2. Paste into your AI coding toolWorks in Claude Code, Cursor, or Codex. It downloads this guide on its own.
  3. Say what you want to buildFor example, "build an SDK documentation portal". Every page follows these rules.

Requires an AI coding tool that can run commands. The download link in the prompt works for 24 hours; come back here to copy a fresh one.

Examples

Theorem Research · 体验复盘2026 年 11 月 · § 03
§ 01 · 接入体验

研发团队接入设计系统的第一周,卡在旧样式隔离

我们跟访了 18 个首次迁移至 Theorem Docs 的前端团队。情绪最低点不在令牌安装,在旧全局 CSS 与新组件混用那一环。

周周以宁用户体验研究 · 2026-11-20 · 阅读 6 分钟

十月,我们请 18 个工程团队连续七天记录接入过程,每日给出 −3 到 +3 的体验分。

出现频次最高的词是「全局样式串味」:126 条记录里有 41 条发生在第三天迁移旧页时。

第四天跑通自动对比度与零左竖条巡检后,评分升至全周最高 +2.4。

§ RESEARCH COHORT
18
个团队
7
天追踪
126
条日志
一周内上线11完成校验4迁移中3
图 1首次接入七日旅程(阶段 × 触点 × 情绪)
STAGE
01发现
02接入
03迁移旧组件
04首次验收
05持续维护
ACTION
从开源 README 点进文档站首页
复制提示词并同步 tokens.css
替换旧按钮与表单,遇到自定义类名冲突
跑通 leftbar 与对比度自检脚本
每周新增业务页,需要统一范式参考
TOUCH
GitHub文档首页
安装指南tokens.css
组件文档迁移清单
CI 日志自检报告
范式库choose.md
SCORE+30−3
+1.2+0.7−2+2.4+0.4
最低点 · 样式冲突
32% 团队在旧样式覆盖处卡壳
最高点 · 零告警过检
18 组团队里 14 组当天合入主干
QUOTE
「三栏排版很干净,马上能找到安装项」
「两分钟就把浅深双套主题套进去了」
「旧页面的全局样式把表头挤偏了」
「全部 0 告警通过的那一刻很踏实」
「组件选型表比翻旧代码快太多」
ACTION
1首页顶部直放 CLI 安装命令
2提供一键检测脚本验证令牌导入
3改用作用域隔离并附迁移检查项
4验收通过自动生成可分享徽章
5把 5 个高频页面范式前置到目录
来源:Theorem Docs 访谈 2026-10 · 斜线阴影区为负情绪区间
32%
在旧样式冲突处耗时
12 分钟
完成令牌迁移中位时长
0 条
左竖条违规命中
11 / 18
首周即上线生产
§ 02

改进清单

按影响排序
§改进项具体做法阶段预期状态
3局域 CSS 隔离默认提供 .vn-gx 作用域与 --vn-tw-* 变量前缀,零污染旧页迁移组件冲突 −90%已上线
1CLI 首屏命令文档首页顶部放一键复制安装命令与依赖检测发现接入 −5m已上线
4过检徽章门禁全绿后自动生成 README 规范认证标首次验收分享 ×2开发中
样例数据 · Theorem Docs 研究报告版式docs.theorem.dev/research/03
Theorem Cloudv2.4 战略会
内部 · 规格
2027.01.08
Berlin / Remote
第 01 版
共 05 页
§ 01 / 05
§ 00 · DOCUMENTATION PLATFORM STRATEGY
2027
STRATEGIC SPEC

从静态文档站,
到研发团队的活规格平台

三件事:把引用校验与 API 台账做进来,开团队版,开放 OpenAPI。

2027 文档平台 2024 · 文档引擎 三栏静态站 2026 · 规格校验 引用图谱与 API 3,860 付费研发团队
2026 索引量
41.2M同比 +57%
付费团队
3,860净增 1,410
净收入留存
118%连续 4 季 >110%
2027 目标
$100MARR 翻一倍多
0.0 / 8.0s
§ Theorem Docs规格笔记
第 07 期
2026.11
v2.4 Spec
08 09 10
三个月
§ 01 · VERIFIED GROWTHQ3–Q4 BENCHMARK
+18%

迁到三栏文档,
检索转化涨了 18%。

索引 1,284 页延迟 18ms断链 0 条
图 1 · 每半月文档检索量(千次)§ 02 · 焦橙聚焦
2088月上
2448月下
2329月上
2809月下
32810月上
38410月下
THREE-COLUMN CLARITY · BURNT-ORANGE BOOKMARK

统一冷白纸面配 1px 细线,阅读零干扰。

85 组件 + 浅深双套主题,即抄即用。

theorem.dev
Base prompt + Web app suffix
React + Tailwind v4, replace components per STYLE.md

Components

85 components · 145 states
409variants
4templates
2themes

Brand guide

12 rules · from STYLE.md

Three-column clarity, one burnt-orange bookmark.

Measured from Arvind's 1440px documentation specimen: neutral paper (#f9fafb), 1px structural hairlines, 15% burnt-orange bookmark washes, and flat obsidian proof blocks — zero inline shadows and zero left accent bars.

Rules
Colour & planes3 rules
  1. 01
    Keep burnt-orange scarce and purposeful.

    Light mode pairs cold paper --background (#f9fafb) and --card (#ffffff) with burnt-orange #c44c14; dark mode switches to matte obsidian #111214 and ember #f07c3e.

  2. 02
    Never hard-code hex, rgb or hsl colours.

    Pull every surface and label from tokens: bg-background, bg-card, bg-(--vn-tint), bg-(--vn-wash), text-(--vn-accent-ink) and var(--chart-1…5).

  3. 03
    No gradients on cards or KPIs; invert to obsidian.

    Lead metrics (<Kpi tone="gold" />), tooltips and bulk action bars invert into flat obsidian .vn-proof (#14161b with #f3f4f6 ink) — never CSS gradients.

Structure & zero left bars3 rules
  1. 04
    Zero drop shadows on inline surfaces.

    Cards (.vn-theorem), top bars (.vn-topbar), inputs and tables carry zero shadow or blur. Only floating overlays (.vn-float) cast --vn-float.

  2. 05
    Never draw coloured left vertical bars.

    Active nav, menu, tab and table rows use full-row 15% burnt-orange .vn-bookmark wash. Quotes (.vn-quote) and alerts use full 1px frames; active TOC items use plain .vn-anchor text.

  3. 06
    Honour the 260 / 760 / 260px reading grid.

    Top bar is 76px (--vn-nav-h), left and right rails are 260px (--vn-rail-w), prose measure is 760px (--vn-prose-w), with 40px gutters (--vn-gutter).

Controls & icons3 rules
  1. 07
    One primary .vn-cta button per section.

    Default controls are 37px (26/31/37/44px) with 8px corners. Use .vn-cta once, paired with .vn-tonal or .vn-outlined — never pill buttons.

  2. 08
    Use the 6 / 8 / 10 / 12px radius ladder.

    Tags and keycaps use 6px (never pills), buttons and nav rows 8px, cards and inputs 10px, and floating overlays 12px.

  3. 09
    Respect icon stroke hierarchy (1.25 / 1.5 / 2px).

    Search fields use 1.25px strokes; navigation, buttons and cards use 1.5px; reserve 2px strictly for tiny 12–13px checkmarks.

Type, charts & motion3 rules
  1. 10
    Keep the three typographic voices distinct.

    Upright Space Grotesk (-0.02em, never italic) for headings and KPIs; IBM Plex Sans (16px / 1.75) for prose; JetBrains Mono for § indices, headers and tags.

  2. 11
    Render charts as technical monograph figures.

    All 8 charts pair dashed reference grids, 4px-beveled bars, flat-ended (butt) arcs, diagonal SVG hatch radar fills, squared legend keys and mono ticks.

  3. 12
    Crisp 120ms tactile response & reduced motion.

    Motion uses --vn-quick: 120ms with a 1px .vn-press press and disables transitions and shimmers under prefers-reduced-motion.

Which component39 common situations · from choose.md
SituationUse

Primary action on the screen

default (.vn-cta): flat burnt-orange 37px, 8px radius, one per section

Secondary or supporting actions

secondary (.vn-tonal wash), outline (.vn-outlined) or ghost

Destructive confirmation

Full-bordered destructive Alert (zero left bar) + Button + .vn-float Dialog

Tactile press on cards or rows

120ms tactile press honoring reduced motion

Bulk actions for selected rows

Obsidian .vn-proof floating bar with .vn-index count

Don't do
  • Drop shadows or backdrop-blur on inline cards, bars, inputs, buttons or tables
  • Coloured left vertical bars on nav items, alerts, blockquotes, cards or timelines
  • CSS gradients on cards, buttons or KPIs (use flat obsidian .vn-proof instead)
  • Pill-shaped rounded-full buttons or badges breaking the 6 / 8 / 10px ladder
  • Two or more .vn-cta burnt-orange primary buttons in the same section
  • Italicizing Space Grotesk headings or hard-coding hex values inside components
Signature looks
Burnt-orange CTA & bookmark tonal.vn-cta · .vn-tonal · .vn-outlined

Measured 37px height, 8px corners, zero shadow: flat burnt-orange CTA paired with 15% wash secondary and 1px hairline outline.

§ 02 · Core Theorems12
§ 03 · API Ledger
15% burnt-orange bookmark row.vn-bookmark · .vn-index

Active sidebar, menu and table rows flood the full 8px row with --vn-wash and mono § indices — zero left vertical bars.

§ 01 · VERIFIED PROOFS
1,284+12.4%
Obsidian proof block.vn-proof · .vn-num

Lead KPIs and tooltips invert to matte #14161b obsidian with a 1px dark rim and upright Space Grotesk numerals — zero gradients.

Colors

24 tokens · cold paper light & matte obsidian dark sets
Greys
Data colours
TokenUsed forLightDark
Paper & hairlines
--backgroundCold paper / matte obsidian canvas
#f9fafb
#111214
--card10px .vn-theorem cards & inputs
#ffffff
#181a1e
--popover12px .vn-float dialogs & menus
#ffffff
#181a1e
--vn-tintTable headers, footers & quotes
#f2f4f7
#191b20
--secondarySecondary surface & skeletons
#eef0f4
#22252b
--border1px structural hairlines & rules
#e2e5ea
#272a31
--vn-line-strongInteractive borders & strong rules
#cdd2dc
#383d47
Ink, burnt-orange & obsidian
--foregroundHeadings & primary ink
#111318
#f3f4f6
--muted-foreground16px/1.75 prose & metadata
#525866
#969ca8
--vn-placeholderPlaceholders, disabled & ticks
#767d8c
#7e8594
--primaryBurnt-orange CTA, eyebrow & anchor
#c44c14
#f07c3e
--primary-foregroundPrimary CTA label ink
#ffffff
#160a03
--vn-accent-inkInk on 15% bookmark wash
#a33c0d
#f69d6d
--vn-ink-surfaceObsidian .vn-proof KPI & tooltip
#14161b
#0b0c0f
Semantic feedback
--vn-successVerified, passed, up
#15803d
#4ade80
--vn-warningDraft, pending, stale anchor
#b45309
#fbbf24
--destructiveArchive, error, validation fail
#dc2626
#f87171
--vn-infoInfo callouts & annotations
#1d4ed8
#60a5fa
--vn-bar-mutedBaseline muted chart columns
#dce0e8
#2a2e38
Chart series
--chart-1Series 1 · Burnt orange
#c44c14
#f07c3e
--chart-2Series 2 · Cobalt
#2563eb
#60a5fa
--chart-3Series 3 · Teal
#0d9488
#2dd4bf
--chart-4Series 4 · Violet
#7c3aed
#a78bfa
--chart-5Series 5 · Slate
#64748b
#94a3b8
Contrast
PairUseLightDark
foreground on backgroundBody, 4.5:1 min
Aa17.8Pass
Aa17.0Pass
foreground on cardCard body, 4.5:1 min
Aa18.6Pass
Aa15.8Pass
muted-foreground on cardProse muted, 4.5:1 min
Aa7.1Pass
Aa6.3Pass
muted-foreground on backgroundCanvas muted, 4.5:1 min
Aa6.8Pass
Aa6.8Pass
primary-foreground on primaryPrimary CTA, 4.5:1 min
Aa4.8Pass
Aa7.1Pass
vn-accent-ink on cardBookmark ink, 4.5:1 min
Aa6.5Pass
Aa8.3Pass
vn-success on cardStatus graphics, 3:1 min
Aa5.0Pass
Aa10.0Pass
destructive on cardError state, 3:1 min
Aa4.8Pass
Aa6.3Pass
vn-placeholder on cardPlaceholder/ticks
Aa4.1Not for text
Aa4.7Not for text

Type & scale

Space Grotesk · IBM Plex Sans · JetBrains Mono
Chapter H128 / 34 · 600 · Space Grotesk
Orders & Revenue Telemetry
Proof KPI figure26 / 32 · 600 · Space Grotesk
1,284 · 99.4%
Section H222 / 28 · 600 · Space Grotesk
Three-Column Reading Grid
Reading prose16 / 28 · 500 · IBM Plex Sans
Every surface sits on a flat neutral plane divided by crisp 1px hairlines.
UI & navigation14 / 21 · 500 · IBM Plex Sans
Search theorems, symbols, and component specifications across v2.4.
Index & mono tag11 / 16 · 600 · JetBrains Mono
§ 04.1 · VERIFIED · 128 CHECKS
Radii
Bar / Track4px
Tag / Kbd6px
Button / Nav8px
Card / Input10px
Float overlay12px
AvatarFull
Shadows
Inline plane (flat)Cards, inputs, bars and tables separate via 1px hairlines only
border: 1px var(--border)
Floating overlayReserved strictly for dialogs, menus, sheets and toasts
var(--vn-float)
Sizes
Control
37 · sm 31 · xs 26
Row height
42 · --vn-row-h
Top bar
76 · --vn-nav-h
Gutter
40 · --vn-gutter
Side rails
260 · --vn-rail-w
Icon stroke
16 · 1.25 / 1.5px

Patterns

5 patterns · each completes one user task
§ 00 · Access
Sign in to Theorem Docs
Enter your maintainer credentials to publish specs.
Sign in

10px hairline card with burnt-orange eyebrow, 37px fields, and one flat burnt-orange primary button

§ 06 · Drafts

Pending Proofs

No unverified drafts

Every lemma in v2.4 has passed automated citation and contrast verification.

Empty state

1px ruled header with Space Grotesk heading and outlined secondary button above a dashed tinted Empty State

⌘K
SectionTheoremTrackStatusChecks
§ 04.1Banach Fixed-PointCore SpecVerified128
§ 04.2Cauchy CompletenessCore SpecVerified94
§ 04.3Spectral DecompositionLinearDraft62
§ 04.4Legacy Ring HomomorphismArchiveDeprecated18
Filterable ledger table

37px search field and 15% burnt-orange Segment above a 42px hairline theorem ledger with full-row bookmark selection

Documentation build
Configure anchor indexing and default export format.
Strict citation lint
Fail CI on broken § references
Mirror obsidian dark mode
Publish both paper & obsidian sheets
Settings form

6px-radius architectural switches and 37px Native Select inside a 10px hairline Card with a tinted footer band

Confirm chapter archive

This action cannot be undone. Export the AST snapshot first.

Destructive confirm

Isolate destructive actions in a full-bordered Alert destructive (zero left bar) and confirm in a 12px .vn-float Dialog

Assets

3 fonts · 84 icons
Fonts
§ 02 · Theorem Docs
Space Grotesk Variable300 to 700 · Upright geometric display & KPI numerals · SIL OFL 1.1styles/theorem/fonts/SpaceGrotesk-Variable-latin.woff2
Aa Bb Cc 123
IBM Plex Sans Variable100 to 700 · 16px/1.75 technical prose & UI controls · SIL OFL 1.1styles/theorem/fonts/IBMPlexSans-Variable-latin.woff2
§ 04.1 · 1,284
JetBrains Mono Variable100 to 800 · Section indices, tags, keycaps & code · SIL OFL 1.1styles/theorem/fonts/JetBrainsMono-Variable-latin.woff2
Icons lucide · ISC licence · every icon used across Theorem Docs components & templates
alert-circle
alert-triangle
align-left
apple
archive
arrow-down
arrow-down-to-line
arrow-left
arrow-right
arrow-up
bar-chart-3
bell
bold
book-open
check
check-circle-2
chevron-down
chevron-left
chevron-right
chevrons-up-down
code
copy
credit-card
download
eye
file
file-code
file-code-2
file-text
filter
folder
folder-open
globe
grip-vertical
hand
heading-2
heart
home
inbox
info
italic
key-round
layers-3
leaf
lightbulb
link-2
list
list-ordered
loader-2
mail
menu
message-square
minus
more-horizontal
package
paperclip
plane
plug
plus
quote
redo-2
refresh-cw
rotate-ccw
search
settings
share
shield-alert
sidebar
sliders-horizontal
smartphone
smile
smile-plus
square
star
stars
strikethrough
tag
terminal
trash-2
undo-2
upload
users
x
zap