docs(adr): ADR-0026 — UI-kit icons on one canonical 64×64 centered canvas #158

Merged
nelsong6 merged 1 commit from claude/condescending-murdock-6a9ff8 into main 2026-06-27 10:10:28 -07:00
nelsong6 commented 2026-06-27 10:10:12 -07:00 (Migrated from github.com)

Settles the kit-icon bounding box — a decision that was never an ADR.

What this ratifies

  • Canvas: 64×64, glyph centered, equal margins. 15 of 16 kit icons already do this; brand-shield is the documented 256×256 exception.
  • Safe area: glyphs fit a centered ~40×40 box (~12px margin) — a normalization going forward, not a claim the set already matches. info.png (49×49) is the standing outlier to re-canvas.
  • Forge contract: the 64×64 stops being prompt prose and becomes a hard output check — pad-to-centered-canvas + dimension assert, never a bare bbox. (kit-forge.mjs gains a pad+assert step; forge-atom.mjs pads glyph output instead of trim-to-bbox while keeping edge-flush for real 9-slice atoms.)
  • Display sizes stay per-screen; the source canvas is the one invariant.

Why now

The two newest icons (lyre/bell) shipped as trimmed 36×41/38×48 crops because the forge only requested 64×64. This ADR gives the upcoming whole-set re-forge one box to target, enforced by construction.

Scope

Doc-only: the ADR, the decision-log row, and marking the icons.md brief superseded for its canvas geometry. The forge code-fix and the re-forge are follow-ups gated on this.

🤖 Generated with Claude Code

Settles the kit-icon **bounding box** — a decision that was never an ADR. ## What this ratifies - **Canvas:** 64×64, glyph centered, equal margins. 15 of 16 kit icons already do this; `brand-shield` is the documented 256×256 exception. - **Safe area:** glyphs fit a centered ~40×40 box (~12px margin) — a *normalization going forward*, not a claim the set already matches. `info.png` (49×49) is the standing outlier to re-canvas. - **Forge contract:** the 64×64 stops being prompt prose and becomes a hard output check — pad-to-centered-canvas + dimension assert, never a bare bbox. (`kit-forge.mjs` gains a pad+assert step; `forge-atom.mjs` pads glyph output instead of trim-to-bbox while keeping edge-flush for real 9-slice atoms.) - **Display sizes** stay per-screen; the source canvas is the one invariant. ## Why now The two newest icons (lyre/bell) shipped as trimmed `36×41`/`38×48` crops because the forge only *requested* 64×64. This ADR gives the upcoming whole-set re-forge one box to target, enforced by construction. ## Scope Doc-only: the ADR, the decision-log row, and marking the `icons.md` brief superseded for its canvas geometry. The forge code-fix and the re-forge are follow-ups gated on this. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.