@dataimago/tokens 0.1.0-alpha.4 → 0.1.0-alpha.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -17,10 +17,15 @@ const tokens = {
17
17
  "dark": "#1c1917",
18
18
  "description": "Cards, modals, dropdowns — one step above page (stone-50 on stone-100 / ink-800 on stone-900-aligned dark)"
19
19
  },
20
+ "figure-plate": {
21
+ "light": "#f7f7f6",
22
+ "dark": "#dcdcda",
23
+ "description": "Figure plate: the ground a .box figure sits on, in HTML (figure img.box, the figure modal) and the PDF (di-figure-plate). Figures are dark ink and Okabe-Ito colours drawn for a light ground, so the plate stays light in dark mode, dimmed one step to cut glare: stone-50 (light) / stone-200 (dark). Dark-mode plate #dcdcda: dark ink 13.5:1, okabe-ito blue 3.8, vermillion 2.8, bluish-green 2.5, reddish-purple 2.2, sky-blue 1.7, orange 1.6 (the light plate's 4.8/3.6/3.2/2.9/2.2/2.1); the light content.secondary frame 3.9:1 on it. Hue separation is checked plate-independently by the data-viz colour-blind gate. Maintainer decision 2026-11-01 (dimmed light plate); a 42%-white mix over the dark page (#777774) was rejected (colours ~1.2:1)."
24
+ },
20
25
  "sunken": {
21
- "light": "#faf2e3",
26
+ "light": "#f7f7f6",
22
27
  "dark": "#0c0a09",
23
- "description": "Input fields, code blocks — below page level"
28
+ "description": "Input fields and insets. Light: the card colour, stone-50 (since 2026-11-02; it was the warm paper-200 #faf2e3). Dark: ink-900, below the page. Code blocks use surface.code."
24
29
  },
25
30
  "navbar": {
26
31
  "light": "#ededeb",
@@ -33,36 +38,76 @@ const tokens = {
33
38
  "description": "Navbar when scrolled/shrunk — matches page-scrolled"
34
39
  },
35
40
  "code": {
36
- "light": "#faf2e3",
41
+ "light": "#f7f7f6",
37
42
  "dark": "#1c1917",
38
- "description": "Code block and inline code background"
43
+ "description": "Code block and inline code background: the card colour (surface.elevated) in both modes, so code reads as a card on the page (2026-11-02; light mode was the warm paper-200 #faf2e3)"
44
+ },
45
+ "scrim": {
46
+ "light": "rgba(20, 20, 16, 0.85)",
47
+ "dark": "rgba(20, 20, 16, 0.85)",
48
+ "description": "Figure viewer backdrop. Mode-invariant: the scrim is dark in both modes, so light and dark carry the same value (the color.border.figure-frame precedent). Ink-900-ish at 0.85, drawn under a 3px blur; measured composited over the page, on-scrim text is 11.5:1 on the light page and 17.2:1 on the dark (gated by tools/contrast-check.mjs, 2026-11-03). Older browsers (Chrome < 122, Safari < 17.4, Firefox < 120) do not let ::backdrop inherit custom properties from :root, so a consumer painting the scrim on ::backdrop should write a fallback, e.g. var(--color-surface-scrim, rgba(20, 20, 16, 0.85)); the house figure viewer draws its scrim on a div (.di-figure-modal), so it is not affected."
49
+ },
50
+ "scrim-solid": {
51
+ "light": "rgba(20, 20, 16, 0.92)",
52
+ "dark": "rgba(20, 20, 16, 0.92)",
53
+ "description": "Figure viewer backdrop where backdrop blur is unavailable (prefers-reduced-transparency, prefers-contrast: more and browsers without backdrop blur): the same ink at 0.92. Mode-invariant: the scrim is dark in both modes, so light and dark carry the same value (the color.border.figure-frame precedent). Gated by tools/contrast-check.mjs."
54
+ },
55
+ "print": {
56
+ "light": "#f7f7f6",
57
+ "dark": "#f7f7f6",
58
+ "description": "Printed paper: the paper-cover thumbnail, the light slide, the face of a video-play disc. It depicts a physical object (a printed page, a slide), so it is theme-invariant: light and dark carry the same value, and the paper does not darken with the page (the color.border.figure-frame precedent). stone-50, the card colour; the SGPc apps' own #f6f4ee is not a house colour and was mapped onto this step (maintainer decision 2026-11-03). Ink on it is content.on-print, held to 7:1 by tools/contrast-check.mjs. Paper reads as paper by its edge, not its colour: a print surface always carries --shadow-print or a hairline in border.print (the edge rule, maintainer decision 2026-11-03)."
59
+ },
60
+ "play-disc": {
61
+ "light": "rgba(247, 247, 246, 0.92)",
62
+ "dark": "rgba(247, 247, 246, 0.92)",
63
+ "description": "The video-play disc: surface.print at 0.92 alpha, over a poster frame or poster placeholder. It depicts a physical object, so it is theme-invariant: light and dark carry the same value. Its glyph is content.on-print (no separate token), held to 4.5:1 on the disc composited over each mode's page by tools/contrast-check.mjs, so the disc stays legible in dark mode."
64
+ },
65
+ "media": {
66
+ "light": "#000000",
67
+ "dark": "#000000",
68
+ "description": "The media letterbox: the ground behind a <video> and other media (an embedded player, a frame that does not fill its box). Pure black, not the house near-black (stone-900 #14140f, ink-900 #0c0a09): video frames carry true black, so a near-black ground shows the letterbox bars beside the frame's own black, and pure black hides them. It depicts the media frame, not the page, so it is theme-invariant: light and dark carry the same value (the color.surface.print precedent). Nothing is drawn on it, so it has no contrast floor; tools/contrast-check.mjs holds it to theme invariance (maintainer decision 2026-11-03)."
39
69
  }
40
70
  },
41
71
  "border": {
42
72
  "subtle": {
43
- "light": "rgba(12, 10, 9, 0.08)",
44
- "dark": "rgba(253, 249, 242, 0.08)",
45
- "description": "Subtle borders — element separation"
73
+ "light": "rgba(12, 10, 9, 0.45)",
74
+ "dark": "rgba(253, 249, 242, 0.45)",
75
+ "description": "Subtle borders — element separation. THE ALPHA IS THE ROLE: border.subtle / moderate / strong / card share one base color and are distinguished by opacity alone, so a gamut conversion that drops the alpha channel collapses four semantic roles into one opaque value (this happened in 17995c3, #72, 2026-06-28). No number is quoted here on purpose: the scale is set by the founder decision recorded in wi-20260817-border-alpha-scale-retune and gated by tools/contrast-check.mjs at the WCAG 1.4.11 non-text threshold (3:1). Read the value, not this sentence."
46
76
  },
47
77
  "moderate": {
48
- "light": "rgba(12, 10, 9, 0.15)",
49
- "dark": "rgba(253, 249, 242, 0.15)",
50
- "description": "Moderate borders — defined boundaries"
78
+ "light": "rgba(12, 10, 9, 0.60)",
79
+ "dark": "rgba(253, 249, 242, 0.60)",
80
+ "description": "Moderate borders — defined boundaries. See border.subtle on why the alpha is load-bearing and why no number is quoted here."
51
81
  },
52
82
  "strong": {
53
- "light": "rgba(12, 10, 9, 0.25)",
54
- "dark": "rgba(253, 249, 242, 0.25)",
55
- "description": "Strong borders — prominent separation"
83
+ "light": "rgba(12, 10, 9, 0.75)",
84
+ "dark": "rgba(253, 249, 242, 0.75)",
85
+ "description": "Strong borders — prominent separation. See border.subtle on why the alpha is load-bearing and why no number is quoted here."
56
86
  },
57
87
  "card": {
58
- "light": "rgba(12, 10, 9, 0.15)",
59
- "dark": "rgba(253, 249, 242, 0.15)",
60
- "description": "Card border color with transparency for subtle definition"
88
+ "light": "rgba(12, 10, 9, 0.60)",
89
+ "dark": "rgba(253, 249, 242, 0.60)",
90
+ "description": "Card border color with transparency for subtle definition. See border.subtle on why the alpha is load-bearing and why no number is quoted here."
91
+ },
92
+ "figure-frame": {
93
+ "light": "#6a6a6a",
94
+ "dark": "#6a6a6a",
95
+ "description": "Figure frame: the 1px rule round a .box figure and the border of an enlarged figure in the figure modal. It sits on surface.figure-plate, which is light in both modes, so the frame keeps the light content.secondary value in both: 5.0:1 on the light plate #f7f7f6 and 3.9:1 on the dimmed dark-mode plate #dcdcda (WCAG 1.4.11 non-text, 3:1). The PDF's di-figure-frame is the same colour (2026-11-01)."
61
96
  },
62
97
  "code": {
63
98
  "light": "#d6d3d1",
64
99
  "dark": "#292524",
65
100
  "description": "Code block border"
101
+ },
102
+ "on-scrim-focus": {
103
+ "light": "#3498DB",
104
+ "dark": "#3498DB",
105
+ "description": "Focus ring on the figure viewer scrim. Mode-invariant: the scrim is dark in both modes, so light and dark carry the same value (the color.border.figure-frame precedent). The slate accent's dark-mode value in both modes, because the scrim is dark in both. Held to 3:1 (WCAG 1.4.11) over both scrims and both page modes by tools/contrast-check.mjs."
106
+ },
107
+ "print": {
108
+ "light": "rgba(12, 10, 9, 0.45)",
109
+ "dark": "rgba(12, 10, 9, 0.45)",
110
+ "description": "The hairline edge of printed paper (surface.print): the paper-cover thumbnail, the light slide. THE EDGE RULE: paper reads as paper by its edge, not by its colour. surface.print is the card colour, so a print surface always carries either --shadow-print or a hairline in this token (maintainer decision 2026-11-03). It is drawn on the paper, which stays light in both modes, so it is theme-invariant: light and dark carry the same value (the color.border.figure-frame precedent). It starts from the light value of border.subtle, and as there the alpha is the role and no ratio is quoted on purpose: composited over surface.print it is held to the WCAG 1.4.11 non-text threshold (3:1) by tools/contrast-check.mjs. Read the value, not this sentence."
66
111
  }
67
112
  },
68
113
  "content": {
@@ -72,19 +117,29 @@ const tokens = {
72
117
  "description": "Primary text — stone-900 on stone-100 (light, matches presentation-theme.scss exactly) / paper-100 on dark surface"
73
118
  },
74
119
  "secondary": {
75
- "light": "#7c7c7c",
120
+ "light": "#6a6a6a",
76
121
  "dark": "#a8a29e",
77
- "description": "Secondary text — stone-500 (light, matches presentation-theme.scss --color-secondary) / ink-300 on dark"
122
+ "description": "Secondary text — WCAG-AA on all light surfaces (≥4.6:1, darkened from stone-500 #7c7c7c which was 3.6:1) / ink-300 on dark"
78
123
  },
79
124
  "muted": {
80
- "light": "#78716c",
81
- "dark": "#78716c",
82
- "description": "Muted text — captions, meta info"
125
+ "light": "#706964",
126
+ "dark": "#89827d",
127
+ "description": "Muted text — captions, meta info. WCAG-AA on all surfaces in both modes (darkened/lightened from #78716c which failed AA on page)"
83
128
  },
84
129
  "inverse": {
85
130
  "light": "#fdf9f2",
86
131
  "dark": "#0c0a09",
87
132
  "description": "Inverse text — for contrasting backgrounds"
133
+ },
134
+ "on-scrim": {
135
+ "light": "#f7f7f6",
136
+ "dark": "#f7f7f6",
137
+ "description": "Text and controls on the figure viewer scrim (stone-50). Mode-invariant: the scrim is dark in both modes, so light and dark carry the same value (the color.border.figure-frame precedent). Held to 7:1 over both scrims and both page modes by tools/contrast-check.mjs."
138
+ },
139
+ "on-print": {
140
+ "light": "#14140f",
141
+ "dark": "#14140f",
142
+ "description": "Ink on surface.print, and the glyph on surface.play-disc (the play triangle takes this token; it has no separate one). stone-900. It depicts printed ink, so it is theme-invariant: light and dark carry the same value (the color.border.figure-frame precedent). Held to 7:1 on surface.print, and 4.5:1 on the play disc composited over each mode's page, by tools/contrast-check.mjs."
88
143
  }
89
144
  },
90
145
  "interactive": {
@@ -109,6 +164,28 @@ const tokens = {
109
164
  "description": "Focus indicators — mirrors interactive.primary"
110
165
  }
111
166
  },
167
+ "state": {
168
+ "success": {
169
+ "light": "#007a58",
170
+ "dark": "#009E73",
171
+ "description": "State: success. Okabe-Ito bluish-green, darkened in light mode for text: 4.56:1 on page and 4.99:1 on card (dark 5.40 / 5.11). 2026-11-02; replaces the Flat-UI functional colours as the semantic layer"
172
+ },
173
+ "warning": {
174
+ "light": "#906306",
175
+ "dark": "#E69F00",
176
+ "description": "State: warning. Okabe-Ito orange, darkened in light mode to an amber that holds text contrast: 4.51:1 on page and 4.93:1 on card (dark 8.20 / 7.76). 2026-11-02; replaces the Flat-UI functional colours as the semantic layer"
177
+ },
178
+ "error": {
179
+ "light": "#a4262c",
180
+ "dark": "#ef5350",
181
+ "description": "State: error. Red rather than Okabe-Ito vermillion: darkened vermillion collapses into the amber warning under deuteranopia (ΔE 2.0). 6.2:1 on page in light mode (dark 5.30 / 5.02). 2026-11-02; replaces the Flat-UI functional colours as the semantic layer"
182
+ },
183
+ "info": {
184
+ "light": "#1f618d",
185
+ "dark": "#3498DB",
186
+ "description": "State: info. The house slate accent (interactive.accent), so notes and info read slate-blue against the stone surfaces: 5.68:1 on page in light mode (dark 5.86). 2026-11-02; replaces the Flat-UI functional colours as the semantic layer"
187
+ }
188
+ },
112
189
  "presentation": {
113
190
  "accent": {
114
191
  "light": "#3498DB",
@@ -120,6 +197,164 @@ const tokens = {
120
197
  "dark": "#2980B9",
121
198
  "description": "Presentation accent hover/emphasized variant — Flat-UI belize-hole"
122
199
  }
200
+ },
201
+ "vertical-accent": {
202
+ "$comment": "Per-vertical brand accents — each Level-2 property's identity color, distinct from the house interactive.accent (the L1 sky-blue hub color). Mode-aware (light/dark stops) like interactive.accent. Used for app icons, navbar-logo emphasis, and per-vertical theming. Contrast vs surface.page verified WCAG: light values are the on-light marks, dark values the on-dark marks. dataimago (L1 hub) intentionally has no vertical accent — it uses interactive.accent + ink.",
203
+ "dissertation": {
204
+ "light": "#B87333",
205
+ "dark": "#CE8E5C",
206
+ "description": "dissertation-ai — copper (manuscript / annotation / the human hand in the margin). Light: 3.23:1 on stone-100 (AA-large; large-mark use). Dark: #CE8E5C 6.72:1 on ink-900 (AA)."
207
+ },
208
+ "rpkg": {
209
+ "light": "#3B82F6",
210
+ "dark": "#60A5FA",
211
+ "description": "rpkg-ai — engineering blue. Light: 3.14:1 on stone-100 (AA-large; large-mark use). Dark: #60A5FA 7.26:1 on ink-900 (AA)."
212
+ },
213
+ "SGPc": {
214
+ "light": "#5A6310",
215
+ "dark": "#B2BF22",
216
+ "description": "SGPc-ai — growth yellow-green (decided 2026-06-26). The brand value is the bright #B2BF22, but it fails contrast on light surfaces (1.73:1), so LIGHT mode uses the darkened companion #5A6310 (5.55:1 on stone-100 — full AA) and DARK mode uses the bright #B2BF22 (9.12:1 on ink-900). See wiki/decisions/sgpc-accent.md."
217
+ }
218
+ },
219
+ "brand-mark": {
220
+ "$comment": "Brand-MARK colors (the dataimago monogram / wordmark logo treatment) — distinct from the interactive.accent role. The signature monogram red is a wide-gamut PILOT (see wiki/decisions/p3-oklch-color.md). It is mode-aware for AA-normal headroom: a single red cannot clear 4.5:1 on BOTH the light page (#ededeb) and ink-900 — light needs a deep red, dark needs a bright one. LIGHT uses the deepened #cc0000 (faithful P3, contrast-first); DARK keeps the vivid display-P3 primary red (#ff0000 fallback → color(display-p3 1 0 0)), where #ff0000 already passes AA-normal. Vivid override authored in tools/color-converter.mjs (dark-only for the red), emitted as a `#hex → color(display-p3 …)` cascade in the -p3 build.",
221
+ "red": {
222
+ "light": "#cc0000",
223
+ "dark": "#ff0000",
224
+ "description": "Signature monogram red — mode-aware for AA-normal. LIGHT: deepened #cc0000 (5.0:1 on stone-100 #ededeb / 5.5:1 on elevated — full AA-normal, safe at small sizes / as text). DARK: vivid #ff0000 fallback + display-P3 primary red (4.6:1 on ink-900 — AA-normal). Logo-mark color only — NOT the interactive accent (which is iteration-2 blue). Large navbar lift-wash marks keep the vivid display-P3 red (AA-large, large-mark use); this token is the AA-normal value for arbitrary/small mark reuse."
225
+ }
226
+ },
227
+ "dataviz": {
228
+ "okabe-ito": {
229
+ "orange": {
230
+ "value": "#E69F00",
231
+ "description": "Okabe-Ito orange (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
232
+ },
233
+ "sky-blue": {
234
+ "value": "#56B4E9",
235
+ "description": "Okabe-Ito sky blue (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
236
+ },
237
+ "bluish-green": {
238
+ "value": "#009E73",
239
+ "description": "Okabe-Ito bluish green (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
240
+ },
241
+ "yellow": {
242
+ "value": "#F0E442",
243
+ "description": "Okabe-Ito yellow — 1.13:1 on the light page: never use it without a mark outline or a label (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
244
+ },
245
+ "blue": {
246
+ "value": "#0072B2",
247
+ "description": "Okabe-Ito blue (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
248
+ },
249
+ "vermillion": {
250
+ "value": "#D55E00",
251
+ "description": "Okabe-Ito vermillion (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
252
+ },
253
+ "reddish-purple": {
254
+ "value": "#CC79A7",
255
+ "description": "Okabe-Ito reddish purple (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
256
+ },
257
+ "black": {
258
+ "light": "#000000",
259
+ "dark": "#FDF9F2",
260
+ "description": "Okabe-Ito black (Okabe & Ito 2008). In dark mode it becomes content.primary.dark: #000000 is 1.14:1 on the dark page. Dark value approved by the maintainer 2026-10-29 (dataviz-check --propose-dark)."
261
+ }
262
+ },
263
+ "categorical": {
264
+ "1": {
265
+ "value": "#E69F00",
266
+ "description": "= okabe-ito.orange (slot 1, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
267
+ },
268
+ "2": {
269
+ "value": "#56B4E9",
270
+ "description": "= okabe-ito.sky-blue (slot 2, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
271
+ },
272
+ "3": {
273
+ "value": "#009E73",
274
+ "description": "= okabe-ito.bluish-green (slot 3, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
275
+ },
276
+ "4": {
277
+ "value": "#F0E442",
278
+ "description": "= okabe-ito.yellow (slot 4, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
279
+ },
280
+ "5": {
281
+ "value": "#0072B2",
282
+ "description": "= okabe-ito.blue (slot 5, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
283
+ },
284
+ "6": {
285
+ "value": "#D55E00",
286
+ "description": "= okabe-ito.vermillion (slot 6, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
287
+ },
288
+ "7": {
289
+ "value": "#CC79A7",
290
+ "description": "= okabe-ito.reddish-purple (slot 7, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
291
+ },
292
+ "8": {
293
+ "light": "#000000",
294
+ "dark": "#FDF9F2",
295
+ "description": "= okabe-ito.black (slot 8, Wilke order). Categorical colour is never the only channel: pair it with marker shape, line style or a label."
296
+ }
297
+ },
298
+ "uncertainty": {
299
+ "outer": {
300
+ "light": "#D6D6D6",
301
+ "dark": "#333333",
302
+ "description": "Outermost nested uncertainty band (gray 0.84 in the LIwLD PSTricks figures). The ramp is mirrored in dark mode so the innermost band stays the strongest. Dark value approved by the maintainer 2026-10-29 (dataviz-check --propose-dark)."
303
+ },
304
+ "union": {
305
+ "light": "#9E9E9E",
306
+ "dark": "#6B6B6B",
307
+ "description": "Union band (gray 0.62); mirrored in dark mode. Dark value approved by the maintainer 2026-10-29 (dataviz-check --propose-dark)."
308
+ },
309
+ "inner": {
310
+ "light": "#333333",
311
+ "dark": "#D6D6D6",
312
+ "description": "Innermost band (gray 0.20); mirrored in dark mode, where #333333 would be 1.46:1. Dark value approved by the maintainer 2026-10-29 (dataviz-check --propose-dark)."
313
+ }
314
+ },
315
+ "sgpc-bucket": {
316
+ "very-low": {
317
+ "value": "#D55E00",
318
+ "description": "= okabe-ito.vermillion. SGPc growth bucket 1 of 5 (very low) on the ordered scale very low → very high. Colour is never the only channel: pair it with a marker and the bucket letter code. Author decision 2026-11-01, matching the LIwLD paper's figures."
319
+ },
320
+ "low": {
321
+ "value": "#E69F00",
322
+ "description": "= okabe-ito.orange. SGPc growth bucket 2 of 5 (low) on the ordered scale very low → very high. Colour is never the only channel: pair it with a marker and the bucket letter code. Author decision 2026-11-01, matching the LIwLD paper's figures."
323
+ },
324
+ "typical": {
325
+ "value": "#56B4E9",
326
+ "description": "= okabe-ito.sky-blue. SGPc growth bucket 3 of 5 (typical) on the ordered scale very low → very high. Colour is never the only channel: pair it with a marker and the bucket letter code. Author decision 2026-11-01, matching the LIwLD paper's figures."
327
+ },
328
+ "high": {
329
+ "value": "#009E73",
330
+ "description": "= okabe-ito.bluish-green. SGPc growth bucket 4 of 5 (high) on the ordered scale very low → very high. Colour is never the only channel: pair it with a marker and the bucket letter code. Author decision 2026-11-01, matching the LIwLD paper's figures."
331
+ },
332
+ "very-high": {
333
+ "value": "#0072B2",
334
+ "description": "= okabe-ito.blue. SGPc growth bucket 5 of 5 (very high) on the ordered scale very low → very high. Colour is never the only channel: pair it with a marker and the bucket letter code. Author decision 2026-11-01, matching the LIwLD paper's figures."
335
+ }
336
+ },
337
+ "sgpc-role": {
338
+ "marginal": {
339
+ "value": "#0072B2",
340
+ "description": "= okabe-ito.blue. SGPc methodological role: what the separate margins (the score distributions) supply. 5.19:1 on white. A figure uses role colours or bucket colours, never both: this hue is also sgpc-bucket.very-high. Light-ground tints (marginal-pale 30 %, marginal-wash 12 %, mixes with white) ship in the TeX, JSON and R data-viz outputs only, and a tint is never the only channel: it sits with this stroke or a label. Maintainer decision 2026-11-09."
341
+ },
342
+ "linkage": {
343
+ "value": "#D55E00",
344
+ "description": "= okabe-ito.vermillion. SGPc methodological role: what linkage (the copula) supplies. 3.87:1 on white. A figure uses role colours or bucket colours, never both: this hue is also sgpc-bucket.very-low. Light-ground tints (linkage-pale 30 %, linkage-wash 12 %, mixes with white) ship in the TeX, JSON and R data-viz outputs only, and a tint is never the only channel: it sits with this stroke or a label. Maintainer decision 2026-11-09."
345
+ },
346
+ "kernel": {
347
+ "value": "#CC79A7",
348
+ "description": "= okabe-ito.reddish-purple. SGPc methodological role: the kernel-substitution term b_K. 3.06:1 on white, 2.86:1 on the light figure plate and 2.61:1 on the light page, so the kernel term always carries a second cue (a dash pattern or a label). Its light-ground tint (kernel-pale, 30 % mixed with white) ships in the TeX, JSON and R data-viz outputs only and is never the only channel. Maintainer decision 2026-11-09."
349
+ }
350
+ },
351
+ "map": {
352
+ "ocean": {
353
+ "light": "#808fa7",
354
+ "dark": "#042438",
355
+ "description": "Map-surface ground: the sea on the SGPc globe, behind land, absent countries and bucket-filled shapes. A muted slate blue on light surfaces and a deep blue on dark (maintainer 2026-10-22); not a palette step. The light value moved from #c9e1ec on 2026-11-01, when the Okabe-Ito sky-blue bucket blended into it: #808fa7 sits mid-way in lightness between the two blue buckets and is grey enough to read as sea. Gated by tools/dataviz-check.mjs against the five sgpc-bucket colours and the land neutrals (ink-200 land and ink-100 absent in light; ink-600 land and ink-700 absent in dark) at ΔE2000 ≥ 11.1 under normal vision and deutan, protan and tritan simulation, and the country outline (ink-600 light, ink-300 dark) at ≥ 3:1. Draw country borders in this colour, as gaps between shapes. The dark value moved from the apps' #14232c to #042438 on 2026-11-03 (maintainer): a slightly deeper sea keeps the quiet 'no data' countries (ink-700) distinct from it for protan readers (#14232c was ΔE 6.61 from them). Raised from the SGPc apps (2026-11-03)."
356
+ }
357
+ }
123
358
  }
124
359
  },
125
360
  "spacing": {
@@ -200,14 +435,14 @@ const tokens = {
200
435
  },
201
436
  "border": {
202
437
  "subtle": {
203
- "light": "rgba(20, 20, 16, 0.1)",
204
- "dark": "rgba(237, 237, 235, 0.1)",
205
- "description": "Subtle borders - element separation"
438
+ "light": "rgba(20, 20, 16, 0.47)",
439
+ "dark": "rgba(237, 237, 235, 0.47)",
440
+ "description": "Subtle borders - element separation. THE ALPHA IS THE ROLE. Distinct from color.border.subtle: this family has its own base (20,20,16 / 237,237,235), so it needs a DIFFERENT alpha to render the same. 0.47 here matches 0.45 there at 3.07:1 on the worst surface; copying 0.45 would land at 2.90:1 and fail WCAG 1.4.11. Gated by tools/contrast-check.mjs."
206
441
  },
207
442
  "moderate": {
208
- "light": "rgba(20, 20, 16, 0.15)",
209
- "dark": "rgba(237, 237, 235, 0.15)",
210
- "description": "Moderate borders - defined boundaries"
443
+ "light": "rgba(20, 20, 16, 0.63)",
444
+ "dark": "rgba(237, 237, 235, 0.63)",
445
+ "description": "Moderate borders - defined boundaries. 0.63 here matches color.border.moderate 0.60 in rendered contrast; see border.subtle on why the numbers differ between the two families."
211
446
  },
212
447
  "focus": {
213
448
  "light": "#3498DB",
@@ -233,6 +468,52 @@ const tokens = {
233
468
  "description": "Reserved for the dataimago wordmark / brand-mark transitions; do not borrow for general UI"
234
469
  }
235
470
  },
471
+ "gradient": {
472
+ "video-poster": {
473
+ "value": "linear-gradient(135deg, #2b3a4a, #1f2a1f 60%, #3b2f1c)",
474
+ "description": "Video-poster placeholder, shown until a real poster frame exists: a slate-to-green-to-umber diagonal. It depicts a video frame, so it is theme-invariant (the same in light and dark). Its three stops (#2b3a4a, #1f2a1f, #3b2f1c) are a one-off and are NOT palette colours: do not reach for them elsewhere. A CSS gradient string has no clean DTCG mapping, so this token is in tokens.css and the JS exports only and is left out of the W3C DTCG and Tokens Studio exports (the legacy dist/tokens.dtcg.json still carries it). Raised from the SGPc apps (2026-11-03)."
475
+ }
476
+ },
477
+ "motion": {
478
+ "enter": {
479
+ "value": "200ms",
480
+ "description": "Something arrives: a page fade, tooltip in, chip in, view switch, drawer open, chart marks. Pair with motion.ease-out. Raised from the SGPc apps (2026-11-03), which named it --motion-enter. Within the 300ms motion-dignity ceiling; gated by tools/motion-lint.mjs."
481
+ },
482
+ "exit": {
483
+ "value": "120ms",
484
+ "description": "Something leaves: tooltip out, chip out, drawer close. Shorter than motion.enter, because leaving should not hold the reader. Pair with motion.ease-in; a component that unmounts in script holds the unmount for this long. Raised from the SGPc apps (2026-11-03), which named it --motion-exit."
485
+ },
486
+ "ease-out": {
487
+ "value": "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
488
+ "description": "easeOutQuad, the curve foundations/design/motion-dignity.md names, for entrances: fast at the start, settling gently. Raised from the SGPc apps (2026-11-03), which named it --motion-ease-out."
489
+ },
490
+ "ease-in": {
491
+ "value": "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
492
+ "description": "easeInQuad, for exits: starts gently and leaves quickly. The counterpart of motion.ease-out. Raised from the SGPc apps (2026-11-03), which named it --motion-ease-in."
493
+ },
494
+ "duration": {
495
+ "120": {
496
+ "value": "120ms",
497
+ "description": "Duration scale step, 120ms. Equal to motion.exit."
498
+ },
499
+ "160": {
500
+ "value": "160ms",
501
+ "description": "Duration scale step, 160ms: a hover on a small control, a sheet leaving."
502
+ },
503
+ "200": {
504
+ "value": "200ms",
505
+ "description": "Duration scale step, 200ms. Equal to motion.enter."
506
+ },
507
+ "250": {
508
+ "value": "250ms",
509
+ "description": "Duration scale step, 250ms: a sheet arriving, a grid-column change."
510
+ },
511
+ "300": {
512
+ "value": "300ms",
513
+ "description": "Duration scale step, 300ms: the motion-dignity ceiling. Nothing in the scale is longer, and the motion gate holds every motion.* value to it. A slow ambient entrance is not a token: a wait before an animation is a delay, not motion, and the animation itself stays at or under this step."
514
+ }
515
+ }
516
+ },
236
517
  "card": {
237
518
  "background": "surface.elevated",
238
519
  "padding": "spacing.component.padding",
@@ -278,23 +559,23 @@ const tokens = {
278
559
  "font": {
279
560
  "family": {
280
561
  "sans": {
281
- "value": "Noto Sans, Fira Sans, system-ui, sans-serif",
282
- "description": "Primary sans-serif font - body text"
562
+ "value": "Noto Sans, Noto Sans Math, system-ui, sans-serif",
563
+ "description": "Primary sans-serif font - body text. Noto Sans Math is second so a glyph Noto Sans lacks (arrows such as U+2192, maths operators) is drawn by the shipped Noto, not a system font; a page downloads the maths face only when it needs such a glyph. Fira Sans, a leftover of the ai-native extension, was dropped (2026-11-01)."
283
564
  },
284
565
  "mono": {
285
- "value": "JetBrains Mono, SF Mono, Monaco, Inconsolata, monospace",
286
- "description": "Monospace font - code blocks and technical content"
566
+ "value": "Noto Sans Mono, SF Mono, Monaco, Inconsolata, monospace",
567
+ "description": "Noto Sans Mono — code blocks and technical content; matches the shipped font"
287
568
  },
288
569
  "display": {
289
570
  "value": "var(--font-family-display-editorial)",
290
- "description": "DEPRECATED alias of display-editorial; preserved through 0.2.x and removed in 0.3.0. New code should reference --font-family-display-editorial or --font-family-display-documentation directly. See wiki/decisions/display-family-split.md."
571
+ "description": "Alias of display-editorial, and the load-bearing indirection .di-prose rebinds to swap a whole surface to the documentation family — do NOT rewrite heading rules to reference display-editorial directly or .di-prose stops working. Reference display-editorial/display-documentation explicitly only where the surface must NOT control the family (brand chrome, navbars). Its 0.3.0 removal was deferred 2026-08-10 under wiki/decisions/compatibility-contract.md (additive-only); removal now requires its own cleanup ADR. See wiki/decisions/display-family-split.md."
291
572
  },
292
573
  "display-editorial": {
293
- "value": "Josefin Sans, system-ui, sans-serif",
294
- "description": "Editorial display family — Josefin Sans, the brand voice. Used on surfaces where the heading does rhetorical/branding work: hero/landing, marketing, story showcases, slide titles. Default for unmarked headings. Pair with weight 500 (h1) per wiki/decisions/h1-weight-medium.md."
574
+ "value": "Josefin Sans, Noto Sans, Noto Sans Math, system-ui, sans-serif",
575
+ "description": "Editorial display family — Josefin Sans, the brand voice. Used on surfaces where the heading does rhetorical/branding work: hero/landing, marketing, story showcases, slide titles. Default for unmarked headings. The Noto Sans fallback serves untagged text; tagged languages are handled by fonts/lang.css. Pair with weight 500 (h1) per wiki/decisions/h1-weight-medium.md."
295
576
  },
296
577
  "display-documentation": {
297
- "value": "Noto Sans, system-ui, sans-serif",
578
+ "value": "Noto Sans, Noto Sans Math, system-ui, sans-serif",
298
579
  "description": "Documentation display family — Noto Sans, the wayfinding voice. Used on surfaces where the heading does structural work: API docs, foundation Section h2s, KNOWLEDGE.md/CLAUDE.md headings, long-form research subheadings. Activated by wrapping content in .di-prose; pair with weight 600 (semibold). See wiki/decisions/display-family-split.md."
299
580
  },
300
581
  "brand": {
@@ -302,8 +583,8 @@ const tokens = {
302
583
  "description": "Brand font - dataimago navbar and branding elements"
303
584
  },
304
585
  "math": {
305
- "value": "Noto Sans Math, Noto Sans, system-ui, sans-serif",
306
- "description": "Mathematical notation font — Noto Sans Math for broad Unicode math coverage; harmonises with the Noto Sans body stack"
586
+ "value": "Noto Sans Math, math",
587
+ "description": "Noto Sans Math, falling back to the browser's maths face; native MathML is the maths contract"
307
588
  }
308
589
  },
309
590
  "size": {