Editorial · Creative studios
Risograph Press design system template
Two-ink riso print for indie publishers: uncoated paper stock, riso blue and fluorescent pink overprinting, Bricolage Grotesque headlines and Source Serif reading text. Built for zine shops, small presses and independent bookstores.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Bricolage Grotesque
“The blue and pink bleed together exactly as they should. Our readers keep the zines on their desks.”
Personality. Risograph Press looks like it came off a drum duplicator. The canvas is uncoated cream paper, ink is a deep riso blue, and fluorescent pink is the second drum: it is used as flat fills and, where it overlaps blue, a multiply blend that produces a third purple-black tone. Registration is allowed to be slightly off: shapes and image duotones sit 3px away from their outlines. Headlines are heavy Bricolage Grotesque, reading text is Source Serif 4 for long form, and every metadata line is set in DM Mono like a colophon.
Two inks only: riso blue for type and lines, fluorescent pink for flat fills; overlaps use mix-blend-mode: multiply
Mis-registration: pink fills offset 3px from their blue outlines, as if the second drum drifted
Halftone and grain overlays at 8% on image fills instead of gradients
Heavy Bricolage Grotesque 800 headlines, serif reading text, mono colophon metadata
Dark mode is a night print: ink-black stock with cream and pink inks
Color. 21 roles, both modes.
background
#f4eddc
foreground
#1a2a7a
card
#fbf7ea
cardForeground
#1a2a7a
muted
#e9dfc7
mutedForeground
#4a4f7a
primary
#1d3aa8
primaryForeground
#fbf7ea
secondary
#ffb7d9
secondaryForeground
#1a2a7a
accent
#ff7ab8
accentForeground
#1a1146
border
rgba(26,42,122,0.5)
input
#1d3aa8
ring
#1d3aa8
destructive
#b3122f
destructiveForeground
#fbf7ea
success
#0b6b4f
successForeground
#fbf7ea
warning
#ffc233
warningForeground
#2a1d00
Type. Bricolage Grotesque · Source Serif 4 · DM Mono
The file. Drop it in your repo.
1---2name: "Risograph Press"3slug: "risograph-press"4schema: "freedesignmd/v2"5description: "Two-ink riso print for indie publishers: uncoated paper stock, riso blue and fluorescent pink overprinting, Bricolage Grotesque headlines and Source Serif reading text. Built for zine shops, small presses and independent bookstores."6source: "https://freedesignmd.com/system/risograph-press"7aesthetic: "editorial"8industry: "creative"9default_mode: "light"10fonts:11 display: "Bricolage Grotesque"12 body: "Source Serif 4"13 mono: "DM Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;800&family=Source+Serif+4:wght@400;600&family=DM+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#f4eddc"18 foreground: "#1a2a7a"19 card: "#fbf7ea"20 cardForeground: "#1a2a7a"21 muted: "#e9dfc7"22 mutedForeground: "#4a4f7a"23 primary: "#1d3aa8"24 primaryForeground: "#fbf7ea"25 secondary: "#ffb7d9"26 secondaryForeground: "#1a2a7a"27 accent: "#ff7ab8"28 accentForeground: "#1a1146"29 border: "rgba(26,42,122,0.5)"30 input: "#1d3aa8"31 ring: "#1d3aa8"32 destructive: "#b3122f"33 destructiveForeground: "#fbf7ea"34 success: "#0b6b4f"35 successForeground: "#fbf7ea"36 warning: "#ffc233"37 warningForeground: "#2a1d00"38 dark:39 background: "#15142b"40 foreground: "#f4eddc"41 card: "#1d1c3a"42 cardForeground: "#f4eddc"43 muted: "#26254a"44 mutedForeground: "#b8b5d6"45 primary: "#ff6fb5"46 primaryForeground: "#1a0f2e"47 secondary: "#2c2a63"48 secondaryForeground: "#f4eddc"49 accent: "#4a54d6"50 accentForeground: "#ffffff"51 border: "rgba(244,237,220,0.4)"52 input: "#f4eddc"53 ring: "#ff6fb5"54 destructive: "#ff7a8e"55 destructiveForeground: "#2a0610"56 success: "#4fd6a8"57 successForeground: "#032419"58 warning: "#ffc94d"59 warningForeground: "#2a1d00"60chart:61 light: ["#1d3aa8", "#ff48a0", "#4a2a8a", "#00a99d", "#ffc233"]62 dark: ["#ff6fb5", "#7a86ff", "#f4eddc", "#4fd6a8", "#ffc94d"]63type:64 display: { font: display, size: 88, size_mobile: 49, leading: 0.95, weight: 800, tracking: "-0.04em" }65 h1: { font: display, size: 56, size_mobile: 38, leading: 1, weight: 800, tracking: "-0.035em" }66 h2: { font: display, size: 32, size_mobile: 26, leading: 1.1, weight: 800, tracking: "-0.025em" }67 h3: { font: display, size: 21, size_mobile: 21, leading: 1.25, weight: 600, tracking: "-0.01em" }68 body: { font: body, size: 18, size_mobile: 18, leading: 1.6, weight: 400, tracking: "0em" }69 small: { font: body, size: 15, size_mobile: 15, leading: 1.5, weight: 400, tracking: "0em" }70 label: { font: mono, size: 12, size_mobile: 12, leading: 1.3, weight: 500, tracking: "0.06em", uppercase: true }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.5, weight: 400, tracking: "0em" }72spacing: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]73radius: { sm: "0", md: "2px", lg: "4px", xl: "8px", full: "9999px" }74shadow:75 light:76 sm: "2px 2px 0 rgba(255,72,160,0.85)"77 md: "4px 4px 0 rgba(255,72,160,0.85)"78 lg: "8px 8px 0 rgba(255,72,160,0.85)"79 dark:80 sm: "2px 2px 0 rgba(74,84,214,0.9)"81 md: "4px 4px 0 rgba(74,84,214,0.9)"82 lg: "8px 8px 0 rgba(74,84,214,0.9)"83motion:84 duration_ms: { instant: 60, fast: 120, base: 200, slow: 360 }85 easing: { standard: "cubic-bezier(0.4, 0, 0.2, 1)", out: "cubic-bezier(0.2, 0.8, 0.2, 1)", in: "cubic-bezier(0.6, 0, 1, 1)" }86 reveal: { distance_px: 8, stagger_ms: 60 }87layout: { max_width: 1100, columns: 12, gutter: 24, section_y: 96, section_y_mobile: 56, measure: "62ch" }88extras:89 grain: { light: "radial-gradient(rgba(26,42,122,0.12) 1px, transparent 1.2px)", dark: "radial-gradient(rgba(244,237,220,0.1) 1px, transparent 1.2px)" }90---91 92# Risograph Press, DESIGN.md93 94> Two-ink riso print for indie publishers: uncoated paper stock, riso blue and fluorescent pink overprinting, Bricolage Grotesque headlines and Source Serif reading text. Built for zine shops, small presses and independent bookstores.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/risograph-press.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 106Risograph Press looks like it came off a drum duplicator. The canvas is uncoated cream paper, ink is a deep riso blue, and fluorescent pink is the second drum: it is used as flat fills and, where it overlaps blue, a multiply blend that produces a third purple-black tone. Registration is allowed to be slightly off: shapes and image duotones sit 3px away from their outlines. Headlines are heavy Bricolage Grotesque, reading text is Source Serif 4 for long form, and every metadata line is set in DM Mono like a colophon.107 108**At a glance**109 110- Aesthetic: Editorial · Industry: Creative studios · Default mode: light111- Type: Bricolage Grotesque (display) · Source Serif 4 (body) · DM Mono (mono)112- Brand color (`primary`): `#1d3aa8` light · `#ff6fb5` dark, on primary, text is `#fbf7ea` / `#1a0f2e`113- Corners: 0 / 2px / 4px / 8px · Container 1100px · Base motion 200ms114 115**Signature moves**116 117- Two inks only: riso blue for type and lines, fluorescent pink for flat fills; overlaps use `mix-blend-mode: multiply`118- Mis-registration: pink fills offset 3px from their blue outlines, as if the second drum drifted119- Halftone and grain overlays at 8% on image fills instead of gradients120- Heavy Bricolage Grotesque 800 headlines, serif reading text, mono colophon metadata121- Dark mode is a night print: ink-black stock with cream and pink inks122 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` | `#f4eddc` | | Page canvas |132| `foreground` | `--foreground` | `#1a2a7a` | 10.86:1 on background | Body text and headings on background |133| `card` | `--card` | `#fbf7ea` | | Cards, panels, popovers |134| `cardForeground` | `--card-foreground` | `#1a2a7a` | 11.83:1 on card | Text on card |135| `muted` | `--muted` | `#e9dfc7` | | Subtle fills: table headers, code, skeletons |136| `mutedForeground` | `--muted-foreground` | `#4a4f7a` | 5.89:1 on muted | Secondary text, captions, placeholders |137| `primary` | `--primary` | `#1d3aa8` | | Brand color: primary buttons, links, focus, active states |138| `primaryForeground` | `--primary-foreground` | `#fbf7ea` | 8.81:1 on primary | Text and icons on primary |139| `secondary` | `--secondary` | `#ffb7d9` | | Secondary buttons and quiet fills |140| `secondaryForeground` | `--secondary-foreground` | `#1a2a7a` | 7.87:1 on secondary | Text on secondary |141| `accent` | `--accent` | `#ff7ab8` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |142| `accentForeground` | `--accent-foreground` | `#1a1146` | 7.20:1 on accent | Text on accent |143| `border` | `--border` | `rgba(26,42,122,0.5)` | | Dividers and card outlines |144| `input` | `--input` | `#1d3aa8` | | Input borders |145| `ring` | `--ring` | `#1d3aa8` | | Focus ring |146| `destructive` | `--destructive` | `#b3122f` | | Errors and destructive actions |147| `destructiveForeground` | `--destructive-foreground` | `#fbf7ea` | 6.44:1 on destructive | Text on destructive |148| `success` | `--success` | `#0b6b4f` | | Positive status |149| `successForeground` | `--success-foreground` | `#fbf7ea` | 6.07:1 on success | Text on success |150| `warning` | `--warning` | `#ffc233` | | Caution status |151| `warningForeground` | `--warning-foreground` | `#2a1d00` | 10.22:1 on warning | Text on warning |152| `chart-1…5` | `--chart-1…5` | `#1d3aa8` `#ff48a0` `#4a2a8a` `#00a99d` `#ffc233` | | Data series, in this order |153 154### Dark mode (`.dark`)155 156| Role | CSS variable | Value | Contrast | Usage |157|---|---|---|---|---|158| `background` | `--background` | `#15142b` | | Page canvas |159| `foreground` | `--foreground` | `#f4eddc` | 15.42:1 on background | Body text and headings on background |160| `card` | `--card` | `#1d1c3a` | | Cards, panels, popovers |161| `cardForeground` | `--card-foreground` | `#f4eddc` | 14.06:1 on card | Text on card |162| `muted` | `--muted` | `#26254a` | | Subtle fills: table headers, code, skeletons |163| `mutedForeground` | `--muted-foreground` | `#b8b5d6` | 7.34:1 on muted | Secondary text, captions, placeholders |164| `primary` | `--primary` | `#ff6fb5` | | Brand color: primary buttons, links, focus, active states |165| `primaryForeground` | `--primary-foreground` | `#1a0f2e` | 7.11:1 on primary | Text and icons on primary |166| `secondary` | `--secondary` | `#2c2a63` | | Secondary buttons and quiet fills |167| `secondaryForeground` | `--secondary-foreground` | `#f4eddc` | 11.12:1 on secondary | Text on secondary |168| `accent` | `--accent` | `#4a54d6` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |169| `accentForeground` | `--accent-foreground` | `#ffffff` | 5.95:1 on accent | Text on accent |170| `border` | `--border` | `rgba(244,237,220,0.4)` | | Dividers and card outlines |171| `input` | `--input` | `#f4eddc` | | Input borders |172| `ring` | `--ring` | `#ff6fb5` | | Focus ring |173| `destructive` | `--destructive` | `#ff7a8e` | | Errors and destructive actions |174| `destructiveForeground` | `--destructive-foreground` | `#2a0610` | 7.44:1 on destructive | Text on destructive |175| `success` | `--success` | `#4fd6a8` | | Positive status |176| `successForeground` | `--success-foreground` | `#032419` | 9.07:1 on success | Text on success |177| `warning` | `--warning` | `#ffc94d` | | Caution status |178| `warningForeground` | `--warning-foreground` | `#2a1d00` | 10.76:1 on warning | Text on warning |179| `chart-1…5` | `--chart-1…5` | `#ff6fb5` `#7a86ff` `#f4eddc` `#4fd6a8` `#ffc94d` | | Data series, in this order |180 181### System extras182 183| Variable | Light | Dark | Usage |184|---|---|---|---|185| `--grain` | `radial-gradient(rgba(26,42,122,0.12) 1px, transparent 1.2px)` | `radial-gradient(rgba(244,237,220,0.1) 1px, transparent 1.2px)` | Halftone dot overlay on image fills and hero blocks, 6px tile, 8% strength |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@600;800&family=Source+Serif+4:wght@400;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 | 49px → 88px | 0.95 | 800 | -0.04em | – | `.type-display` |200| `h1` | Bricolage Grotesque | 38px → 56px | 1 | 800 | -0.035em | – | `.type-h1` |201| `h2` | Bricolage Grotesque | 26px → 32px | 1.1 | 800 | -0.025em | – | `.type-h2` |202| `h3` | Bricolage Grotesque | 21px | 1.25 | 600 | -0.01em | – | `.type-h3` |203| `body` | Source Serif 4 | 18px | 1.6 | 400 | 0em | – | `.type-body` |204| `small` | Source Serif 4 | 15px | 1.5 | 400 | 0em | – | `.type-small` |205| `label` | DM Mono | 12px | 1.3 | 500 | 0.06em | uppercase | `.type-label` |206| `mono` | DM Mono | 13px | 1.5 | 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 1100px, 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- Zine-style spreads: a 12-column grid where headlines span 8 columns and a mono colophon sits in the last 3.225- Product grids show covers at 3:4 with a 3px pink offset block behind each one.226- Section breaks are a 2px blue rule with a mono folio number (01, 02, 03) at the left.227 228## 5. Shape & elevation229 230| Radius | Value | Use |231|---|---|---|232| `--radius-sm` | 0 | badges, checkboxes, small chips |233| `--radius-md` | 2px | buttons, inputs, tabs (= shadcn `--radius`) |234| `--radius-lg` | 4px | cards, panels, menus |235| `--radius-xl` | 8px | dialogs, hero media, large surfaces |236| `--radius-full` | 9999px | avatars, pills, toggles |237 238| Shadow | Mode | Value |239|---|---|---|240| `--shadow-sm` | light | `2px 2px 0 rgba(255,72,160,0.85)` |241| `--shadow-md` | light | `4px 4px 0 rgba(255,72,160,0.85)` |242| `--shadow-lg` | light | `8px 8px 0 rgba(255,72,160,0.85)` |243| `--shadow-sm` | dark | `2px 2px 0 rgba(74,84,214,0.9)` |244| `--shadow-md` | dark | `4px 4px 0 rgba(74,84,214,0.9)` |245| `--shadow-lg` | dark | `8px 8px 0 rgba(74,84,214,0.9)` |246 247`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.248 249## 6. Motion250 251**Second drum.** On hover, the pink offset layer slides into misregistration: cards shift their pink shadow from 4px to 8px, like a second pass drifting. Page transitions are a stepped two-pass wipe, blue first, pink 60ms later.252 253| Token | Value | Use |254|---|---|---|255| `--duration-instant` | 60ms | press feedback, toggles |256| `--duration-fast` | 120ms | hover, focus, color changes |257| `--duration-base` | 200ms | menus, tabs, popovers, cards lifting |258| `--duration-slow` | 360ms | dialogs and scroll reveals |259| `--ease-standard` | `cubic-bezier(0.4, 0, 0.2, 1)` | state changes |260| `--ease-out` | `cubic-bezier(0.2, 0.8, 0.2, 1)` | entrances and reveals |261| `--ease-in` | `cubic-bezier(0.6, 0, 1, 1)` | exits |262 263- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 8px 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/risograph-press.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: 44px;284 padding: 0 20px;285 font-family: var(--font-mono);286 font-size: 13px;287 font-weight: 500;288 letter-spacing: 0.06em;289 text-transform: uppercase;290 border-radius: var(--radius-md);291 border: 2px solid var(--primary);292 white-space: nowrap;293 cursor: pointer;294 text-decoration: none;295 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);296}297.btn-primary {298 background: var(--primary);299 color: var(--primary-foreground);300 box-shadow: var(--shadow-sm);301}302.btn-primary:hover:not(:disabled) {303 box-shadow: var(--shadow-md);304 transform: translate(-2px, -2px);305}306.btn-primary:active:not(:disabled) {307 box-shadow: 0 0 0 transparent;308 transform: translate(2px, 2px);309}310.btn-secondary {311 background: var(--secondary);312 color: var(--secondary-foreground);313 border-color: var(--secondary-foreground);314}315.btn-secondary:hover:not(:disabled) {316 background: var(--accent);317 color: var(--accent-foreground);318}319.btn-secondary:active:not(:disabled) {320 background: var(--muted);321}322.btn-outline {323 background: transparent;324 color: var(--primary);325}326.btn-outline:hover:not(:disabled) {327 background: var(--primary);328 color: var(--primary-foreground);329}330.btn-outline:active:not(:disabled) {331 background: var(--foreground);332 color: var(--background);333}334.btn-ghost {335 background: transparent;336 color: var(--foreground);337 border-color: transparent;338 text-decoration: underline;339}340.btn-ghost:hover:not(:disabled) {341 background: var(--secondary);342 border-color: transparent;343}344.btn-ghost:active:not(:disabled) {345 background: var(--accent);346}347.btn:focus-visible {348 outline: 3px solid var(--ring);349 outline-offset: 3px;350}351.btn:disabled, .btn[aria-disabled="true"] {352 opacity: 0.45;353 cursor: not-allowed;354 box-shadow: none;355 transform: none;356}357```358 359### Input360 361```html362<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->363```364 365```css366.input {367 display: block;368 width: 100%;369 height: 44px;370 padding: 0 14px;371 font-family: var(--font-sans);372 font-size: 16px;373 color: var(--foreground);374 background: var(--card);375 border: 2px solid var(--input);376 border-radius: var(--radius-md);377 outline: none;378 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);379}380.input::placeholder {381 color: var(--muted-foreground);382 opacity: 1;383}384.input:hover:not(:disabled):not(:focus) {385 border-color: var(--accent);386}387.input:focus, .input:focus-visible {388 border-color: var(--ring);389 box-shadow: 4px 4px 0 var(--secondary);390}391.input[aria-invalid="true"] {392 border-color: var(--destructive);393 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);394}395.input:disabled {396 opacity: 0.5;397 cursor: not-allowed;398 background: var(--muted);399}400```401 402### Card403 404```html405<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->406```407 408```css409.card {410 background: var(--card);411 color: var(--card-foreground);412 border: 2px solid var(--primary);413 border-radius: var(--radius-md);414 box-shadow: var(--shadow-md);415 padding: 20px;416 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);417}418.card-interactive:hover {419 box-shadow: var(--shadow-lg);420 transform: translate(-3px, -3px);421}422```423 424### Badge425 426```html427<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->428```429 430```css431.badge {432 --tone: var(--primary);433 --tone-foreground: var(--primary-foreground);434 display: inline-flex;435 align-items: center;436 gap: 6px;437 height: 24px;438 padding: 0 10px;439 border-radius: var(--radius-sm);440 font-family: var(--font-mono);441 font-size: 11px;442 font-weight: 500;443 letter-spacing: 0.06em;444 text-transform: uppercase;445 line-height: 1;446 white-space: nowrap;447}448.badge[data-tone="success"] {449 --tone: var(--success);450 --tone-foreground: var(--success-foreground);451}452.badge[data-tone="warning"] {453 --tone: var(--warning);454 --tone-foreground: var(--warning-foreground);455}456.badge[data-tone="destructive"] {457 --tone: var(--destructive);458 --tone-foreground: var(--destructive-foreground);459}460.badge-solid {461 background: var(--tone);462 color: var(--tone-foreground);463 border: 1px solid var(--tone);464}465.badge-soft {466 background: color-mix(in oklab, var(--tone) 30%, var(--card));467 color: var(--foreground);468 border: 1px solid color-mix(in oklab, var(--tone) 46%, transparent);469}470.badge-outline {471 background: transparent;472 color: var(--foreground);473 border: 1px solid var(--border);474}475```476 477### Navigation bar478 479```html480<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>481```482 483```css484.nav {485 display: flex;486 align-items: center;487 gap: 4px;488 height: 64px;489 padding: 0 24px;490 background: var(--background);491 border-bottom: 2px solid var(--primary);492}493.nav-link {494 padding: 6px 2px;495 margin: 0 10px;496 border-bottom: 2px solid transparent;497 border-radius: var(--radius-sm);498 font-family: var(--font-mono);499 font-size: 13px;500 font-weight: 500;501 letter-spacing: 0.06em;502 text-transform: uppercase;503 color: var(--muted-foreground);504 text-decoration: none;505 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);506}507.nav-link:hover {508 color: var(--foreground);509 border-bottom-color: var(--border);510}511.nav-link[aria-current="page"] {512 color: var(--foreground);513 border-bottom-color: var(--primary);514}515```516 517### Tabs518 519```html520<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>521```522 523```css524.tabs {525 display: flex;526 gap: 8px;527}528.tab {529 height: 40px;530 padding: 0 16px;531 border: 2px solid var(--foreground);532 border-radius: 0;533 background: var(--card);534 color: var(--foreground);535 cursor: pointer;536 font-family: var(--font-mono);537 font-size: 13px;538 font-weight: 500;539 letter-spacing: 0.06em;540 text-transform: uppercase;541 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);542}543.tab:hover:not([aria-selected="true"]) {544 background: var(--accent);545 color: var(--accent-foreground);546}547.tab[aria-selected="true"] {548 background: var(--foreground);549 color: var(--background);550 box-shadow: 4px 4px 0 var(--primary);551}552```553 554### Table555 556```html557<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>558```559 560```css561.table {562 width: 100%;563 border-collapse: collapse;564 font-size: 15px;565 font-variant-numeric: tabular-nums;566 border-top: 2px solid var(--foreground);567}568.table th {569 text-align: left;570 height: 40px;571 padding: 0 16px;572 font-family: var(--font-mono);573 font-size: 14px;574 font-weight: 500;575 text-transform: uppercase;576 letter-spacing: 0.06em;577 color: var(--foreground);578 border-bottom: 1px solid var(--foreground);579}580.table td {581 height: 48px;582 padding: 0 16px;583 border-bottom: 1px dashed var(--border);584 color: var(--foreground);585 transition: background-color var(--duration-fast) var(--ease-standard);586}587.table tbody tr:hover td {588 background: var(--accent);589 color: var(--accent-foreground);590}591```592 593### Dialog / modal594 595```html596<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>597```598 599```css600.dialog-overlay {601 position: fixed;602 inset: 0;603 background: rgba(26,42,122,0.45);604 display: grid;605 place-items: center;606 padding: 24px;607}608.dialog {609 width: min(520px, 100%);610 background: var(--card);611 color: var(--card-foreground);612 border: 2px solid var(--primary);613 border-radius: var(--radius-md);614 box-shadow: var(--shadow-lg);615 padding: 28px;616}617```618 619### Text link620 621```html622<a class="link" href="…">Read more</a>623```624 625```css626.link {627 color: var(--primary);628 text-decoration: underline;629 text-decoration-color: var(--accent);630 text-decoration-thickness: 3px;631 text-underline-offset: 3px;632 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);633}634.link:hover {635 background: var(--secondary);636 text-decoration-color: var(--primary);637}638```639 640## 8. Imagery & iconography641 642**Imagery.** Everything is duotone: photos and illustrations are reduced to blue and pink halftone with multiply overlap, 6px dot screens and visible paper grain. Covers sit slightly crooked (up to 1.5deg) on a pink offset block. No full-color photography and no gradients.643 644**Icons.** Hand-cut 24px glyphs at 2px stroke with square caps, drawn slightly uneven; stars, asterisks, arrows and manicules (pointing hands) are the vocabulary. Icons are blue by default and fill pink on hover.645 646## 9. Do / Don't647 648**Do**649 650- Print in two inks only: `primary` for type and lines, `secondary` or `accent` for flat fills651- Offset pink fills by 3px from their blue outlines to show deliberate misregistration652- Set metadata (price, pages, format, ISBN) in uppercase DM Mono like a colophon653- Use Source Serif 4 at 18px for descriptions and essays; headlines stay in heavy grotesque654- Use halftone grain on image fills at 8% opacity instead of gradients655 656**Don't**657 658- Don't add a third spot color; overlaps of the two inks create the third tone659- Don't use pink text on cream paper; pink is for fills with blue or dark type on top660- Don't use soft drop shadows; offset pink blocks are the only elevation661- Don't use rounded corners above 4px; paper has been cut with a guillotine662- Don't use full-color photography; every image is duotone663 664## 10. tokens.css665 666Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.667 668```css669/* Risograph Press, tokens.css670 * https://freedesignmd.com/system/risograph-press671 * shadcn/ui-compatible variables. Light on :root, dark on .dark.672 * Default mode: light.673 */674@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;800&family=Source+Serif+4:wght@400;600&family=DM+Mono:wght@400;500&display=swap");675 676:root {677 --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;678 --font-sans: "Source Serif 4", ui-serif, Georgia, 'Times New Roman', serif;679 --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;680 --type-display-size: clamp(49px, 34.51px + 3.714vw, 88px);681 --type-display-leading: 0.95;682 --type-display-weight: 800;683 --type-display-tracking: -0.04em;684 --type-h1-size: clamp(38px, 31.31px + 1.714vw, 56px);685 --type-h1-leading: 1;686 --type-h1-weight: 800;687 --type-h1-tracking: -0.035em;688 --type-h2-size: clamp(26px, 23.77px + 0.571vw, 32px);689 --type-h2-leading: 1.1;690 --type-h2-weight: 800;691 --type-h2-tracking: -0.025em;692 --type-h3-size: 21px;693 --type-h3-leading: 1.25;694 --type-h3-weight: 600;695 --type-h3-tracking: -0.01em;696 --type-body-size: 18px;697 --type-body-leading: 1.6;698 --type-body-weight: 400;699 --type-body-tracking: 0em;700 --type-small-size: 15px;701 --type-small-leading: 1.5;702 --type-small-weight: 400;703 --type-small-tracking: 0em;704 --type-label-size: 12px;705 --type-label-leading: 1.3;706 --type-label-weight: 500;707 --type-label-tracking: 0.06em;708 --type-mono-size: 13px;709 --type-mono-leading: 1.5;710 --type-mono-weight: 400;711 --type-mono-tracking: 0em;712 --space-1: 4px;713 --space-2: 8px;714 --space-3: 12px;715 --space-4: 16px;716 --space-6: 24px;717 --space-8: 32px;718 --space-12: 48px;719 --space-16: 64px;720 --space-24: 96px;721 --space-32: 128px;722 --radius: 2px;723 --radius-sm: 0;724 --radius-md: 2px;725 --radius-lg: 4px;726 --radius-xl: 8px;727 --radius-full: 9999px;728 --duration-instant: 60ms;729 --duration-fast: 120ms;730 --duration-base: 200ms;731 --duration-slow: 360ms;732 --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);733 --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);734 --ease-in: cubic-bezier(0.6, 0, 1, 1);735 --reveal-distance: 8px;736 --reveal-stagger: 60ms;737 --container-max: 1100px;738 --gutter: 24px;739 --section-y: 96px;740 --section-y-mobile: 56px;741 --measure: 62ch;742 --background: #f4eddc;743 --foreground: #1a2a7a;744 --card: #fbf7ea;745 --card-foreground: #1a2a7a;746 --muted: #e9dfc7;747 --muted-foreground: #4a4f7a;748 --primary: #1d3aa8;749 --primary-foreground: #fbf7ea;750 --secondary: #ffb7d9;751 --secondary-foreground: #1a2a7a;752 --accent: #ff7ab8;753 --accent-foreground: #1a1146;754 --border: rgba(26,42,122,0.5);755 --input: #1d3aa8;756 --ring: #1d3aa8;757 --destructive: #b3122f;758 --destructive-foreground: #fbf7ea;759 --success: #0b6b4f;760 --success-foreground: #fbf7ea;761 --warning: #ffc233;762 --warning-foreground: #2a1d00;763 --chart-1: #1d3aa8;764 --chart-2: #ff48a0;765 --chart-3: #4a2a8a;766 --chart-4: #00a99d;767 --chart-5: #ffc233;768 --shadow-sm: 2px 2px 0 rgba(255,72,160,0.85);769 --shadow-md: 4px 4px 0 rgba(255,72,160,0.85);770 --shadow-lg: 8px 8px 0 rgba(255,72,160,0.85);771 --grain: radial-gradient(rgba(26,42,122,0.12) 1px, transparent 1.2px);772}773 774.dark {775 --background: #15142b;776 --foreground: #f4eddc;777 --card: #1d1c3a;778 --card-foreground: #f4eddc;779 --muted: #26254a;780 --muted-foreground: #b8b5d6;781 --primary: #ff6fb5;782 --primary-foreground: #1a0f2e;783 --secondary: #2c2a63;784 --secondary-foreground: #f4eddc;785 --accent: #4a54d6;786 --accent-foreground: #ffffff;787 --border: rgba(244,237,220,0.4);788 --input: #f4eddc;789 --ring: #ff6fb5;790 --destructive: #ff7a8e;791 --destructive-foreground: #2a0610;792 --success: #4fd6a8;793 --success-foreground: #032419;794 --warning: #ffc94d;795 --warning-foreground: #2a1d00;796 --chart-1: #ff6fb5;797 --chart-2: #7a86ff;798 --chart-3: #f4eddc;799 --chart-4: #4fd6a8;800 --chart-5: #ffc94d;801 --shadow-sm: 2px 2px 0 rgba(74,84,214,0.9);802 --shadow-md: 4px 4px 0 rgba(74,84,214,0.9);803 --shadow-lg: 8px 8px 0 rgba(74,84,214,0.9);804 --grain: radial-gradient(rgba(244,237,220,0.1) 1px, transparent 1.2px);805}806 807/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */808@theme inline {809 --color-background: var(--background);810 --color-foreground: var(--foreground);811 --color-card: var(--card);812 --color-card-foreground: var(--card-foreground);813 --color-muted: var(--muted);814 --color-muted-foreground: var(--muted-foreground);815 --color-primary: var(--primary);816 --color-primary-foreground: var(--primary-foreground);817 --color-secondary: var(--secondary);818 --color-secondary-foreground: var(--secondary-foreground);819 --color-accent: var(--accent);820 --color-accent-foreground: var(--accent-foreground);821 --color-border: var(--border);822 --color-input: var(--input);823 --color-ring: var(--ring);824 --color-destructive: var(--destructive);825 --color-destructive-foreground: var(--destructive-foreground);826 --color-success: var(--success);827 --color-success-foreground: var(--success-foreground);828 --color-warning: var(--warning);829 --color-warning-foreground: var(--warning-foreground);830 --color-chart-1: var(--chart-1);831 --color-chart-2: var(--chart-2);832 --color-chart-3: var(--chart-3);833 --color-chart-4: var(--chart-4);834 --color-chart-5: var(--chart-5);835 --font-heading: var(--font-display);836 --font-body: var(--font-sans);837 --font-code: var(--font-mono);838 --radius-ui-sm: var(--radius-sm);839 --radius-ui-md: var(--radius-md);840 --radius-ui-lg: var(--radius-lg);841 --radius-ui-xl: var(--radius-xl);842 --text-display: var(--type-display-size);843 --text-display--line-height: var(--type-display-leading);844 --text-display--letter-spacing: var(--type-display-tracking);845 --text-display--font-weight: var(--type-display-weight);846 --text-h1: var(--type-h1-size);847 --text-h1--line-height: var(--type-h1-leading);848 --text-h1--letter-spacing: var(--type-h1-tracking);849 --text-h1--font-weight: var(--type-h1-weight);850 --text-h2: var(--type-h2-size);851 --text-h2--line-height: var(--type-h2-leading);852 --text-h2--letter-spacing: var(--type-h2-tracking);853 --text-h2--font-weight: var(--type-h2-weight);854 --text-h3: var(--type-h3-size);855 --text-h3--line-height: var(--type-h3-leading);856 --text-h3--letter-spacing: var(--type-h3-tracking);857 --text-h3--font-weight: var(--type-h3-weight);858 --text-body: var(--type-body-size);859 --text-body--line-height: var(--type-body-leading);860 --text-body--letter-spacing: var(--type-body-tracking);861 --text-body--font-weight: var(--type-body-weight);862 --text-small: var(--type-small-size);863 --text-small--line-height: var(--type-small-leading);864 --text-small--letter-spacing: var(--type-small-tracking);865 --text-small--font-weight: var(--type-small-weight);866 --text-label: var(--type-label-size);867 --text-label--line-height: var(--type-label-leading);868 --text-label--letter-spacing: var(--type-label-tracking);869 --text-label--font-weight: var(--type-label-weight);870 --text-mono: var(--type-mono-size);871 --text-mono--line-height: var(--type-mono-leading);872 --text-mono--letter-spacing: var(--type-mono-tracking);873 --text-mono--font-weight: var(--type-mono-weight);874 --shadow-ui-sm: var(--shadow-sm);875 --shadow-ui-md: var(--shadow-md);876 --shadow-ui-lg: var(--shadow-lg);877}878 879@layer base {880 body {881 background: var(--background);882 color: var(--foreground);883 font-family: var(--font-sans);884 font-size: var(--type-body-size);885 line-height: var(--type-body-leading);886 font-weight: var(--type-body-weight);887 letter-spacing: var(--type-body-tracking);888 -webkit-font-smoothing: antialiased;889 }890 .type-display {891 font-family: var(--font-display);892 font-size: var(--type-display-size);893 line-height: var(--type-display-leading);894 font-weight: var(--type-display-weight);895 letter-spacing: var(--type-display-tracking);896 }897 .type-h1 {898 font-family: var(--font-display);899 font-size: var(--type-h1-size);900 line-height: var(--type-h1-leading);901 font-weight: var(--type-h1-weight);902 letter-spacing: var(--type-h1-tracking);903 }904 .type-h2 {905 font-family: var(--font-display);906 font-size: var(--type-h2-size);907 line-height: var(--type-h2-leading);908 font-weight: var(--type-h2-weight);909 letter-spacing: var(--type-h2-tracking);910 }911 .type-h3 {912 font-family: var(--font-display);913 font-size: var(--type-h3-size);914 line-height: var(--type-h3-leading);915 font-weight: var(--type-h3-weight);916 letter-spacing: var(--type-h3-tracking);917 }918 .type-body {919 font-family: var(--font-sans);920 font-size: var(--type-body-size);921 line-height: var(--type-body-leading);922 font-weight: var(--type-body-weight);923 letter-spacing: var(--type-body-tracking);924 }925 .type-small {926 font-family: var(--font-sans);927 font-size: var(--type-small-size);928 line-height: var(--type-small-leading);929 font-weight: var(--type-small-weight);930 letter-spacing: var(--type-small-tracking);931 }932 .type-label {933 font-family: var(--font-mono);934 font-size: var(--type-label-size);935 line-height: var(--type-label-leading);936 font-weight: var(--type-label-weight);937 letter-spacing: var(--type-label-tracking);938 text-transform: uppercase;939 }940 .type-mono {941 font-family: var(--font-mono);942 font-size: var(--type-mono-size);943 line-height: var(--type-mono-leading);944 font-weight: var(--type-mono-weight);945 letter-spacing: var(--type-mono-tracking);946 }947 h1 {948 font-family: var(--font-display);949 font-size: var(--type-h1-size);950 line-height: var(--type-h1-leading);951 font-weight: var(--type-h1-weight);952 letter-spacing: var(--type-h1-tracking);953 }954 h2 {955 font-family: var(--font-display);956 font-size: var(--type-h2-size);957 line-height: var(--type-h2-leading);958 font-weight: var(--type-h2-weight);959 letter-spacing: var(--type-h2-tracking);960 }961 h3 {962 font-family: var(--font-display);963 font-size: var(--type-h3-size);964 line-height: var(--type-h3-leading);965 font-weight: var(--type-h3-weight);966 letter-spacing: var(--type-h3-tracking);967 }968 code, kbd, samp, pre {969 font-family: var(--font-mono);970 }971 ::selection {972 background: var(--primary);973 color: var(--primary-foreground);974 }975 .container {976 width: 100%;977 max-width: var(--container-max);978 margin-inline: auto;979 padding-inline: var(--gutter);980 }981 .section {982 padding-block: var(--section-y);983 }984 .prose {985 max-width: var(--measure);986 }987 .reveal {988 opacity: 0;989 transform: translateY(var(--reveal-distance));990 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);991 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));992 }993 .reveal.is-in {994 opacity: 1;995 transform: none;996 }997 @media (prefers-reduced-motion: reduce) {998 .reveal { opacity: 1; transform: none; transition: none; }999 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }1000 }1001}1002```1003 1004Tailwind v3:1005 1006```js1007// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1008module.exports = {1009 darkMode: "class",1010 theme: {1011 extend: {1012 colors: {1013 "background": "var(--background)",1014 "foreground": "var(--foreground)",1015 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1016 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1017 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1018 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1019 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1020 "border": "var(--border)",1021 "input": "var(--input)",1022 "ring": "var(--ring)",1023 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1024 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1025 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1026 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1027 },1028 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1029 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1030 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1031 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1032 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1033 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1034 },1035 },1036};1037```1038 1039Dependencies: `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.

