Mockup: type + spacing scale #911

Open
opened 2026-11-04 07:58:36 +00:00 by kayg · 4 comments
Owner

kayg 11-04: headings/body too small and cramped; pane titles unequal (sidebar < middle pane; group labels as big as the sidebar title). Audit, one scale, applied through tokens in all mockup apps. Branch mock/type-audit → review/calendar-2. Audit, tokens and before/after shots follow in comments.

kayg 11-04: headings/body too small and cramped; pane titles unequal (sidebar < middle pane; group labels as big as the sidebar title). Audit, one scale, applied through tokens in all mockup apps. Branch `mock/type-audit` → `review/calendar-2`. Audit, tokens and before/after shots follow in comments.
Author
Owner

Audit (computed styles via Playwright, light theme; desktop 1440, phone 402)

Before: 14 distinct body/label sizes in use (11 to 17 in half steps), 5 different pane-title sizes, 7 weights for bold text. 60% of sizes were one-off calc(N * var(--type-px)). After: every UI size is a --fs-* token (note text in the editor keeps its own scale).

Role Where Before After
Pane title, sidebar Settings, Notes, Calendar, Mail, AI, Automations 15 / 650 (rounded face) 22 / 650, same face as the pane title
Pane title, list Notes, Mail, Automations, Calendar 17 / 650 22 / 650
Pane title, detail Settings (AI, Devices) 23; Tasks, Contacts 22/700; Calendar 19 19 to 23, 650/700 22 / 650
Hero title (an item) Contact name 28, Mail subject 24, Automation 30 24 to 30 28 / 650
Phone large title Settings, lists 28 and 34 mixed 34
Section heading Settings "Mic button", "Memory", list day groups 13 / 600 grey; list groups 21 17 / 650, ink (24 above, 8 below)
Sidebar group label Settings "You", "Look & feel"; Notes "Collections"; Mail "Categories" 15 / 650 ink (bigger than the title row) 13 / 650, quiet ink-3 (24 above, 4 below), as Tasks and Contacts already had
Row title sidebar rows 13.5 to 14.5, list rows 14 to 16 13.5 to 16 14 (ui)
Body Settings notes and descriptions 13 grey 15 / 1.5, ink-2
Row subtitle / hint Settings hints, device rows 12.5 / 400 13 / 1.5, ink-3 (gap to its title 4, was 3)
Caption counts, times, chips 10 to 12.5 11 / 12
Spacing Settings group padding and gap 22 / 10 24 / 12, heading to body 8
## Audit (computed styles via Playwright, light theme; desktop 1440, phone 402) Before: 14 distinct body/label sizes in use (11 to 17 in half steps), 5 different pane-title sizes, 7 weights for bold text. 60% of sizes were one-off `calc(N * var(--type-px))`. After: every UI size is a `--fs-*` token (note text in the editor keeps its own scale). | Role | Where | Before | After | |---|---|---|---| | Pane title, sidebar | Settings, Notes, Calendar, Mail, AI, Automations | 15 / 650 (rounded face) | **22 / 650**, same face as the pane title | | Pane title, list | Notes, Mail, Automations, Calendar | 17 / 650 | **22 / 650** | | Pane title, detail | Settings (AI, Devices) 23; Tasks, Contacts 22/700; Calendar 19 | 19 to 23, 650/700 | **22 / 650** | | Hero title (an item) | Contact name 28, Mail subject 24, Automation 30 | 24 to 30 | **28 / 650** | | Phone large title | Settings, lists | 28 and 34 mixed | **34** | | Section heading | Settings "Mic button", "Memory", list day groups | 13 / 600 grey; list groups 21 | **17 / 650, ink** (24 above, 8 below) | | Sidebar group label | Settings "You", "Look & feel"; Notes "Collections"; Mail "Categories" | 15 / 650 ink (bigger than the title row) | **13 / 650, quiet ink-3** (24 above, 4 below), as Tasks and Contacts already had | | Row title | sidebar rows 13.5 to 14.5, list rows 14 to 16 | 13.5 to 16 | **14** (ui) | | Body | Settings notes and descriptions | 13 grey | **15 / 1.5, ink-2** | | Row subtitle / hint | Settings hints, device rows | 12.5 / 400 | **13 / 1.5, ink-3** (gap to its title 4, was 3) | | Caption | counts, times, chips | 10 to 12.5 | **11 / 12** | | Spacing | Settings group padding and gap | 22 / 10 | **24 / 12**, heading to body 8 |
Author
Owner

Tokens (apps/mockup/src/styles/type.css)

Token Value Role
--fs-micro 11 tiny labels (calendar gutters)
--fs-caption 12 counts, times
--fs-small 13 subtitle, hint, group label
--fs-ui 14 row title, buttons
--fs-body 15 reading text, descriptions
--fs-heading 17 section heading
--fs-title 22 pane title (sidebar = list = detail)
--fs-hero 28 an item's own title
--fs-large 34 phone large title
--fw-body / row / group / heading / title 440 / 560 / 650 / 650 / 650 weights
--lh-title / ui / body 1.2 / 1.4 / 1.5 line heights
--sp-1 … --sp-6 4 / 8 / 12 / 16 / 24 / 32 spacing; a heading has --sp-5 above, --sp-2 below

The older --text-ui/label/section follow the scale. Fonts unchanged (Google Sans Flex, Maple Mono).

Not changed: editor/blocks/tables note text (own scale), packages/ui shared CSS (product), and row-level bold weights (560 to 700 still vary across rows; a follow-up).
Checked in the after shots: icons and text in sidebar and list rows stay vertically centred; no indents added to buttons.

## Tokens (`apps/mockup/src/styles/type.css`) | Token | Value | Role | |---|---|---| | `--fs-micro` | 11 | tiny labels (calendar gutters) | | `--fs-caption` | 12 | counts, times | | `--fs-small` | 13 | subtitle, hint, group label | | `--fs-ui` | 14 | row title, buttons | | `--fs-body` | 15 | reading text, descriptions | | `--fs-heading` | 17 | section heading | | `--fs-title` | 22 | pane title (sidebar = list = detail) | | `--fs-hero` | 28 | an item's own title | | `--fs-large` | 34 | phone large title | | `--fw-body / row / group / heading / title` | 440 / 560 / 650 / 650 / 650 | weights | | `--lh-title / ui / body` | 1.2 / 1.4 / 1.5 | line heights | | `--sp-1 … --sp-6` | 4 / 8 / 12 / 16 / 24 / 32 | spacing; a heading has `--sp-5` above, `--sp-2` below | The older `--text-ui/label/section` follow the scale. Fonts unchanged (Google Sans Flex, Maple Mono). Not changed: editor/blocks/tables note text (own scale), `packages/ui` shared CSS (product), and row-level bold weights (560 to 700 still vary across rows; a follow-up). Checked in the after shots: icons and text in sidebar and list rows stay vertically centred; no indents added to buttons.
Author
Owner

Before / after, 1440

Settings › AI

before after

Settings › Devices

before after

Notes 3-pane

before after

Mail

before after

Tasks

before after

Contacts

before after
## Before / after, 1440 **Settings › AI** | before | after | |---|---| | ![](https://git.kayg.org/attachments/4951dee8-ecec-4735-907b-c7aa93a9a341) | ![](https://git.kayg.org/attachments/6485c616-ebaf-4322-b44a-ff82e0d1bb84) | **Settings › Devices** | before | after | |---|---| | ![](https://git.kayg.org/attachments/50d64a90-e867-45ac-9e06-056b58b0bda8) | ![](https://git.kayg.org/attachments/fea1e88f-e899-4186-8060-382ab85adbce) | **Notes 3-pane** | before | after | |---|---| | ![](https://git.kayg.org/attachments/82c71729-4c9c-4048-9d8e-59caf8eb1cc2) | ![](https://git.kayg.org/attachments/a461ac4d-0b1f-45ff-a508-a9c16c4567d6) | **Mail** | before | after | |---|---| | ![](https://git.kayg.org/attachments/edd2f2b7-0b39-44a3-861c-f764a6c82b4f) | ![](https://git.kayg.org/attachments/995153ad-ef98-452f-b5ff-fe36d1cf0853) | **Tasks** | before | after | |---|---| | ![](https://git.kayg.org/attachments/c2ae8522-3dec-43c5-aa23-cd71ebca98b9) | ![](https://git.kayg.org/attachments/d2cc6359-4a6b-473e-b28e-040f1ebcb8e7) | **Contacts** | before | after | |---|---| | ![](https://git.kayg.org/attachments/b8d8da62-586d-4964-b3d5-50affc8b80e8) | ![](https://git.kayg.org/attachments/ce8a0780-09f2-46ed-884c-9f8d66949f07) |
Author
Owner

Before / after, 402

Settings › AI

before after

Settings › Devices

before after

Notes 3-pane

before after

Mail

before after

Tasks

before after

Contacts

before after
## Before / after, 402 **Settings › AI** | before | after | |---|---| | ![](https://git.kayg.org/attachments/dce6fe4a-1e26-444c-b0d5-a79c51483209) | ![](https://git.kayg.org/attachments/2ff34e54-8775-4d01-b7fc-e4b0a56b57bc) | **Settings › Devices** | before | after | |---|---| | ![](https://git.kayg.org/attachments/55812aed-37bb-4346-a8e4-ab26cbf8bede) | ![](https://git.kayg.org/attachments/4c530adf-cd1d-4e7f-aac7-397e2ea31f0d) | **Notes 3-pane** | before | after | |---|---| | ![](https://git.kayg.org/attachments/fe15a560-3bce-4c89-bd0c-a49081e95df1) | ![](https://git.kayg.org/attachments/ca2511d7-3aaa-428a-8f46-3cc5901ac0a5) | **Mail** | before | after | |---|---| | ![](https://git.kayg.org/attachments/1c9ee5f4-871f-4500-be15-f45a2637b70d) | ![](https://git.kayg.org/attachments/d79aa983-df96-48b8-8785-37dbb134e794) | **Tasks** | before | after | |---|---| | ![](https://git.kayg.org/attachments/b9e7cece-3ce0-414e-a0e3-3d88217329d2) | ![](https://git.kayg.org/attachments/c8b39498-b240-4ae6-8e33-1c26d94aca3f) | **Contacts** | before | after | |---|---| | ![](https://git.kayg.org/attachments/e3215c75-897d-474c-bfbc-3fd9a65b06c9) | ![](https://git.kayg.org/attachments/84315a66-11e9-423c-ab27-723ba79388b7) |
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#911
No description provided.