# Yarn Map

A sunny corkboard on a white desk. Small rounded note cards in pastel fills float on a canvas speckled with tiny grey dashes, tied together by soft curved strings in butter, lilac and sky blue. A wide, chunky wordmark sits on top like a sticker, the body is plain and friendly, and little typewriter labels do the filing. It feels dreamy and a little nostalgic, like a scrapbook from the early web that you can rearrange with your hands.

Use it for: consumer apps about collecting and connecting things (families, trips, recipes, research, moodboards), community and hobby products, personal tools, playful indie software. Avoid it for: dense dashboards, finance or legal products that need gravity, luxury brands, anything that needs photography as the hero.

## How to use this file

Give this file, `tokens.css` and `components.css` to your AI coding tool and say:

> Build [your page] in the Yarn Map style. Follow DESIGN.md exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages for an invented family reunion board called Cousinry, built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@600;800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Space+Mono&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Unbounded 800 (600 for small titles) | The wordmark, hero, section headings, prices, quotes. Tight letter-spacing. The hero wordmark is uppercase. |
| Body | Atkinson Hyperlegible 400 and 700 | Paragraphs, nodes, buttons, inputs, FAQ questions. Its slashed zero is part of the charm. |
| Labels | Space Mono 400 | Eyebrows, form labels, dates, captions, quote credits. Always uppercase, letterspaced .08em, 12px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ym-paper` | #FDFCF8 | The page and the canvas |
| `--ym-paper-2` | #F5F3EC | Tinted sections (FAQ, features) |
| `--ym-card` | #FFFFFF | Cards, forms, plain buttons, white nodes |
| `--ym-ink` | #161513 | Text, icons, drawing lines |
| `--ym-soft` | #57544D | Leads, hints, captions |
| `--ym-line` | #CFCCC3 | Button and card borders, dividers |
| `--ym-speck` | #D9D6CD | The canvas dashes (baked into `--ym-speckle`) |
| `--ym-fog` | #E7E6E1 | Default node fill |
| `--ym-butter` | #F6E6A4 | Node fill, featured plan, blockquotes |
| `--ym-lilac` | #DFCFF9 | Node fill, tags, selected choices, avatars |
| `--ym-teal` | #1C6266 | The one deep node per board, and one quote section per page |
| `--ym-mint` | #78E9B3 | The primary button, active toggle |
| `--ym-cyan` | #A2F0EC | "How to" chips, mint button hover |
| `--ym-link` | #2438C9 | Inline links, underlined, like an old browser |
| `--ym-string-gold`, `--ym-string-lilac`, `--ym-string-sky` | #EAD27A, #CBB2F4, #A3C6FF | Connector strings only |

Rules:
- Mint is for the one action that matters on screen. Everything else is a white button with a hairline.
- Each board gets exactly one teal node, usually the first or "you are here" card.
- Pastels are fills, never text colors. Text is ink (or `--ym-on-teal` on teal).
- No gradients except the half-moon dot, and no drop shadows. Depth comes from overlapping cards and strings.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ym-text-hero` | clamp(44px, 7.4vw, 92px) | The wordmark hero, uppercase, line-height .95 |
| `--ym-text-h2` | clamp(28px, 3.6vw, 44px) | Page and section headings, sentence case |
| `--ym-text-h3` | 20px | Card and plan titles (Unbounded 600) |
| `--ym-text-lead` | 20px | The sentence under a heading, soft ink |
| `--ym-text-body` | 17px | Body (18px in articles) |
| `--ym-text-node` | 14px | Text inside nodes |
| `--ym-text-label` | 12px | Mono labels |

Headings are short, warm and plain ("Start your family board", "Questions"). Copy in nodes reads like real notes people left: names, dates, a little joke.

## Shape and space

- Small, soft corners: `--ym-radius` 6px on cards, nodes, buttons and inputs; 4 to 5px on chips.
- Buttons are compact toolbar keys: 1px hairline border, white fill, 9px by 12px padding, no pill shapes.
- The canvas speckle (`--ym-speckle`, apply with `.ym-canvas` or `.ym-board`) is the texture. Use it on the hero board and one or two other sections, not everywhere.
- Strings are 3px, round-capped cubic curves in an SVG behind the nodes, with `vector-effect: non-scaling-stroke`.
- Content sits in a 1080px page; the hero is a narrower 760px column, left-aligned within it, like the reference wordmark layout.

## Components (in components.css)

- `.ym` on body. `.ym-page`, `.ym-column`, `.ym-center`, `.ym-canvas`.
- `.ym-section`, `--tint`, `--teal`.
- `.ym-hero-title`, `.ym-h2`, `.ym-h3`, `.ym-lead`, `.ym-label`, `.ym-small`.
- `.ym-wordmark` with `__caption`: a huge uppercase name and a small two-line stacked caption beside it.
- `.ym-nav` with `__brand` (a drawn mascot blob `.ym-blob`) and `__links` (plain buttons, one mint).
- `.ym-btn` with `--mint`, `--lg`, `--block`. `.ym-actions`.
- `.ym-chip` (cyan), `--lilac`, `--butter`, `--fog`; `.ym-tag` (a lilac label that sits on a string).
- `.ym-node` with `--butter`, `--lilac`, `--teal`, `--white`, `--wide`; `__dot` (the half-moon toggle in the corner, `--open` for an empty ring), `__check`, `__pic`. A node can be an `<a>`.
- `.ym-board`: a speckled canvas. Children `.ym-node`, `.ym-pin` and `.ym-tag` are placed with `left`/`top` percentages; `.ym-strings` is the SVG of curves, drawn in a viewBox whose units match those percentages (`preserveAspectRatio="none"`). Under 720px the board turns into a wrapped pile of nodes and the strings hide.
- `.ym-grid`, `.ym-card` with `--fog`, `--butter`, `--lilac`, `--teal`, `__icon` (a small drawn SVG).
- `.ym-aside`: a doodle and one sentence side by side.
- `.ym-quote`, `__by`.
- `.ym-toggle`, `.ym-pricing`, `.ym-plan` with `--featured`, `__name`, `__price`; list bullets are half-moon dots.
- `.ym-faq` (details and summary).
- `.ym-article`, `.ym-byline`, `.ym-avatar`.
- `.ym-form`, `.ym-field`, `.ym-input`, `.ym-select`, `.ym-hint`, `.ym-choices`, `.ym-choice`, `.ym-check`.
- `.ym-footer` with `__row` and `__links`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: wordmark hero, a big board of tied-together nodes with drawn pins (a picnic, a mixtape, a dot-to-dot dog), a short origin paragraph with old-web links, three pastel feature cards, a teal quote, a closing call beside a small board |
| `pricing.html` | Pricing: centered heading on the canvas, a yearly/monthly toggle, three plans (the middle one butter with a tag), FAQ beside a small board |
| `blog.html` | Story: chip, heading, lead and byline, a long article with a board as a figure, a butter blockquote, related posts as link nodes |
| `signup.html` | Sign up: heading and a three-step board on the left, a white form card on the right |

## Page recipe

1. `.ym-nav`: the blob on the left, two or three plain buttons on the right, the last one mint.
2. Hero: `.ym-wordmark` (name plus stacked caption), one plain sentence of what it is for.
3. A `.ym-board` straight under the hero with 6 to 10 nodes: one teal intro node, two "How to" nodes, a checklist node, two or three pastel notes, one or two drawn pins, one tag on a string. Tie them with 4 to 6 strings.
4. A short paragraph of origin story with two or three underlined links, then a `.ym-aside`.
5. A tinted canvas section with three pastel `.ym-card`s.
6. One `.ym-section--teal` quote.
7. A closing call beside a small board, then `.ym-footer`.

Pricing recipe: label, centered `.ym-h2` and lead on a canvas section, a `.ym-toggle`, then `.ym-pricing` with three `.ym-plan`s, the middle one `--featured` with a `.ym-tag`. A tinted section with the FAQ next to a small board that restates the deal as notes.

Article recipe: in a `.ym-column`, a chip, `.ym-h2`, lead and `.ym-byline`. Then `.ym-article` with Unbounded 600 subheads, one board as a `<figure>` with a mono caption, one butter blockquote, and related posts as `a.ym-node`s.

Sign-up recipe: two columns. Left: label, heading, lead and a small board showing the steps. Right: a white `.ym-card` holding the `.ym-form` with mono labels, choice chips and a full-width mint button.

## Don'ts

- Don't add drop shadows or glows. Don't round anything past 6px or make pill buttons.
- Don't use mint on more than one button per screen, or teal on more than one node per board.
- Don't color text with pastels, or set body copy in Unbounded or Space Mono.
- Don't use straight connector lines or arrows. Strings are soft curves.
- Don't use photos. Draw pins as simple flat SVGs in the palette with ink outlines.
- Don't line nodes up in a strict grid on desktop. A little tilt in placement is the point.
