# Tag Shelf

A raw, busy marketplace shell that puts the catalogue first. White pages, a pale grey directory sidebar down the left, one slate spotlight band for the featured item, and then a dense shelf of cover cards. Every card has a drawn cover, a dark mono price tag and a line of coral hashtags. Headings are heavy Archivo, everything else is plain Work Sans. Corners are nearly square, lines are 1px, and buttons sit on a small pressed lip instead of a soft shadow. It feels like a community-run shop: honest, functional and a little scruffy, with more things on screen than a polished brand page would dare.

Use it for: marketplaces, indie shops, pattern and template stores, community directories, hobby clubs, anything with a big catalogue people browse by tag. Avoid it for: luxury brands, single-product launches, calm wellness apps, anything that needs lots of white space and a slow scroll.

## 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 Tag Shelf 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 an invented indie sewing-pattern marketplace called Patternyard.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@600;800&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headings | Archivo 800 (600 for small headings) | Hero title, section headings, plan prices, the logo. Tight tracking, never italic. |
| Body | Work Sans 400 to 600 | Paragraphs, nav, buttons, card titles, sidebar links, forms. |
| Mono | IBM Plex Mono 500 | Price tags, counts, ages ("6d"), cover labels, inline code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ts-white` | #FFFFFF | Main background, cards, panels |
| `--ts-rail` | #F2F2EF | Sidebar, table headers, quiet panels |
| `--ts-rail-2` | #E7E7E3 | Hover on rail, button lips on plain buttons |
| `--ts-line` | #D9D9D4 | Every border and divider |
| `--ts-slate` | #393B41 | Spotlight band and footer |
| `--ts-slate-2` | #2C2E33 | The frame around the spotlight cover |
| `--ts-ink` | #202125 | Text, price tags |
| `--ts-soft` | #64656B | Secondary text, eyebrows |
| `--ts-faint` | #9A9BA0 | Ages, seam lines on drawn pieces |
| `--ts-coral` | #EF5157 | The accent: Register and main buttons, hashtags, links, active tab, card hover outline |
| `--ts-coral-dark` | #D23B42 | Hover on coral |
| `--ts-coral-soft` | #FDE3E2 | Badges, picked choices |
| `--ts-mustard` | #F2C14E | Sale price tags and the tip note rule only |
| `--ts-moss` | #4F9A6A | One status badge ("Maker log") |

Cover paints (`--ts-paint-1` to `--ts-paint-5`: salmon, sea glass, lilac, butter, deep teal) only appear inside drawn covers. Never use them for text or buttons.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ts-text-hero` | 30px to 44px | One page title. It's a shop, so the hero is modest |
| `--ts-text-h2` | 22px to 28px | Section heads ("Fresh this week") |
| `--ts-text-h3` | 18px | Card and panel headings |
| `--ts-text-lead` | 17px | One line under a heading |
| `--ts-text-body` | 15px | Body |
| `--ts-text-small` | 13px | Sidebar, captions |
| `--ts-text-micro` | 11px | Uppercase eyebrows and sidebar titles |

Headings are plain names or short statements ("Open swaps", "Pick a plan, then pick our cut"). Sentence case. Hashtags are lowercase with dashes.

## Shape and space

- Borders: 1px `--ts-line` everywhere. A 4px top rule marks plans, a 4px left rule marks quotes and notes.
- Radius: 2px on covers and chips, 4px on buttons, inputs and panels. Only tags and phone sidebar chips are pills.
- Shadows: none. Buttons get `--ts-lip` (a 2px darker inset at the bottom). The spotlight cover gets `--ts-frame` (a 4px slate ring).
- Density: 16px gaps, 24px page padding, 36px between sections. The shell (top bar plus sidebar) is the layout; don't add big hero sections.
- Motion: none beyond a 1px press on buttons and a coral outline on card hover.

## Components (in components.css)

- `.ts-topbar` with `.ts-logo`, `.ts-nav`, `.ts-search` and `.ts-topbar__auth` (plain Log in, coral Register).
- `.ts-shell` = `.ts-sidebar` + `.ts-main`. The sidebar holds `.ts-sidebar__title` groups with two-column `.ts-sidebar__grid` link lists and a `.ts-sidebar__list` with `.ts-sidebar__age`. Wrap everything after the first group in `.ts-sidebar__more`: on phones it hides and the first group becomes a scrolling chip row.
- `.ts-intro`: one sentence and two coral links under the top bar.
- `.ts-spotlight`: the slate band. Framed cover left, eyebrow, title, lead, outline button and price right, `.ts-spotlight__close` in the corner.
- `.ts-cover` with a print (`--stripe`, `--check`, `--dots`, `--wave`, `--grid`, `--plaid`) and a paint (`--p2` to `--p5`), plus an optional `.ts-piece` (`--skirt`, `--sleeve`) and `.ts-cover__label`.
- `.ts-shelf` of `.ts-card`: cover, `.ts-card__row` (title + `.ts-price`), `.ts-card__tags`, `.ts-card__desc` or `.ts-card__by`.
- `.ts-price` (`--free`, `--sale`), `.ts-tag`, `.ts-badge` (`--moss`).
- `.ts-btn` with `--primary`, `--plain`, `--outline` (on slate), `--coral-outline` (the small "View all"), `--sm`, `--block`.
- `.ts-head` (heading plus small button), `.ts-tabs`, `.ts-table`, `.ts-panel` (`--rail`).
- Forms: `.ts-field`, `.ts-label`, `.ts-hint`, `.ts-input`, `.ts-select`, `.ts-textarea`, `.ts-check`, `.ts-choice`.
- Pricing: `.ts-plans`, `.ts-plan` (`--pick`), `.ts-plan__price`, `.ts-plan__list`, and the share calculator `.ts-range` + `.ts-split`.
- Article: `.ts-article`, `.ts-byline`, `.ts-avatar`, `.ts-note`, `.ts-comment`.
- `.ts-footer` with `.ts-footer__cols` and `.ts-footer__base`.

## Pages in this kit

- `demo.html`: landing. Top bar, sidebar shell, intro strip, spotlight, a ten-card shelf, a swaps table beside a seller panel, footer.
- `pricing.html`: plans for sellers, a "pick our cut" slider, a fee table and a FAQ grid.
- `blog.html`: a maker log post with a drawn figure, a note, tags, comments and a side panel with the featured pattern.
- `signup.html`: a register form in a panel with a role choice, beside a rail panel of free items.

## Page recipe

1. `.ts-topbar` first, always. Register is the only coral button in it.
2. On browse pages, `.ts-shell`: sidebar of tag groups on the left, main column on the right.
3. `.ts-intro`: say what the site is in one sentence.
4. One `.ts-spotlight` at most, for one featured item.
5. Then shelves. Each shelf gets a `.ts-head` with a small coral-outline "View all". Fill rows: 5 or 10 cards, not 7.
6. Secondary content as `.ts-table` beside a `.ts-panel--rail`.
7. `.ts-footer` in slate.

Pricing recipe: top bar, intro strip with the plain fee promise, title and tabs, `.ts-plans` (the picked plan gets `--pick` and the only coral button), then a rail panel with an interactive calculator, a fee table and a FAQ of small panels.

Article recipe: top bar, intro strip as breadcrumbs, a two-column layout with the article on the left (badge, title, byline, drawn figure, `.ts-article`, tags, comments) and a side column of rail panels with the related item and more posts.

Sign-up recipe: top bar without search, a form in a `.ts-panel` on the left with a `.ts-choice` role picker first, a rail panel on the right that shows a few free items as cards.

## Don'ts

- Don't add soft or blurry shadows, gradients on surfaces or big rounded corners.
- Don't use coral for more than one button per view; hashtags and links carry the rest of the accent.
- Don't leave the shelf with a single orphan card, and don't drop the price tag from a card.
- Don't use photos as covers in place of the drawn prints unless the real product has them; when it does, keep the 4:3 crop and 2px radius.
- Don't make the hero huge. The catalogue is the hero.
- Don't use em dashes in copy.
