Warm & crafted · Developer tools
Citrine IDE design system template
Warm editor theme in cream and citrine yellow with Bricolage Grotesque headlines and DM Mono code. Built for code-editor products, snippet libraries and developer education.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Bricolage Grotesque
Now with multiplayer cursors
The editor that reads like a good book
A fast, warm code editor with built-in snippets, live preview and pair-programming for teams of two to twenty.
useDebounce hook
Snippet library
Save any selection, tag it, and expand it anywhere with a two-letter trigger.
Live preview
See React, Svelte and plain HTML update as you type, in a split pane.
Pair mode
Follow a teammate's cursor or take over the keyboard with one shortcut.
Snippet library
Save any selection, tag it, and expand it anywhere with a two-letter trigger.
Read the docsPersonality. Citrine IDE is the editor theme you would pick on a sunny afternoon. Surfaces are a buttery cream, ink is a dark brown-black, and the accent is citrine, a saturated yellow used as a highlighter: selected line, active tab, primary button. Yellow is always paired with dark ink text, never white. Bricolage Grotesque gives headlines a friendly, slightly quirky voice, DM Mono sets code, and the combination feels like a craft tool rather than a control panel.
Highlighter yellow: primary fills selected lines, active tabs and the main button, always with dark primary-foreground
Cream paper surfaces with warm brown-gray borders instead of cool grays
Editor chrome as UI: traffic-light-free title bars, line numbers, minimap strips and breadcrumb paths
Syntax palette drawn from the same warm family: ochre, terracotta, olive, teal and plum
Headlines with optical-size contrast: heavy Bricolage at large size, medium at small
Color. 21 roles, both modes.
background
#fffbeb
foreground
#2a2210
card
#fffef8
cardForeground
#2a2210
muted
#f6efd3
mutedForeground
#6b5e3a
primary
#f2c200
primaryForeground
#241b00
secondary
#efe6c4
secondaryForeground
#2a2210
accent
#fbe9a1
accentForeground
#4a3900
border
rgba(42,34,16,0.14)
input
rgba(42,34,16,0.3)
ring
#8a6500
destructive
#b8321f
destructiveForeground
#ffffff
success
#3f7a2a
successForeground
#ffffff
warning
#d98a00
warningForeground
#241500
Type. Bricolage Grotesque · Figtree · DM Mono
The file. Drop it in your repo.
1---2name: "Citrine IDE"3slug: "citrine-ide"4schema: "freedesignmd/v2"5description: "Warm editor theme in cream and citrine yellow with Bricolage Grotesque headlines and DM Mono code. Built for code-editor products, snippet libraries and developer education."6source: "https://freedesignmd.com/system/citrine-ide"7aesthetic: "warm"8industry: "developer"9default_mode: "light"10fonts:11 display: "Bricolage Grotesque"12 body: "Figtree"13 mono: "DM Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#fffbeb"18 foreground: "#2a2210"19 card: "#fffef8"20 cardForeground: "#2a2210"21 muted: "#f6efd3"22 mutedForeground: "#6b5e3a"23 primary: "#f2c200"24 primaryForeground: "#241b00"25 secondary: "#efe6c4"26 secondaryForeground: "#2a2210"27 accent: "#fbe9a1"28 accentForeground: "#4a3900"29 border: "rgba(42,34,16,0.14)"30 input: "rgba(42,34,16,0.3)"31 ring: "#8a6500"32 destructive: "#b8321f"33 destructiveForeground: "#ffffff"34 success: "#3f7a2a"35 successForeground: "#ffffff"36 warning: "#d98a00"37 warningForeground: "#241500"38 dark:39 background: "#1a1610"40 foreground: "#f3ead0"41 card: "#221d14"42 cardForeground: "#f3ead0"43 muted: "#2a2418"44 mutedForeground: "#b5a780"45 primary: "#f7cb2d"46 primaryForeground: "#241b00"47 secondary: "#302919"48 secondaryForeground: "#f3ead0"49 accent: "#3d3214"50 accentForeground: "#ffe38a"51 border: "rgba(243,234,208,0.12)"52 input: "rgba(243,234,208,0.24)"53 ring: "#f7cb2d"54 destructive: "#ff8068"55 destructiveForeground: "#2a0a04"56 success: "#9ccc65"57 successForeground: "#10200a"58 warning: "#f0a030"59 warningForeground: "#241500"60chart:61 light: ["#d9a600", "#b8321f", "#3f7a2a", "#1f7a8a", "#8a3f7a"]62 dark: ["#f7cb2d", "#ff8068", "#9ccc65", "#4fc3d0", "#d58bc8"]63type:64 display: { font: display, size: 72, size_mobile: 40, leading: 1, weight: 700, tracking: "-0.04em" }65 h1: { font: display, size: 44, size_mobile: 30, leading: 1.05, weight: 700, tracking: "-0.03em" }66 h2: { font: display, size: 28, size_mobile: 22, leading: 1.2, weight: 700, tracking: "-0.02em" }67 h3: { font: display, size: 19, size_mobile: 19, leading: 1.3, weight: 500, tracking: "-0.01em" }68 body: { font: body, size: 16, size_mobile: 16, leading: 1.6, weight: 400, tracking: "0em" }69 small: { font: body, size: 14, size_mobile: 14, leading: 1.5, weight: 400, tracking: "0em" }70 label: { font: body, size: 12, size_mobile: 12, leading: 1.3, weight: 600, tracking: "0.02em" }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.6, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]73radius: { sm: "4px", md: "8px", lg: "12px", xl: "18px", full: "9999px" }74shadow:75 light:76 sm: "0 1px 0 rgba(42,34,16,0.08)"77 md: "0 6px 18px -6px rgba(90,64,0,0.2), 0 1px 0 rgba(42,34,16,0.06)"78 lg: "0 28px 64px -20px rgba(90,64,0,0.38), 0 0 0 1px rgba(42,34,16,0.1)"79 dark:80 sm: "0 0 0 1px rgba(243,234,208,0.06)"81 md: "0 0 0 1px rgba(243,234,208,0.1), 0 10px 28px -10px rgba(0,0,0,0.6)"82 lg: "0 0 0 1px rgba(243,234,208,0.14), 0 32px 80px -16px rgba(0,0,0,0.8)"83motion:84 duration_ms: { instant: 70, fast: 130, base: 220, slow: 420 }85 easing: { standard: "cubic-bezier(0.3, 0, 0.2, 1)", out: "cubic-bezier(0.22, 1, 0.36, 1)", in: "cubic-bezier(0.55, 0, 1, 0.45)" }86 reveal: { distance_px: 14, stagger_ms: 60 }87layout: { max_width: 1160, columns: 12, gutter: 24, section_y: 96, section_y_mobile: 56, measure: "62ch" }88extras:89 line-highlight: { light: "rgba(242,194,0,0.2)", dark: "rgba(247,203,45,0.14)" }90---91 92# Citrine IDE, DESIGN.md93 94> Warm editor theme in cream and citrine yellow with Bricolage Grotesque headlines and DM Mono code. Built for code-editor products, snippet libraries and developer education.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/citrine-ide.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 **light**: dark mode is `class="dark"` on `<html>` (both modes are fully specified). Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.103 104## 1. Overview & personality105 106Citrine IDE is the editor theme you would pick on a sunny afternoon. Surfaces are a buttery cream, ink is a dark brown-black, and the accent is citrine, a saturated yellow used as a highlighter: selected line, active tab, primary button. Yellow is always paired with dark ink text, never white. Bricolage Grotesque gives headlines a friendly, slightly quirky voice, DM Mono sets code, and the combination feels like a craft tool rather than a control panel.107 108**At a glance**109 110- Aesthetic: Warm & crafted · Industry: Developer tools · Default mode: light111- Type: Bricolage Grotesque (display) · Figtree (body) · DM Mono (mono)112- Brand color (`primary`): `#f2c200` light · `#f7cb2d` dark, on primary, text is `#241b00` / `#241b00`113- Corners: 4px / 8px / 12px / 18px · Container 1160px · Base motion 220ms114 115**Signature moves**116 117- Highlighter yellow: `primary` fills selected lines, active tabs and the main button, always with dark `primary-foreground`118- Cream paper surfaces with warm brown-gray borders instead of cool grays119- Editor chrome as UI: traffic-light-free title bars, line numbers, minimap strips and breadcrumb paths120- Syntax palette drawn from the same warm family: ochre, terracotta, olive, teal and plum121- Headlines with optical-size contrast: heavy Bricolage at large size, medium at small122 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` | `#fffbeb` | | Page canvas |132| `foreground` | `--foreground` | `#2a2210` | 15.17:1 on background | Body text and headings on background |133| `card` | `--card` | `#fffef8` | | Cards, panels, popovers |134| `cardForeground` | `--card-foreground` | `#2a2210` | 15.57:1 on card | Text on card |135| `muted` | `--muted` | `#f6efd3` | | Subtle fills: table headers, code, skeletons |136| `mutedForeground` | `--muted-foreground` | `#6b5e3a` | 5.54:1 on muted | Secondary text, captions, placeholders |137| `primary` | `--primary` | `#f2c200` | | Brand color: primary buttons, links, focus, active states |138| `primaryForeground` | `--primary-foreground` | `#241b00` | 10.14:1 on primary | Text and icons on primary |139| `secondary` | `--secondary` | `#efe6c4` | | Secondary buttons and quiet fills |140| `secondaryForeground` | `--secondary-foreground` | `#2a2210` | 12.58:1 on secondary | Text on secondary |141| `accent` | `--accent` | `#fbe9a1` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |142| `accentForeground` | `--accent-foreground` | `#4a3900` | 9.20:1 on accent | Text on accent |143| `border` | `--border` | `rgba(42,34,16,0.14)` | | Dividers and card outlines |144| `input` | `--input` | `rgba(42,34,16,0.3)` | | Input borders |145| `ring` | `--ring` | `#8a6500` | | Focus ring |146| `destructive` | `--destructive` | `#b8321f` | | Errors and destructive actions |147| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 5.98:1 on destructive | Text on destructive |148| `success` | `--success` | `#3f7a2a` | | Positive status |149| `successForeground` | `--success-foreground` | `#ffffff` | 5.21:1 on success | Text on success |150| `warning` | `--warning` | `#d98a00` | | Caution status |151| `warningForeground` | `--warning-foreground` | `#241500` | 6.42:1 on warning | Text on warning |152| `chart-1…5` | `--chart-1…5` | `#d9a600` `#b8321f` `#3f7a2a` `#1f7a8a` `#8a3f7a` | | Data series, in this order |153 154### Dark mode (`.dark`)155 156| Role | CSS variable | Value | Contrast | Usage |157|---|---|---|---|---|158| `background` | `--background` | `#1a1610` | | Page canvas |159| `foreground` | `--foreground` | `#f3ead0` | 15.00:1 on background | Body text and headings on background |160| `card` | `--card` | `#221d14` | | Cards, panels, popovers |161| `cardForeground` | `--card-foreground` | `#f3ead0` | 13.95:1 on card | Text on card |162| `muted` | `--muted` | `#2a2418` | | Subtle fills: table headers, code, skeletons |163| `mutedForeground` | `--muted-foreground` | `#b5a780` | 6.45:1 on muted | Secondary text, captions, placeholders |164| `primary` | `--primary` | `#f7cb2d` | | Brand color: primary buttons, links, focus, active states |165| `primaryForeground` | `--primary-foreground` | `#241b00` | 10.99:1 on primary | Text and icons on primary |166| `secondary` | `--secondary` | `#302919` | | Secondary buttons and quiet fills |167| `secondaryForeground` | `--secondary-foreground` | `#f3ead0` | 12.01:1 on secondary | Text on secondary |168| `accent` | `--accent` | `#3d3214` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |169| `accentForeground` | `--accent-foreground` | `#ffe38a` | 9.98:1 on accent | Text on accent |170| `border` | `--border` | `rgba(243,234,208,0.12)` | | Dividers and card outlines |171| `input` | `--input` | `rgba(243,234,208,0.24)` | | Input borders |172| `ring` | `--ring` | `#f7cb2d` | | Focus ring |173| `destructive` | `--destructive` | `#ff8068` | | Errors and destructive actions |174| `destructiveForeground` | `--destructive-foreground` | `#2a0a04` | 7.47:1 on destructive | Text on destructive |175| `success` | `--success` | `#9ccc65` | | Positive status |176| `successForeground` | `--success-foreground` | `#10200a` | 9.11:1 on success | Text on success |177| `warning` | `--warning` | `#f0a030` | | Caution status |178| `warningForeground` | `--warning-foreground` | `#241500` | 8.27:1 on warning | Text on warning |179| `chart-1…5` | `--chart-1…5` | `#f7cb2d` `#ff8068` `#9ccc65` `#4fc3d0` `#d58bc8` | | Data series, in this order |180 181### System extras182 183| Variable | Light | Dark | Usage |184|---|---|---|---|185| `--line-highlight` | `rgba(242,194,0,0.2)` | `rgba(247,203,45,0.14)` | Background for the selected or current line in code blocks and for search-match rows. |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=Bricolage+Grotesque:wght@500;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap" />195```196 197| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |198|---|---|---|---|---|---|---|---|199| `display` | Bricolage Grotesque | 40px → 72px | 1 | 700 | -0.04em | – | `.type-display` |200| `h1` | Bricolage Grotesque | 30px → 44px | 1.05 | 700 | -0.03em | – | `.type-h1` |201| `h2` | Bricolage Grotesque | 22px → 28px | 1.2 | 700 | -0.02em | – | `.type-h2` |202| `h3` | Bricolage Grotesque | 19px | 1.3 | 500 | -0.01em | – | `.type-h3` |203| `body` | Figtree | 16px | 1.6 | 400 | 0em | – | `.type-body` |204| `small` | Figtree | 14px | 1.5 | 400 | 0em | – | `.type-small` |205| `label` | Figtree | 12px | 1.3 | 600 | 0.02em | – | `.type-label` |206| `mono` | DM Mono | 13px | 1.6 | 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` | `--space-32` |217|---|---|---|---|---|---|---|---|---|---|---|218| px | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 96 | 128 |219 220- Container: max 1160px, 24px side gutters (`.container`).221- Grid: 12 columns, 24px gap.222- Sections: 96px vertical padding on desktop, 56px on mobile (`.section`).223- Long text: max 62ch per line (`.prose`).224- Editor mock-ups use a 36px tab strip, 22px status bar and a 48px activity rail.225- Marketing sections alternate cream and `muted` bands; never use full-bleed yellow behind body text.226- Code panels sit on `card` with a 1px warm border and 12px inner padding.227 228## 5. Shape & elevation229 230| Radius | Value | Use |231|---|---|---|232| `--radius-sm` | 4px | badges, checkboxes, small chips |233| `--radius-md` | 8px | buttons, inputs, tabs (= shadcn `--radius`) |234| `--radius-lg` | 12px | cards, panels, menus |235| `--radius-xl` | 18px | dialogs, hero media, large surfaces |236| `--radius-full` | 9999px | avatars, pills, toggles |237 238| Shadow | Mode | Value |239|---|---|---|240| `--shadow-sm` | light | `0 1px 0 rgba(42,34,16,0.08)` |241| `--shadow-md` | light | `0 6px 18px -6px rgba(90,64,0,0.2), 0 1px 0 rgba(42,34,16,0.06)` |242| `--shadow-lg` | light | `0 28px 64px -20px rgba(90,64,0,0.38), 0 0 0 1px rgba(42,34,16,0.1)` |243| `--shadow-sm` | dark | `0 0 0 1px rgba(243,234,208,0.06)` |244| `--shadow-md` | dark | `0 0 0 1px rgba(243,234,208,0.1), 0 10px 28px -10px rgba(0,0,0,0.6)` |245| `--shadow-lg` | dark | `0 0 0 1px rgba(243,234,208,0.14), 0 32px 80px -16px rgba(0,0,0,0.8)` |246 247`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.248 249## 6. Motion250 251**Highlighter sweep.** Selections and active states paint in left to right like a highlighter pen: the yellow fill grows from the start edge over the base duration with an ease-out, then holds. Panels rise 14px with a soft stagger.252 253| Token | Value | Use |254|---|---|---|255| `--duration-instant` | 70ms | press feedback, toggles |256| `--duration-fast` | 130ms | hover, focus, color changes |257| `--duration-base` | 220ms | menus, tabs, popovers, cards lifting |258| `--duration-slow` | 420ms | dialogs and scroll reveals |259| `--ease-standard` | `cubic-bezier(0.3, 0, 0.2, 1)` | state changes |260| `--ease-out` | `cubic-bezier(0.22, 1, 0.36, 1)` | entrances and reveals |261| `--ease-in` | `cubic-bezier(0.55, 0, 1, 0.45)` | exits |262 263- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 14px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 60ms (`--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/citrine-ide.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: 38px;284 padding: 0 18px;285 font-family: var(--font-sans);286 font-size: 14px;287 font-weight: 600;288 letter-spacing: 0em;289 border-radius: var(--radius-md);290 border: 1px solid transparent;291 white-space: nowrap;292 cursor: pointer;293 text-decoration: none;294 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);295}296.btn-primary {297 background: var(--primary);298 color: var(--primary-foreground);299 box-shadow: 0 2px 0 color-mix(in oklab, var(--primary) 60%, black);300}301.btn-primary:hover:not(:disabled) {302 background: color-mix(in oklab, var(--primary) 90%, white);303 transform: translateY(-1px);304}305.btn-primary:active:not(:disabled) {306 transform: translateY(1px);307 box-shadow: 0 0 0 transparent;308}309.btn-secondary {310 background: var(--secondary);311 color: var(--secondary-foreground);312 border-color: var(--border);313}314.btn-secondary:hover:not(:disabled) {315 background: var(--accent);316 color: var(--accent-foreground);317}318.btn-secondary:active:not(:disabled) {319 background: var(--muted);320}321.btn-outline {322 background: transparent;323 color: var(--foreground);324 border-color: var(--input);325}326.btn-outline:hover:not(:disabled) {327 background: var(--accent);328 border-color: var(--ring);329}330.btn-outline:active:not(:disabled) {331 background: var(--secondary);332}333.btn-ghost {334 background: transparent;335 color: var(--muted-foreground);336}337.btn-ghost:hover:not(:disabled) {338 background: var(--muted);339 color: var(--foreground);340}341.btn-ghost:active:not(:disabled) {342 background: var(--secondary);343}344.btn:focus-visible {345 outline: 3px solid var(--ring);346 outline-offset: 2px;347}348.btn:disabled, .btn[aria-disabled="true"] {349 opacity: 0.45;350 cursor: not-allowed;351 box-shadow: none;352}353```354 355### Input356 357```html358<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->359```360 361```css362.input {363 display: block;364 width: 100%;365 height: 38px;366 padding: 0 12px;367 font-family: var(--font-sans);368 font-size: 15px;369 color: var(--foreground);370 background: var(--card);371 border: 1px solid var(--input);372 border-radius: var(--radius-md);373 outline: none;374 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);375}376.input::placeholder {377 color: var(--muted-foreground);378 opacity: 1;379}380.input:hover:not(:disabled):not(:focus) {381 border-color: var(--muted-foreground);382}383.input:focus, .input:focus-visible {384 border-color: var(--ring);385 box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 40%, transparent);386}387.input[aria-invalid="true"] {388 border-color: var(--destructive);389 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);390}391.input:disabled {392 opacity: 0.5;393 cursor: not-allowed;394 background: var(--muted);395}396```397 398### Card399 400```html401<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->402```403 404```css405.card {406 background: var(--card);407 color: var(--card-foreground);408 border: 1px solid var(--border);409 border-radius: var(--radius-lg);410 box-shadow: var(--shadow-sm);411 padding: 24px;412 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);413}414.card-interactive:hover {415 border-color: var(--ring);416 box-shadow: var(--shadow-md);417 transform: translateY(-2px);418}419```420 421### Badge422 423```html424<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->425```426 427```css428.badge {429 --tone: var(--primary);430 --tone-foreground: var(--primary-foreground);431 display: inline-flex;432 align-items: center;433 gap: 6px;434 height: 22px;435 padding: 0 9px;436 border-radius: var(--radius-sm);437 font-family: var(--font-sans);438 font-size: 12px;439 font-weight: 600;440 letter-spacing: 0em;441 line-height: 1;442 white-space: nowrap;443}444.badge[data-tone="success"] {445 --tone: var(--success);446 --tone-foreground: var(--success-foreground);447}448.badge[data-tone="warning"] {449 --tone: var(--warning);450 --tone-foreground: var(--warning-foreground);451}452.badge[data-tone="destructive"] {453 --tone: var(--destructive);454 --tone-foreground: var(--destructive-foreground);455}456.badge-solid {457 background: var(--tone);458 color: var(--tone-foreground);459 border: 1px solid var(--tone);460}461.badge-soft {462 background: color-mix(in oklab, var(--tone) 22%, var(--card));463 color: var(--foreground);464 border: 1px solid color-mix(in oklab, var(--tone) 38%, transparent);465}466.badge-outline {467 background: transparent;468 color: var(--foreground);469 border: 1px solid var(--border);470}471```472 473### Navigation bar474 475```html476<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>477```478 479```css480.nav {481 display: flex;482 align-items: center;483 gap: 4px;484 height: 60px;485 padding: 0 24px;486 background: color-mix(in oklab, var(--background) 88%, transparent);487 backdrop-filter: blur(10px) saturate(160%);488 -webkit-backdrop-filter: blur(10px) saturate(160%);489 border-bottom: 1px solid var(--border);490}491.nav-link {492 padding: 6px 2px;493 margin: 0 10px;494 border-bottom: 2px solid transparent;495 border-radius: var(--radius-sm);496 font-family: var(--font-sans);497 font-size: 14px;498 font-weight: 500;499 letter-spacing: 0em;500 color: var(--muted-foreground);501 text-decoration: none;502 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);503}504.nav-link:hover {505 color: var(--foreground);506 border-bottom-color: var(--border);507}508.nav-link[aria-current="page"] {509 color: var(--foreground);510 border-bottom-color: var(--primary);511}512```513 514### Tabs515 516```html517<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>518```519 520```css521.tabs {522 display: inline-flex;523 gap: 0;524 border: 1px solid var(--border);525 border-radius: var(--radius-md);526 overflow: hidden;527}528.tab {529 height: 34px;530 padding: 0 16px;531 border: 0;532 border-right: 1px solid var(--border);533 background: var(--card);534 color: var(--muted-foreground);535 cursor: pointer;536 font-family: var(--font-sans);537 font-size: 13px;538 font-weight: 600;539 letter-spacing: 0em;540 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);541}542.tab:hover:not([aria-selected="true"]) {543 background: var(--muted);544 color: var(--foreground);545}546.tab[aria-selected="true"] {547 background: var(--primary);548 color: var(--primary-foreground);549}550```551 552### Table553 554```html555<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>556```557 558```css559.table {560 width: 100%;561 border-collapse: collapse;562 font-size: 14px;563 font-variant-numeric: tabular-nums;564}565.table th {566 text-align: left;567 height: 40px;568 padding: 0 16px;569 font-family: var(--font-sans);570 font-size: 13px;571 font-weight: 600;572 background: var(--muted);573 color: var(--muted-foreground);574 border-bottom: 1px solid var(--border);575}576.table td {577 height: 44px;578 padding: 0 16px;579 border-bottom: 1px solid var(--border);580 color: var(--foreground);581 transition: background-color var(--duration-fast) var(--ease-standard);582}583.table tbody tr:hover td {584 background: var(--accent);585 color: var(--accent-foreground);586}587```588 589### Dialog / modal590 591```html592<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>593```594 595```css596.dialog-overlay {597 position: fixed;598 inset: 0;599 background: rgba(42,34,16,0.5);600 backdrop-filter: blur(3px);601 -webkit-backdrop-filter: blur(3px);602 display: grid;603 place-items: center;604 padding: 24px;605}606.dialog {607 width: min(540px, 100%);608 background: var(--card);609 color: var(--card-foreground);610 border: 1px solid var(--border);611 border-radius: var(--radius-xl);612 box-shadow: var(--shadow-lg);613 padding: 28px;614}615```616 617### Text link618 619```html620<a class="link" href="…">Read more</a>621```622 623```css624.link {625 color: var(--foreground);626 text-decoration: underline;627 text-decoration-color: var(--primary);628 text-decoration-thickness: 2px;629 text-underline-offset: 3px;630 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);631}632.link:hover {633 background: var(--line-highlight);634 text-decoration-color: var(--ring);635}636```637 638## 8. Imagery & iconography639 640**Imagery.** Editor screenshots on cream with a 12px radius, a soft warm shadow and a visible line-highlight on the active line. Illustration is limited to hand-drawn underlines and bracket marks in citrine. No stock photos of people at laptops.641 642**Icons.** 18px rounded line icons at 1.75px stroke (Lucide) in `foreground`; active icons gain a `primary` underline dot. File-type icons use the syntax chart colors.643 644## 9. Do / Don't645 646**Do**647 648- Pair `primary` yellow fills with dark `primary-foreground`, never white649- Use `--line-highlight` for the current line and search matches650- Use `ring` (the deep ochre) for focus and for yellow-on-cream borders651- Set code in DM Mono 13px with 1.6 line height652- Warm every neutral: borders and shadows are brown, not gray653 654**Don't**655 656- Don't set yellow text on cream; use it as a fill only657- Don't mix in cool grays or pure black658- Don't use more than one yellow-filled element per viewport region659- Don't use gradients; the highlighter is flat660- Don't use Bricolage below 19px661 662## 10. tokens.css663 664Drop-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.665 666```css667/* Citrine IDE, tokens.css668 * https://freedesignmd.com/system/citrine-ide669 * shadcn/ui-compatible variables. Light on :root, dark on .dark.670 * Default mode: light.671 */672@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700&family=Figtree:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap");673 674:root {675 --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;676 --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;677 --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;678 --type-display-size: clamp(40px, 28.11px + 3.048vw, 72px);679 --type-display-leading: 1;680 --type-display-weight: 700;681 --type-display-tracking: -0.04em;682 --type-h1-size: clamp(30px, 24.80px + 1.333vw, 44px);683 --type-h1-leading: 1.05;684 --type-h1-weight: 700;685 --type-h1-tracking: -0.03em;686 --type-h2-size: clamp(22px, 19.77px + 0.571vw, 28px);687 --type-h2-leading: 1.2;688 --type-h2-weight: 700;689 --type-h2-tracking: -0.02em;690 --type-h3-size: 19px;691 --type-h3-leading: 1.3;692 --type-h3-weight: 500;693 --type-h3-tracking: -0.01em;694 --type-body-size: 16px;695 --type-body-leading: 1.6;696 --type-body-weight: 400;697 --type-body-tracking: 0em;698 --type-small-size: 14px;699 --type-small-leading: 1.5;700 --type-small-weight: 400;701 --type-small-tracking: 0em;702 --type-label-size: 12px;703 --type-label-leading: 1.3;704 --type-label-weight: 600;705 --type-label-tracking: 0.02em;706 --type-mono-size: 13px;707 --type-mono-leading: 1.6;708 --type-mono-weight: 400;709 --type-mono-tracking: 0em;710 --space-1: 4px;711 --space-2: 8px;712 --space-3: 12px;713 --space-4: 16px;714 --space-6: 24px;715 --space-8: 32px;716 --space-12: 48px;717 --space-16: 64px;718 --space-24: 96px;719 --space-32: 128px;720 --radius: 8px;721 --radius-sm: 4px;722 --radius-md: 8px;723 --radius-lg: 12px;724 --radius-xl: 18px;725 --radius-full: 9999px;726 --duration-instant: 70ms;727 --duration-fast: 130ms;728 --duration-base: 220ms;729 --duration-slow: 420ms;730 --ease-standard: cubic-bezier(0.3, 0, 0.2, 1);731 --ease-out: cubic-bezier(0.22, 1, 0.36, 1);732 --ease-in: cubic-bezier(0.55, 0, 1, 0.45);733 --reveal-distance: 14px;734 --reveal-stagger: 60ms;735 --container-max: 1160px;736 --gutter: 24px;737 --section-y: 96px;738 --section-y-mobile: 56px;739 --measure: 62ch;740 --background: #fffbeb;741 --foreground: #2a2210;742 --card: #fffef8;743 --card-foreground: #2a2210;744 --muted: #f6efd3;745 --muted-foreground: #6b5e3a;746 --primary: #f2c200;747 --primary-foreground: #241b00;748 --secondary: #efe6c4;749 --secondary-foreground: #2a2210;750 --accent: #fbe9a1;751 --accent-foreground: #4a3900;752 --border: rgba(42,34,16,0.14);753 --input: rgba(42,34,16,0.3);754 --ring: #8a6500;755 --destructive: #b8321f;756 --destructive-foreground: #ffffff;757 --success: #3f7a2a;758 --success-foreground: #ffffff;759 --warning: #d98a00;760 --warning-foreground: #241500;761 --chart-1: #d9a600;762 --chart-2: #b8321f;763 --chart-3: #3f7a2a;764 --chart-4: #1f7a8a;765 --chart-5: #8a3f7a;766 --shadow-sm: 0 1px 0 rgba(42,34,16,0.08);767 --shadow-md: 0 6px 18px -6px rgba(90,64,0,0.2), 0 1px 0 rgba(42,34,16,0.06);768 --shadow-lg: 0 28px 64px -20px rgba(90,64,0,0.38), 0 0 0 1px rgba(42,34,16,0.1);769 --line-highlight: rgba(242,194,0,0.2);770}771 772.dark {773 --background: #1a1610;774 --foreground: #f3ead0;775 --card: #221d14;776 --card-foreground: #f3ead0;777 --muted: #2a2418;778 --muted-foreground: #b5a780;779 --primary: #f7cb2d;780 --primary-foreground: #241b00;781 --secondary: #302919;782 --secondary-foreground: #f3ead0;783 --accent: #3d3214;784 --accent-foreground: #ffe38a;785 --border: rgba(243,234,208,0.12);786 --input: rgba(243,234,208,0.24);787 --ring: #f7cb2d;788 --destructive: #ff8068;789 --destructive-foreground: #2a0a04;790 --success: #9ccc65;791 --success-foreground: #10200a;792 --warning: #f0a030;793 --warning-foreground: #241500;794 --chart-1: #f7cb2d;795 --chart-2: #ff8068;796 --chart-3: #9ccc65;797 --chart-4: #4fc3d0;798 --chart-5: #d58bc8;799 --shadow-sm: 0 0 0 1px rgba(243,234,208,0.06);800 --shadow-md: 0 0 0 1px rgba(243,234,208,0.1), 0 10px 28px -10px rgba(0,0,0,0.6);801 --shadow-lg: 0 0 0 1px rgba(243,234,208,0.14), 0 32px 80px -16px rgba(0,0,0,0.8);802 --line-highlight: rgba(247,203,45,0.14);803}804 805/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */806@theme inline {807 --color-background: var(--background);808 --color-foreground: var(--foreground);809 --color-card: var(--card);810 --color-card-foreground: var(--card-foreground);811 --color-muted: var(--muted);812 --color-muted-foreground: var(--muted-foreground);813 --color-primary: var(--primary);814 --color-primary-foreground: var(--primary-foreground);815 --color-secondary: var(--secondary);816 --color-secondary-foreground: var(--secondary-foreground);817 --color-accent: var(--accent);818 --color-accent-foreground: var(--accent-foreground);819 --color-border: var(--border);820 --color-input: var(--input);821 --color-ring: var(--ring);822 --color-destructive: var(--destructive);823 --color-destructive-foreground: var(--destructive-foreground);824 --color-success: var(--success);825 --color-success-foreground: var(--success-foreground);826 --color-warning: var(--warning);827 --color-warning-foreground: var(--warning-foreground);828 --color-chart-1: var(--chart-1);829 --color-chart-2: var(--chart-2);830 --color-chart-3: var(--chart-3);831 --color-chart-4: var(--chart-4);832 --color-chart-5: var(--chart-5);833 --font-heading: var(--font-display);834 --font-body: var(--font-sans);835 --font-code: var(--font-mono);836 --radius-ui-sm: var(--radius-sm);837 --radius-ui-md: var(--radius-md);838 --radius-ui-lg: var(--radius-lg);839 --radius-ui-xl: var(--radius-xl);840 --text-display: var(--type-display-size);841 --text-display--line-height: var(--type-display-leading);842 --text-display--letter-spacing: var(--type-display-tracking);843 --text-display--font-weight: var(--type-display-weight);844 --text-h1: var(--type-h1-size);845 --text-h1--line-height: var(--type-h1-leading);846 --text-h1--letter-spacing: var(--type-h1-tracking);847 --text-h1--font-weight: var(--type-h1-weight);848 --text-h2: var(--type-h2-size);849 --text-h2--line-height: var(--type-h2-leading);850 --text-h2--letter-spacing: var(--type-h2-tracking);851 --text-h2--font-weight: var(--type-h2-weight);852 --text-h3: var(--type-h3-size);853 --text-h3--line-height: var(--type-h3-leading);854 --text-h3--letter-spacing: var(--type-h3-tracking);855 --text-h3--font-weight: var(--type-h3-weight);856 --text-body: var(--type-body-size);857 --text-body--line-height: var(--type-body-leading);858 --text-body--letter-spacing: var(--type-body-tracking);859 --text-body--font-weight: var(--type-body-weight);860 --text-small: var(--type-small-size);861 --text-small--line-height: var(--type-small-leading);862 --text-small--letter-spacing: var(--type-small-tracking);863 --text-small--font-weight: var(--type-small-weight);864 --text-label: var(--type-label-size);865 --text-label--line-height: var(--type-label-leading);866 --text-label--letter-spacing: var(--type-label-tracking);867 --text-label--font-weight: var(--type-label-weight);868 --text-mono: var(--type-mono-size);869 --text-mono--line-height: var(--type-mono-leading);870 --text-mono--letter-spacing: var(--type-mono-tracking);871 --text-mono--font-weight: var(--type-mono-weight);872 --shadow-ui-sm: var(--shadow-sm);873 --shadow-ui-md: var(--shadow-md);874 --shadow-ui-lg: var(--shadow-lg);875}876 877@layer base {878 body {879 background: var(--background);880 color: var(--foreground);881 font-family: var(--font-sans);882 font-size: var(--type-body-size);883 line-height: var(--type-body-leading);884 font-weight: var(--type-body-weight);885 letter-spacing: var(--type-body-tracking);886 -webkit-font-smoothing: antialiased;887 }888 .type-display {889 font-family: var(--font-display);890 font-size: var(--type-display-size);891 line-height: var(--type-display-leading);892 font-weight: var(--type-display-weight);893 letter-spacing: var(--type-display-tracking);894 }895 .type-h1 {896 font-family: var(--font-display);897 font-size: var(--type-h1-size);898 line-height: var(--type-h1-leading);899 font-weight: var(--type-h1-weight);900 letter-spacing: var(--type-h1-tracking);901 }902 .type-h2 {903 font-family: var(--font-display);904 font-size: var(--type-h2-size);905 line-height: var(--type-h2-leading);906 font-weight: var(--type-h2-weight);907 letter-spacing: var(--type-h2-tracking);908 }909 .type-h3 {910 font-family: var(--font-display);911 font-size: var(--type-h3-size);912 line-height: var(--type-h3-leading);913 font-weight: var(--type-h3-weight);914 letter-spacing: var(--type-h3-tracking);915 }916 .type-body {917 font-family: var(--font-sans);918 font-size: var(--type-body-size);919 line-height: var(--type-body-leading);920 font-weight: var(--type-body-weight);921 letter-spacing: var(--type-body-tracking);922 }923 .type-small {924 font-family: var(--font-sans);925 font-size: var(--type-small-size);926 line-height: var(--type-small-leading);927 font-weight: var(--type-small-weight);928 letter-spacing: var(--type-small-tracking);929 }930 .type-label {931 font-family: var(--font-sans);932 font-size: var(--type-label-size);933 line-height: var(--type-label-leading);934 font-weight: var(--type-label-weight);935 letter-spacing: var(--type-label-tracking);936 }937 .type-mono {938 font-family: var(--font-mono);939 font-size: var(--type-mono-size);940 line-height: var(--type-mono-leading);941 font-weight: var(--type-mono-weight);942 letter-spacing: var(--type-mono-tracking);943 }944 h1 {945 font-family: var(--font-display);946 font-size: var(--type-h1-size);947 line-height: var(--type-h1-leading);948 font-weight: var(--type-h1-weight);949 letter-spacing: var(--type-h1-tracking);950 }951 h2 {952 font-family: var(--font-display);953 font-size: var(--type-h2-size);954 line-height: var(--type-h2-leading);955 font-weight: var(--type-h2-weight);956 letter-spacing: var(--type-h2-tracking);957 }958 h3 {959 font-family: var(--font-display);960 font-size: var(--type-h3-size);961 line-height: var(--type-h3-leading);962 font-weight: var(--type-h3-weight);963 letter-spacing: var(--type-h3-tracking);964 }965 code, kbd, samp, pre {966 font-family: var(--font-mono);967 }968 ::selection {969 background: var(--primary);970 color: var(--primary-foreground);971 }972 .container {973 width: 100%;974 max-width: var(--container-max);975 margin-inline: auto;976 padding-inline: var(--gutter);977 }978 .section {979 padding-block: var(--section-y);980 }981 .prose {982 max-width: var(--measure);983 }984 .reveal {985 opacity: 0;986 transform: translateY(var(--reveal-distance));987 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);988 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));989 }990 .reveal.is-in {991 opacity: 1;992 transform: none;993 }994 @media (prefers-reduced-motion: reduce) {995 .reveal { opacity: 1; transform: none; transition: none; }996 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }997 }998}999```1000 1001Tailwind v3:1002 1003```js1004// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1005module.exports = {1006 darkMode: "class",1007 theme: {1008 extend: {1009 colors: {1010 "background": "var(--background)",1011 "foreground": "var(--foreground)",1012 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1013 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1014 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1015 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1016 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1017 "border": "var(--border)",1018 "input": "var(--input)",1019 "ring": "var(--ring)",1020 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1021 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1022 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1023 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1024 },1025 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1026 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1027 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1028 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1029 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1030 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1031 },1032 },1033};1034```1035 1036Dependencies: `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.


