---
protocol: uifino/design-md@2.0
name: "Typst Design System"
slug: "typst.app"
url: "https://typst.app"
platform: "website"
category: "Education"
fit_for: ["Scientific Authoring", "Documentation Hubs", "Math Editors", "Compiler Tools"]
avoid_for: ["Short-Video Feeds", "Streetwear Drops", "Celebrity Gossips"]
typography:
  display: "HK Grotesk"
  open_alternative: "Plus Jakarta Sans + Inter + JetBrains Mono"
  body: "HK Grotesk"
  mono: "Cascadia Mono"
  headline_tracking: "-0.02em"
tokens:
  default_radius: "8px"
  radius_ladder: ["0px", "8px", "12px", "16px"]
  spacing_px: [4, 8, 12, 16, 24, 36, 64, 104]
colors:
  light:
    canvas: "#FDFDFD"
    surface: "#FFFFFF"
    elevated: "#EFF0F3"
    border: "#D7D9E0"
    ink: "#19181F"
    muted: "#565565"
    accent: "#0E7484"
    accent_foreground: "#FFFFFF"
  dark:
    canvas: "#14141A"
    surface: "#1D1D26"
    elevated: "#272733"
    border: "#383847"
    ink: "#F5F6FA"
    muted: "#A6A8BA"
    accent: "#22C3D8"
    accent_foreground: "#10181C"
---

# Typst — DESIGN.md Protocol

## 1. Visual Direction & Fit
Crisp #FDFDFD scientific authoring platform built around a live split-pane source-to-PDF stage (`Cascadia Mono` markup beside typeset equations), #00AFC6 cyan-teal accents, and 2px #19181F ink-bordered controls.

- **Best Suited For**: Scientific Authoring · Documentation Hubs · Math Editors · Compiler Tools
- **Avoid Using For**: Short-Video Feeds · Streetwear Drops · Celebrity Gossips

## 2. Surface & Color Hierarchy
- **Dark Mode**: Canvas `#14141A` · Surface `#1D1D26` · Border `1px solid #383847` · Ink `#F5F6FA` · Accent `#22C3D8`
- **Light Mode**: Canvas `#FDFDFD` · Surface `#FFFFFF` · Border `1px solid #D7D9E0` · Ink `#19181F` · Accent `#0E7484`

## 3. Typography, Geometry & Spacing
- **Display / Body**: `HK Grotesk` (Open-source alternative: `Plus Jakarta Sans + Inter + JetBrains Mono`), tracking `-0.02em`.
- **Monospace**: `Cascadia Mono` with `font-variant-numeric: tabular-nums`.
- **Radius & Rhythm**: Default radius `8px` (ladder: 0px, 8px, 12px, 16px), spacing `4px · 8px · 12px · 16px · 24px · 36px · 64px · 104px`.

## 4. Measured Live DOM Audit

### Measured Color Area Share
| Role | CSS Variable | Hex | Share |
| :--- | :--- | :--- | :--- |
| Academic Paper White Canvas | `--typst-canvas` | `#FDFDFD` | 82.6% |
| Signature Compiler Cyan-Teal | `--typst-cyan` | `#00AFC6` | 6.4% |
| Specimen Tray Cool Slate | `--typst-tray` | `#E4E5EA` | 5.8% |
| Sandbox Elevated Mist Gray | `--typst-elevated` | `#EFF0F3` | 3.4% |
| Deep Typesetter Ink & Border | `--typst-ink` | `#19181F` | 1.2% |
| Accessible Action Deep Teal | `--typst-teal-dark` | `#127885` | 0.6% |

### Measured Typography & Free Open-Source Alternatives
| Level | Detected Font | Free Alternative | Size / Weight / Line-Height / Tracking |
| :--- | :--- | :--- | :--- |
| Hero H1 | HK Grotesk | `Plus Jakarta Sans` | 64px · 800 · 73.6px (1.15) · -0.02em |
| Lead Subtitle | HK Grotesk | `Inter` | 24px · 400 · 34px (1.42) · 0em |
| Markup Source | Cascadia Mono | `JetBrains Mono` | 18px · 400 · 27px (1.50) · 0em |
| Section Kicker | HK Grotesk | `Plus Jakarta Sans` | 24px · 900 · 30px (1.25) · -0.01em |

### Component Geometry & Surface Physics (Container Max Width: `1200px`)
- **2px Ink-Bordered Ghost Button**: radius `8px` · border `2px solid #19181F` · shadow `none` · width: 107px–165px · height: 47px
- **Cyan-Blue Gradient Primary CTA**: radius `8px` · border `2px solid transparent` · shadow `rgba(89, 85, 101, 0.2) 0px 4px 12px 0px` · width: 165px · height: 47px
- **0px Sharp Compiler Tab Strip**: radius `0px` · border `1px solid #D7D9E0` · shadow `none` · width: 217px · height: 31px

### Interactive Hover Transitions
- **Cyan Gradient Primary CTA**: Rest (`#0095D9` / border `transparent` / text `#FDFDFD`) → Hover (`#00AFC6` / border `transparent` / text `#FFFFFF`) · `background-position 150ms ease, box-shadow 150ms ease`
- **2px Ink-Bordered Button**: Rest (`#FDFDFD` / border `#19181F` / text `#19181F`) → Hover (`#19181F` / border `#19181F` / text `#FDFDFD`) · `background-color 150ms ease, color 150ms ease`
- **Documentation Portal Card**: Rest (`#FFFFFF` / border `#D7D9E0` / text `#19181F`) → Hover (`#EFF0F3` / border `#0E7484` / text `#0E7484`) · `border-color 160ms ease, background-color 160ms ease`

## 5. Multi-Page Section Anatomy

### Page: Platform Home (`/`)
- **01 Teal Wordmark & Dev Topbar** (Wordmark + Dev Bar [0%–0.6%]): 81px #FDFDFD header pairing the teal `typst` mark with 5 community icons, `Pricing · Docs · Universe`, and teal `Sign up`.
- **02 Cyan Hero & 3-Step Pipeline** (Hero + 3-Step Flow [0.64%–23.0%]): 64px cyan-teal headline and hand-drawn stationery band above university logos and a 3-step `Markup → Template → PDF` flow.
- **03 5-Tab Sandbox & Web Studio** (5 Tabs + Split IDE [23%–68.5%]): 5-tab interactive `Markup/Styling/Scripting` sandbox followed by a #00AFC6 cyan band showcasing the live split-pane Web IDE.
- **04 Universe, 3 Plans & Footer** (Universe + 3 Plans [68.5%–100.0%]): Deep-space `Typst Universe` banner, 3-tier pricing cards, Zerodha case study (`2000-page PDF in 1 min`), and Berlin footer.

### Page: Pricing Plans (`/pricing/`)
- **01 Paper-White Pricing Header** (Paper-White Header [0%–1.5%]): 81px borderless #FDFDFD header leading directly into the `Do more with your time` headline.
- **02 3-Color Tier Cards & Proof** (3-Color Plan Trio [1.49%–35.0%]): Billing toggle above light-gray `Free`, teal `Pro`, and dark-slate `On-Premises` cards plus academic/Zerodha proof.
- **03 5 Chromatic Pro Feature Cards** (5 Stacked Pro Rows [35%–70.3%]): 5 full-width color-coded cards illustrating Slides, Git/GitLab sync, Zotero citations, inline comments, and private packages.
- **04 3 Trust Pledges & Footer** (3 Pledges + Footer [70.27%–100.0%]): Open-source compiler, 14-day refund, and German data-residency callouts above a playful end-cap sketch and 2-col footer.

### Page: Typst Universe (`/universe/`)
- **01 Universe Co-Branded Header** (Universe Topbar [0%–2.4%]): 81px header pairing `typst Universe` on the left with community icons and `Sign up` on the right.
- **02 Left Rail, Hero & 3-Col Lists** (Left Rail + 3-Col [2.4%–30.0%]): 200px left sidebar beside the `lilaq` plotting banner, `1,795 packages` search input, and 3-column curated lists.
- **03 4-Row Paper & CV Gallery** (4-Row Doc Previews [30%–80.0%]): 4 themed 5-card rows showcasing rendered resumes, slide decks, journal templates (`arXiv`, `MDPI`), and Typst games.
- **04 18 Category Pills & Footer** (18 Pills + Footer [80%–100.0%]): Two rows of #00AFC6 category pills (`Visualization`, `Thesis`, `Poster`, `CV`) above the 2-column Berlin footer.

### Page: Documentation (`/docs/`)
- **01 Documentation Masthead** (Docs Masthead Bar [0%–4.9%]): 81px header pairing `typst Documentation` with global navigation links.
- **02 Search Tree & Overview Prose** (Sidebar + Prose [4.86%–55.0%]): Left nav tree (`Search (S)` + `Print version`) beside a 680px editorial overview with blue underlined links and inline `typst help` code.
- **03 Dual Tutorial & Reference Cards** (2-Col Action Cards [55%–72.0%]): 2-column 1px-bordered cards with circular line icons directing readers to `Tutorial` and `Reference`.
- **04 Minimalist Berlin Colophon** (2-Col White Footer [71.95%–100.0%]): Generous white margin grounding 2 link columns and a quiet `Made in Berlin` signature.

## 6. Signature Rules & Anti-AI Slop Guardrails
- **DO**: Demonstrate product truth immediately above the fold via a side-by-side split workspace: syntax-highlighted `Cascadia Mono` markup on the left and a crisp, drop-shadowed A4 academic paper sheet on the right.
- **DO**: Anchor UI typography in clean grotesque sans (`HK Grotesk` / `Plus Jakarta Sans` 800, 48px–64px, #19181F deep slate-black) while rendered document previews showcase authentic serif math equations and theorems.
- **DO**: Organize language capabilities (`Markup`, `Styling`, `Scripting`, `Introspection`, `Data loading`) as interactive 0px-radius vertical tab strips paired with live code-and-output pairs.
- **DO**: Give primary CTAs (`Sign up`, `Try it yourself!`) an unmistakable editorial stamp using `8px` radius and crisp `2px solid #19181F` ink borders or #00AFC6/#0E7484 teal fills.
- **DON'T**: NEVER replace the real source-code-to-typeset-paper split preview with abstract 3D floating spheres or generic AI chatbot bubbles.
- **DON'T**: NEVER use dark cyberpunk neon purple backgrounds for an academic writing tool; daylight readability on #FDFDFD paper white and #EFF0F3 cool slate is non-negotiable.
- **DON'T**: NEVER blur syntax highlighting into illegible low-contrast pastels; keep markup keywords crisp in #004DC6 cobalt, #2DAB7D emerald, and #8F38B1 plum.
- **DON'T**: NEVER hide open-source compiler credibility or package ecosystem counts behind enterprise sales walls.
