Patterns
Mock UI templates
The mock UI is drawn by the factory and must look like the same family as the product around it. These are the rules the factory UI already follows, measured on its own screens, and the rules every template obeys.
Download as Markdown
Source: design/mock-templates.md in the turbo-12f repository.
Type
Measured on the factory's own screens. Tokens come from tokens.css.
| Role | Size / weight | Where the factory does it |
|---|---|---|
| Page title | 36px / 600 / −0.03em / line 1.1 | All projects, Board, Settings headers |
| Display (hero, timer) | 56 to 64px / 600 / −0.03em / line 1.05 | text-56 and text-64, the marketing site |
| Section heading | 16px / 600, count muted beside it | Needs you 15, In progress 1, Finished 4 |
| Row title | 16px / 500 | Project and conversation rows on All projects |
| Description, meta, breadcrumb | 14px / 400 / muted-foreground | The description under a header; the project name above Board |
| Group label | 12px / 500 / muted | Not in a team, in the project list |
- Geist Sans everywhere
- Geist Mono only for numbers people compare ($1,120 / $1,500, 08:30, #11 on a board card), with tabular-nums. Never a serif in the turbo-12f designs; the Project colours design keeps the project's own type.
- Sentence case
- Never ALL-CAPS labels (Needs you, not NEEDS YOU). No letter-spaced eyebrows.
- Hierarchy order
- Size, then weight, then shade. A comment's author is 500 white; what it says is 14px muted.
- Short labels wrap
- They are never cut with an ellipsis. The factory truncates only identifiers in the sidebar; a quadrant name or a chip does not get "Important & Urge…".
Space and shape
- Spacing scale
- .25 / .5 / .75 / 1 / 1.5 / 2 / 3 / 4.5rem (--s1 to --s8). Rows are 1rem above and below the text; page header to content 1.5rem; section to section 2.5rem; page gutter clamp(1rem, 4vw, 2.5rem).
- One radius
- --radius: .625rem, and one small step (.375rem) for things inside a control. Round controls only where the factory does: avatars, switches.
- Centred or full width
- Never a narrow left column. A reading column is 42rem and centred; lists and grids use the full width (Settings rows run edge to edge of the content area).
Borders versus shade
- Hairline for rows, box for objects
- A 1px hairline (--border) separates rows and sections; a box is for an object you can act on. All projects is one list with a hairline under each row. Settings is key and value rows. Only the board draws cards, because a ticket is a thing you drag.
- No card in a card
- If something sits inside a box, the box goes.
- Shade for state
- A muted row (Finished) is a lighter text colour on the same ground, not an outlined box. Fields and wells use the --muted fill, not a heavier border.
- Plum divider
- The dashed plum divider (.turbo-plum-divider, 2px dashed --plum-rule) goes under every app page header. The mock draws it under app page headers only; hero sections get none.
- No trim, shadows or gradients
- The factory uses a 10px plum trim only at the foot of a card; a mock page has no card to hang it on.
Building blocks
- Header
- Breadcrumb or eyebrow (14px muted), title, one muted description, actions on the right, then the divider.
- List row
- Status mark, title (500) with its muted description under it, the item's own detail on the right in plain text, hairline below.
- Action next to the information
- One primary action per screen, in the header; a row's own action is a small ghost button (Review, Start). Orchid is only the primary action, the active nav item and links.
- Status
- A mark, a word and a colour, never colour alone: a ring and a check with Done, a warning icon with "… is stuck and needs you".
- Empty states
- Say one thing and offer one button. The mock never invents empty-state copy: with no items the screen is its header and its one button.
- Grids match the data
- Columns on the board are the stages; a matrix is four quadrants; a day is a time column with each block placed at its start and as tall as it lasts.
Racing cues: only with their meanings
At most one or two per screen, each as in the factory. Do not use a cue as decoration. No cue means nothing is wrong, nothing is being waited on, nothing is finished. See racing cues.
| Cue | Means | Factory example | Mock use |
|---|---|---|---|
kerb | Needs a person now | Needs you rows, Answer 4 questions banner | Overdue or waiting item, the first quadrant of a matrix |
kerb-danger | A failed check needs action | Stuck board card | Overdue or failed item |
racing-line | Progress already driven | Stage line above the board columns | Budget and level progress bars |
track-dots | Not reached yet | Rest of the line on Progress | Days still to go on a countdown |
chequered | Finished | Finished heading, Done cards | A done row, a started countdown |
What to avoid
Each one was in an earlier mock.
- Avoid: Boxes inside boxes, heavy borders everywhere, a card per row.
- Avoid: Emoji as icons; every illustration is drawn from the item's own picture or a plain geometric plate.
- Avoid: Truncated short labels, mono-font chips, ALL-CAPS letter-spaced labels.
- Avoid: Gradient text, glow, confetti and fireworks, glass blur, drop shadows.
- Avoid: A chart on a screen whose items are not numbers; four key numbers and a "recent" list on every page.
- Avoid: A grid that does not match the data (two columns for a four-quadrant matrix) and a large empty area under short content.
- Avoid: Two primary buttons on one screen; the primary action repeated in the header and again below the list.
Related: page widths, empty states and action next to info.