From 1b924364de697691d8ac6afe0ff726a70b5e9f51 Mon Sep 17 00:00:00 2001 From: Amr Elsayed Date: Thu, 18 Jun 2026 07:50:52 +1000 Subject: [PATCH 01/27] chore(porch): 1053 init pir --- .../status.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 codev/projects/1053-vscode-typography-tokens-for-t/status.yaml diff --git a/codev/projects/1053-vscode-typography-tokens-for-t/status.yaml b/codev/projects/1053-vscode-typography-tokens-for-t/status.yaml new file mode 100644 index 000000000..3dcbe0f3c --- /dev/null +++ b/codev/projects/1053-vscode-typography-tokens-for-t/status.yaml @@ -0,0 +1,18 @@ +id: '1053' +title: vscode-typography-tokens-for-t +protocol: pir +phase: plan +plan_phases: [] +current_plan_phase: null +gates: + plan-approval: + status: pending + dev-approval: + status: pending + pr: + status: pending +iteration: 1 +build_complete: false +history: [] +started_at: '2026-06-17T21:50:52.095Z' +updated_at: '2026-06-17T21:50:52.096Z' From 75ce3175c3114c6fa6361ba1a30929f47303f6ab Mon Sep 17 00:00:00 2001 From: Amr Elsayed Date: Thu, 18 Jun 2026 07:54:19 +1000 Subject: [PATCH 02/27] [PIR #1053] Plan draft --- .../1053-vscode-typography-tokens-for-t.md | 225 ++++++++++++++++++ codev/state/pir-1053_thread.md | 14 ++ 2 files changed, 239 insertions(+) create mode 100644 codev/plans/1053-vscode-typography-tokens-for-t.md create mode 100644 codev/state/pir-1053_thread.md diff --git a/codev/plans/1053-vscode-typography-tokens-for-t.md b/codev/plans/1053-vscode-typography-tokens-for-t.md new file mode 100644 index 000000000..5a3e46d4d --- /dev/null +++ b/codev/plans/1053-vscode-typography-tokens-for-t.md @@ -0,0 +1,225 @@ +# PIR Plan: Typography tokens for the Codev Markdown Preview (artifact canvas) + +> Issue #1053 · area/vscode · extends the locked 8-token color vocabulary from #945 (spec 945 D4) +> with a typography token tier so prose (specs, plans, reviews) reads cleanly in the VSCode preview. + +## Understanding + +The Codev Markdown Preview surfaces the `@cluesmith/codev-artifact-canvas` component inside a +VSCode `CustomTextEditor` webview (`packages/vscode/src/markdown-preview/`). The canvas ships +`default-theme.css` with **eight `--codev-canvas-*` tokens that are colors only** (spec 945 D4 +deliberately capped the v1 vocabulary at colors). Everything about *type* — size, family, +line-height, paragraph rhythm, heading scale, prose width — falls through to the webview's +inherited defaults, which are tuned for code (the workbench UI font ~13px, line-height ~1.4), +not for sustained reading of long-form documents. + +Concretely, in `packages/artifact-canvas/src/styles/default-theme.css` the +`.codev-artifact-canvas` block sets only `color`/`background` and the eight color custom +properties; there is **no rule** that sizes `body`, `p`, `h1`–`h6`, `ul`/`ol`, `blockquote`, +`pre`/`code`, or `table`. In the VSCode host, `preview-template.ts`'s inline `