# DESIGN.md — Neo Brutalist

> Design context for AI coding agents. Paste this file into Cursor, Claude Code, Codex, v0 or Lovable
> before asking for UI, or commit it at your repo root as `DESIGN.md`.

- **Source:** [Neo Brutalist on CSS Crème](https://csscreme.com/themes/neo-brutalist)
- **Default mode:** light
- **Tags:** brutalist, light, vibrant
- **Install as a real shadcn/ui theme:** `npx shadcn@latest add https://csscreme.com/r/neo-brutalist.json`
- **Fingerprint:** `fnv1a-b304ba2c` — a hash of the token set below. It changes only when a token changes.
- **Verify this copy:** call the MCP tool `verify_design_md` with `{ "id": "neo-brutalist", "fingerprint": "fnv1a-b304ba2c" }`
  at `https://csscreme.com/mcp`, or refetch https://csscreme.com/d/neo-brutalist.md. A stale copy is worse than none: an agent will follow it faithfully.
- **Also available as:** [DTCG tokens](https://csscreme.com/d/neo-brutalist.tokens.json) for Tokens Studio / Figma Variables · [agent rules block](https://csscreme.com/d/neo-brutalist.rules.md) for CLAUDE.md, AGENTS.md or .cursor/rules

Pure white, hard black type and a jolt of electric yellow with zero corner radius — the loud, unapologetic brutalist look, built for maximum contrast.

---

## Semantic color roles

Six roles carry the identity. Everything else in this file is derived from them.

| Role | Hex | OKLCH | Use it for |
| --- | --- | --- | --- |
| `bg` | `#FFFFFF` | `oklch(100.0% 0.000 89.9)` | page background |
| `surface` | `#F5F5F0` | `oklch(96.9% 0.007 106.5)` | cards, panels, popovers |
| `primary` | `#FFDD00` | `oklch(89.9% 0.186 97.9)` | brand actions: primary buttons, links, focus rings |
| `accent` | `#FF5CA2` | `oklch(70.8% 0.207 357.2)` | secondary emphasis only, never a second primary |
| `text` | `#0A0A0A` | `oklch(14.5% 0.000 89.9)` | body and heading text |
| `muted` | `#57534E` | `oklch(44.4% 0.010 73.6)` | secondary text, borders, disabled states |

## Full token set (shadcn/ui, both modes)

Colors are OKLCH (Tailwind v4 / shadcn native). Brand colors are identical in both modes by design:
only the neutrals move, and they keep their hue, so light and dark read as the same design system.

| Token | Light | Dark |
| --- | --- | --- |
| `--background` | `oklch(100.0% 0.000 89.9)` | `oklch(18.7% 0.000 89.9)` |
| `--foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--card` | `oklch(96.9% 0.007 106.5)` | `oklch(26.3% 0.009 107.0)` |
| `--card-foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--popover` | `oklch(96.9% 0.007 106.5)` | `oklch(26.3% 0.009 107.0)` |
| `--popover-foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--primary` | `oklch(89.9% 0.186 97.9)` | `oklch(89.9% 0.186 97.9)` |
| `--primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--secondary` | `oklch(98.1% 0.005 106.5)` | `oklch(23.8% 0.007 107.0)` |
| `--secondary-foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--muted` | `oklch(98.1% 0.005 106.5)` | `oklch(23.8% 0.007 107.0)` |
| `--muted-foreground` | `oklch(44.4% 0.010 73.6)` | `oklch(70.9% 0.003 84.6)` |
| `--accent` | `oklch(70.8% 0.207 357.2)` | `oklch(70.8% 0.207 357.2)` |
| `--accent-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--destructive` | `oklch(62.6% 0.193 23.0)` | `oklch(62.6% 0.193 23.0)` |
| `--destructive-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--border` | `oklch(81.7% 0.003 84.6)` | `oklch(35.2% 0.002 106.5)` |
| `--input` | `oklch(81.7% 0.003 84.6)` | `oklch(35.2% 0.002 106.5)` |
| `--ring` | `oklch(89.9% 0.186 97.9)` | `oklch(89.9% 0.186 97.9)` |
| `--chart-1` | `oklch(89.9% 0.186 97.9)` | `oklch(89.9% 0.186 97.9)` |
| `--chart-2` | `oklch(70.8% 0.207 357.2)` | `oklch(70.8% 0.207 357.2)` |
| `--chart-3` | `oklch(88.7% 0.268 136.9)` | `oklch(88.7% 0.268 136.9)` |
| `--chart-4` | `oklch(64.6% 0.241 32.6)` | `oklch(64.6% 0.241 32.6)` |
| `--chart-5` | `oklch(78.3% 0.148 56.1)` | `oklch(78.3% 0.148 56.1)` |
| `--sidebar` | `oklch(98.5% 0.003 106.4)` | `oklch(22.6% 0.004 106.7)` |
| `--sidebar-foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--sidebar-primary` | `oklch(89.9% 0.186 97.9)` | `oklch(89.9% 0.186 97.9)` |
| `--sidebar-primary-foreground` | `oklch(15.2% 0.009 285.3)` | `oklch(15.2% 0.009 285.3)` |
| `--sidebar-accent` | `oklch(98.1% 0.005 106.5)` | `oklch(23.8% 0.007 107.0)` |
| `--sidebar-accent-foreground` | `oklch(14.5% 0.000 89.9)` | `oklch(96.7% 0.000 89.9)` |
| `--sidebar-border` | `oklch(81.7% 0.003 84.6)` | `oklch(35.2% 0.002 106.5)` |
| `--sidebar-ring` | `oklch(89.9% 0.186 97.9)` | `oklch(89.9% 0.186 97.9)` |

**What is measured and what is derived.** The six roles are the source. `chart-*` and `sidebar-*` follow
fixed rules over them (chart-1 = primary, chart-2 = accent, chart-3/4 = primary rotated ±40°, chart-5 = the
primary–accent midpoint; sidebar maps onto surface, border and primary). `shadow-*` is the foreground
colour at a fixed opacity per step. None of those is a measurement, and an agent should treat them as
defaults it may override, unlike the six roles, which it may not.

## Typography

- **Headings:** Archivo
- **Body:** Inter

## Shape and rhythm

- **Radius:** `0px` (the `--radius` token; derive smaller/larger from it, do not invent new values)
- **Spacing scale:** 4px base · 4 / 8 / 16 / 24 / 40

## Contrast, measured

Computed from the tokens above in light mode, not asserted. Ratios are WCAG 2.1 relative luminance.

| Pair | Foreground | Background | Ratio | Verdict |
| --- | --- | --- | --- | --- |
| Body text on page background | `#0A0A0A` | `#FFFFFF` | 19.8:1 | AAA |
| Body text on card | `#0A0A0A` | `#F5F5F0` | 18.1:1 | AAA |
| Muted text on page background | `#57534E` | `#FFFFFF` | 7.63:1 | AAA |
| Button label on primary | `#0b0b0f` | `#FFDD00` | 14.59:1 | AAA |
| Button label on accent | `#0b0b0f` | `#FF5CA2` | 6.83:1 | AA |

## Rules for the agent

These are constraints, not suggestions. Each one is checkable against the tables above.

1. **Use only the tokens listed here.** Do not introduce a hex value that is not in the token table. If
   you need an in-between shade, mix two existing tokens rather than inventing a new hue.
2. **`#FFDD00` (primary) is the only call-to-action color.** One primary action per view. `accent`
   is for secondary emphasis and must never be styled as a second primary button.
3. **Never restyle brand colors between light and dark.** Only neutrals change mode. A theme whose
   primary shifts between modes is a different theme.
4. **Respect the radius token.** Every corner derives from `0px`. Mixed radii across a view is
   the most common tell of generated UI.
5. **Stay on the spacing scale.** 4px base · 4 / 8 / 16 / 24 / 40. No arbitrary pixel values.
6. **Do not drop below the contrast ratios above.** If a combination you need is not in the contrast
   table, compute it before shipping it. Text under 4.5:1 fails AA.
7. **Headings in Archivo, body in Inter.** Do not add a third family.
8. **Use the semantic role, not the raw color.** Write `var(--primary)`, never `#FFDD00`, so the
   theme stays swappable.

## CSS variables

Paste into `globals.css`:

```css
:root {
  --background: oklch(100.0% 0.000 89.9);
  --foreground: oklch(14.5% 0.000 89.9);
  --card: oklch(96.9% 0.007 106.5);
  --card-foreground: oklch(14.5% 0.000 89.9);
  --popover: oklch(96.9% 0.007 106.5);
  --popover-foreground: oklch(14.5% 0.000 89.9);
  --primary: oklch(89.9% 0.186 97.9);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(98.1% 0.005 106.5);
  --secondary-foreground: oklch(14.5% 0.000 89.9);
  --muted: oklch(98.1% 0.005 106.5);
  --muted-foreground: oklch(44.4% 0.010 73.6);
  --accent: oklch(70.8% 0.207 357.2);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(81.7% 0.003 84.6);
  --input: oklch(81.7% 0.003 84.6);
  --ring: oklch(89.9% 0.186 97.9);
  --chart-1: oklch(89.9% 0.186 97.9);
  --chart-2: oklch(70.8% 0.207 357.2);
  --chart-3: oklch(88.7% 0.268 136.9);
  --chart-4: oklch(64.6% 0.241 32.6);
  --chart-5: oklch(78.3% 0.148 56.1);
  --sidebar: oklch(98.5% 0.003 106.4);
  --sidebar-foreground: oklch(14.5% 0.000 89.9);
  --sidebar-primary: oklch(89.9% 0.186 97.9);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(98.1% 0.005 106.5);
  --sidebar-accent-foreground: oklch(14.5% 0.000 89.9);
  --sidebar-border: oklch(81.7% 0.003 84.6);
  --sidebar-ring: oklch(89.9% 0.186 97.9);
  --radius: 0px;
  --shadow-2xs: 0 1px 2px 0px rgb(10 10 10 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(10 10 10 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(10 10 10 / 0.08), 0 1px 2px -1px rgb(10 10 10 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(10 10 10 / 0.09), 0 2px 4px -2px rgb(10 10 10 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(10 10 10 / 0.1), 0 4px 6px -4px rgb(10 10 10 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(10 10 10 / 0.12), 0 8px 10px -6px rgb(10 10 10 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(10 10 10 / 0.22);
  --spacing: 4px;
}

.dark {
  --background: oklch(18.7% 0.000 89.9);
  --foreground: oklch(96.7% 0.000 89.9);
  --card: oklch(26.3% 0.009 107.0);
  --card-foreground: oklch(96.7% 0.000 89.9);
  --popover: oklch(26.3% 0.009 107.0);
  --popover-foreground: oklch(96.7% 0.000 89.9);
  --primary: oklch(89.9% 0.186 97.9);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(23.8% 0.007 107.0);
  --secondary-foreground: oklch(96.7% 0.000 89.9);
  --muted: oklch(23.8% 0.007 107.0);
  --muted-foreground: oklch(70.9% 0.003 84.6);
  --accent: oklch(70.8% 0.207 357.2);
  --accent-foreground: oklch(15.2% 0.009 285.3);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(35.2% 0.002 106.5);
  --input: oklch(35.2% 0.002 106.5);
  --ring: oklch(89.9% 0.186 97.9);
  --chart-1: oklch(89.9% 0.186 97.9);
  --chart-2: oklch(70.8% 0.207 357.2);
  --chart-3: oklch(88.7% 0.268 136.9);
  --chart-4: oklch(64.6% 0.241 32.6);
  --chart-5: oklch(78.3% 0.148 56.1);
  --sidebar: oklch(22.6% 0.004 106.7);
  --sidebar-foreground: oklch(96.7% 0.000 89.9);
  --sidebar-primary: oklch(89.9% 0.186 97.9);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(23.8% 0.007 107.0);
  --sidebar-accent-foreground: oklch(96.7% 0.000 89.9);
  --sidebar-border: oklch(35.2% 0.002 106.5);
  --sidebar-ring: oklch(89.9% 0.186 97.9);
  --shadow-2xs: 0 1px 2px 0px rgb(244 244 244 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(244 244 244 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(244 244 244 / 0.22), 0 1px 2px -1px rgb(244 244 244 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(244 244 244 / 0.26), 0 2px 4px -2px rgb(244 244 244 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(244 244 244 / 0.3), 0 4px 6px -4px rgb(244 244 244 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(244 244 244 / 0.34), 0 8px 10px -6px rgb(244 244 244 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(244 244 244 / 0.45);
}
```

Tailwind v4 maps them into utilities:

```css
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --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);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius: var(--radius);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
  --spacing: var(--spacing);
}
```

---

Generated by [CSS Crème](https://csscreme.com) — curated web design, decoded so you can build it.
Every value above is computed from the palette, not written by hand.
