# Patch Salad

Raw, nerdy and a bit playful: a tool made by people who stay up late wiring things together. Pitch black and charcoal bands, light-weight sans headlines set line by line on dark slabs, small square mint buttons, uppercase condensed card titles and a mono logo. The signature visual is a drawn node patch: dark operator boxes with little colored port ticks on their edges, wired together by curved cables on a dotted black stage. No shadows, no gradients, almost no radius. It feels open source, hands-on and honest.

Use it for: visual programming and automation tools, maker and hardware projects, creative coding communities, hobby clubs, home and garden gadgets, indie software with a gallery of user work. Avoid it for: luxury, wellness, finance, kids, anything that should feel soft, polished or corporate.

## 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 Patch Salad 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 built only with the kit. The example product is Rillwork, a patch editor for garden watering.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@500;600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Barlow 300 | Hero slabs, section headings, big numbers, prices. Always light, never bold. |
| Body | Barlow 400 to 600 | Paragraphs, nav, buttons, forms. Nav links are 500. |
| Titles | Barlow Condensed 600, uppercase | Card titles, plan names, table headers, footer headings. |
| Mono | Space Mono 400 | The logo wordmark, op box sub-labels, dates, small labels, code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ps-pit` | #070707 | Hero, patch stages, every second section, footer |
| `--ps-coal` | #1B1B1C | Default page background, nav |
| `--ps-slab` | #262627 | Headline slabs, cards, tiles, op boxes |
| `--ps-slab-2` | #303032 | Secondary buttons, hover, the featured plan |
| `--ps-ash` | #5A5A5D | The single grey callout panel per page |
| `--ps-line` | #353537 | Borders, dividers, the dot grid |
| `--ps-chalk` | #F1F1EF | Headlines and body text |
| `--ps-fog` | #A6A6A9 | Secondary text and leads |
| `--ps-mint` | #14EC88 | The accent: buttons, links, author names, the live cable |
| `--ps-port-teal` | #3CC4B2 | Port ticks and cables only |
| `--ps-port-sun` | #E3C447 | Port ticks and cables only |
| `--ps-port-rose` | #EC4F97 | Port ticks and cables only |

Rules:
- Alternate pit and coal sections. Never use a light section, except a light card screen in a gallery.
- Mint is the only chrome accent. Every primary button is mint with near-black text. Links and author names are mint.
- Teal, sun and rose live only on ports, cables, tile tabs and drawn visuals. Never on text or buttons.
- One grey `--ps-ash` callout per page, max.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ps-text-hero` | clamp(36px, 5.4vw, 64px) | Hero slabs, lowercase, two short lines |
| `--ps-text-h2` | clamp(30px, 3.6vw, 44px) | Section headings, sentence case |
| `--ps-text-h3` | 22px | Sub-headings |
| `--ps-text-title` | 19px | Uppercase condensed titles |
| `--ps-text-lead` | 18px | Leads, fog grey |
| `--ps-text-body` | 15px | Body, a little small on purpose |

Hero headlines are lowercase, short and a bit wry ("your garden, wired like a patch"). Section headings are plain sentence case ("Visual watering with Rillwork").

## Shape and space

- Radius: 3px on buttons, inputs and tiles, 6px on panels and stages, 50% only on avatars.
- No shadows at all. Depth comes from pit vs coal vs slab. The only inset lines are the mint focus bar and the featured plan outline.
- Borders: 1px `--ps-line`. The nav and footer get a 4px slab-colored rule.
- The page hugs the edges with a tight 10px gutter and a wide 1420px container.
- Sections: 64px to 104px vertical padding.
- Motion: only the dashed mint cable flows. Nothing fades, slides or bounces.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ps-nav`, `__in`, `__links`, `__end` | Thin coal bar: mono logo, caret menu links, Login and a mint Register button |
| `.ps-logo` | Mono wordmark with a small cable glyph |
| `.ps-btn--mint/slab/ghost`, `--lg`, `--block` | Small flat buttons |
| `.ps-slabs`, `.ps-slab`, `--mint`, `--inline` | The signature headline: each line on its own dark slab |
| `.ps-hero`, `__grid`, `__actions` | Pit black hero with slabs left and a patch right |
| `.ps-patch`, `__cables`, `.ps-cable--teal/sun/rose/mint` | Dotted black stage with SVG cables (use `vector-effect="non-scaling-stroke"`) |
| `.ps-op`, `__ports--in/out`, `--live`, `--main` | Operator box: name, mono sub-label, port ticks (`i.t`, `i.s`, `i.r`, `i.m`) |
| `.ps-h2`, `.ps-h3`, `.ps-title`, `.ps-lead`, `.ps-label`, `.ps-small` | Type |
| `.ps-split`, `.ps-callout` | Two column intro with the grey callout panel |
| `.ps-tiles`, `.ps-tile`, `--sun/--rose` | Slab tiles with a colored port tab on top |
| `.ps-cards`, `.ps-card__screen`, `__meta`, `__by`, `.ps-avatar`, `.ps-counts` | Gallery wall of user work: screen, avatar, uppercase title, mint author, heart count |
| `.ps-badge`, `--mint` | Small square-dot mono labels |
| `.ps-form`, `.ps-field`, `.ps-input`, `.ps-select`, `.ps-check`, `.ps-hint`, `.ps-panel` | Forms on pit inputs with a mint focus bar |
| `.ps-toggle`, `.ps-plans`, `.ps-plan`, `--featured`, `__price`, `__desc`, `__list` | Pricing |
| `.ps-table`, `.ps-scroll-x`, `.ps-faq` | Compare table and FAQ |
| `.ps-article`, `__meta`, `.ps-code`, `.ps-figure` | Blog post |
| `.ps-footer`, `.ps-strip` | Footer and the bottom notice strip |

## Pages in this kit

- `demo.html`: landing page. Slab hero with a live patch, intro split with grey callout, stats, three port tiles, gallery wall, slab CTA, footer.
- `pricing.html`: slab header with billing toggle, three plans, compare table, FAQ.
- `blog.html`: journal post with an inline slab title, a patch figure, a code block and a slab pull quote.
- `signup.html`: split page, pit side with slabs, a two-op patch and steps, coal side with the form.

## Page recipe

1. `.ps-nav` on coal.
2. `.ps-hero` on pit: two lowercase `.ps-slab` lines, a fog lead, a mint and a slab button, and a `.ps-patch` with 4 to 6 ops on the right.
3. A coal `.ps-split` section: plain h2, two short paragraphs, a small mint button, one `.ps-callout`.
4. A pit section with `.ps-tiles`.
5. A coal gallery wall: centered light h2, `.ps-cards` of user work, one mint button under it.
6. A pit CTA with centered slabs, one line in `.ps-slab--mint`.
7. `.ps-footer`.

Pricing recipe: slab header and `.ps-toggle` on pit, three `.ps-plan` (middle one `--featured` with a mint badge), then a compare table on coal and FAQ on pit.

Article recipe: badge, an inline slab title, author avatar with mono date, 720px body at 17px, at least one patch figure with a mono caption, a pull quote on inline slabs, a `.ps-code` block.

Sign-up recipe: two columns. Pit side tells the story with slabs and a tiny patch; coal side holds the form on pit inputs with one full-width mint button.

## Don'ts

- Don't round things. No pills, no soft cards.
- Don't add shadows, glows or gradients.
- Don't make headlines bold. Light weight on dark slabs is the look.
- Don't use port colors for text, buttons or links.
- Don't let the patch get busy: 6 ops max, cables never cross more than once.
- Don't center long text; only the gallery wall title, CTA and callout are centered.
