Token Export
Design tokens as deployable prompts and config
Export the xCO design system as a CLAUDE.md prompt, CSS custom properties, or Tailwind config — so any codebase can be aligned to the same visual language.
CLAUDE.md — 120 lines5.9 KB
# xCO Design System — Claude Code Reference
You are implementing the xCO visual language by Dark Matter Labs (Expanding Civilizational Optionality). Apply these exact tokens and rules to every UI decision. Do not introduce any colours, fonts, or radius values outside this system.
## Colour palette
These tokens only, drawn from the xCO identity scales (Field, Signal, Matter). Never use arbitrary hex codes or add new colours.
| CSS Variable | Hex | Tailwind class | Usage |
|---|---|---|---|
| `--color-xco-paper` | `#F6F1E5` | `xco-paper` | Default page background. Chalk (Matter 50) — never pure white. |
| `--color-xco-ink` | `#101F24` | `xco-ink` | Body text, structural lines. Matter 950, a blue-black — never #000. |
| `--color-xco-ink-muted` | `#374E4A` | `xco-ink-muted` | Secondary text. Ink at reduced contrast — clears 4.5:1 on every text surface. |
| `—` | `#101F24` | `—` | Rules, dividers, grid lines. Never a separate hue. |
| `--color-xco-navy` | `#101F2D` | `xco-navy` | Field 950. Blueprint dark ground — the deepest blue. |
| `--color-xco-ocean` | `#335D76` | `xco-ocean` | Field 600. Prussian blue — nav accent, systemic diagram elements. |
| `--color-xco-teal` | `#406D82` | `xco-teal` | Field 500. Atmospheric blue — the open register. |
| `--color-xco-sand` | `#F6A577` | `xco-sand` | Signal 300. Warm field register — amber light. |
| `--color-xco-dusk` | `#F47743` | `xco-dusk` | Signal 500. The ember — a declared hinge, transition or presence. |
| `--color-xco-dusk-ink` | `#A13E25` | `xco-dusk-ink` | Signal 700. Small warm text on pale grounds (8.1); the ember itself is a surface. |
| `--color-xco-ocean-ink` | `#335D76` | `xco-ocean-ink` | Field 600. Structural accent text. |
| `--color-xco-teal-ink` | `#406D82` | `xco-teal-ink` | Field 500. Open-register accent text. |
Rules and dividers: `rgba(16, 31, 36, 0.12)` — ink at 12% opacity. In Tailwind: `border-xco-ink/[0.12]`.
## Typography
Four typefaces only. Do not introduce any other font families.
| Family | Tailwind class | Usage |
|---|---|---|
| Untitled Serif | `font-display` | Headings. Serif — the weight of the idea. |
| Untitled Sans | `font-body` | All running text. Sans — clarity, no decoration. |
| Untitled Sans | `font-ui` | Alias for body. Navigation, labels, structural scaffolding. |
| Untitled Sans | `font-mono` | Small text. Numbers, labels, annotations — showing the working. Untitled Sans, never a monospace. |
| DM Mono | `font-code` | Code only, where characters must line up. Also the PNG export's only face, until it can load Untitled Sans. |
## Type scale
| Step | Size | Line height | Face |
|---|---|---|---|
| Logo | `100px` | 90px | display |
| Heading | `60px` | 60px | display |
| Heading 2 | `36px` | 40px | body |
| Body | `24px` | 26px | body |
| Small | `0.9375rem` | 1.6 | mono |
Body measure (max-width): 68ch for body text. Reduce for captions and mono.
## Visual principles
- **Corner radius**: near-zero (`1.5rem` gutter, `0.125rem` radius max). This is not a rounded-corner brand.
- **Borders**: always ink at 0.12 opacity, 1px. Never decorative; always structural.
- **Never** use pure black (`#000`) or pure white (`#FFF`) — use `ink` (#101F24) and `paper` (#F6F1E5) tokens.
- **Diagrams** use exactly two line weights: `1.5px` structural, `0.75px` texture.
- **No bold** on UI / Untitled Sans face. Use weight 400 or 500 only.
- Dark mode is a paper ↔ ink swap — all other colours remain fixed.
## House rules (non-negotiable)
These apply to every string you write — UI copy, comments, alt text, commit messages.
- **Spell civilization with a z**, never an s: civilization, civilizational, civilizations. Never civilisation, civilisational, civilisations. xCO writes in US English.
- **Write the project name as `xCO`** — lowercase x, uppercase CO. Never XCO, xco, Xco, XCo, or xCo. The casing is semantic: the lowercase x is the expansion operator, CO is Civilizational Optionality, the thing being expanded.
## Three visual registers (diagram modes)
- **Blueprint** (cool): navy → ocean → teal gradient. Use for systemic / structural diagrams.
- **Warmth** (warm): sand → dusk. Use for field-level / terrestrial context.
- **Spectrum**: full warm-to-cold arc — sand, dusk, teal, ocean, navy. Use for comparative / ranked diagrams.
Never mix registers within a single diagram.
## Node types (diagram)
| Type | Fill | Border | Usage |
|---|---|---|---|
| Option | paper | ink solid | Default node — a response or choice. |
| Risk | dusk | ink solid | The trigger — what the portfolio responds to. |
| Field | paper | ocean dashed | Systemic precondition — foundational layer. |
## Banned words
Never write these in copy, UI labels, or documentation: `transformative`, `unprecedented`, `regenerative`, `holistic`, `paradigm`, `ecosystem`, `unlock`, `leverage`, `empower`, `journey`, `in this space`
Write with precision and restraint instead.
## CSS setup
Add this block to your `globals.css` or `app/globals.css`:
```css
:root {
--color-xco-paper: #F6F1E5;
--color-xco-ink: #101F24;
--color-xco-ink-muted: #374E4A;
--color-xco-navy: #101F2D;
--color-xco-ocean: #335D76;
--color-xco-teal: #406D82;
--color-xco-sand: #F6A577;
--color-xco-dusk: #F47743;
--color-xco-dusk-ink: #A13E25;
--color-xco-ocean-ink: #335D76;
--color-xco-teal-ink: #406D82;
/* Semantic meanings — always pair with shape */
--meaning-continuity: #267b61; /* ● circle */
--meaning-system: #50649f; /* ■ square */
--meaning-risk: #a0567e; /* ▲ triangle */
--meaning-agency: #8e6713; /* ◆ diamond */
--meaning-contested: #41376d; /* ⬡ hexagon */
--meaning-critical: #60221e; /* ✕ cross */
}
```
Then load fonts:
- Untitled Serif (licensed) — display + body; fallback: Crimson Pro (Google Fonts)
- Untitled Sans (licensed) — UI; fallback: Inter (Google Fonts)
- Untitled Sans — labels and annotations too. A monospace (DM Mono, Google Fonts) only for code.
Generated from lib/design-tokens.ts — always reflects the current token set.