Technical · Developer tools
Dark Terminal design system template
Phosphor-green CRT for ops consoles: near-black glass, VT323 headlines, IBM Plex Mono data and a single 39ff7a glow color. Built for observability, on-call and deploy tooling.
- WCAG AA verified
- Light + dark
- Tokens = preview
- VT323
$ ops watch --region eu-west
See the fire before the pager does
Streaming logs, traces and deploy diffs in one keyboard-driven console for on-call engineers.
Personality. Dark Terminal is a cathode-ray console for people who watch systems at 3am. The canvas is a green-tinted black, text is a pale phosphor mint, and the one saturated color, a P1 green, carries every action, prompt and healthy-state signal. Headlines are set in VT323 at large sizes so they read as bitmap screen text, while IBM Plex Mono handles logs, tables and labels. Structure comes from 1px green-tinted rules and square corners; the only decoration is a soft text glow and a blinking block cursor.
Block cursor: a solid primary rectangle that blinks after the active prompt and focused field
Phosphor glow: --glow text-shadow on headlines and primary buttons in dark mode only
Prompt prefix: every list row and heading can lead with > or $ in primary
Square everything: radius is 0 to 2px, borders are 1px green-tinted rules
Status by amber and red CRT tints, never by colored pills; healthy is simply green text
Color. 21 roles, both modes.
background
#050a06
foreground
#c8f7d0
card
#0a120b
cardForeground
#c8f7d0
muted
#101a11
mutedForeground
#7fb88a
primary
#39ff7a
primaryForeground
#021006
secondary
#0f1f12
secondaryForeground
#b6f0c0
accent
#12301a
accentForeground
#7dffa8
border
rgba(57,255,122,0.18)
input
rgba(57,255,122,0.3)
ring
#39ff7a
destructive
#ff5f56
destructiveForeground
#1a0300
success
#4ade80
successForeground
#021006
warning
#ffb000
warningForeground
#1a1000
Type. VT323 · IBM Plex Sans · IBM Plex Mono
The file. Drop it in your repo.
1---2name: "Dark Terminal"3slug: "dark-terminal"4schema: "freedesignmd/v2"5description: "Phosphor-green CRT for ops consoles: near-black glass, VT323 headlines, IBM Plex Mono data and a single 39ff7a glow color. Built for observability, on-call and deploy tooling."6source: "https://freedesignmd.com/system/dark-terminal"7aesthetic: "technical"8industry: "developer"9default_mode: "dark"10fonts:11 display: "VT323"12 body: "IBM Plex Sans"13 mono: "IBM Plex Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=VT323&family=IBM+Plex+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500;600&display=swap"15colors:16 light:17 background: "#eef3ea"18 foreground: "#0b2412"19 card: "#f8fbf5"20 cardForeground: "#0b2412"21 muted: "#e0e8da"22 mutedForeground: "#3e5a45"23 primary: "#0a6b2e"24 primaryForeground: "#ffffff"25 secondary: "#dce6d6"26 secondaryForeground: "#0b2412"27 accent: "#cfe8d3"28 accentForeground: "#07461e"29 border: "rgba(11,36,18,0.2)"30 input: "rgba(11,36,18,0.34)"31 ring: "#0a6b2e"32 destructive: "#b3261e"33 destructiveForeground: "#ffffff"34 success: "#0a6b2e"35 successForeground: "#ffffff"36 warning: "#e8a200"37 warningForeground: "#1f1500"38 dark:39 background: "#050a06"40 foreground: "#c8f7d0"41 card: "#0a120b"42 cardForeground: "#c8f7d0"43 muted: "#101a11"44 mutedForeground: "#7fb88a"45 primary: "#39ff7a"46 primaryForeground: "#021006"47 secondary: "#0f1f12"48 secondaryForeground: "#b6f0c0"49 accent: "#12301a"50 accentForeground: "#7dffa8"51 border: "rgba(57,255,122,0.18)"52 input: "rgba(57,255,122,0.3)"53 ring: "#39ff7a"54 destructive: "#ff5f56"55 destructiveForeground: "#1a0300"56 success: "#4ade80"57 successForeground: "#021006"58 warning: "#ffb000"59 warningForeground: "#1a1000"60chart:61 light: ["#0a6b2e", "#b36b00", "#1f7a8c", "#b3261e", "#6b5b95"]62 dark: ["#39ff7a", "#ffb000", "#4fd1e8", "#ff5f56", "#b794f6"]63type:64 display: { font: display, size: 88, size_mobile: 49, leading: 0.95, weight: 400, tracking: "0em" }65 h1: { font: display, size: 56, size_mobile: 38, leading: 1, weight: 400, tracking: "0em" }66 h2: { font: display, size: 34, size_mobile: 27, leading: 1.1, weight: 400, tracking: "0.01em" }67 h3: { font: mono, size: 15, size_mobile: 15, leading: 1.4, weight: 600, tracking: "0.02em", uppercase: true }68 body: { font: body, size: 15, size_mobile: 15, leading: 1.6, weight: 400, tracking: "0em" }69 small: { font: mono, size: 13, size_mobile: 13, leading: 1.5, weight: 400, tracking: "0em" }70 label: { font: mono, size: 12, size_mobile: 12, leading: 1.3, weight: 500, tracking: "0.08em", uppercase: true }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.55, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 24, 32, 48, 64, 96]73radius: { sm: "0px", md: "2px", lg: "2px", xl: "4px", full: "9999px" }74shadow:75 light:76 sm: "0 0 0 1px rgba(11,36,18,0.12)"77 md: "3px 3px 0 rgba(11,36,18,0.18)"78 lg: "6px 6px 0 rgba(11,36,18,0.24)"79 dark:80 sm: "0 0 0 1px rgba(57,255,122,0.14)"81 md: "0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08)"82 lg: "0 0 0 1px rgba(57,255,122,0.3), 0 0 48px rgba(57,255,122,0.12), 0 24px 64px rgba(0,0,0,0.7)"83motion:84 duration_ms: { instant: 0, fast: 90, base: 160, slow: 400 }85 easing: { standard: "steps(4, end)", out: "cubic-bezier(0.2, 0, 0, 1)", in: "cubic-bezier(0.4, 0, 1, 1)" }86 reveal: { distance_px: 0, stagger_ms: 30 }87layout: { max_width: 1120, columns: 12, gutter: 24, section_y: 80, section_y_mobile: 48, measure: "72ch" }88extras:89 glow: { light: "0 0 0 transparent", dark: "0 0 10px rgba(57,255,122,0.55)" }90---91 92# Dark Terminal, DESIGN.md93 94> Phosphor-green CRT for ops consoles: near-black glass, VT323 headlines, IBM Plex Mono data and a single 39ff7a glow color. Built for observability, on-call and deploy tooling.95 96## How to use this file97 981. 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/dark-terminal.css`, which also contains every component class.992. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.1003. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`1014. **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.1025. Default mode is **dark**: put `class="dark"` on `<html>`; light mode is the same file without the class. 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.103 104## 1. Overview & personality105 106Dark Terminal is a cathode-ray console for people who watch systems at 3am. The canvas is a green-tinted black, text is a pale phosphor mint, and the one saturated color, a P1 green, carries every action, prompt and healthy-state signal. Headlines are set in VT323 at large sizes so they read as bitmap screen text, while IBM Plex Mono handles logs, tables and labels. Structure comes from 1px green-tinted rules and square corners; the only decoration is a soft text glow and a blinking block cursor.107 108**At a glance**109 110- Aesthetic: Technical · Industry: Developer tools · Default mode: dark111- Type: VT323 (display) · IBM Plex Sans (body) · IBM Plex Mono (mono)112- Brand color (`primary`): `#0a6b2e` light · `#39ff7a` dark, on primary, text is `#ffffff` / `#021006`113- Corners: 0px / 2px / 2px / 4px · Container 1120px · Base motion 160ms114 115**Signature moves**116 117- Block cursor: a solid `primary` rectangle that blinks after the active prompt and focused field118- Phosphor glow: `--glow` text-shadow on headlines and primary buttons in dark mode only119- Prompt prefix: every list row and heading can lead with `>` or `$` in `primary`120- Square everything: radius is 0 to 2px, borders are 1px green-tinted rules121- Status by amber and red CRT tints, never by colored pills; healthy is simply green text122 123## 2. Color124 125Roles 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.126 127### Light mode (`:root`)128 129| Role | CSS variable | Value | Contrast | Usage |130|---|---|---|---|---|131| `background` | `--background` | `#eef3ea` | | Page canvas |132| `foreground` | `--foreground` | `#0b2412` | 14.62:1 on background | Body text and headings on background |133| `card` | `--card` | `#f8fbf5` | | Cards, panels, popovers |134| `cardForeground` | `--card-foreground` | `#0b2412` | 15.77:1 on card | Text on card |135| `muted` | `--muted` | `#e0e8da` | | Subtle fills: table headers, code, skeletons |136| `mutedForeground` | `--muted-foreground` | `#3e5a45` | 6.07:1 on muted | Secondary text, captions, placeholders |137| `primary` | `--primary` | `#0a6b2e` | | Brand color: primary buttons, links, focus, active states |138| `primaryForeground` | `--primary-foreground` | `#ffffff` | 6.66:1 on primary | Text and icons on primary |139| `secondary` | `--secondary` | `#dce6d6` | | Secondary buttons and quiet fills |140| `secondaryForeground` | `--secondary-foreground` | `#0b2412` | 12.81:1 on secondary | Text on secondary |141| `accent` | `--accent` | `#cfe8d3` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |142| `accentForeground` | `--accent-foreground` | `#07461e` | 8.48:1 on accent | Text on accent |143| `border` | `--border` | `rgba(11,36,18,0.2)` | | Dividers and card outlines |144| `input` | `--input` | `rgba(11,36,18,0.34)` | | Input borders |145| `ring` | `--ring` | `#0a6b2e` | | Focus ring |146| `destructive` | `--destructive` | `#b3261e` | | Errors and destructive actions |147| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 6.54:1 on destructive | Text on destructive |148| `success` | `--success` | `#0a6b2e` | | Positive status |149| `successForeground` | `--success-foreground` | `#ffffff` | 6.66:1 on success | Text on success |150| `warning` | `--warning` | `#e8a200` | | Caution status |151| `warningForeground` | `--warning-foreground` | `#1f1500` | 8.24:1 on warning | Text on warning |152| `chart-1…5` | `--chart-1…5` | `#0a6b2e` `#b36b00` `#1f7a8c` `#b3261e` `#6b5b95` | | Data series, in this order |153 154### Dark mode (`.dark`)155 156| Role | CSS variable | Value | Contrast | Usage |157|---|---|---|---|---|158| `background` | `--background` | `#050a06` | | Page canvas |159| `foreground` | `--foreground` | `#c8f7d0` | 16.79:1 on background | Body text and headings on background |160| `card` | `--card` | `#0a120b` | | Cards, panels, popovers |161| `cardForeground` | `--card-foreground` | `#c8f7d0` | 16.00:1 on card | Text on card |162| `muted` | `--muted` | `#101a11` | | Subtle fills: table headers, code, skeletons |163| `mutedForeground` | `--muted-foreground` | `#7fb88a` | 7.75:1 on muted | Secondary text, captions, placeholders |164| `primary` | `--primary` | `#39ff7a` | | Brand color: primary buttons, links, focus, active states |165| `primaryForeground` | `--primary-foreground` | `#021006` | 14.60:1 on primary | Text and icons on primary |166| `secondary` | `--secondary` | `#0f1f12` | | Secondary buttons and quiet fills |167| `secondaryForeground` | `--secondary-foreground` | `#b6f0c0` | 13.24:1 on secondary | Text on secondary |168| `accent` | `--accent` | `#12301a` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |169| `accentForeground` | `--accent-foreground` | `#7dffa8` | 11.44:1 on accent | Text on accent |170| `border` | `--border` | `rgba(57,255,122,0.18)` | | Dividers and card outlines |171| `input` | `--input` | `rgba(57,255,122,0.3)` | | Input borders |172| `ring` | `--ring` | `#39ff7a` | | Focus ring |173| `destructive` | `--destructive` | `#ff5f56` | | Errors and destructive actions |174| `destructiveForeground` | `--destructive-foreground` | `#1a0300` | 6.64:1 on destructive | Text on destructive |175| `success` | `--success` | `#4ade80` | | Positive status |176| `successForeground` | `--success-foreground` | `#021006` | 11.17:1 on success | Text on success |177| `warning` | `--warning` | `#ffb000` | | Caution status |178| `warningForeground` | `--warning-foreground` | `#1a1000` | 10.25:1 on warning | Text on warning |179| `chart-1…5` | `--chart-1…5` | `#39ff7a` `#ffb000` `#4fd1e8` `#ff5f56` `#b794f6` | | Data series, in this order |180 181### System extras182 183| Variable | Light | Dark | Usage |184|---|---|---|---|185| `--glow` | `0 0 0 transparent` | `0 0 10px rgba(57,255,122,0.55)` | text-shadow for display headlines and primary buttons; zero in light mode. |186 187## 3. Typography188 189Load fonts with:190 191```html192<link rel="preconnect" href="https://fonts.googleapis.com" />193<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />194<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=VT323&family=IBM+Plex+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500;600&display=swap" />195```196 197| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |198|---|---|---|---|---|---|---|---|199| `display` | VT323 | 49px → 88px | 0.95 | 400 | 0em | – | `.type-display` |200| `h1` | VT323 | 38px → 56px | 1 | 400 | 0em | – | `.type-h1` |201| `h2` | VT323 | 27px → 34px | 1.1 | 400 | 0.01em | – | `.type-h2` |202| `h3` | IBM Plex Mono | 15px | 1.4 | 600 | 0.02em | uppercase | `.type-h3` |203| `body` | IBM Plex Sans | 15px | 1.6 | 400 | 0em | – | `.type-body` |204| `small` | IBM Plex Mono | 13px | 1.5 | 400 | 0em | – | `.type-small` |205| `label` | IBM Plex Mono | 12px | 1.3 | 500 | 0.08em | uppercase | `.type-label` |206| `mono` | IBM Plex Mono | 13px | 1.55 | 400 | 0em | – | `.type-mono` |207 208- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.209- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).210- Only the weights in this table are loaded; never use other weights.211 212## 4. Spacing & layout213 214Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):215 216| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-24` |217|---|---|---|---|---|---|---|---|---|---|218| px | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 96 |219 220- Container: max 1120px, 24px side gutters (`.container`).221- Grid: 12 columns, 24px gap.222- Sections: 80px vertical padding on desktop, 48px on mobile (`.section`).223- Long text: max 72ch per line (`.prose`).224- Console shell: 56px top status bar, 220px left rail of services, main pane of log and metric panels.225- Panels are bordered rectangles with a mono label row pinned to the top edge like a window title.226- Align to a 8px row grid so mono columns line up across panels.227 228## 5. Shape & elevation229 230| Radius | Value | Use |231|---|---|---|232| `--radius-sm` | 0px | badges, checkboxes, small chips |233| `--radius-md` | 2px | buttons, inputs, tabs (= shadcn `--radius`) |234| `--radius-lg` | 2px | cards, panels, menus |235| `--radius-xl` | 4px | dialogs, hero media, large surfaces |236| `--radius-full` | 9999px | avatars, pills, toggles |237 238| Shadow | Mode | Value |239|---|---|---|240| `--shadow-sm` | light | `0 0 0 1px rgba(11,36,18,0.12)` |241| `--shadow-md` | light | `3px 3px 0 rgba(11,36,18,0.18)` |242| `--shadow-lg` | light | `6px 6px 0 rgba(11,36,18,0.24)` |243| `--shadow-sm` | dark | `0 0 0 1px rgba(57,255,122,0.14)` |244| `--shadow-md` | dark | `0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08)` |245| `--shadow-lg` | dark | `0 0 0 1px rgba(57,255,122,0.3), 0 0 48px rgba(57,255,122,0.12), 0 24px 64px rgba(0,0,0,0.7)` |246 247`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.248 249## 6. Motion250 251**Scanline type-on.** Content never fades or slides. Headings type on character by character, rows appear top to bottom in stepped increments, and the block cursor blinks on a hard on/off cycle. State changes snap with stepped easing so the UI reads as a refreshing screen.252 253| Token | Value | Use |254|---|---|---|255| `--duration-instant` | 0ms | press feedback, toggles |256| `--duration-fast` | 90ms | hover, focus, color changes |257| `--duration-base` | 160ms | menus, tabs, popovers, cards lifting |258| `--duration-slow` | 400ms | dialogs and scroll reveals |259| `--ease-standard` | `steps(4, end)` | state changes |260| `--ease-out` | `cubic-bezier(0.2, 0, 0, 1)` | entrances and reveals |261| `--ease-in` | `cubic-bezier(0.4, 0, 1, 1)` | exits |262 263- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 0px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 30ms (`--reveal-index`).264- Use no durations other than the four above.265- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).266 267## 7. Components268 269Every 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/dark-terminal.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.270 271### Button272 273```html274<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->275```276 277```css278.btn {279 display: inline-flex;280 align-items: center;281 justify-content: center;282 gap: 8px;283 height: 36px;284 padding: 0 16px;285 font-family: var(--font-mono);286 font-size: 13px;287 font-weight: 600;288 letter-spacing: 0.06em;289 text-transform: uppercase;290 border-radius: var(--radius-sm);291 border: 1px solid transparent;292 white-space: nowrap;293 cursor: pointer;294 text-decoration: none;295 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);296}297.btn-primary {298 background: var(--primary);299 color: var(--primary-foreground);300 text-shadow: none;301 box-shadow: var(--shadow-sm);302}303.btn-primary:hover:not(:disabled) {304 background: color-mix(in oklab, var(--primary) 82%, white);305 box-shadow: var(--shadow-md);306}307.btn-primary:active:not(:disabled) {308 background: color-mix(in oklab, var(--primary) 85%, black);309 transform: translate(1px, 1px);310}311.btn-secondary {312 background: transparent;313 color: var(--primary);314 border-color: var(--primary);315}316.btn-secondary:hover:not(:disabled) {317 background: var(--accent);318 color: var(--accent-foreground);319}320.btn-secondary:active:not(:disabled) {321 background: var(--secondary);322}323.btn-outline {324 background: transparent;325 color: var(--muted-foreground);326 border-color: var(--input);327}328.btn-outline:hover:not(:disabled) {329 color: var(--foreground);330 border-color: var(--primary);331}332.btn-outline:active:not(:disabled) {333 background: var(--muted);334}335.btn-ghost {336 background: transparent;337 color: var(--primary);338 padding: 0 4px;339}340.btn-ghost:hover:not(:disabled) {341 background: var(--accent);342 color: var(--accent-foreground);343}344.btn-ghost:active:not(:disabled) {345 background: var(--secondary);346}347.btn:focus-visible {348 outline: 2px solid var(--ring);349 outline-offset: 2px;350}351.btn:disabled, .btn[aria-disabled="true"] {352 opacity: 0.4;353 cursor: not-allowed;354 box-shadow: none;355}356```357 358### Input359 360```html361<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->362```363 364```css365.input {366 display: block;367 width: 100%;368 height: 36px;369 padding: 0 12px;370 font-family: var(--font-mono);371 font-size: 13px;372 color: var(--foreground);373 background: var(--background);374 border: 1px solid var(--input);375 border-radius: var(--radius-sm);376 outline: none;377 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);378}379.input::placeholder {380 color: var(--muted-foreground);381 opacity: 1;382}383.input:hover:not(:disabled):not(:focus) {384 border-color: var(--primary);385}386.input:focus, .input:focus-visible {387 border-color: var(--ring);388 box-shadow: 0 0 0 1px var(--ring), var(--shadow-md);389 caret-color: var(--primary);390}391.input[aria-invalid="true"] {392 border-color: var(--destructive);393 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);394}395.input:disabled {396 opacity: 0.5;397 cursor: not-allowed;398 background: var(--muted);399}400```401 402### Card403 404```html405<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->406```407 408```css409.card {410 background: var(--card);411 color: var(--card-foreground);412 border: 1px solid var(--border);413 border-radius: var(--radius-sm);414 box-shadow: var(--shadow-sm);415 padding: 20px;416 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);417}418.card-interactive:hover {419 border-color: var(--primary);420 box-shadow: var(--shadow-md);421}422```423 424### Badge425 426```html427<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->428```429 430```css431.badge {432 --tone: var(--primary);433 --tone-foreground: var(--primary-foreground);434 display: inline-flex;435 align-items: center;436 gap: 6px;437 height: 20px;438 padding: 0 8px;439 border-radius: var(--radius-sm);440 font-family: var(--font-mono);441 font-size: 11px;442 font-weight: 500;443 letter-spacing: 0.08em;444 text-transform: uppercase;445 line-height: 1;446 white-space: nowrap;447}448.badge[data-tone="success"] {449 --tone: var(--success);450 --tone-foreground: var(--success-foreground);451}452.badge[data-tone="warning"] {453 --tone: var(--warning);454 --tone-foreground: var(--warning-foreground);455}456.badge[data-tone="destructive"] {457 --tone: var(--destructive);458 --tone-foreground: var(--destructive-foreground);459}460.badge-solid {461 background: var(--tone);462 color: var(--tone-foreground);463 border: 1px solid var(--tone);464}465.badge-soft {466 background: color-mix(in oklab, var(--tone) 12%, var(--card));467 color: var(--foreground);468 border: 1px solid color-mix(in oklab, var(--tone) 28%, transparent);469}470.badge-outline {471 background: transparent;472 color: var(--foreground);473 border: 1px solid var(--border);474}475```476 477### Navigation bar478 479```html480<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>481```482 483```css484.nav {485 display: flex;486 align-items: center;487 gap: 4px;488 height: 48px;489 padding: 0 24px;490 background: var(--background);491 border-bottom: 1px solid var(--border);492}493.nav-link {494 padding: 6px 12px;495 border-radius: 0;496 font-family: var(--font-mono);497 font-size: 12px;498 font-weight: 500;499 letter-spacing: 0.08em;500 text-transform: uppercase;501 color: var(--muted-foreground);502 text-decoration: none;503 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);504}505.nav-link:hover {506 color: var(--primary-foreground);507 background: var(--primary);508}509.nav-link[aria-current="page"] {510 color: var(--background);511 background: var(--foreground);512}513```514 515### Tabs516 517```html518<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>519```520 521```css522.tabs {523 display: inline-flex;524 gap: 0;525 border: 1px solid var(--border);526 border-radius: var(--radius-md);527 overflow: hidden;528}529.tab {530 height: 32px;531 padding: 0 16px;532 border: 0;533 border-right: 1px solid var(--border);534 background: var(--card);535 color: var(--muted-foreground);536 cursor: pointer;537 font-family: var(--font-mono);538 font-size: 12px;539 font-weight: 500;540 letter-spacing: 0.08em;541 text-transform: uppercase;542 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);543}544.tab:hover:not([aria-selected="true"]) {545 background: var(--muted);546 color: var(--foreground);547}548.tab[aria-selected="true"] {549 background: var(--primary);550 color: var(--primary-foreground);551}552```553 554### Table555 556```html557<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>558```559 560```css561.table {562 width: 100%;563 border-collapse: collapse;564 font-size: 13px;565 font-variant-numeric: tabular-nums;566}567.table th {568 text-align: left;569 height: 40px;570 padding: 0 16px;571 font-family: var(--font-mono);572 font-size: 11px;573 font-weight: 500;574 text-transform: uppercase;575 letter-spacing: 0.06em;576 background: var(--muted);577 color: var(--muted-foreground);578 border-bottom: 1px solid var(--border);579}580.table td {581 height: 36px;582 padding: 0 16px;583 border-bottom: 1px solid var(--border);584 color: var(--foreground);585 transition: background-color var(--duration-fast) var(--ease-standard);586}587.table tbody tr:hover td {588 background: var(--accent);589 color: var(--accent-foreground);590}591```592 593### Dialog / modal594 595```html596<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>597```598 599```css600.dialog-overlay {601 position: fixed;602 inset: 0;603 background: rgba(2,6,3,0.78);604 display: grid;605 place-items: center;606 padding: 24px;607}608.dialog {609 width: min(520px, 100%);610 background: var(--card);611 color: var(--card-foreground);612 border: 1px solid var(--primary);613 border-radius: var(--radius-sm);614 box-shadow: var(--shadow-lg);615 padding: 24px;616}617```618 619### Text link620 621```html622<a class="link" href="…">Read more</a>623```624 625```css626.link {627 color: var(--primary);628 text-decoration: underline;629 text-decoration-color: var(--border);630 text-decoration-thickness: 1px;631 text-underline-offset: 3px;632 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);633}634.link:hover {635 text-decoration-color: var(--primary);636 background: var(--accent);637}638```639 640## 8. Imagery & iconography641 642**Imagery.** Terminal captures are the imagery: real log tails, htop-style bars and ASCII service maps on a green-black field, optionally with a faint 2px scanline overlay at low opacity. No photography and no illustrations; diagrams are drawn in box-drawing characters.643 644**Icons.** 16px square-cap line icons at 1.5px stroke (Lucide), colored `muted-foreground` and switching to `primary` on hover. Where possible replace icons with text glyphs: `>`, `$`, `[ok]`, `[!!]`.645 646## 9. Do / Don't647 648**Do**649 650- Set headlines in VT323 at 34px or larger; below that use Plex Mono uppercase651- Use `primary` for the prompt, the main action and healthy state, and nothing else652- Keep every table and log in mono with tabular figures so columns align653- Show amber for degraded and red for down, always paired with a text label like `[warn]`654- Blink the cursor on a hard on/off cycle with stepped easing655 656**Don't**657 658- Don't round corners beyond 4px; avatars may be circles659- Don't use gradients, blur or drop shadows with soft falloff in light mode660- Don't set long prose in mono; paragraphs use IBM Plex Sans661- Don't glow body text; the glow belongs to headlines and the primary button662- Don't fade or slide content in; type on or snap663 664## 10. tokens.css665 666Drop-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.667 668```css669/* Dark Terminal, tokens.css670 * https://freedesignmd.com/system/dark-terminal671 * shadcn/ui-compatible variables. Light on :root, dark on .dark.672 * Default mode: dark, add class="dark" to <html>.673 */674@import url("https://fonts.googleapis.com/css2?family=VT323&family=IBM+Plex+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500;600&display=swap");675 676:root {677 --font-display: "VT323", ui-monospace, SFMono-Regular, Menlo, monospace;678 --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;679 --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;680 --type-display-size: clamp(49px, 34.51px + 3.714vw, 88px);681 --type-display-leading: 0.95;682 --type-display-weight: 400;683 --type-display-tracking: 0em;684 --type-h1-size: clamp(38px, 31.31px + 1.714vw, 56px);685 --type-h1-leading: 1;686 --type-h1-weight: 400;687 --type-h1-tracking: 0em;688 --type-h2-size: clamp(27px, 24.40px + 0.667vw, 34px);689 --type-h2-leading: 1.1;690 --type-h2-weight: 400;691 --type-h2-tracking: 0.01em;692 --type-h3-size: 15px;693 --type-h3-leading: 1.4;694 --type-h3-weight: 600;695 --type-h3-tracking: 0.02em;696 --type-body-size: 15px;697 --type-body-leading: 1.6;698 --type-body-weight: 400;699 --type-body-tracking: 0em;700 --type-small-size: 13px;701 --type-small-leading: 1.5;702 --type-small-weight: 400;703 --type-small-tracking: 0em;704 --type-label-size: 12px;705 --type-label-leading: 1.3;706 --type-label-weight: 500;707 --type-label-tracking: 0.08em;708 --type-mono-size: 13px;709 --type-mono-leading: 1.55;710 --type-mono-weight: 400;711 --type-mono-tracking: 0em;712 --space-1: 4px;713 --space-2: 8px;714 --space-3: 12px;715 --space-4: 16px;716 --space-6: 24px;717 --space-8: 32px;718 --space-12: 48px;719 --space-16: 64px;720 --space-24: 96px;721 --radius: 2px;722 --radius-sm: 0px;723 --radius-md: 2px;724 --radius-lg: 2px;725 --radius-xl: 4px;726 --radius-full: 9999px;727 --duration-instant: 0ms;728 --duration-fast: 90ms;729 --duration-base: 160ms;730 --duration-slow: 400ms;731 --ease-standard: steps(4, end);732 --ease-out: cubic-bezier(0.2, 0, 0, 1);733 --ease-in: cubic-bezier(0.4, 0, 1, 1);734 --reveal-distance: 0px;735 --reveal-stagger: 30ms;736 --container-max: 1120px;737 --gutter: 24px;738 --section-y: 80px;739 --section-y-mobile: 48px;740 --measure: 72ch;741 --background: #eef3ea;742 --foreground: #0b2412;743 --card: #f8fbf5;744 --card-foreground: #0b2412;745 --muted: #e0e8da;746 --muted-foreground: #3e5a45;747 --primary: #0a6b2e;748 --primary-foreground: #ffffff;749 --secondary: #dce6d6;750 --secondary-foreground: #0b2412;751 --accent: #cfe8d3;752 --accent-foreground: #07461e;753 --border: rgba(11,36,18,0.2);754 --input: rgba(11,36,18,0.34);755 --ring: #0a6b2e;756 --destructive: #b3261e;757 --destructive-foreground: #ffffff;758 --success: #0a6b2e;759 --success-foreground: #ffffff;760 --warning: #e8a200;761 --warning-foreground: #1f1500;762 --chart-1: #0a6b2e;763 --chart-2: #b36b00;764 --chart-3: #1f7a8c;765 --chart-4: #b3261e;766 --chart-5: #6b5b95;767 --shadow-sm: 0 0 0 1px rgba(11,36,18,0.12);768 --shadow-md: 3px 3px 0 rgba(11,36,18,0.18);769 --shadow-lg: 6px 6px 0 rgba(11,36,18,0.24);770 --glow: 0 0 0 transparent;771}772 773.dark {774 --background: #050a06;775 --foreground: #c8f7d0;776 --card: #0a120b;777 --card-foreground: #c8f7d0;778 --muted: #101a11;779 --muted-foreground: #7fb88a;780 --primary: #39ff7a;781 --primary-foreground: #021006;782 --secondary: #0f1f12;783 --secondary-foreground: #b6f0c0;784 --accent: #12301a;785 --accent-foreground: #7dffa8;786 --border: rgba(57,255,122,0.18);787 --input: rgba(57,255,122,0.3);788 --ring: #39ff7a;789 --destructive: #ff5f56;790 --destructive-foreground: #1a0300;791 --success: #4ade80;792 --success-foreground: #021006;793 --warning: #ffb000;794 --warning-foreground: #1a1000;795 --chart-1: #39ff7a;796 --chart-2: #ffb000;797 --chart-3: #4fd1e8;798 --chart-4: #ff5f56;799 --chart-5: #b794f6;800 --shadow-sm: 0 0 0 1px rgba(57,255,122,0.14);801 --shadow-md: 0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08);802 --shadow-lg: 0 0 0 1px rgba(57,255,122,0.3), 0 0 48px rgba(57,255,122,0.12), 0 24px 64px rgba(0,0,0,0.7);803 --glow: 0 0 10px rgba(57,255,122,0.55);804}805 806/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */807@theme inline {808 --color-background: var(--background);809 --color-foreground: var(--foreground);810 --color-card: var(--card);811 --color-card-foreground: var(--card-foreground);812 --color-muted: var(--muted);813 --color-muted-foreground: var(--muted-foreground);814 --color-primary: var(--primary);815 --color-primary-foreground: var(--primary-foreground);816 --color-secondary: var(--secondary);817 --color-secondary-foreground: var(--secondary-foreground);818 --color-accent: var(--accent);819 --color-accent-foreground: var(--accent-foreground);820 --color-border: var(--border);821 --color-input: var(--input);822 --color-ring: var(--ring);823 --color-destructive: var(--destructive);824 --color-destructive-foreground: var(--destructive-foreground);825 --color-success: var(--success);826 --color-success-foreground: var(--success-foreground);827 --color-warning: var(--warning);828 --color-warning-foreground: var(--warning-foreground);829 --color-chart-1: var(--chart-1);830 --color-chart-2: var(--chart-2);831 --color-chart-3: var(--chart-3);832 --color-chart-4: var(--chart-4);833 --color-chart-5: var(--chart-5);834 --font-heading: var(--font-display);835 --font-body: var(--font-sans);836 --font-code: var(--font-mono);837 --radius-ui-sm: var(--radius-sm);838 --radius-ui-md: var(--radius-md);839 --radius-ui-lg: var(--radius-lg);840 --radius-ui-xl: var(--radius-xl);841 --text-display: var(--type-display-size);842 --text-display--line-height: var(--type-display-leading);843 --text-display--letter-spacing: var(--type-display-tracking);844 --text-display--font-weight: var(--type-display-weight);845 --text-h1: var(--type-h1-size);846 --text-h1--line-height: var(--type-h1-leading);847 --text-h1--letter-spacing: var(--type-h1-tracking);848 --text-h1--font-weight: var(--type-h1-weight);849 --text-h2: var(--type-h2-size);850 --text-h2--line-height: var(--type-h2-leading);851 --text-h2--letter-spacing: var(--type-h2-tracking);852 --text-h2--font-weight: var(--type-h2-weight);853 --text-h3: var(--type-h3-size);854 --text-h3--line-height: var(--type-h3-leading);855 --text-h3--letter-spacing: var(--type-h3-tracking);856 --text-h3--font-weight: var(--type-h3-weight);857 --text-body: var(--type-body-size);858 --text-body--line-height: var(--type-body-leading);859 --text-body--letter-spacing: var(--type-body-tracking);860 --text-body--font-weight: var(--type-body-weight);861 --text-small: var(--type-small-size);862 --text-small--line-height: var(--type-small-leading);863 --text-small--letter-spacing: var(--type-small-tracking);864 --text-small--font-weight: var(--type-small-weight);865 --text-label: var(--type-label-size);866 --text-label--line-height: var(--type-label-leading);867 --text-label--letter-spacing: var(--type-label-tracking);868 --text-label--font-weight: var(--type-label-weight);869 --text-mono: var(--type-mono-size);870 --text-mono--line-height: var(--type-mono-leading);871 --text-mono--letter-spacing: var(--type-mono-tracking);872 --text-mono--font-weight: var(--type-mono-weight);873 --shadow-ui-sm: var(--shadow-sm);874 --shadow-ui-md: var(--shadow-md);875 --shadow-ui-lg: var(--shadow-lg);876}877 878@layer base {879 body {880 background: var(--background);881 color: var(--foreground);882 font-family: var(--font-sans);883 font-size: var(--type-body-size);884 line-height: var(--type-body-leading);885 font-weight: var(--type-body-weight);886 letter-spacing: var(--type-body-tracking);887 -webkit-font-smoothing: antialiased;888 }889 .type-display {890 font-family: var(--font-display);891 font-size: var(--type-display-size);892 line-height: var(--type-display-leading);893 font-weight: var(--type-display-weight);894 letter-spacing: var(--type-display-tracking);895 }896 .type-h1 {897 font-family: var(--font-display);898 font-size: var(--type-h1-size);899 line-height: var(--type-h1-leading);900 font-weight: var(--type-h1-weight);901 letter-spacing: var(--type-h1-tracking);902 }903 .type-h2 {904 font-family: var(--font-display);905 font-size: var(--type-h2-size);906 line-height: var(--type-h2-leading);907 font-weight: var(--type-h2-weight);908 letter-spacing: var(--type-h2-tracking);909 }910 .type-h3 {911 font-family: var(--font-mono);912 font-size: var(--type-h3-size);913 line-height: var(--type-h3-leading);914 font-weight: var(--type-h3-weight);915 letter-spacing: var(--type-h3-tracking);916 text-transform: uppercase;917 }918 .type-body {919 font-family: var(--font-sans);920 font-size: var(--type-body-size);921 line-height: var(--type-body-leading);922 font-weight: var(--type-body-weight);923 letter-spacing: var(--type-body-tracking);924 }925 .type-small {926 font-family: var(--font-mono);927 font-size: var(--type-small-size);928 line-height: var(--type-small-leading);929 font-weight: var(--type-small-weight);930 letter-spacing: var(--type-small-tracking);931 }932 .type-label {933 font-family: var(--font-mono);934 font-size: var(--type-label-size);935 line-height: var(--type-label-leading);936 font-weight: var(--type-label-weight);937 letter-spacing: var(--type-label-tracking);938 text-transform: uppercase;939 }940 .type-mono {941 font-family: var(--font-mono);942 font-size: var(--type-mono-size);943 line-height: var(--type-mono-leading);944 font-weight: var(--type-mono-weight);945 letter-spacing: var(--type-mono-tracking);946 }947 h1 {948 font-family: var(--font-display);949 font-size: var(--type-h1-size);950 line-height: var(--type-h1-leading);951 font-weight: var(--type-h1-weight);952 letter-spacing: var(--type-h1-tracking);953 }954 h2 {955 font-family: var(--font-display);956 font-size: var(--type-h2-size);957 line-height: var(--type-h2-leading);958 font-weight: var(--type-h2-weight);959 letter-spacing: var(--type-h2-tracking);960 }961 h3 {962 font-family: var(--font-mono);963 font-size: var(--type-h3-size);964 line-height: var(--type-h3-leading);965 font-weight: var(--type-h3-weight);966 letter-spacing: var(--type-h3-tracking);967 text-transform: uppercase;968 }969 code, kbd, samp, pre {970 font-family: var(--font-mono);971 }972 ::selection {973 background: var(--primary);974 color: var(--primary-foreground);975 }976 .container {977 width: 100%;978 max-width: var(--container-max);979 margin-inline: auto;980 padding-inline: var(--gutter);981 }982 .section {983 padding-block: var(--section-y);984 }985 .prose {986 max-width: var(--measure);987 }988 .reveal {989 opacity: 0;990 transform: translateY(var(--reveal-distance));991 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);992 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));993 }994 .reveal.is-in {995 opacity: 1;996 transform: none;997 }998 @media (prefers-reduced-motion: reduce) {999 .reveal { opacity: 1; transform: none; transition: none; }1000 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }1001 }1002}1003```1004 1005Tailwind v3:1006 1007```js1008// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1009module.exports = {1010 darkMode: "class",1011 theme: {1012 extend: {1013 colors: {1014 "background": "var(--background)",1015 "foreground": "var(--foreground)",1016 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1017 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1018 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1019 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1020 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1021 "border": "var(--border)",1022 "input": "var(--input)",1023 "ring": "var(--ring)",1024 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1025 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1026 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1027 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1028 },1029 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1030 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1031 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1032 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1033 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1034 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1035 },1036 },1037};1038```1039 1040Dependencies: `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.


