feat: the app-wide paper is the mockup's grey #f7f7f7 (dark #1f1f1f), with its neutral inks and glass #1177

Closed
kayg wants to merge 0 commits from feat/paper-grey-1116 into dev
Owner

kayg 16 Nov decision: the app-wide paper is the mockup's grey #f7f7f7 (it was warm; the table header looked warm because of it).

What changed (packages/ui/src/styles/tokens.css, plus a few literals)

  • --paper: light color-mix(accent 4%, #fffdfa) -> #f7f7f7; dark #121110 -> #1f1f1f (the mockup's dark paper differed from product, so it follows the mockup).
  • Everything that was a warm twin of the paper is now the mockup's neutral set: --paper-translucent, ink, ink-2/3/4, line/hover/press, glass tints and glass inks, placeholders, shadows, scrim, tooltip, reduced-transparency glass. Values are the ones the mockup computes in real Safari (table in the evidence comment).
  • Derived tints follow on their own (--thead, --tpaper, embeds, page colours mix from var(--paper)): no code change needed. The Calternal theme tile in lib/theme-thumbs.ts already used the grey (#f7f7f7/#1f1f1f in themes.ts), so tiles now match the app. The 12 named themes keep their own palettes (they set --paper themselves).
  • theme-color and the manifest colours follow the paper (#f7f7f7 / #1f1f1f, as in the mockup).
  • Contrast stays adaptive: no static opacity added. Two places needed a nudge and are fixed: the dark accent ink stays near-black (#121212), and the dock avatar's initial mixes half page ink (the neutral dark ink left it at 4.45:1, the spec needs 4.5).
  • Specs that spelled the old paper literal (opacity.spec, glass.spec) use the new one.

Decision: I ported the mockup's whole neutral set, not only the paper token, because a grey paper under warm ink and warm glass would still read warm. Quiet ink (--ink-4) keeps a 4:1 value (#6f6f6f light, #929292 dark) rather than the mockup's lighter #7a7a7a/#8e8e8e, per the app's contrast rule.

Evidence is in the comment below. No pixel baselines exist in the repo (no toHaveScreenshot), so none were updated.

🤖 Generated with Claude Code

kayg 16 Nov decision: the app-wide paper is the mockup's grey `#f7f7f7` (it was warm; the table header looked warm because of it). **What changed** (`packages/ui/src/styles/tokens.css`, plus a few literals) - `--paper`: light `color-mix(accent 4%, #fffdfa)` -> `#f7f7f7`; dark `#121110` -> `#1f1f1f` (the mockup's dark paper differed from product, so it follows the mockup). - Everything that was a warm twin of the paper is now the mockup's neutral set: `--paper-translucent`, ink, ink-2/3/4, line/hover/press, glass tints and glass inks, placeholders, shadows, scrim, tooltip, reduced-transparency glass. Values are the ones the mockup computes in real Safari (table in the evidence comment). - Derived tints follow on their own (`--thead`, `--tpaper`, embeds, page colours mix from `var(--paper)`): no code change needed. The Calternal theme tile in `lib/theme-thumbs.ts` already used the grey (`#f7f7f7`/`#1f1f1f` in `themes.ts`), so tiles now match the app. The 12 named themes keep their own palettes (they set `--paper` themselves). - `theme-color` and the manifest colours follow the paper (`#f7f7f7` / `#1f1f1f`, as in the mockup). - Contrast stays adaptive: no static opacity added. Two places needed a nudge and are fixed: the dark accent ink stays near-black (`#121212`), and the dock avatar's initial mixes half page ink (the neutral dark ink left it at 4.45:1, the spec needs 4.5). - Specs that spelled the old paper literal (`opacity.spec`, `glass.spec`) use the new one. **Decision:** I ported the mockup's whole neutral set, not only the paper token, because a grey paper under warm ink and warm glass would still read warm. Quiet ink (`--ink-4`) keeps a 4:1 value (`#6f6f6f` light, `#929292` dark) rather than the mockup's lighter `#7a7a7a`/`#8e8e8e`, per the app's contrast rule. Evidence is in the comment below. No pixel baselines exist in the repo (no `toHaveScreenshot`), so none were updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
style: the dock avatar's initial takes half page ink (the neutral dark ink #ebebeb left it at 4.45:1; needs 4.5)
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
d5cbe4cfd9
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Evidence (head d5cbe4cfd; the PR head may be later only if this comment says so)

Computed values, real Safari on macos-01 (product vs mockup)

value (real Safari, macos-01) theme before (dev) after (this PR) mockup
paper light oklab(0.979475 0.003958 0.009022) rgb(247, 247, 247) rgb(247, 247, 247)
paper dark rgb(18, 17, 16) rgb(31, 31, 31) rgb(31, 31, 31)
ink light rgb(31, 27, 23) rgb(38, 38, 38) rgb(38, 38, 38)
ink dark rgb(244, 239, 233) rgb(235, 235, 235) rgb(235, 235, 235)
ink-2 light rgb(70, 63, 56) rgb(72, 72, 72) rgb(72, 72, 72)
ink-2 dark rgb(207, 199, 190) rgb(216, 216, 216) rgb(216, 216, 216)
ink-3 light rgb(103, 94, 85) rgb(107, 107, 107) rgb(107, 107, 107)
ink-3 dark rgb(168, 160, 150) rgb(157, 157, 157) rgb(157, 157, 157)
ink-4 light rgb(112, 104, 96) rgb(111, 111, 111) rgb(122, 122, 122)
ink-4 dark rgb(152, 146, 139) rgb(146, 146, 146) rgb(142, 142, 142)
line light rgba(31, 27, 23, 0.08) rgba(38, 38, 38, 0.08) rgba(38, 38, 38, 0.09)
line dark rgba(244, 239, 233, 0.1) rgba(235, 235, 235, 0.1) rgba(235, 235, 235, 0.1)
table header (--thead) light rgb(242, 236, 231) rgb(237, 237, 237) rgb(237, 237, 237)
table header (--thead) dark rgb(29, 28, 27) rgb(41, 41, 41) rgb(41, 41, 41)

Before = dev a66f8ac7c, same sample data. The table header is --thead (5 % ink over paper). The only deliberate gap to the mockup is --ink-4 (see the PR text: product keeps 4:1 on the paper). Glass alphas stay the product's own (0.42 / 0.5); only the tint colours changed.

Gates (dev-01, x86, server binary built from the same Rust source as this branch; CI=1 --workers=1 --retries=0, via ~/bin/lane-spec.sh)

gate result
contrast project (contrast, tasks-contrast, all 32 tests' chain: sidebar-band-chromium) pass (16 passed). First run failed dark/day .avatar "Y" 4.45 (needs 4.5): fixed in d5cbe4cfd and re-run twice, pass
chrome-contrast (--no-deps) 16 passed
prefs-chromium, prefs-webkit, look-chromium-1440/390, look-webkit-1440/390 (e2e/prefs e2e/backdrop-page) 28 passed, 6 skipped, 0 failed
chromium-1440/390, e2e/tables e2e/notes-sidebar-tree 74 passed, 6 skipped, 0 failed
chromium-1440/390, e2e/tables e2e/notes (earlier run, 5 failures that did not reproduce when run serially: runs shared one test-results dir) re-run serially: pass
webkit-1440/390, e2e/tables e2e/notes 77 passed, 9 skipped, 0 failed
chromium + webkit 1440/390, e2e/glass opacity phone-edges safe-areas link-contrast links-parity adaptive-glass phone-bars chromium 277 passed, webkit 276 passed, 0 failed
sidebar-band-webkit Settings: moving over the card timed out (300 s mouse sweep) in two runs that shared the VM with other specs; alone it passes (16 passed), and -g Settings --repeat-each=4: dev base 4 passed (9.2 min), this branch 4 passed (8.4 min). The test is near its timeout on dev too: a load flake, not this change
svelte-check 0 errors (19 existing warnings)

Commands: ~/bin/slot ~/bin/lane-spec.sh paper-1116 ~/paper1116-bin/calternal <projects> <log> "<spec paths>". No pixel baselines exist in the repo (no toHaveScreenshot / toMatchSnapshot), so no baselines changed.

Bundle gate (CSS bytes, bun run build in apps/web, all assets/*.css)

raw gzip -9 (per file, summed)
dev a66f8ac7c 327,815 77,181
this PR 327,761 (77,104 at the first commit)

Smaller by 54 bytes raw; no JS or first-paint chunk changed.

Real Safari 1440 (macos-01, Safari via safaridriver): notes list, table note, tasks, settings

Sample data. The mockup is preview.calternal.cloud/calendar-2/ (tables on tables.html#/note/gym-log). Backdrops differ (the mockup's default is a warm sunset, the product's a sky); compare the paper, the table header and the inks.

Mac Safari

product light mockup light product dark mockup dark
notes
table
tasks
settings

Before (dev), Mac Safari

light dark
notes
table

iPhone Simulator (std, own iPhone 18 Pro, iOS 27.0, deleted after), light and dark

iPhone sim

product light mockup light product dark mockup dark
notes
table
tasks
settings

Mac lock and the std sim lock were held only while shooting; Safari, safaridriver, the tunnels and the sim were removed on exit.

## Evidence (head `d5cbe4cfd`; the PR head may be later only if this comment says so) ### Computed values, real Safari on macos-01 (product vs mockup) | value (real Safari, macos-01) | theme | before (dev) | after (this PR) | mockup | |---|---|---|---|---| | paper | light | oklab(0.979475 0.003958 0.009022) | rgb(247, 247, 247) | rgb(247, 247, 247) | | paper | dark | rgb(18, 17, 16) | rgb(31, 31, 31) | rgb(31, 31, 31) | | ink | light | rgb(31, 27, 23) | rgb(38, 38, 38) | rgb(38, 38, 38) | | ink | dark | rgb(244, 239, 233) | rgb(235, 235, 235) | rgb(235, 235, 235) | | ink-2 | light | rgb(70, 63, 56) | rgb(72, 72, 72) | rgb(72, 72, 72) | | ink-2 | dark | rgb(207, 199, 190) | rgb(216, 216, 216) | rgb(216, 216, 216) | | ink-3 | light | rgb(103, 94, 85) | rgb(107, 107, 107) | rgb(107, 107, 107) | | ink-3 | dark | rgb(168, 160, 150) | rgb(157, 157, 157) | rgb(157, 157, 157) | | ink-4 | light | rgb(112, 104, 96) | rgb(111, 111, 111) | rgb(122, 122, 122) | | ink-4 | dark | rgb(152, 146, 139) | rgb(146, 146, 146) | rgb(142, 142, 142) | | line | light | rgba(31, 27, 23, 0.08) | rgba(38, 38, 38, 0.08) | rgba(38, 38, 38, 0.09) | | line | dark | rgba(244, 239, 233, 0.1) | rgba(235, 235, 235, 0.1) | rgba(235, 235, 235, 0.1) | | table header (--thead) | light | rgb(242, 236, 231) | rgb(237, 237, 237) | rgb(237, 237, 237) | | table header (--thead) | dark | rgb(29, 28, 27) | rgb(41, 41, 41) | rgb(41, 41, 41) | Before = dev `a66f8ac7c`, same sample data. The table header is `--thead` (5 % ink over paper). The only deliberate gap to the mockup is `--ink-4` (see the PR text: product keeps 4:1 on the paper). Glass alphas stay the product's own (0.42 / 0.5); only the tint colours changed. ### Gates (dev-01, x86, server binary built from the same Rust source as this branch; `CI=1 --workers=1 --retries=0`, via `~/bin/lane-spec.sh`) | gate | result | |---|---| | `contrast` project (contrast, tasks-contrast, all 32 tests' chain: `sidebar-band-chromium`) | pass (16 passed). First run failed `dark/day .avatar "Y"` 4.45 (needs 4.5): fixed in `d5cbe4cfd` and re-run twice, pass | | `chrome-contrast` (`--no-deps`) | 16 passed | | `prefs-chromium`, `prefs-webkit`, `look-chromium-1440/390`, `look-webkit-1440/390` (`e2e/prefs e2e/backdrop-page`) | 28 passed, 6 skipped, 0 failed | | chromium-1440/390, `e2e/tables e2e/notes-sidebar-tree` | 74 passed, 6 skipped, 0 failed | | chromium-1440/390, `e2e/tables e2e/notes` (earlier run, 5 failures that did not reproduce when run serially: runs shared one `test-results` dir) | re-run serially: pass | | webkit-1440/390, `e2e/tables e2e/notes` | 77 passed, 9 skipped, 0 failed | | chromium + webkit 1440/390, `e2e/glass opacity phone-edges safe-areas link-contrast links-parity adaptive-glass phone-bars` | chromium 277 passed, webkit 276 passed, 0 failed | | `sidebar-band-webkit` | `Settings: moving over the card` timed out (300 s mouse sweep) in two runs that shared the VM with other specs; alone it passes (16 passed), and `-g Settings --repeat-each=4`: dev base 4 passed (9.2 min), this branch 4 passed (8.4 min). The test is near its timeout on dev too: a load flake, not this change | | `svelte-check` | 0 errors (19 existing warnings) | Commands: `~/bin/slot ~/bin/lane-spec.sh paper-1116 ~/paper1116-bin/calternal <projects> <log> "<spec paths>"`. No pixel baselines exist in the repo (no `toHaveScreenshot` / `toMatchSnapshot`), so no baselines changed. ### Bundle gate (CSS bytes, `bun run build` in `apps/web`, all `assets/*.css`) | | raw | gzip -9 (per file, summed) | |---|---|---| | dev `a66f8ac7c` | 327,815 | 77,181 | | this PR | 327,761 | (77,104 at the first commit) | Smaller by 54 bytes raw; no JS or first-paint chunk changed. ### Real Safari 1440 (macos-01, Safari via safaridriver): notes list, table note, tasks, settings Sample data. The mockup is `preview.calternal.cloud/calendar-2/` (tables on `tables.html#/note/gym-log`). Backdrops differ (the mockup's default is a warm sunset, the product's a sky); compare the paper, the table header and the inks. #### Mac Safari | | product light | mockup light | product dark | mockup dark | |---|---|---|---|---| | notes | ![](https://git.kayg.org/attachments/f5c2eec2-ed08-47f5-8460-9389cc3193e4) | ![](https://git.kayg.org/attachments/497c1ba8-2b5d-4b54-b3c5-0fb80860078f) | ![](https://git.kayg.org/attachments/f83867fb-e2f6-474e-9f9c-e55dced01bd1) | ![](https://git.kayg.org/attachments/e6d5bd01-9075-40b9-a8d7-f436899e498e) | | table | ![](https://git.kayg.org/attachments/3f645888-873e-4866-be88-8be889967f58) | ![](https://git.kayg.org/attachments/c303cd68-f321-47ad-bb1c-a33684032fbd) | ![](https://git.kayg.org/attachments/a05a76ee-da64-4239-af44-fa9adab28587) | ![](https://git.kayg.org/attachments/7cb7f88e-785a-48a3-9a75-df219655b56d) | | tasks | ![](https://git.kayg.org/attachments/11833b02-18ef-4647-944a-e903d38a7cae) | ![](https://git.kayg.org/attachments/d608082a-7454-4f3c-8334-47da00f910ee) | ![](https://git.kayg.org/attachments/0a798d58-4695-4fc7-858a-a1b54800b724) | ![](https://git.kayg.org/attachments/68b64fe9-961c-4365-b9e7-9d00fe566f30) | | settings | ![](https://git.kayg.org/attachments/933e25c1-432c-48e4-85d0-c56bdc428f45) | ![](https://git.kayg.org/attachments/eb255b8f-666a-41e6-8eae-dd5db5f75238) | ![](https://git.kayg.org/attachments/78d52a7a-0201-4f5e-975c-0d055a73e61e) | ![](https://git.kayg.org/attachments/f4158217-368c-4a64-ba81-3fb322b91ba7) | #### Before (dev), Mac Safari | | light | dark | |---|---|---| | notes | ![](https://git.kayg.org/attachments/105269b0-2694-4a1b-954c-4ff50f5c892a) | ![](https://git.kayg.org/attachments/3991501a-e7d2-4b76-9d6a-a04b374d6b50) | | table | ![](https://git.kayg.org/attachments/442df01f-607e-419b-af30-8bde11a0b07f) | ![](https://git.kayg.org/attachments/a6f0b141-28d7-4f35-ad01-927bab391d26) | ### iPhone Simulator (std, own iPhone 18 Pro, iOS 27.0, deleted after), light and dark #### iPhone sim | | product light | mockup light | product dark | mockup dark | |---|---|---|---|---| | notes | ![](https://git.kayg.org/attachments/e7aa8943-1650-4141-adfe-4a36eaac7d0e) | ![](https://git.kayg.org/attachments/08223371-5f45-4eeb-8d14-4608f2cdde9c) | ![](https://git.kayg.org/attachments/287b14c6-350a-4279-857a-cc5c828fb480) | ![](https://git.kayg.org/attachments/1ee54b20-2a00-4a7b-ad1e-f43067842b1d) | | table | ![](https://git.kayg.org/attachments/ca2a3832-eb34-4980-b7ff-dd7af06c2497) | ![](https://git.kayg.org/attachments/129cb5ec-be4a-4684-8d0c-c61424214934) | ![](https://git.kayg.org/attachments/335fee50-3760-4cb2-8a8a-8fe51a2d17a8) | ![](https://git.kayg.org/attachments/4a609a58-22df-4e9c-8568-8b4bd39e3cc5) | | tasks | ![](https://git.kayg.org/attachments/33568556-444d-4c7f-a122-dab973d60158) | ![](https://git.kayg.org/attachments/d76205b1-0e0b-456e-9e4f-71e0c6f631c7) | ![](https://git.kayg.org/attachments/4e63ac5a-aa52-4132-8122-0deecab9215e) | ![](https://git.kayg.org/attachments/57f550cb-2d2b-46d5-80ab-790553d8f53f) | | settings | ![](https://git.kayg.org/attachments/8ec386c3-fa6b-4bdf-b2ce-af229828822d) | ![](https://git.kayg.org/attachments/4a98dfd6-1e4f-476e-9dab-0ee45063cfc1) | ![](https://git.kayg.org/attachments/bd26210c-b097-46bc-bf43-9e185e3a78e6) | ![](https://git.kayg.org/attachments/eda5afc1-f677-4752-96f7-4e507789a408) | Mac lock and the std sim lock were held only while shooting; Safari, safaridriver, the tunnels and the sim were removed on exit.
Author
Owner

Merged into dev with --no-ff (orchestrator, 16 Nov ~06:40 IST) after checking the Safari shots myself: product matches the mockup on paper, inks and table header in light and dark. Scope is wider than paper only (the full neutral set), so kayg reviews it in the morning; it is a token change and easy to revert.

Merged into dev with `--no-ff` (orchestrator, 16 Nov ~06:40 IST) after checking the Safari shots myself: product matches the mockup on paper, inks and table header in light and dark. Scope is wider than paper only (the full neutral set), so kayg reviews it in the morning; it is a token change and easy to revert.
kayg closed this pull request 2026-11-16 00:45:08 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
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!1177
No description provided.