Design tokens proposal: record approved decisions

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 13:44:55 +01:00
co-authored by Claude Opus 5.5
parent 9286468ce9
commit 18075bb7df
+19 -2
View File
@@ -1,6 +1,7 @@
# Design tokens: proposal (draft for approval)
Status: **proposal, nothing built yet.** Branch `claude/design-tokens-95806d`.
Status: **approved 2026-10-29 (all recommendations in section 11 accepted); not built yet.** Building starts when
the coordinator confirms all five designs are consistent. Branch `claude/design-tokens-95806d`.
Consumers: the shared block library, the project starter, the reference site and `ipal-doctor`.
## 1. Goal and the one rule
@@ -316,7 +317,23 @@ Suggested order and effort (decision 5):
Nothing in these repos is edited by this proposal.
## 11. Decisions for the owner
## 11. Decisions (approved 2026-10-29)
The owner accepted every recommendation:
| # | Decision |
|---|---|
| 1 | Brand source: `src/design/tokens.ts` + the `ipal-tokens` CLI generating `src/design/tokens.css` |
| 2 | Utility names: the plugin's own (`bg-bg`, `text-fg`, `text-fg-muted`, `bg-surface-muted`, `text-on-primary` …) |
| 3 | Colour format: oklch in the defaults and the starter (any CSS colour still accepted) |
| 4 | Default scale for new sites: `fluid-wide.css` |
| 5 | Migration: intecioncom pilot, then each site when it is next touched |
| 6 | Plugin components move to the single token names in this release; the `-dark` aliases stay |
| 7 | Ship `@intecion/ipal-kit/a11y.css` |
Also agreed with the block library: the inverse scope (`data-surface="inverse"`, section 6).
### Options as proposed
1. **Brand source:** `src/design/tokens.ts` + `ipal-tokens` CLI generating `tokens.css`, with a contrast check and
values for OG/e-mail (**recommended**), or a hand-written `src/design/tokens.css` only. The var names and paths are the same either way.