---
name: "Dark Terminal"
slug: "dark-terminal"
schema: "freedesignmd/v2"
description: "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."
source: "https://freedesignmd.com/system/dark-terminal"
aesthetic: "technical"
industry: "developer"
default_mode: "dark"
fonts:
  display: "VT323"
  body: "IBM Plex Sans"
  mono: "IBM Plex Mono"
  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"
colors:
  light:
    background: "#eef3ea"
    foreground: "#0b2412"
    card: "#f8fbf5"
    cardForeground: "#0b2412"
    muted: "#e0e8da"
    mutedForeground: "#3e5a45"
    primary: "#0a6b2e"
    primaryForeground: "#ffffff"
    secondary: "#dce6d6"
    secondaryForeground: "#0b2412"
    accent: "#cfe8d3"
    accentForeground: "#07461e"
    border: "rgba(11,36,18,0.2)"
    input: "rgba(11,36,18,0.34)"
    ring: "#0a6b2e"
    destructive: "#b3261e"
    destructiveForeground: "#ffffff"
    success: "#0a6b2e"
    successForeground: "#ffffff"
    warning: "#e8a200"
    warningForeground: "#1f1500"
  dark:
    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"
chart:
  light: ["#0a6b2e", "#b36b00", "#1f7a8c", "#b3261e", "#6b5b95"]
  dark: ["#39ff7a", "#ffb000", "#4fd1e8", "#ff5f56", "#b794f6"]
type:
  display: { font: display, size: 88, size_mobile: 49, leading: 0.95, weight: 400, tracking: "0em" }
  h1: { font: display, size: 56, size_mobile: 38, leading: 1, weight: 400, tracking: "0em" }
  h2: { font: display, size: 34, size_mobile: 27, leading: 1.1, weight: 400, tracking: "0.01em" }
  h3: { font: mono, size: 15, size_mobile: 15, leading: 1.4, weight: 600, tracking: "0.02em", uppercase: true }
  body: { font: body, size: 15, size_mobile: 15, leading: 1.6, weight: 400, tracking: "0em" }
  small: { font: mono, size: 13, size_mobile: 13, leading: 1.5, weight: 400, tracking: "0em" }
  label: { font: mono, size: 12, size_mobile: 12, leading: 1.3, weight: 500, tracking: "0.08em", uppercase: true }
  mono: { font: mono, size: 13, size_mobile: 13, leading: 1.55, weight: 400, tracking: "0em" }
spacing: [4, 8, 12, 16, 24, 32, 48, 64, 96]
radius: { sm: "0px", md: "2px", lg: "2px", xl: "4px", full: "9999px" }
shadow:
  light:
    sm: "0 0 0 1px rgba(11,36,18,0.12)"
    md: "3px 3px 0 rgba(11,36,18,0.18)"
    lg: "6px 6px 0 rgba(11,36,18,0.24)"
  dark:
    sm: "0 0 0 1px rgba(57,255,122,0.14)"
    md: "0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08)"
    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)"
motion:
  duration_ms: { instant: 0, fast: 90, base: 160, slow: 400 }
  easing: { standard: "steps(4, end)", out: "cubic-bezier(0.2, 0, 0, 1)", in: "cubic-bezier(0.4, 0, 1, 1)" }
  reveal: { distance_px: 0, stagger_ms: 30 }
layout: { max_width: 1120, columns: 12, gutter: 24, section_y: 80, section_y_mobile: 48, measure: "72ch" }
extras:
  glow: { light: "0 0 0 transparent", dark: "0 0 10px rgba(57,255,122,0.55)" }
---

# Dark Terminal, DESIGN.md

> 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.

## How to use this file

1. 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.
2. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.
3. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`
4. **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.
5. 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.

## 1. Overview & 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.

**At a glance**

- Aesthetic: Technical · Industry: Developer tools · Default mode: dark
- Type: VT323 (display) · IBM Plex Sans (body) · IBM Plex Mono (mono)
- Brand color (`primary`): `#0a6b2e` light · `#39ff7a` dark, on primary, text is `#ffffff` / `#021006`
- Corners: 0px / 2px / 2px / 4px · Container 1120px · Base motion 160ms

**Signature moves**

- 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

## 2. Color

Roles 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.

### Light mode (`:root`)

| Role | CSS variable | Value | Contrast | Usage |
|---|---|---|---|---|
| `background` | `--background` | `#eef3ea` |  | Page canvas |
| `foreground` | `--foreground` | `#0b2412` | 14.62:1 on background | Body text and headings on background |
| `card` | `--card` | `#f8fbf5` |  | Cards, panels, popovers |
| `cardForeground` | `--card-foreground` | `#0b2412` | 15.77:1 on card | Text on card |
| `muted` | `--muted` | `#e0e8da` |  | Subtle fills: table headers, code, skeletons |
| `mutedForeground` | `--muted-foreground` | `#3e5a45` | 6.07:1 on muted | Secondary text, captions, placeholders |
| `primary` | `--primary` | `#0a6b2e` |  | Brand color: primary buttons, links, focus, active states |
| `primaryForeground` | `--primary-foreground` | `#ffffff` | 6.66:1 on primary | Text and icons on primary |
| `secondary` | `--secondary` | `#dce6d6` |  | Secondary buttons and quiet fills |
| `secondaryForeground` | `--secondary-foreground` | `#0b2412` | 12.81:1 on secondary | Text on secondary |
| `accent` | `--accent` | `#cfe8d3` |  | Hover and selected backgrounds (rows, menu items, ghost buttons) |
| `accentForeground` | `--accent-foreground` | `#07461e` | 8.48:1 on accent | Text on accent |
| `border` | `--border` | `rgba(11,36,18,0.2)` |  | Dividers and card outlines |
| `input` | `--input` | `rgba(11,36,18,0.34)` |  | Input borders |
| `ring` | `--ring` | `#0a6b2e` |  | Focus ring |
| `destructive` | `--destructive` | `#b3261e` |  | Errors and destructive actions |
| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 6.54:1 on destructive | Text on destructive |
| `success` | `--success` | `#0a6b2e` |  | Positive status |
| `successForeground` | `--success-foreground` | `#ffffff` | 6.66:1 on success | Text on success |
| `warning` | `--warning` | `#e8a200` |  | Caution status |
| `warningForeground` | `--warning-foreground` | `#1f1500` | 8.24:1 on warning | Text on warning |
| `chart-1…5` | `--chart-1…5` | `#0a6b2e` `#b36b00` `#1f7a8c` `#b3261e` `#6b5b95` | | Data series, in this order |

### Dark mode (`.dark`)

| Role | CSS variable | Value | Contrast | Usage |
|---|---|---|---|---|
| `background` | `--background` | `#050a06` |  | Page canvas |
| `foreground` | `--foreground` | `#c8f7d0` | 16.79:1 on background | Body text and headings on background |
| `card` | `--card` | `#0a120b` |  | Cards, panels, popovers |
| `cardForeground` | `--card-foreground` | `#c8f7d0` | 16.00:1 on card | Text on card |
| `muted` | `--muted` | `#101a11` |  | Subtle fills: table headers, code, skeletons |
| `mutedForeground` | `--muted-foreground` | `#7fb88a` | 7.75:1 on muted | Secondary text, captions, placeholders |
| `primary` | `--primary` | `#39ff7a` |  | Brand color: primary buttons, links, focus, active states |
| `primaryForeground` | `--primary-foreground` | `#021006` | 14.60:1 on primary | Text and icons on primary |
| `secondary` | `--secondary` | `#0f1f12` |  | Secondary buttons and quiet fills |
| `secondaryForeground` | `--secondary-foreground` | `#b6f0c0` | 13.24:1 on secondary | Text on secondary |
| `accent` | `--accent` | `#12301a` |  | Hover and selected backgrounds (rows, menu items, ghost buttons) |
| `accentForeground` | `--accent-foreground` | `#7dffa8` | 11.44:1 on accent | Text on accent |
| `border` | `--border` | `rgba(57,255,122,0.18)` |  | Dividers and card outlines |
| `input` | `--input` | `rgba(57,255,122,0.3)` |  | Input borders |
| `ring` | `--ring` | `#39ff7a` |  | Focus ring |
| `destructive` | `--destructive` | `#ff5f56` |  | Errors and destructive actions |
| `destructiveForeground` | `--destructive-foreground` | `#1a0300` | 6.64:1 on destructive | Text on destructive |
| `success` | `--success` | `#4ade80` |  | Positive status |
| `successForeground` | `--success-foreground` | `#021006` | 11.17:1 on success | Text on success |
| `warning` | `--warning` | `#ffb000` |  | Caution status |
| `warningForeground` | `--warning-foreground` | `#1a1000` | 10.25:1 on warning | Text on warning |
| `chart-1…5` | `--chart-1…5` | `#39ff7a` `#ffb000` `#4fd1e8` `#ff5f56` `#b794f6` | | Data series, in this order |

### System extras

| Variable | Light | Dark | Usage |
|---|---|---|---|
| `--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. |

## 3. Typography

Load fonts with:

```html
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<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" />
```

| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |
|---|---|---|---|---|---|---|---|
| `display` | VT323 | 49px → 88px | 0.95 | 400 | 0em | – | `.type-display` |
| `h1` | VT323 | 38px → 56px | 1 | 400 | 0em | – | `.type-h1` |
| `h2` | VT323 | 27px → 34px | 1.1 | 400 | 0.01em | – | `.type-h2` |
| `h3` | IBM Plex Mono | 15px | 1.4 | 600 | 0.02em | uppercase | `.type-h3` |
| `body` | IBM Plex Sans | 15px | 1.6 | 400 | 0em | – | `.type-body` |
| `small` | IBM Plex Mono | 13px | 1.5 | 400 | 0em | – | `.type-small` |
| `label` | IBM Plex Mono | 12px | 1.3 | 500 | 0.08em | uppercase | `.type-label` |
| `mono` | IBM Plex Mono | 13px | 1.55 | 400 | 0em | – | `.type-mono` |

- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.
- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).
- Only the weights in this table are loaded; never use other weights.

## 4. Spacing & layout

Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):

| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-24` |
|---|---|---|---|---|---|---|---|---|---|
| px | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 96 |

- Container: max 1120px, 24px side gutters (`.container`).
- Grid: 12 columns, 24px gap.
- Sections: 80px vertical padding on desktop, 48px on mobile (`.section`).
- Long text: max 72ch per line (`.prose`).
- Console shell: 56px top status bar, 220px left rail of services, main pane of log and metric panels.
- Panels are bordered rectangles with a mono label row pinned to the top edge like a window title.
- Align to a 8px row grid so mono columns line up across panels.

## 5. Shape & elevation

| Radius | Value | Use |
|---|---|---|
| `--radius-sm` | 0px | badges, checkboxes, small chips |
| `--radius-md` | 2px | buttons, inputs, tabs (= shadcn `--radius`) |
| `--radius-lg` | 2px | cards, panels, menus |
| `--radius-xl` | 4px | dialogs, hero media, large surfaces |
| `--radius-full` | 9999px | avatars, pills, toggles |

| Shadow | Mode | Value |
|---|---|---|
| `--shadow-sm` | light | `0 0 0 1px rgba(11,36,18,0.12)` |
| `--shadow-md` | light | `3px 3px 0 rgba(11,36,18,0.18)` |
| `--shadow-lg` | light | `6px 6px 0 rgba(11,36,18,0.24)` |
| `--shadow-sm` | dark | `0 0 0 1px rgba(57,255,122,0.14)` |
| `--shadow-md` | dark | `0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08)` |
| `--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)` |

`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.

## 6. Motion

**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.

| Token | Value | Use |
|---|---|---|
| `--duration-instant` | 0ms | press feedback, toggles |
| `--duration-fast` | 90ms | hover, focus, color changes |
| `--duration-base` | 160ms | menus, tabs, popovers, cards lifting |
| `--duration-slow` | 400ms | dialogs and scroll reveals |
| `--ease-standard` | `steps(4, end)` | state changes |
| `--ease-out` | `cubic-bezier(0.2, 0, 0, 1)` | entrances and reveals |
| `--ease-in` | `cubic-bezier(0.4, 0, 1, 1)` | exits |

- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 0px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 30ms (`--reveal-index`).
- Use no durations other than the four above.
- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).

## 7. Components

Every 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.

### Button

```html
<button class="btn btn-primary">Save</button>  <!-- btn-secondary · btn-outline · btn-ghost -->
```

```css
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  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);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  text-shadow: none;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) {
  background: color-mix(in oklab, var(--primary) 82%, white);
  box-shadow: var(--shadow-md);
}
.btn-primary:active:not(:disabled) {
  background: color-mix(in oklab, var(--primary) 85%, black);
  transform: translate(1px, 1px);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-secondary:active:not(:disabled) {
  background: var(--secondary);
}
.btn-outline {
  background: transparent;
  color: var(--muted-foreground);
  border-color: var(--input);
}
.btn-outline:hover:not(:disabled) {
  color: var(--foreground);
  border-color: var(--primary);
}
.btn-outline:active:not(:disabled) {
  background: var(--muted);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0 4px;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-ghost:active:not(:disabled) {
  background: var(--secondary);
}
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
```

### Input

```html
<input class="input" placeholder="you@company.com" />  <!-- aria-invalid="true" for errors -->
```

```css
.input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  outline: none;
  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);
}
.input::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}
.input:hover:not(:disabled):not(:focus) {
  border-color: var(--primary);
}
.input:focus, .input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow-md);
  caret-color: var(--primary);
}
.input[aria-invalid="true"] {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);
}
.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--muted);
}
```

### Card

```html
<article class="card">…</article>  <!-- add card-interactive when the whole card is a link -->
```

```css
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  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);
}
.card-interactive:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
```

### Badge

```html
<span class="badge badge-soft" data-tone="success">Paid</span>  <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->
```

```css
.badge {
  --tone: var(--primary);
  --tone-foreground: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.badge[data-tone="success"] {
  --tone: var(--success);
  --tone-foreground: var(--success-foreground);
}
.badge[data-tone="warning"] {
  --tone: var(--warning);
  --tone-foreground: var(--warning-foreground);
}
.badge[data-tone="destructive"] {
  --tone: var(--destructive);
  --tone-foreground: var(--destructive-foreground);
}
.badge-solid {
  background: var(--tone);
  color: var(--tone-foreground);
  border: 1px solid var(--tone);
}
.badge-soft {
  background: color-mix(in oklab, var(--tone) 12%, var(--card));
  color: var(--foreground);
  border: 1px solid color-mix(in oklab, var(--tone) 28%, transparent);
}
.badge-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
```

### Navigation bar

```html
<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>
```

```css
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.nav-link {
  padding: 6px 12px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.nav-link:hover {
  color: var(--primary-foreground);
  background: var(--primary);
}
.nav-link[aria-current="page"] {
  color: var(--background);
  background: var(--foreground);
}
```

### Tabs

```html
<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>
```

```css
.tabs {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  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);
}
.tab:hover:not([aria-selected="true"]) {
  background: var(--muted);
  color: var(--foreground);
}
.tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}
```

### Table

```html
<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>
```

```css
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.table th {
  text-align: left;
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--muted);
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.table td {
  height: 36px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.table tbody tr:hover td {
  background: var(--accent);
  color: var(--accent-foreground);
}
```

### Dialog / modal

```html
<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>
```

```css
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,3,0.78);
  display: grid;
  place-items: center;
  padding: 24px;
}
.dialog {
  width: min(520px, 100%);
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
```

### Text link

```html
<a class="link" href="…">Read more</a>
```

```css
.link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);
}
.link:hover {
  text-decoration-color: var(--primary);
  background: var(--accent);
}
```

## 8. Imagery & iconography

**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.

**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]`, `[!!]`.

## 9. Do / Don't

**Do**

- Set headlines in VT323 at 34px or larger; below that use Plex Mono uppercase
- Use `primary` for the prompt, the main action and healthy state, and nothing else
- Keep every table and log in mono with tabular figures so columns align
- Show amber for degraded and red for down, always paired with a text label like `[warn]`
- Blink the cursor on a hard on/off cycle with stepped easing

**Don't**

- Don't round corners beyond 4px; avatars may be circles
- Don't use gradients, blur or drop shadows with soft falloff in light mode
- Don't set long prose in mono; paragraphs use IBM Plex Sans
- Don't glow body text; the glow belongs to headlines and the primary button
- Don't fade or slide content in; type on or snap

## 10. tokens.css

Drop-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.

```css
/* Dark Terminal, tokens.css
 * https://freedesignmd.com/system/dark-terminal
 * shadcn/ui-compatible variables. Light on :root, dark on .dark.
 * Default mode: dark, add class="dark" to <html>.
 */
@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");

:root {
  --font-display: "VT323", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --type-display-size: clamp(49px, 34.51px + 3.714vw, 88px);
  --type-display-leading: 0.95;
  --type-display-weight: 400;
  --type-display-tracking: 0em;
  --type-h1-size: clamp(38px, 31.31px + 1.714vw, 56px);
  --type-h1-leading: 1;
  --type-h1-weight: 400;
  --type-h1-tracking: 0em;
  --type-h2-size: clamp(27px, 24.40px + 0.667vw, 34px);
  --type-h2-leading: 1.1;
  --type-h2-weight: 400;
  --type-h2-tracking: 0.01em;
  --type-h3-size: 15px;
  --type-h3-leading: 1.4;
  --type-h3-weight: 600;
  --type-h3-tracking: 0.02em;
  --type-body-size: 15px;
  --type-body-leading: 1.6;
  --type-body-weight: 400;
  --type-body-tracking: 0em;
  --type-small-size: 13px;
  --type-small-leading: 1.5;
  --type-small-weight: 400;
  --type-small-tracking: 0em;
  --type-label-size: 12px;
  --type-label-leading: 1.3;
  --type-label-weight: 500;
  --type-label-tracking: 0.08em;
  --type-mono-size: 13px;
  --type-mono-leading: 1.55;
  --type-mono-weight: 400;
  --type-mono-tracking: 0em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius: 2px;
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 4px;
  --radius-full: 9999px;
  --duration-instant: 0ms;
  --duration-fast: 90ms;
  --duration-base: 160ms;
  --duration-slow: 400ms;
  --ease-standard: steps(4, end);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --reveal-distance: 0px;
  --reveal-stagger: 30ms;
  --container-max: 1120px;
  --gutter: 24px;
  --section-y: 80px;
  --section-y-mobile: 48px;
  --measure: 72ch;
  --background: #eef3ea;
  --foreground: #0b2412;
  --card: #f8fbf5;
  --card-foreground: #0b2412;
  --muted: #e0e8da;
  --muted-foreground: #3e5a45;
  --primary: #0a6b2e;
  --primary-foreground: #ffffff;
  --secondary: #dce6d6;
  --secondary-foreground: #0b2412;
  --accent: #cfe8d3;
  --accent-foreground: #07461e;
  --border: rgba(11,36,18,0.2);
  --input: rgba(11,36,18,0.34);
  --ring: #0a6b2e;
  --destructive: #b3261e;
  --destructive-foreground: #ffffff;
  --success: #0a6b2e;
  --success-foreground: #ffffff;
  --warning: #e8a200;
  --warning-foreground: #1f1500;
  --chart-1: #0a6b2e;
  --chart-2: #b36b00;
  --chart-3: #1f7a8c;
  --chart-4: #b3261e;
  --chart-5: #6b5b95;
  --shadow-sm: 0 0 0 1px rgba(11,36,18,0.12);
  --shadow-md: 3px 3px 0 rgba(11,36,18,0.18);
  --shadow-lg: 6px 6px 0 rgba(11,36,18,0.24);
  --glow: 0 0 0 transparent;
}

.dark {
  --background: #050a06;
  --foreground: #c8f7d0;
  --card: #0a120b;
  --card-foreground: #c8f7d0;
  --muted: #101a11;
  --muted-foreground: #7fb88a;
  --primary: #39ff7a;
  --primary-foreground: #021006;
  --secondary: #0f1f12;
  --secondary-foreground: #b6f0c0;
  --accent: #12301a;
  --accent-foreground: #7dffa8;
  --border: rgba(57,255,122,0.18);
  --input: rgba(57,255,122,0.3);
  --ring: #39ff7a;
  --destructive: #ff5f56;
  --destructive-foreground: #1a0300;
  --success: #4ade80;
  --success-foreground: #021006;
  --warning: #ffb000;
  --warning-foreground: #1a1000;
  --chart-1: #39ff7a;
  --chart-2: #ffb000;
  --chart-3: #4fd1e8;
  --chart-4: #ff5f56;
  --chart-5: #b794f6;
  --shadow-sm: 0 0 0 1px rgba(57,255,122,0.14);
  --shadow-md: 0 0 0 1px rgba(57,255,122,0.22), 0 0 18px rgba(57,255,122,0.08);
  --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);
  --glow: 0 0 10px rgba(57,255,122,0.55);
}

/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --font-heading: var(--font-display);
  --font-body: var(--font-sans);
  --font-code: var(--font-mono);
  --radius-ui-sm: var(--radius-sm);
  --radius-ui-md: var(--radius-md);
  --radius-ui-lg: var(--radius-lg);
  --radius-ui-xl: var(--radius-xl);
  --text-display: var(--type-display-size);
  --text-display--line-height: var(--type-display-leading);
  --text-display--letter-spacing: var(--type-display-tracking);
  --text-display--font-weight: var(--type-display-weight);
  --text-h1: var(--type-h1-size);
  --text-h1--line-height: var(--type-h1-leading);
  --text-h1--letter-spacing: var(--type-h1-tracking);
  --text-h1--font-weight: var(--type-h1-weight);
  --text-h2: var(--type-h2-size);
  --text-h2--line-height: var(--type-h2-leading);
  --text-h2--letter-spacing: var(--type-h2-tracking);
  --text-h2--font-weight: var(--type-h2-weight);
  --text-h3: var(--type-h3-size);
  --text-h3--line-height: var(--type-h3-leading);
  --text-h3--letter-spacing: var(--type-h3-tracking);
  --text-h3--font-weight: var(--type-h3-weight);
  --text-body: var(--type-body-size);
  --text-body--line-height: var(--type-body-leading);
  --text-body--letter-spacing: var(--type-body-tracking);
  --text-body--font-weight: var(--type-body-weight);
  --text-small: var(--type-small-size);
  --text-small--line-height: var(--type-small-leading);
  --text-small--letter-spacing: var(--type-small-tracking);
  --text-small--font-weight: var(--type-small-weight);
  --text-label: var(--type-label-size);
  --text-label--line-height: var(--type-label-leading);
  --text-label--letter-spacing: var(--type-label-tracking);
  --text-label--font-weight: var(--type-label-weight);
  --text-mono: var(--type-mono-size);
  --text-mono--line-height: var(--type-mono-leading);
  --text-mono--letter-spacing: var(--type-mono-tracking);
  --text-mono--font-weight: var(--type-mono-weight);
  --shadow-ui-sm: var(--shadow-sm);
  --shadow-ui-md: var(--shadow-md);
  --shadow-ui-lg: var(--shadow-lg);
}

@layer base {
  body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-leading);
    font-weight: var(--type-body-weight);
    letter-spacing: var(--type-body-tracking);
    -webkit-font-smoothing: antialiased;
  }
  .type-display {
    font-family: var(--font-display);
    font-size: var(--type-display-size);
    line-height: var(--type-display-leading);
    font-weight: var(--type-display-weight);
    letter-spacing: var(--type-display-tracking);
  }
  .type-h1 {
    font-family: var(--font-display);
    font-size: var(--type-h1-size);
    line-height: var(--type-h1-leading);
    font-weight: var(--type-h1-weight);
    letter-spacing: var(--type-h1-tracking);
  }
  .type-h2 {
    font-family: var(--font-display);
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-leading);
    font-weight: var(--type-h2-weight);
    letter-spacing: var(--type-h2-tracking);
  }
  .type-h3 {
    font-family: var(--font-mono);
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-leading);
    font-weight: var(--type-h3-weight);
    letter-spacing: var(--type-h3-tracking);
    text-transform: uppercase;
  }
  .type-body {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-leading);
    font-weight: var(--type-body-weight);
    letter-spacing: var(--type-body-tracking);
  }
  .type-small {
    font-family: var(--font-mono);
    font-size: var(--type-small-size);
    line-height: var(--type-small-leading);
    font-weight: var(--type-small-weight);
    letter-spacing: var(--type-small-tracking);
  }
  .type-label {
    font-family: var(--font-mono);
    font-size: var(--type-label-size);
    line-height: var(--type-label-leading);
    font-weight: var(--type-label-weight);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
  }
  .type-mono {
    font-family: var(--font-mono);
    font-size: var(--type-mono-size);
    line-height: var(--type-mono-leading);
    font-weight: var(--type-mono-weight);
    letter-spacing: var(--type-mono-tracking);
  }
  h1 {
    font-family: var(--font-display);
    font-size: var(--type-h1-size);
    line-height: var(--type-h1-leading);
    font-weight: var(--type-h1-weight);
    letter-spacing: var(--type-h1-tracking);
  }
  h2 {
    font-family: var(--font-display);
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-leading);
    font-weight: var(--type-h2-weight);
    letter-spacing: var(--type-h2-tracking);
  }
  h3 {
    font-family: var(--font-mono);
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-leading);
    font-weight: var(--type-h3-weight);
    letter-spacing: var(--type-h3-tracking);
    text-transform: uppercase;
  }
  code, kbd, samp, pre {
    font-family: var(--font-mono);
  }
  ::selection {
    background: var(--primary);
    color: var(--primary-foreground);
  }
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .section {
    padding-block: var(--section-y);
  }
  .prose {
    max-width: var(--measure);
  }
  .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
    transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  }
}
```

Tailwind v3:

```js
// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)
module.exports = {
  darkMode: "class",
  theme: {
    extend: {
      colors: {
        "background": "var(--background)",
        "foreground": "var(--foreground)",
        "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },
        "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },
        "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },
        "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },
        "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },
        "border": "var(--border)",
        "input": "var(--input)",
        "ring": "var(--ring)",
        "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },
        "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },
        "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },
        chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },
      },
      fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },
      borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },
      boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },
      transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },
      transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },
      maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },
    },
  },
};
```

Dependencies: `lucide-react`
