# Fernbook design system (the short version)

What exists today. Problem 3 has to be built from this, not around it.

## Colour

| Token | Value | Use |
|---|---|---|
| `--fb-bg` | `#FAFAF7` | Page |
| `--fb-surface` | `#FFFFFF` | Cards, sheets, table rows |
| `--fb-line` | `#E4E2DA` | Borders, dividers |
| `--fb-text` | `#1C2B24` | Body |
| `--fb-text-quiet` | `#5F6B64` | Secondary text |
| `--fb-accent` | `#1F7A4D` | One accent. Primary buttons, links, selected day |
| `--fb-warn` | `#B4540A` | Unconfirmed, unpaid, overdue |
| `--fb-ok` | `#1F7A4D` | Confirmed, paid (same green as the accent) |

No gradients. No second accent. Status is colour plus a word, never colour alone.

## Type

- One family: the system sans.
- Sizes: 13 (meta), 15 (body), 18 (row title), 24 (page title). Nothing else.
- Weights: 400 and 600.

## Space and shape

- 4px grid. Gaps are 8, 12, 16, 24.
- Radius: 8 on controls, 12 on cards.
- Rows are 56px tall. Touch targets are at least 44px.

## Components that exist

- **Button**: primary (filled accent), secondary (outline), quiet (text).
  One primary per view.
- **Row**: time, title, meta line, one status, one action. The day view is a list of these.
- **Status chip**: a word in a quiet pill. Confirmed, Not confirmed, Paid, Unpaid.
- **Sheet**: slides up from the bottom for a single task (book, move, take payment).
- **Day strip**: seven days across the top, today selected.
- **Empty state**: one line saying what goes here, one action.
- **Toast**: confirms an action, offers Undo for 6 seconds.

## Rules the team wrote down

1. The day view is home for front desk. Everything they do starts from a row.
2. A screen answers one question.
3. No number without the action it leads to.
4. New features reuse Row, Sheet and Status chip before anything new is drawn.
