# Paint Swash

Fresh, friendly and tidy, with a little bit of mess on purpose. A clean white page, bold tight Figtree headlines in near-black and one clear blue button. Behind the product, big pastel brush swashes (blush, sage, sky and butter) look as if someone dragged a dry brush across the screen: streaky texture, rough edges, slightly tilted. The product sits in a soft app window with a gray sidebar holding a nested tree of folders with colored dots and counts, and the selected row is filled coral. Small handwritten notes with drawn arrows point at things, like margin scribbles. Swashes and scribbles are the only loose things; everything on top of them is neat.

Use it for: consumer apps that organize a hobby or a collection, note and bookmark tools, nature and outdoor apps, clubs, libraries, journaling, small productivity tools, anything that should feel friendly and calm but still well built. Avoid it for: banks and insurance, dark or moody brands, luxury, developer infrastructure, anything that must look strictly corporate or serious.

## 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 Paint Swash 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 Wrenbook, a fictional field notebook app for birdwatchers, built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Figtree 800 | Hero, section headings, prices, stat numbers. Tight tracking (-0.03em), line height 1.08. |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, forms, app window text. |
| Notes | Caveat 700 | Only the short coral `.ps-scribble` notes with a drawn arrow. One or two per page, never a heading. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ps-page` | #FFFFFF | The page, cards, app windows |
| `--ps-chrome` | #F5F6F8 | App sidebars, toolbars, table heads, one gray band per page |
| `--ps-line` | #E3E6EB | Every border and divider |
| `--ps-ink` | #15181E | Headlines and body text |
| `--ps-soft` | #5C6370 | Secondary text, card body, captions |
| `--ps-blue` | #1F6FD1 | The one solid button, links, text buttons, check marks |
| `--ps-coral` | #EC5A3F | The selected tree row, New pills, scribbles |
| `--ps-blush` | #F6D3CD | Paint: brush swashes and painted underlines |
| `--ps-sage` | #D3E2D4 | Paint |
| `--ps-sky` | #D4E4F3 | Paint |
| `--ps-butter` | #F7E7B9 | Paint, used once at most (behind a quote) |

Rules:
- Blue is for things you click. Coral is for things that are selected or new. They never swap.
- The pastels are paint only: swashes, painted underlines, icon tiles and drawn illustrations. Never use them for text or buttons.
- Two or three swashes per screen at most, and they always sit behind something (the app window, a headline, a form), never alone in empty space.
- The tree dots (`--ps-dot-1` to `--ps-dot-4`) are the only saturated colors besides blue and coral, and they live only inside app windows.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ps-text-hero` | clamp(38px, 5.4vw, 64px) | Hero headline, Figtree 800, one word with a `.ps-daub` underline |
| `--ps-text-h2` | clamp(28px, 3.4vw, 40px) | Section headings |
| `--ps-text-h3` | 20px | Card and form headings, Figtree 700 |
| `--ps-text-lead` | clamp(18px, 1.6vw, 22px) | The sentence under a headline, max 600px |
| `--ps-text-body` | 16px | Body; articles use 18px |
| `--ps-text-hand` | 24px | Caveat scribbles |

Headlines are short plain promises in sentence case. Paint one word with `.ps-daub` ("filed where you'll *find it*"). A centered section heading can carry a small inline icon or a pair of gray braces around one word ("Made for walkers, kept for {listers}").

## Shape and space

- Radius: 6px on buttons, inputs and tree rows; 10px on app windows and cards; 16px on plans and the form card; pills fully round.
- Borders: 1px `--ps-line` on cards, windows, tables and inputs. The chosen plan gets a 2px blue border.
- Shadows: `--ps-shadow-sm` on cards; `--ps-shadow-window` (big and soft) only on app windows and the form card.
- Swashes: blob shapes with streaky repeating gradients, roughened by the inline SVG filter `#ps-rough` (big swashes) or `#ps-rough-sm` (underlines). Paste the filter block from tokens.css near the top of `<body>` on every page.
- Sections: 72px to 112px vertical padding. Container 1080px, text 700px. The hero app window bleeds off the right edge on wide screens.
- Motion: color changes on hover, 0.18s. No parallax, no looping animation, swashes never move.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ps` | Put on `<body>`: page color, fonts, box sizing |
| `.ps-paint` | Wrap the whole page in it: makes swashes stack behind content and clips them at the edges |
| `.ps-swash` with `--sage`, `--sky`, `--butter`, `--sm`, `--lg`, `--stroke` | The signature brush swash. Absolutely positioned; set `left/top/right/bottom` and `--turn` in your layout CSS |
| `.ps-daub`, `--sage`, `--sky` | A painted underline behind one headline word |
| `.ps-scribble`, `--ink` | Coral Caveat note with an inline SVG arrow |
| `.ps-container`, `.ps-narrow`, `.ps-section`, `--chrome`, `--tight`, `.ps-center` | Layout wrappers and section rhythm |
| `.ps-nav`, `.ps-logo`, `__mark`, `__sup`, `.ps-nav__links`, `.ps-nav__end`, `.ps-nav__login` | Top nav with centered links and a plain Log in with a person icon |
| `.ps-hero-title`, `.ps-h2`, `.ps-h3`, `.ps-lead`, `.ps-soft`, `.ps-note`, `.ps-inline-icon`, `.ps-brace` | Type |
| `.ps-pill`, `--blue`, `--sm` | Coral "New" pill; blue for categories and tags |
| `.ps-btn` with `--primary`, `--text`, `--outline`, `--sm`, `--lg`, `--block`; `.ps-actions` | Solid blue button, blue text button, white outlined button |
| `.ps-hero`, `__copy`, `__art` | Two-column hero; the art column bleeds right |
| `.ps-window`, `--single`, `__side`, `__brand`, `__plus`, `__main`, `__bar`, `__search`, `__body`, `__foot` | The app window product shot |
| `.ps-tree`, `__group`, `__row`, `__row--on`, `__caret`, `__dot`, `__name`, `__count`; `.ps-depth-1..3`, `.ps-swatch-1..4` | Nested sidebar tree with colored dots, counts and a coral selected row |
| `.ps-tiles`, `.ps-tile`, `__art`, `__cap`; `.ps-h-90` to `.ps-h-150` | Masonry of drawn image tiles with captions |
| `.ps-card`, `.ps-icon`, `--blush`, `--sage`, `.ps-grid`, `--2`, `.ps-split`, `.ps-checks` | Cards with pastel icon tiles, grids, split rows, blue check list |
| `.ps-stats`, `.ps-stat__num`, `.ps-stat__label` | Big number row |
| `.ps-quote`, `__by`, `.ps-avatar`, `--blush`, `--sky` | Quote with initials avatar |
| `.ps-cta` | White closing block framed by small swashes |
| `.ps-toggle`, `.ps-plans`, `.ps-plan`, `--on`, `__tag`, `__name`, `__desc`, `__price`, `__per` | Pricing |
| `.ps-table-wrap`, `.ps-table`, `.ps-yes`, `.ps-no`, `.ps-faq` | Comparison table and FAQ |
| `.ps-article`, `.ps-meta`, `.ps-callout`, `.ps-figure`, `.ps-tags` | Blog post parts |
| `.ps-form-card`, `.ps-form`, `.ps-field`, `.ps-label`, `.ps-input`, `.ps-select`, `.ps-hint`, `.ps-check`, `.ps-divider`, `.ps-row-2` | Forms with a blue focus ring |
| `.ps-footer`, `__grid`, `__base` | Footer |
| `.ps-f-*`, `.ps-s-*` | Fill and stroke classes for inline SVG drawings, all from tokens |

## Pages in this kit

- `demo.html`: landing page. Coral New pill, a bold hero with a painted word, blue Sign up plus a text button, and an app window (sidebar tree with a coral selected row, masonry of drawn tiles) on blush and sage swashes with a scribble. Then a centered heading with an inline icon and braces, three cards, a gray split section with a list window on a sky swash, a stat row, a quote on a butter swash and a white closing block.
- `pricing.html`: centered headline on two swashes, a monthly and yearly toggle with a scribble, three plans (middle one in blue), a comparison table and an FAQ.
- `blog.html`: a 700px article with a blue category pill, painted headline word, byline, an app window figure with a drawn waveform, a pull quote on a butter swash, a sky callout and tags.
- `signup.html`: a promise with three numbered steps beside a white form card sitting on sky and blush swashes.

## Page recipe

1. `.ps-paint` wrapper, the SVG filter block, then `.ps-nav`.
2. Hero: `.ps-pill`, a `.ps-hero-title` with one `.ps-daub` word, a lead, a primary and a text button.
3. The product in a `.ps-window` with a `.ps-tree` and real-looking content, on two overlapping swashes, plus one `.ps-scribble`.
4. A centered heading and three `.ps-card`s.
5. One `.ps-section--chrome` band with a split and a smaller window on a swash.
6. A quote or stats, a `.ps-cta`, the footer.

Pricing recipe: centered headline on swashes, toggle with a scribble, three plans (middle `--on` with a coral tag), table in a chrome band, FAQ.

Article recipe: 700px column, blue pill, headline with one painted word, lead, byline. Use a `.ps-window` figure with a drawn SVG for any picture, one quote on a butter swash and one sky callout.

Sign-up recipe: two columns. Left, a pill, a painted headline and numbered steps; right, a `.ps-form-card` on two swashes with one full-width blue button.

## Don'ts

- Don't paint text or buttons in the pastels, and don't use more than three swashes in one view.
- Don't let swashes move, animate or sit alone in empty space.
- Don't use dark sections or gradients across the page; the page stays white with one gray band.
- Don't use Caveat for anything longer than a few words.
- Don't use photos of people; draw the content with inline SVG in the pastel fills.
- Don't use em dashes in copy.
