Technical · Developer tools
Devshell Mono design system template
Light IDE-style documentation set entirely in monospace: warm paper white, JetBrains Mono headings, Red Hat Mono body and a single blueprint-blue link color. Built for API references, CLI manuals and SDK docs.
- WCAG AA verified
- Light + dark
- Tokens = preview
- JetBrains Mono
CLI reference · v3.8
devshell deploy
Build the current directory and ship it to a target environment with a single atomic release.
Commands
Every deploy swaps a symlink; rollback is one command and takes under a second.
Compare config between staging and production before you promote.
devshell.config.ts is validated against a JSON schema at build time.
Personality. Devshell Mono makes documentation look like the editor it describes. Every glyph is monospace, so line length, indentation and column alignment are the layout system. The page is a warm paper white with a file-tree sidebar, line-numbered code blocks and syntax-colored inline tokens. One blueprint blue marks links, active files and the primary action; sibling syntax hues appear only inside code. The effect is a docs site you could mistake for a read-only editor tab.
Monospace everywhere: headings, body and tables share a 0.6em advance so columns line up by character
File-tree navigation with 12px indent steps and a primary left bar on the open file
Line-numbered code blocks with a muted gutter and per-line hover highlight
Headings prefixed with # glyphs in muted-foreground, mirroring markdown source
Inline code tokens tinted with chart syntax colors, never decorated with backgrounds heavier than muted
Color. 21 roles, both modes.
background
#fbfaf6
foreground
#1d2025
card
#ffffff
cardForeground
#1d2025
muted
#f0eee7
mutedForeground
#5d6068
primary
#1f4fd8
primaryForeground
#ffffff
secondary
#ebe9e1
secondaryForeground
#1d2025
accent
#e3eafc
accentForeground
#163a9e
border
rgba(29,32,37,0.14)
input
rgba(29,32,37,0.3)
ring
#1f4fd8
destructive
#c0262d
destructiveForeground
#ffffff
success
#1a7f4b
successForeground
#ffffff
warning
#e9b949
warningForeground
#2a1f00
Type. JetBrains Mono · Red Hat Mono · JetBrains Mono
The file. Drop it in your repo.
1---2name: "Devshell Mono"3slug: "devshell-mono"4schema: "freedesignmd/v2"5description: "Light IDE-style documentation set entirely in monospace: warm paper white, JetBrains Mono headings, Red Hat Mono body and a single blueprint-blue link color. Built for API references, CLI manuals and SDK docs."6source: "https://freedesignmd.com/system/devshell-mono"7aesthetic: "technical"8industry: "developer"9default_mode: "light"10fonts:11 display: "JetBrains Mono"12 body: "Red Hat Mono"13 mono: "JetBrains Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Red+Hat+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#fbfaf6"18 foreground: "#1d2025"19 card: "#ffffff"20 cardForeground: "#1d2025"21 muted: "#f0eee7"22 mutedForeground: "#5d6068"23 primary: "#1f4fd8"24 primaryForeground: "#ffffff"25 secondary: "#ebe9e1"26 secondaryForeground: "#1d2025"27 accent: "#e3eafc"28 accentForeground: "#163a9e"29 border: "rgba(29,32,37,0.14)"30 input: "rgba(29,32,37,0.3)"31 ring: "#1f4fd8"32 destructive: "#c0262d"33 destructiveForeground: "#ffffff"34 success: "#1a7f4b"35 successForeground: "#ffffff"36 warning: "#e9b949"37 warningForeground: "#2a1f00"38 dark:39 background: "#16181d"40 foreground: "#e6e4dc"41 card: "#1c1f25"42 cardForeground: "#e6e4dc"43 muted: "#23262d"44 mutedForeground: "#9a9da6"45 primary: "#7fa2ff"46 primaryForeground: "#0b1430"47 secondary: "#272a32"48 secondaryForeground: "#e6e4dc"49 accent: "#202b4a"50 accentForeground: "#c3d3ff"51 border: "rgba(230,228,220,0.12)"52 input: "rgba(230,228,220,0.26)"53 ring: "#7fa2ff"54 destructive: "#ff7a80"55 destructiveForeground: "#2b0408"56 success: "#5fd394"57 successForeground: "#04210f"58 warning: "#f0c75e"59 warningForeground: "#241a00"60chart:61 light: ["#1f4fd8", "#c0262d", "#1a7f4b", "#a35c00", "#7a3fc2"]62 dark: ["#7fa2ff", "#ff7a80", "#5fd394", "#f0a85e", "#b894f0"]63type:64 display: { font: display, size: 56, size_mobile: 31, leading: 1.1, weight: 700, tracking: "-0.04em" }65 h1: { font: display, size: 34, size_mobile: 23, leading: 1.2, weight: 700, tracking: "-0.03em" }66 h2: { font: display, size: 22, size_mobile: 18, leading: 1.3, weight: 700, tracking: "-0.02em" }67 h3: { font: display, size: 16, size_mobile: 16, leading: 1.4, weight: 500, tracking: "-0.01em" }68 body: { font: body, size: 14, size_mobile: 14, leading: 1.7, weight: 400, tracking: "-0.01em" }69 small: { font: body, size: 13, size_mobile: 13, leading: 1.55, weight: 400, tracking: "-0.01em" }70 label: { font: mono, size: 11, size_mobile: 11, leading: 1.3, weight: 500, tracking: "0.04em", uppercase: true }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.65, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 24, 32, 48, 64, 80]73radius: { sm: "2px", md: "4px", lg: "6px", xl: "8px", full: "9999px" }74shadow:75 light:76 sm: "0 1px 0 rgba(29,32,37,0.06)"77 md: "0 2px 0 rgba(29,32,37,0.08), 0 8px 20px -8px rgba(29,32,37,0.14)"78 lg: "0 0 0 1px rgba(29,32,37,0.12), 0 24px 56px -16px rgba(29,32,37,0.3)"79 dark:80 sm: "0 1px 0 rgba(0,0,0,0.3)"81 md: "0 0 0 1px rgba(230,228,220,0.08), 0 8px 20px -8px rgba(0,0,0,0.6)"82 lg: "0 0 0 1px rgba(230,228,220,0.12), 0 24px 56px -16px rgba(0,0,0,0.75)"83motion:84 duration_ms: { instant: 60, fast: 100, base: 160, slow: 260 }85 easing: { standard: "cubic-bezier(0.3, 0, 0.3, 1)", out: "cubic-bezier(0.2, 0.8, 0.2, 1)", in: "cubic-bezier(0.5, 0, 1, 1)" }86 reveal: { distance_px: 4, stagger_ms: 20 }87layout: { max_width: 1180, columns: 12, gutter: 24, section_y: 72, section_y_mobile: 40, measure: "80ch" }88---89 90# Devshell Mono, DESIGN.md91 92> Light IDE-style documentation set entirely in monospace: warm paper white, JetBrains Mono headings, Red Hat Mono body and a single blueprint-blue link color. Built for API references, CLI manuals and SDK docs.93 94## How to use this file95 961. Save this file as `DESIGN.md` in the project root and paste the `tokens.css` block (section 10) into your global stylesheet, or import `https://freedesignmd.com/system/devshell-mono.css`, which also contains every component class.972. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.983. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`994. **Lovable:** paste section 10 into `src/index.css` and add this file to Project Knowledge; ask for changes by role name (`primary`, `muted-foreground`), never by hex.1005. Default mode is **light**: dark mode is `class="dark"` on `<html>` (both modes are fully specified). Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.101 102## 1. Overview & personality103 104Devshell Mono makes documentation look like the editor it describes. Every glyph is monospace, so line length, indentation and column alignment are the layout system. The page is a warm paper white with a file-tree sidebar, line-numbered code blocks and syntax-colored inline tokens. One blueprint blue marks links, active files and the primary action; sibling syntax hues appear only inside code. The effect is a docs site you could mistake for a read-only editor tab.105 106**At a glance**107 108- Aesthetic: Technical · Industry: Developer tools · Default mode: light109- Type: JetBrains Mono (display) · Red Hat Mono (body) · JetBrains Mono (mono)110- Brand color (`primary`): `#1f4fd8` light · `#7fa2ff` dark, on primary, text is `#ffffff` / `#0b1430`111- Corners: 2px / 4px / 6px / 8px · Container 1180px · Base motion 160ms112 113**Signature moves**114 115- Monospace everywhere: headings, body and tables share a 0.6em advance so columns line up by character116- File-tree navigation with 12px indent steps and a `primary` left bar on the open file117- Line-numbered code blocks with a `muted` gutter and per-line hover highlight118- Headings prefixed with `#` glyphs in `muted-foreground`, mirroring markdown source119- Inline code tokens tinted with chart syntax colors, never decorated with backgrounds heavier than `muted`120 121## 2. Color122 123Roles follow shadcn/ui naming, so `primary` is always the brand / main-action color and `foreground` is always body text. Every text pair below is WCAG AA (≥ 4.5:1) in both modes.124 125### Light mode (`:root`)126 127| Role | CSS variable | Value | Contrast | Usage |128|---|---|---|---|---|129| `background` | `--background` | `#fbfaf6` | | Page canvas |130| `foreground` | `--foreground` | `#1d2025` | 15.64:1 on background | Body text and headings on background |131| `card` | `--card` | `#ffffff` | | Cards, panels, popovers |132| `cardForeground` | `--card-foreground` | `#1d2025` | 16.34:1 on card | Text on card |133| `muted` | `--muted` | `#f0eee7` | | Subtle fills: table headers, code, skeletons |134| `mutedForeground` | `--muted-foreground` | `#5d6068` | 5.42:1 on muted | Secondary text, captions, placeholders |135| `primary` | `--primary` | `#1f4fd8` | | Brand color: primary buttons, links, focus, active states |136| `primaryForeground` | `--primary-foreground` | `#ffffff` | 6.63:1 on primary | Text and icons on primary |137| `secondary` | `--secondary` | `#ebe9e1` | | Secondary buttons and quiet fills |138| `secondaryForeground` | `--secondary-foreground` | `#1d2025` | 13.44:1 on secondary | Text on secondary |139| `accent` | `--accent` | `#e3eafc` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |140| `accentForeground` | `--accent-foreground` | `#163a9e` | 8.18:1 on accent | Text on accent |141| `border` | `--border` | `rgba(29,32,37,0.14)` | | Dividers and card outlines |142| `input` | `--input` | `rgba(29,32,37,0.3)` | | Input borders |143| `ring` | `--ring` | `#1f4fd8` | | Focus ring |144| `destructive` | `--destructive` | `#c0262d` | | Errors and destructive actions |145| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 5.90:1 on destructive | Text on destructive |146| `success` | `--success` | `#1a7f4b` | | Positive status |147| `successForeground` | `--success-foreground` | `#ffffff` | 5.02:1 on success | Text on success |148| `warning` | `--warning` | `#e9b949` | | Caution status |149| `warningForeground` | `--warning-foreground` | `#2a1f00` | 8.88:1 on warning | Text on warning |150| `chart-1…5` | `--chart-1…5` | `#1f4fd8` `#c0262d` `#1a7f4b` `#a35c00` `#7a3fc2` | | Data series, in this order |151 152### Dark mode (`.dark`)153 154| Role | CSS variable | Value | Contrast | Usage |155|---|---|---|---|---|156| `background` | `--background` | `#16181d` | | Page canvas |157| `foreground` | `--foreground` | `#e6e4dc` | 13.95:1 on background | Body text and headings on background |158| `card` | `--card` | `#1c1f25` | | Cards, panels, popovers |159| `cardForeground` | `--card-foreground` | `#e6e4dc` | 12.97:1 on card | Text on card |160| `muted` | `--muted` | `#23262d` | | Subtle fills: table headers, code, skeletons |161| `mutedForeground` | `--muted-foreground` | `#9a9da6` | 5.59:1 on muted | Secondary text, captions, placeholders |162| `primary` | `--primary` | `#7fa2ff` | | Brand color: primary buttons, links, focus, active states |163| `primaryForeground` | `--primary-foreground` | `#0b1430` | 7.36:1 on primary | Text and icons on primary |164| `secondary` | `--secondary` | `#272a32` | | Secondary buttons and quiet fills |165| `secondaryForeground` | `--secondary-foreground` | `#e6e4dc` | 11.27:1 on secondary | Text on secondary |166| `accent` | `--accent` | `#202b4a` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |167| `accentForeground` | `--accent-foreground` | `#c3d3ff` | 9.35:1 on accent | Text on accent |168| `border` | `--border` | `rgba(230,228,220,0.12)` | | Dividers and card outlines |169| `input` | `--input` | `rgba(230,228,220,0.26)` | | Input borders |170| `ring` | `--ring` | `#7fa2ff` | | Focus ring |171| `destructive` | `--destructive` | `#ff7a80` | | Errors and destructive actions |172| `destructiveForeground` | `--destructive-foreground` | `#2b0408` | 7.43:1 on destructive | Text on destructive |173| `success` | `--success` | `#5fd394` | | Positive status |174| `successForeground` | `--success-foreground` | `#04210f` | 9.13:1 on success | Text on success |175| `warning` | `--warning` | `#f0c75e` | | Caution status |176| `warningForeground` | `--warning-foreground` | `#241a00` | 10.66:1 on warning | Text on warning |177| `chart-1…5` | `--chart-1…5` | `#7fa2ff` `#ff7a80` `#5fd394` `#f0a85e` `#b894f0` | | Data series, in this order |178 179## 3. Typography180 181Load fonts with:182 183```html184<link rel="preconnect" href="https://fonts.googleapis.com" />185<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />186<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Red+Hat+Mono:wght@400;500&display=swap" />187```188 189| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |190|---|---|---|---|---|---|---|---|191| `display` | JetBrains Mono | 31px → 56px | 1.1 | 700 | -0.04em | – | `.type-display` |192| `h1` | JetBrains Mono | 23px → 34px | 1.2 | 700 | -0.03em | – | `.type-h1` |193| `h2` | JetBrains Mono | 18px → 22px | 1.3 | 700 | -0.02em | – | `.type-h2` |194| `h3` | JetBrains Mono | 16px | 1.4 | 500 | -0.01em | – | `.type-h3` |195| `body` | Red Hat Mono | 14px | 1.7 | 400 | -0.01em | – | `.type-body` |196| `small` | Red Hat Mono | 13px | 1.55 | 400 | -0.01em | – | `.type-small` |197| `label` | JetBrains Mono | 11px | 1.3 | 500 | 0.04em | uppercase | `.type-label` |198| `mono` | JetBrains Mono | 13px | 1.65 | 400 | 0em | – | `.type-mono` |199 200- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.201- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).202- Only the weights in this table are loaded; never use other weights.203 204## 4. Spacing & layout205 206Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):207 208| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-20` |209|---|---|---|---|---|---|---|---|---|---|210| px | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 80 |211 212- Container: max 1180px, 24px side gutters (`.container`).213- Grid: 12 columns, 24px gap.214- Sections: 72px vertical padding on desktop, 40px on mobile (`.section`).215- Long text: max 80ch per line (`.prose`).216- Docs shell: 260px file-tree sidebar, 80ch content column, 200px on-this-page rail.217- Code blocks span the full content column and never wrap; scroll horizontally with a visible scrollbar.218- Tables and definition lists align on the character grid: use whole `ch` widths for columns.219 220## 5. Shape & elevation221 222| Radius | Value | Use |223|---|---|---|224| `--radius-sm` | 2px | badges, checkboxes, small chips |225| `--radius-md` | 4px | buttons, inputs, tabs (= shadcn `--radius`) |226| `--radius-lg` | 6px | cards, panels, menus |227| `--radius-xl` | 8px | dialogs, hero media, large surfaces |228| `--radius-full` | 9999px | avatars, pills, toggles |229 230| Shadow | Mode | Value |231|---|---|---|232| `--shadow-sm` | light | `0 1px 0 rgba(29,32,37,0.06)` |233| `--shadow-md` | light | `0 2px 0 rgba(29,32,37,0.08), 0 8px 20px -8px rgba(29,32,37,0.14)` |234| `--shadow-lg` | light | `0 0 0 1px rgba(29,32,37,0.12), 0 24px 56px -16px rgba(29,32,37,0.3)` |235| `--shadow-sm` | dark | `0 1px 0 rgba(0,0,0,0.3)` |236| `--shadow-md` | dark | `0 0 0 1px rgba(230,228,220,0.08), 0 8px 20px -8px rgba(0,0,0,0.6)` |237| `--shadow-lg` | dark | `0 0 0 1px rgba(230,228,220,0.12), 0 24px 56px -16px rgba(0,0,0,0.75)` |238 239`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.240 241## 6. Motion242 243**Editor snap.** Transitions behave like an editor: tab and file switches swap instantly, hover highlights fade in a tenth of a second, and a copied code block flashes its gutter once. Nothing travels farther than 4px.244 245| Token | Value | Use |246|---|---|---|247| `--duration-instant` | 60ms | press feedback, toggles |248| `--duration-fast` | 100ms | hover, focus, color changes |249| `--duration-base` | 160ms | menus, tabs, popovers, cards lifting |250| `--duration-slow` | 260ms | dialogs and scroll reveals |251| `--ease-standard` | `cubic-bezier(0.3, 0, 0.3, 1)` | state changes |252| `--ease-out` | `cubic-bezier(0.2, 0.8, 0.2, 1)` | entrances and reveals |253| `--ease-in` | `cubic-bezier(0.5, 0, 1, 1)` | exits |254 255- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 4px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 20ms (`--reveal-index`).256- Use no durations other than the four above.257- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).258 259## 7. Components260 261Every component reads only variables from section 10, so light and dark mode work with no extra code. These are the exact rules (also in `https://freedesignmd.com/system/devshell-mono.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.262 263### Button264 265```html266<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->267```268 269```css270.btn {271 display: inline-flex;272 align-items: center;273 justify-content: center;274 gap: 8px;275 height: 34px;276 padding: 0 14px;277 font-family: var(--font-mono);278 font-size: 13px;279 font-weight: 500;280 letter-spacing: -0.01em;281 border-radius: var(--radius-md);282 border: 1px solid transparent;283 white-space: nowrap;284 cursor: pointer;285 text-decoration: none;286 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);287}288.btn-primary {289 background: var(--primary);290 color: var(--primary-foreground);291 box-shadow: var(--shadow-sm);292}293.btn-primary:hover:not(:disabled) {294 background: color-mix(in oklab, var(--primary) 88%, black);295}296.btn-primary:active:not(:disabled) {297 background: color-mix(in oklab, var(--primary) 78%, black);298 transform: translateY(1px);299}300.btn-secondary {301 background: var(--secondary);302 color: var(--secondary-foreground);303 border-color: var(--border);304}305.btn-secondary:hover:not(:disabled) {306 background: var(--accent);307 color: var(--accent-foreground);308}309.btn-secondary:active:not(:disabled) {310 background: var(--muted);311}312.btn-outline {313 background: transparent;314 color: var(--foreground);315 border-color: var(--input);316}317.btn-outline:hover:not(:disabled) {318 border-color: var(--primary);319 color: var(--primary);320}321.btn-outline:active:not(:disabled) {322 background: var(--accent);323}324.btn-ghost {325 background: transparent;326 color: var(--muted-foreground);327}328.btn-ghost:hover:not(:disabled) {329 background: var(--muted);330 color: var(--foreground);331}332.btn-ghost:active:not(:disabled) {333 background: var(--secondary);334}335.btn:focus-visible {336 outline: 2px solid var(--ring);337 outline-offset: 2px;338}339.btn:disabled, .btn[aria-disabled="true"] {340 opacity: 0.45;341 cursor: not-allowed;342 box-shadow: none;343}344```345 346### Input347 348```html349<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->350```351 352```css353.input {354 display: block;355 width: 100%;356 height: 34px;357 padding: 0 10px;358 font-family: var(--font-mono);359 font-size: 13px;360 color: var(--foreground);361 background: var(--card);362 border: 1px solid var(--input);363 border-radius: var(--radius-md);364 outline: none;365 transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);366}367.input::placeholder {368 color: var(--muted-foreground);369 opacity: 1;370}371.input:hover:not(:disabled):not(:focus) {372 border-color: var(--muted-foreground);373}374.input:focus, .input:focus-visible {375 border-color: var(--ring);376 box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 22%, transparent);377}378.input[aria-invalid="true"] {379 border-color: var(--destructive);380 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);381}382.input:disabled {383 opacity: 0.5;384 cursor: not-allowed;385 background: var(--muted);386}387```388 389### Card390 391```html392<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->393```394 395```css396.card {397 background: var(--card);398 color: var(--card-foreground);399 border: 1px solid var(--border);400 border-radius: var(--radius-md);401 box-shadow: var(--shadow-sm);402 padding: 20px;403 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);404}405.card-interactive:hover {406 border-color: var(--input);407 box-shadow: var(--shadow-md);408}409```410 411### Badge412 413```html414<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->415```416 417```css418.badge {419 --tone: var(--primary);420 --tone-foreground: var(--primary-foreground);421 display: inline-flex;422 align-items: center;423 gap: 6px;424 height: 20px;425 padding: 0 7px;426 border-radius: var(--radius-sm);427 font-family: var(--font-mono);428 font-size: 11px;429 font-weight: 500;430 letter-spacing: 0em;431 line-height: 1;432 white-space: nowrap;433}434.badge[data-tone="success"] {435 --tone: var(--success);436 --tone-foreground: var(--success-foreground);437}438.badge[data-tone="warning"] {439 --tone: var(--warning);440 --tone-foreground: var(--warning-foreground);441}442.badge[data-tone="destructive"] {443 --tone: var(--destructive);444 --tone-foreground: var(--destructive-foreground);445}446.badge-solid {447 background: var(--tone);448 color: var(--tone-foreground);449 border: 1px solid var(--tone);450}451.badge-soft {452 background: color-mix(in oklab, var(--tone) 12%, var(--card));453 color: var(--foreground);454 border: 1px solid color-mix(in oklab, var(--tone) 28%, transparent);455}456.badge-outline {457 background: transparent;458 color: var(--foreground);459 border: 1px solid var(--border);460}461```462 463### Navigation bar464 465```html466<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>467```468 469```css470.nav {471 display: flex;472 align-items: center;473 gap: 4px;474 height: 52px;475 padding: 0 24px;476 background: var(--background);477 border-bottom: 1px solid var(--border);478}479.nav-link {480 padding: 6px 12px;481 border-radius: var(--radius-sm);482 font-family: var(--font-mono);483 font-size: 13px;484 font-weight: 500;485 letter-spacing: 0em;486 color: var(--muted-foreground);487 text-decoration: none;488 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);489}490.nav-link:hover {491 color: var(--foreground);492 background: var(--muted);493}494.nav-link[aria-current="page"] {495 color: var(--foreground);496 background: var(--accent);497}498```499 500### Tabs501 502```html503<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>504```505 506```css507.tabs {508 display: flex;509 gap: 24px;510 border-bottom: 1px solid var(--border);511}512.tab {513 height: 36px;514 padding: 0;515 margin-bottom: -1px;516 background: none;517 border: 0;518 border-bottom: 2px solid transparent;519 color: var(--muted-foreground);520 cursor: pointer;521 font-family: var(--font-mono);522 font-size: 13px;523 font-weight: 500;524 letter-spacing: 0em;525 transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);526}527.tab:hover:not([aria-selected="true"]) {528 color: var(--foreground);529}530.tab[aria-selected="true"] {531 color: var(--foreground);532 border-bottom-color: var(--primary);533}534```535 536### Table537 538```html539<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>540```541 542```css543.table {544 width: 100%;545 border-collapse: collapse;546 font-size: 13px;547 font-variant-numeric: tabular-nums;548}549.table th {550 text-align: left;551 height: 40px;552 padding: 0 16px;553 font-family: var(--font-mono);554 font-size: 12px;555 font-weight: 700;556 background: var(--muted);557 color: var(--muted-foreground);558 border-bottom: 1px solid var(--border);559}560.table td {561 height: 40px;562 padding: 0 16px;563 border-bottom: 1px solid var(--border);564 color: var(--foreground);565 transition: background-color var(--duration-fast) var(--ease-standard);566}567.table tbody tr:hover td {568 background: var(--accent);569 color: var(--accent-foreground);570}571```572 573### Dialog / modal574 575```html576<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>577```578 579```css580.dialog-overlay {581 position: fixed;582 inset: 0;583 background: rgba(22,24,29,0.5);584 backdrop-filter: blur(2px);585 -webkit-backdrop-filter: blur(2px);586 display: grid;587 place-items: center;588 padding: 24px;589}590.dialog {591 width: min(560px, 100%);592 background: var(--card);593 color: var(--card-foreground);594 border: 1px solid var(--border);595 border-radius: var(--radius-lg);596 box-shadow: var(--shadow-lg);597 padding: 24px;598}599```600 601### Text link602 603```html604<a class="link" href="…">Read more</a>605```606 607```css608.link {609 color: var(--primary);610 text-decoration: underline;611 text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent);612 text-decoration-thickness: 1px;613 text-underline-offset: 3px;614 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);615}616.link:hover {617 text-decoration-color: var(--primary);618}619```620 621## 8. Imagery & iconography622 623**Imagery.** Code is the imagery: annotated snippets, request and response pairs, and file-tree screenshots. Diagrams are monochrome box-and-arrow drawings in `foreground` with one `primary` highlight. No stock photography and no abstract art.624 625**Icons.** 14px line icons at 1.5px stroke (Lucide), kept to file types, copy, external link and chevron. Prefer text glyphs such as `→`, `#` and `//` where they carry the same meaning.626 627## 9. Do / Don't628 629**Do**630 631- Keep the content column at 80 characters or narrower so code and prose share one measure632- Prefix h2 and h3 with a muted `#` or `##` glyph633- Show line numbers on every code block longer than 3 lines634- Use `primary` for links, the open file and one main action per page635- Document each parameter as name, type and default in a table with mono type column636 637**Don't**638 639- Don't introduce a proportional font anywhere, including marketing hero text640- Don't use card shadows heavier than `--shadow-md`641- Don't color code syntax outside the chart palette642- Don't center body text or use justified alignment643- Don't wrap code lines; scroll instead644 645## 10. tokens.css646 647Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.648 649```css650/* Devshell Mono, tokens.css651 * https://freedesignmd.com/system/devshell-mono652 * shadcn/ui-compatible variables. Light on :root, dark on .dark.653 * Default mode: light.654 */655@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Red+Hat+Mono:wght@400;500&display=swap");656 657:root {658 --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;659 --font-sans: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;660 --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;661 --type-display-size: clamp(31px, 21.71px + 2.381vw, 56px);662 --type-display-leading: 1.1;663 --type-display-weight: 700;664 --type-display-tracking: -0.04em;665 --type-h1-size: clamp(23px, 18.91px + 1.048vw, 34px);666 --type-h1-leading: 1.2;667 --type-h1-weight: 700;668 --type-h1-tracking: -0.03em;669 --type-h2-size: clamp(18px, 16.51px + 0.381vw, 22px);670 --type-h2-leading: 1.3;671 --type-h2-weight: 700;672 --type-h2-tracking: -0.02em;673 --type-h3-size: 16px;674 --type-h3-leading: 1.4;675 --type-h3-weight: 500;676 --type-h3-tracking: -0.01em;677 --type-body-size: 14px;678 --type-body-leading: 1.7;679 --type-body-weight: 400;680 --type-body-tracking: -0.01em;681 --type-small-size: 13px;682 --type-small-leading: 1.55;683 --type-small-weight: 400;684 --type-small-tracking: -0.01em;685 --type-label-size: 11px;686 --type-label-leading: 1.3;687 --type-label-weight: 500;688 --type-label-tracking: 0.04em;689 --type-mono-size: 13px;690 --type-mono-leading: 1.65;691 --type-mono-weight: 400;692 --type-mono-tracking: 0em;693 --space-1: 4px;694 --space-2: 8px;695 --space-3: 12px;696 --space-4: 16px;697 --space-6: 24px;698 --space-8: 32px;699 --space-12: 48px;700 --space-16: 64px;701 --space-20: 80px;702 --radius: 4px;703 --radius-sm: 2px;704 --radius-md: 4px;705 --radius-lg: 6px;706 --radius-xl: 8px;707 --radius-full: 9999px;708 --duration-instant: 60ms;709 --duration-fast: 100ms;710 --duration-base: 160ms;711 --duration-slow: 260ms;712 --ease-standard: cubic-bezier(0.3, 0, 0.3, 1);713 --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);714 --ease-in: cubic-bezier(0.5, 0, 1, 1);715 --reveal-distance: 4px;716 --reveal-stagger: 20ms;717 --container-max: 1180px;718 --gutter: 24px;719 --section-y: 72px;720 --section-y-mobile: 40px;721 --measure: 80ch;722 --background: #fbfaf6;723 --foreground: #1d2025;724 --card: #ffffff;725 --card-foreground: #1d2025;726 --muted: #f0eee7;727 --muted-foreground: #5d6068;728 --primary: #1f4fd8;729 --primary-foreground: #ffffff;730 --secondary: #ebe9e1;731 --secondary-foreground: #1d2025;732 --accent: #e3eafc;733 --accent-foreground: #163a9e;734 --border: rgba(29,32,37,0.14);735 --input: rgba(29,32,37,0.3);736 --ring: #1f4fd8;737 --destructive: #c0262d;738 --destructive-foreground: #ffffff;739 --success: #1a7f4b;740 --success-foreground: #ffffff;741 --warning: #e9b949;742 --warning-foreground: #2a1f00;743 --chart-1: #1f4fd8;744 --chart-2: #c0262d;745 --chart-3: #1a7f4b;746 --chart-4: #a35c00;747 --chart-5: #7a3fc2;748 --shadow-sm: 0 1px 0 rgba(29,32,37,0.06);749 --shadow-md: 0 2px 0 rgba(29,32,37,0.08), 0 8px 20px -8px rgba(29,32,37,0.14);750 --shadow-lg: 0 0 0 1px rgba(29,32,37,0.12), 0 24px 56px -16px rgba(29,32,37,0.3);751}752 753.dark {754 --background: #16181d;755 --foreground: #e6e4dc;756 --card: #1c1f25;757 --card-foreground: #e6e4dc;758 --muted: #23262d;759 --muted-foreground: #9a9da6;760 --primary: #7fa2ff;761 --primary-foreground: #0b1430;762 --secondary: #272a32;763 --secondary-foreground: #e6e4dc;764 --accent: #202b4a;765 --accent-foreground: #c3d3ff;766 --border: rgba(230,228,220,0.12);767 --input: rgba(230,228,220,0.26);768 --ring: #7fa2ff;769 --destructive: #ff7a80;770 --destructive-foreground: #2b0408;771 --success: #5fd394;772 --success-foreground: #04210f;773 --warning: #f0c75e;774 --warning-foreground: #241a00;775 --chart-1: #7fa2ff;776 --chart-2: #ff7a80;777 --chart-3: #5fd394;778 --chart-4: #f0a85e;779 --chart-5: #b894f0;780 --shadow-sm: 0 1px 0 rgba(0,0,0,0.3);781 --shadow-md: 0 0 0 1px rgba(230,228,220,0.08), 0 8px 20px -8px rgba(0,0,0,0.6);782 --shadow-lg: 0 0 0 1px rgba(230,228,220,0.12), 0 24px 56px -16px rgba(0,0,0,0.75);783}784 785/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */786@theme inline {787 --color-background: var(--background);788 --color-foreground: var(--foreground);789 --color-card: var(--card);790 --color-card-foreground: var(--card-foreground);791 --color-muted: var(--muted);792 --color-muted-foreground: var(--muted-foreground);793 --color-primary: var(--primary);794 --color-primary-foreground: var(--primary-foreground);795 --color-secondary: var(--secondary);796 --color-secondary-foreground: var(--secondary-foreground);797 --color-accent: var(--accent);798 --color-accent-foreground: var(--accent-foreground);799 --color-border: var(--border);800 --color-input: var(--input);801 --color-ring: var(--ring);802 --color-destructive: var(--destructive);803 --color-destructive-foreground: var(--destructive-foreground);804 --color-success: var(--success);805 --color-success-foreground: var(--success-foreground);806 --color-warning: var(--warning);807 --color-warning-foreground: var(--warning-foreground);808 --color-chart-1: var(--chart-1);809 --color-chart-2: var(--chart-2);810 --color-chart-3: var(--chart-3);811 --color-chart-4: var(--chart-4);812 --color-chart-5: var(--chart-5);813 --font-heading: var(--font-display);814 --font-body: var(--font-sans);815 --font-code: var(--font-mono);816 --radius-ui-sm: var(--radius-sm);817 --radius-ui-md: var(--radius-md);818 --radius-ui-lg: var(--radius-lg);819 --radius-ui-xl: var(--radius-xl);820 --text-display: var(--type-display-size);821 --text-display--line-height: var(--type-display-leading);822 --text-display--letter-spacing: var(--type-display-tracking);823 --text-display--font-weight: var(--type-display-weight);824 --text-h1: var(--type-h1-size);825 --text-h1--line-height: var(--type-h1-leading);826 --text-h1--letter-spacing: var(--type-h1-tracking);827 --text-h1--font-weight: var(--type-h1-weight);828 --text-h2: var(--type-h2-size);829 --text-h2--line-height: var(--type-h2-leading);830 --text-h2--letter-spacing: var(--type-h2-tracking);831 --text-h2--font-weight: var(--type-h2-weight);832 --text-h3: var(--type-h3-size);833 --text-h3--line-height: var(--type-h3-leading);834 --text-h3--letter-spacing: var(--type-h3-tracking);835 --text-h3--font-weight: var(--type-h3-weight);836 --text-body: var(--type-body-size);837 --text-body--line-height: var(--type-body-leading);838 --text-body--letter-spacing: var(--type-body-tracking);839 --text-body--font-weight: var(--type-body-weight);840 --text-small: var(--type-small-size);841 --text-small--line-height: var(--type-small-leading);842 --text-small--letter-spacing: var(--type-small-tracking);843 --text-small--font-weight: var(--type-small-weight);844 --text-label: var(--type-label-size);845 --text-label--line-height: var(--type-label-leading);846 --text-label--letter-spacing: var(--type-label-tracking);847 --text-label--font-weight: var(--type-label-weight);848 --text-mono: var(--type-mono-size);849 --text-mono--line-height: var(--type-mono-leading);850 --text-mono--letter-spacing: var(--type-mono-tracking);851 --text-mono--font-weight: var(--type-mono-weight);852 --shadow-ui-sm: var(--shadow-sm);853 --shadow-ui-md: var(--shadow-md);854 --shadow-ui-lg: var(--shadow-lg);855}856 857@layer base {858 body {859 background: var(--background);860 color: var(--foreground);861 font-family: var(--font-sans);862 font-size: var(--type-body-size);863 line-height: var(--type-body-leading);864 font-weight: var(--type-body-weight);865 letter-spacing: var(--type-body-tracking);866 -webkit-font-smoothing: antialiased;867 }868 .type-display {869 font-family: var(--font-display);870 font-size: var(--type-display-size);871 line-height: var(--type-display-leading);872 font-weight: var(--type-display-weight);873 letter-spacing: var(--type-display-tracking);874 }875 .type-h1 {876 font-family: var(--font-display);877 font-size: var(--type-h1-size);878 line-height: var(--type-h1-leading);879 font-weight: var(--type-h1-weight);880 letter-spacing: var(--type-h1-tracking);881 }882 .type-h2 {883 font-family: var(--font-display);884 font-size: var(--type-h2-size);885 line-height: var(--type-h2-leading);886 font-weight: var(--type-h2-weight);887 letter-spacing: var(--type-h2-tracking);888 }889 .type-h3 {890 font-family: var(--font-display);891 font-size: var(--type-h3-size);892 line-height: var(--type-h3-leading);893 font-weight: var(--type-h3-weight);894 letter-spacing: var(--type-h3-tracking);895 }896 .type-body {897 font-family: var(--font-sans);898 font-size: var(--type-body-size);899 line-height: var(--type-body-leading);900 font-weight: var(--type-body-weight);901 letter-spacing: var(--type-body-tracking);902 }903 .type-small {904 font-family: var(--font-sans);905 font-size: var(--type-small-size);906 line-height: var(--type-small-leading);907 font-weight: var(--type-small-weight);908 letter-spacing: var(--type-small-tracking);909 }910 .type-label {911 font-family: var(--font-mono);912 font-size: var(--type-label-size);913 line-height: var(--type-label-leading);914 font-weight: var(--type-label-weight);915 letter-spacing: var(--type-label-tracking);916 text-transform: uppercase;917 }918 .type-mono {919 font-family: var(--font-mono);920 font-size: var(--type-mono-size);921 line-height: var(--type-mono-leading);922 font-weight: var(--type-mono-weight);923 letter-spacing: var(--type-mono-tracking);924 }925 h1 {926 font-family: var(--font-display);927 font-size: var(--type-h1-size);928 line-height: var(--type-h1-leading);929 font-weight: var(--type-h1-weight);930 letter-spacing: var(--type-h1-tracking);931 }932 h2 {933 font-family: var(--font-display);934 font-size: var(--type-h2-size);935 line-height: var(--type-h2-leading);936 font-weight: var(--type-h2-weight);937 letter-spacing: var(--type-h2-tracking);938 }939 h3 {940 font-family: var(--font-display);941 font-size: var(--type-h3-size);942 line-height: var(--type-h3-leading);943 font-weight: var(--type-h3-weight);944 letter-spacing: var(--type-h3-tracking);945 }946 code, kbd, samp, pre {947 font-family: var(--font-mono);948 }949 ::selection {950 background: var(--primary);951 color: var(--primary-foreground);952 }953 .container {954 width: 100%;955 max-width: var(--container-max);956 margin-inline: auto;957 padding-inline: var(--gutter);958 }959 .section {960 padding-block: var(--section-y);961 }962 .prose {963 max-width: var(--measure);964 }965 .reveal {966 opacity: 0;967 transform: translateY(var(--reveal-distance));968 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);969 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));970 }971 .reveal.is-in {972 opacity: 1;973 transform: none;974 }975 @media (prefers-reduced-motion: reduce) {976 .reveal { opacity: 1; transform: none; transition: none; }977 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }978 }979}980```981 982Tailwind v3:983 984```js985// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)986module.exports = {987 darkMode: "class",988 theme: {989 extend: {990 colors: {991 "background": "var(--background)",992 "foreground": "var(--foreground)",993 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },994 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },995 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },996 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },997 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },998 "border": "var(--border)",999 "input": "var(--input)",1000 "ring": "var(--ring)",1001 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1002 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1003 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1004 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1005 },1006 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1007 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1008 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1009 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1010 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1011 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1012 },1013 },1014};1015```1016 1017Dependencies: `lucide-react`Save as DESIGN.md in the repo root and add “Follow DESIGN.md for all UI” to CLAUDE.md, AGENTS.md or your Cursor rules.


