# Tool Tray

A precise, tool-like light style for products people build things with. A plain white page, tight grotesk headlines in near black, one electric blue for every action and selection, and a monospace voice for commands, labels and numbers. The signature is the canvas: a framed drawing surface on a faint dot grid, with small floating palettes (a grid of round color swatches, a bottom toolbar of icon buttons) and a blue selection box with square corner handles around whatever is in focus. Next to it sits a dark code panel with a tab strip. Small radii, hairline borders and crisp layered shadows make every panel feel like part of an app.

Use it for: creative and drawing tools, planners and builders, developer SDKs, diagram and whiteboard apps, maps and floor plans, design and architecture software, education tools with a hands-on demo, any product whose best pitch is "here, try the tool". Avoid it for: luxury and fashion, food and hospitality that sells mood, editorial magazines, kids' brands that need big rounded shapes, anything where a quiet tool palette would feel cold.

## 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 Tool Tray 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, for a made-up garden planning app called Plotbook.

## Fonts

All free on Google Fonts:

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

| Role | Font | Weight | Use |
|---|---|---|---|
| Headlines and UI | Geist | 400 to 700 | Hero and section titles (700, tight tracking), card titles (600), body, nav, buttons, forms |
| Mono | Geist Mono | 400 to 500 | Eyebrows, the code panel, command buttons (`tt-btn--ink`), stats labels, meta lines, figure captions, table headers, keyboard keys |

Headlines are always bold with negative tracking (-0.035em). Never set a headline in mono, and never set body copy in mono.

## Color

| Token | Hex | Use |
|---|---|---|
| `--tt-paper` | #FFFFFF | The page, cards, palettes |
| `--tt-canvas` | #F6F6F8 | Quiet sections, table heads, the signup side, behind dot grids |
| `--tt-tint` | #EEF3FE | Icon tiles, the blue badge, callouts |
| `--tt-ink` | #16171B | Text, drawn outlines, the logo mark, the command button |
| `--tt-soft` | #5D606A | Secondary text, leads, meta |
| `--tt-faint` | #9A9DA6 | Placeholders, logo strip, footer headings |
| `--tt-line`, `--tt-line-strong` | #E4E5EA, #CBCDD4 | Hairlines, field borders, dot grid |
| `--tt-blue` | #2563EB | The only action color: primary buttons, links, the canvas frame, selection boxes, focus rings, the pressed tool |
| `--tt-code-bg` | #18191D | The code panel |

The `--tt-swatch-*` tokens (violet, pink, orange, green, red, sky, sun, mint, rose) are for drawn shapes, the swatch grid, avatars and code syntax only. Never use them for buttons, links or text. Blue appears on every screen, but only on things you can click or things that are selected.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `tt-hero-title` | clamp(36px, 4.6vw, 60px) | Geist 700, line-height 1.04, tracking -0.035em, max 15ch, left aligned on landings |
| `tt-h2` | clamp(28px, 3vw, 40px) | Geist 700, tracking -0.035em |
| `tt-h3` | 19px | Geist 600, tracking -0.02em |
| `tt-lead` | clamp(16px, 1.3vw, 18px) | `--tt-soft`, max 560px; `<strong>` inside turns ink |
| `tt-eyebrow` | 11px | Geist Mono 500, uppercase, tracking 0.08em, blue |
| Body | 15px | Geist 400, line-height 1.6 |
| `tt-prose` | 17px | Line-height 1.75 for articles |
| `tt-small` | 13px | Hints and captions |

## Shape and space

- Radii are small: 4px for keys and swatch tiles, 6px for tool buttons, 8px for buttons, fields and palettes, 12px for cards, the canvas and the code panel. Only badges, swatches and avatars are fully round.
- Borders are 1px hairlines in `--tt-line`. The canvas frame is the one heavy border: 3px of blue (`--tt-frame`). Use `tt-canvas--quiet` for a hairline frame inside articles.
- Shadows are crisp and layered (a 1px ring plus a soft drop): `--tt-shadow-card` at rest, `--tt-shadow-lift` on hover, `--tt-shadow-palette` for floating tool palettes. No colored glows.
- Dot grids (`--tt-dot-grid` at 18px) mark anything that is a work surface: the canvas, card art, the CTA band, the signup side.
- Content is left aligned on landings and centered only on pricing heads and the CTA. Sections are 64 to 112px tall in padding. Container is 1120px; text columns are 680px.

## Components (in components.css)

- **Nav** `tt-nav` (sticky, add `--line` for a bottom hairline): `tt-logo` with a square `tt-logo__mark`, `tt-nav__links` (hidden under 860px), and `tt-nav__end` with a plain link and one primary button. Mark the current page with `aria-current`.
- **Buttons** `tt-btn` plus `--primary` (blue), `--ink` (dark, mono text, for a command like `plotbook new my-garden`), `--ghost` (white with a ring shadow), `--lg`, `--block`. Always one line.
- **Links** `tt-link` (blue) and `tt-link--plain` (soft grey).
- **Badge** `tt-badge` (grey pill), `--blue`, with an optional `tt-badge__dot`.
- **Hero** `tt-hero`: badge, title, lead, actions, then `tt-hero__stage` (code panel left, canvas right; stacks under 860px).
- **Code panel** `tt-code` with `tt-code__tabs` and a `<pre>`. Syntax spans: `.k` keyword, `.s` string, `.f` field, `.c` comment.
- **Canvas** `tt-canvas`: a dot-grid surface with `tt-canvas__art` holding a `tt-canvas__board` (set `--tt-ratio` to the SVG viewBox ratio so the drawing and its overlays scale together), an inline SVG drawing and a `tt-select` box with four `<i>` handles, placed in percent in the page's own `<style>`, and floating palettes: `tt-palette--styles` (a `tt-swatches` grid of `tt-swatch` buttons using `--sw`, then `tt-sizes`) and `tt-palette--tools` (a row of `tt-tool` icon buttons, one with `aria-pressed="true"`). Under 520px the style palette and `tt-tool--extra` buttons hide.
- **Logo strip** `tt-logos`: grey wordmarks between hairlines.
- **Section head** `tt-head`: eyebrow, `tt-h2`, lead.
- **Cards** `tt-card`, with `tt-card__icon` or a dot-grid `tt-card__art` drawing on top.
- **Steps** `tt-steps`: numbered rows with mono counters (01, 02, 03).
- **Stats** `tt-stats` of `tt-stat`: a grid split by 1px lines.
- **Quote** `tt-quote` and `tt-person` with a round `tt-avatar` (`--av` sets its color).
- **Pricing** `tt-toggle`, `tt-plans`, `tt-plan` (`--featured` gets a 3px blue ring), `tt-plan__price`, `tt-checks`, `tt-table` in `tt-table-wrap`, `tt-faq`.
- **Article** `tt-article-head`, `tt-meta` (mono), `tt-prose` (with inline `code`, blue-ruled blockquotes), `tt-figure` with a quiet canvas, `tt-callout`, `tt-kbd`.
- **Forms** `tt-form`, `tt-field`, `tt-label`, `tt-input`, `tt-hint`, `tt-row`, `tt-choices` of `tt-choice` (radio cards), `tt-check`, `tt-divider`, and the two-column `tt-auth` layout with a dot-grid `tt-auth__side`.
- **CTA** `tt-cta`: a dot-grid band with a centered title and two buttons.
- **Footer** `tt-footer` with a 4-column `tt-footer__grid` and a mono `tt-footer__base`.

## Pages in this kit

- `demo.html`: landing page with the code panel and canvas hero, logo strip, three drawn feature cards, steps with stats, a quote and a CTA.
- `pricing.html`: centered head with a yearly or monthly toggle, three plans (the middle one featured), a comparison table and an FAQ.
- `blog.html`: an article with mono meta, a canvas figure with a caption, a blockquote, a callout with keyboard keys and three related cards.
- `signup.html`: a two-column sign-up with a magic link button, fields, radio cards and a canvas preview beside the form.

## Page recipe

1. `tt-nav`, then a hero that shows the tool working: a canvas with a selection box and palettes, or a code panel next to a canvas.
2. A logo strip between hairlines.
3. Three `tt-card`s with drawn `tt-card__art`, each showing one action on the canvas.
4. A `tt-section--canvas` with steps on one side and stats on the other.
5. One quote, then a `tt-cta` band, then `tt-footer`.

**Pricing recipe:** centered eyebrow, title and lead, a `tt-toggle`, then three `tt-plan`s with the middle one `--featured`. Follow with a `tt-table` in a canvas section and a `tt-faq`.

**Article recipe:** `tt-article-head` in `tt-narrow` with a back link, a badge, the title, a lead and `tt-meta`. Body in `tt-prose`. Use a `tt-figure` with a quiet canvas for diagrams, and `tt-kbd` for shortcuts. End with three related `tt-card`s.

**Sign-up recipe:** `tt-auth` with the form on the left (eyebrow step count, `tt-h2`, a ghost button, `tt-divider`, fields, `tt-choices`, one blue block button) and a dot-grid side with a small canvas and a quote.

## Don'ts

- Don't add a second accent color. Swatch colors are for drawings, never for buttons or text.
- Don't round things more than 12px or use pill buttons.
- Don't use soft blurry glows, gradients or dark mode sections apart from the code panel.
- Don't set headlines in a light weight or with loose tracking.
- Don't draw photographs or realistic art on the canvas: shapes, outlines and flat circles only.
- Don't put more than one blue framed canvas on a screen.
- No em dashes in copy.
