@dataimago/tokens 0.1.0-alpha.3 → 0.1.0-alpha.30
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/README.md +15 -4
- package/dist/index.cjs +209 -40
- package/dist/index.mjs +209 -40
- package/dist/tokens.css +208 -46
- package/dist/tokens.dtcg.json +756 -0
- package/dist/tokens.scss +208 -46
- package/dist/tokens.studio.json +751 -0
- package/dist/tokens.w3c.dtcg.json +906 -0
- package/package.json +5 -2
- package/src/README.md +40 -156
- package/src/colors.json +14 -12
- package/src/dataviz.json +115 -0
- package/src/effects.json +7 -7
- package/src/theme-colors-p3.json +438 -0
- package/src/theme-colors.json +82 -24
- package/src/typography.json +10 -10
package/README.md
CHANGED
|
@@ -5,15 +5,19 @@ Canonical design tokens for the dataimago ethical AI design system.
|
|
|
5
5
|
## What's in the box
|
|
6
6
|
|
|
7
7
|
- `src/*.json` — the hand-authored JSON sources (colors, typography, spacing, effects, etc.).
|
|
8
|
-
- `dist/tokens.css` / `dist/tokens.scss` — CSS custom properties emitted from the JSON sources, theme-aware (`[data-bs-theme]` + `prefers-color-scheme`).
|
|
8
|
+
- `dist/tokens.css` / `dist/tokens.scss` — CSS custom properties emitted from the JSON sources, theme-aware (`[data-bs-theme]` + `prefers-color-scheme`). The system preference applies only while the root has no `data-bs-theme="light"`, so an explicit choice (e.g. `@dataimago/ui`'s `ThemeToggle`) wins in both directions.
|
|
9
9
|
- `dist/index.{mjs,cjs,d.ts}` — typed JS/TS imports for token values.
|
|
10
|
+
- `dist/tokens.dtcg.json` — additive DTCG-style export for tools and agents. It does not replace the current runtime JSON shape.
|
|
10
11
|
|
|
11
12
|
## Palette
|
|
12
13
|
|
|
13
14
|
- `ink` — warm neutrals, 50–900
|
|
14
|
-
- `
|
|
15
|
-
- `
|
|
16
|
-
- `
|
|
15
|
+
- `stone` — canonical page/surface neutral scale
|
|
16
|
+
- `forest` — house primary interactive scale
|
|
17
|
+
- `paper` — warm-surface option, retained as the renamed successor to the older `cream` framing
|
|
18
|
+
- `presentation-blue` — presentation/accent source scale
|
|
19
|
+
- `accent` — mode-aware semantic accent mapped to presentation-blue stops
|
|
20
|
+
- `copper` — preserved decorative/editorial warmth scale
|
|
17
21
|
|
|
18
22
|
All semantic tokens (`content.primary`, `surface.page`, `interactive.primary`, etc.) resolve to values in that palette.
|
|
19
23
|
|
|
@@ -25,12 +29,19 @@ import colors from "@dataimago/tokens/colors";
|
|
|
25
29
|
|
|
26
30
|
// In CSS:
|
|
27
31
|
// @import "@dataimago/tokens/css";
|
|
32
|
+
|
|
33
|
+
// Tooling / agents:
|
|
34
|
+
// import dtcg from "@dataimago/tokens/dtcg";
|
|
28
35
|
```
|
|
29
36
|
|
|
30
37
|
## Authoring
|
|
31
38
|
|
|
32
39
|
Edit JSON under `src/` — this package is the source of truth. Run `pnpm --filter @dataimago/tokens build` to regenerate `dist/`.
|
|
33
40
|
|
|
41
|
+
CSS-emitting files (`colors.json`, `theme-colors.json`, `typography.json`, `spacing.json`, `effects.json`) are structurally validated before build output is emitted. `frequent.json` and `components.json` remain metadata/reference manifests in this alpha line; do not treat them as normalized CSS-emitting token files until a migration records that decision.
|
|
42
|
+
|
|
43
|
+
The current CSS custom property set is protected by `tools/check-css-vars.mjs` so Level-1 and Level-2 consumers do not lose variables during tightening work.
|
|
44
|
+
|
|
34
45
|
## Versioning
|
|
35
46
|
|
|
36
47
|
Changes go through [Changesets](https://github.com/changesets/changesets). Any palette or semantic-token change is at least a minor version bump in alpha.
|
package/dist/index.cjs
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": "#
|
|
26
|
+
"light": "#f7f7f6",
|
|
22
27
|
"dark": "#0c0a09",
|
|
23
|
-
"description": "Input fields,
|
|
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,31 +38,36 @@ const tokens = {
|
|
|
33
38
|
"description": "Navbar when scrolled/shrunk — matches page-scrolled"
|
|
34
39
|
},
|
|
35
40
|
"code": {
|
|
36
|
-
"light": "#
|
|
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)"
|
|
39
44
|
}
|
|
40
45
|
},
|
|
41
46
|
"border": {
|
|
42
47
|
"subtle": {
|
|
43
|
-
"light": "rgba(12, 10, 9, 0.
|
|
44
|
-
"dark": "rgba(253, 249, 242, 0.
|
|
45
|
-
"description": "Subtle borders — element separation"
|
|
48
|
+
"light": "rgba(12, 10, 9, 0.45)",
|
|
49
|
+
"dark": "rgba(253, 249, 242, 0.45)",
|
|
50
|
+
"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
51
|
},
|
|
47
52
|
"moderate": {
|
|
48
|
-
"light": "rgba(12, 10, 9, 0.
|
|
49
|
-
"dark": "rgba(253, 249, 242, 0.
|
|
50
|
-
"description": "Moderate borders — defined boundaries"
|
|
53
|
+
"light": "rgba(12, 10, 9, 0.60)",
|
|
54
|
+
"dark": "rgba(253, 249, 242, 0.60)",
|
|
55
|
+
"description": "Moderate borders — defined boundaries. See border.subtle on why the alpha is load-bearing and why no number is quoted here."
|
|
51
56
|
},
|
|
52
57
|
"strong": {
|
|
53
|
-
"light": "rgba(12, 10, 9, 0.
|
|
54
|
-
"dark": "rgba(253, 249, 242, 0.
|
|
55
|
-
"description": "Strong borders — prominent separation"
|
|
58
|
+
"light": "rgba(12, 10, 9, 0.75)",
|
|
59
|
+
"dark": "rgba(253, 249, 242, 0.75)",
|
|
60
|
+
"description": "Strong borders — prominent separation. See border.subtle on why the alpha is load-bearing and why no number is quoted here."
|
|
56
61
|
},
|
|
57
62
|
"card": {
|
|
58
|
-
"light": "rgba(12, 10, 9, 0.
|
|
59
|
-
"dark": "rgba(253, 249, 242, 0.
|
|
60
|
-
"description": "Card border color with transparency for subtle definition"
|
|
63
|
+
"light": "rgba(12, 10, 9, 0.60)",
|
|
64
|
+
"dark": "rgba(253, 249, 242, 0.60)",
|
|
65
|
+
"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."
|
|
66
|
+
},
|
|
67
|
+
"figure-frame": {
|
|
68
|
+
"light": "#6a6a6a",
|
|
69
|
+
"dark": "#6a6a6a",
|
|
70
|
+
"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
71
|
},
|
|
62
72
|
"code": {
|
|
63
73
|
"light": "#d6d3d1",
|
|
@@ -72,14 +82,14 @@ const tokens = {
|
|
|
72
82
|
"description": "Primary text — stone-900 on stone-100 (light, matches presentation-theme.scss exactly) / paper-100 on dark surface"
|
|
73
83
|
},
|
|
74
84
|
"secondary": {
|
|
75
|
-
"light": "#
|
|
85
|
+
"light": "#6a6a6a",
|
|
76
86
|
"dark": "#a8a29e",
|
|
77
|
-
"description": "Secondary text —
|
|
87
|
+
"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
88
|
},
|
|
79
89
|
"muted": {
|
|
80
|
-
"light": "#
|
|
81
|
-
"dark": "#
|
|
82
|
-
"description": "Muted text — captions, meta info"
|
|
90
|
+
"light": "#706964",
|
|
91
|
+
"dark": "#89827d",
|
|
92
|
+
"description": "Muted text — captions, meta info. WCAG-AA on all surfaces in both modes (darkened/lightened from #78716c which failed AA on page)"
|
|
83
93
|
},
|
|
84
94
|
"inverse": {
|
|
85
95
|
"light": "#fdf9f2",
|
|
@@ -99,9 +109,9 @@ const tokens = {
|
|
|
99
109
|
"description": "Hover state — forest-800 on light (slightly darker than canonical) / forest-400 on dark"
|
|
100
110
|
},
|
|
101
111
|
"accent": {
|
|
102
|
-
"light": "#
|
|
103
|
-
"dark": "#
|
|
104
|
-
"description": "Accent —
|
|
112
|
+
"light": "#1f618d",
|
|
113
|
+
"dark": "#3498DB",
|
|
114
|
+
"description": "Accent — sky-blue moral-weight color (iteration-2). Light: accent-500 (5.68:1 on stone-100, AA with headroom; 6.66:1 white-on-color for backplates). Dark: accent-300 (5.41:1 on stone-900, AA with headroom — closes the iteration-1 dark-mode AA-large-only contrast gap). FIRST instance of mode-aware role mapping in the system: light and dark point to different palette stops rather than the same hex. The scale-name `accent` is preserved across iteration-1 → iteration-2 (consumer-side text-accent-500 keeps working). See wiki/decisions/iteration-2-blue-accent.md for the dialectical reframe of the iteration-1 emancipation-copper framing (sky/horizon/Enlightenment-blueprint/Reformation-Protestant traditions vs. Western-traffic-coding STOP-red)."
|
|
105
115
|
},
|
|
106
116
|
"focus": {
|
|
107
117
|
"light": "#434739",
|
|
@@ -109,6 +119,28 @@ const tokens = {
|
|
|
109
119
|
"description": "Focus indicators — mirrors interactive.primary"
|
|
110
120
|
}
|
|
111
121
|
},
|
|
122
|
+
"state": {
|
|
123
|
+
"success": {
|
|
124
|
+
"light": "#007a58",
|
|
125
|
+
"dark": "#009E73",
|
|
126
|
+
"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"
|
|
127
|
+
},
|
|
128
|
+
"warning": {
|
|
129
|
+
"light": "#906306",
|
|
130
|
+
"dark": "#E69F00",
|
|
131
|
+
"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"
|
|
132
|
+
},
|
|
133
|
+
"error": {
|
|
134
|
+
"light": "#a4262c",
|
|
135
|
+
"dark": "#ef5350",
|
|
136
|
+
"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"
|
|
137
|
+
},
|
|
138
|
+
"info": {
|
|
139
|
+
"light": "#1f618d",
|
|
140
|
+
"dark": "#3498DB",
|
|
141
|
+
"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"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
112
144
|
"presentation": {
|
|
113
145
|
"accent": {
|
|
114
146
|
"light": "#3498DB",
|
|
@@ -120,6 +152,143 @@ const tokens = {
|
|
|
120
152
|
"dark": "#2980B9",
|
|
121
153
|
"description": "Presentation accent hover/emphasized variant — Flat-UI belize-hole"
|
|
122
154
|
}
|
|
155
|
+
},
|
|
156
|
+
"vertical-accent": {
|
|
157
|
+
"$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.",
|
|
158
|
+
"dissertation": {
|
|
159
|
+
"light": "#B87333",
|
|
160
|
+
"dark": "#CE8E5C",
|
|
161
|
+
"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)."
|
|
162
|
+
},
|
|
163
|
+
"rpkg": {
|
|
164
|
+
"light": "#3B82F6",
|
|
165
|
+
"dark": "#60A5FA",
|
|
166
|
+
"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)."
|
|
167
|
+
},
|
|
168
|
+
"SGPc": {
|
|
169
|
+
"light": "#5A6310",
|
|
170
|
+
"dark": "#B2BF22",
|
|
171
|
+
"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."
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"brand-mark": {
|
|
175
|
+
"$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.",
|
|
176
|
+
"red": {
|
|
177
|
+
"light": "#cc0000",
|
|
178
|
+
"dark": "#ff0000",
|
|
179
|
+
"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."
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"dataviz": {
|
|
183
|
+
"okabe-ito": {
|
|
184
|
+
"orange": {
|
|
185
|
+
"value": "#E69F00",
|
|
186
|
+
"description": "Okabe-Ito orange (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
187
|
+
},
|
|
188
|
+
"sky-blue": {
|
|
189
|
+
"value": "#56B4E9",
|
|
190
|
+
"description": "Okabe-Ito sky blue (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
191
|
+
},
|
|
192
|
+
"bluish-green": {
|
|
193
|
+
"value": "#009E73",
|
|
194
|
+
"description": "Okabe-Ito bluish green (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
195
|
+
},
|
|
196
|
+
"yellow": {
|
|
197
|
+
"value": "#F0E442",
|
|
198
|
+
"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."
|
|
199
|
+
},
|
|
200
|
+
"blue": {
|
|
201
|
+
"value": "#0072B2",
|
|
202
|
+
"description": "Okabe-Ito blue (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
203
|
+
},
|
|
204
|
+
"vermillion": {
|
|
205
|
+
"value": "#D55E00",
|
|
206
|
+
"description": "Okabe-Ito vermillion (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
207
|
+
},
|
|
208
|
+
"reddish-purple": {
|
|
209
|
+
"value": "#CC79A7",
|
|
210
|
+
"description": "Okabe-Ito reddish purple (Okabe & Ito 2008, colour-blind safe). House data-viz primitive; maintainer decision 2026-10-29."
|
|
211
|
+
},
|
|
212
|
+
"black": {
|
|
213
|
+
"light": "#000000",
|
|
214
|
+
"dark": "#FDF9F2",
|
|
215
|
+
"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)."
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"categorical": {
|
|
219
|
+
"1": {
|
|
220
|
+
"value": "#E69F00",
|
|
221
|
+
"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."
|
|
222
|
+
},
|
|
223
|
+
"2": {
|
|
224
|
+
"value": "#56B4E9",
|
|
225
|
+
"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."
|
|
226
|
+
},
|
|
227
|
+
"3": {
|
|
228
|
+
"value": "#009E73",
|
|
229
|
+
"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."
|
|
230
|
+
},
|
|
231
|
+
"4": {
|
|
232
|
+
"value": "#F0E442",
|
|
233
|
+
"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."
|
|
234
|
+
},
|
|
235
|
+
"5": {
|
|
236
|
+
"value": "#0072B2",
|
|
237
|
+
"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."
|
|
238
|
+
},
|
|
239
|
+
"6": {
|
|
240
|
+
"value": "#D55E00",
|
|
241
|
+
"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."
|
|
242
|
+
},
|
|
243
|
+
"7": {
|
|
244
|
+
"value": "#CC79A7",
|
|
245
|
+
"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."
|
|
246
|
+
},
|
|
247
|
+
"8": {
|
|
248
|
+
"light": "#000000",
|
|
249
|
+
"dark": "#FDF9F2",
|
|
250
|
+
"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."
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"uncertainty": {
|
|
254
|
+
"outer": {
|
|
255
|
+
"light": "#D6D6D6",
|
|
256
|
+
"dark": "#333333",
|
|
257
|
+
"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)."
|
|
258
|
+
},
|
|
259
|
+
"union": {
|
|
260
|
+
"light": "#9E9E9E",
|
|
261
|
+
"dark": "#6B6B6B",
|
|
262
|
+
"description": "Union band (gray 0.62); mirrored in dark mode. Dark value approved by the maintainer 2026-10-29 (dataviz-check --propose-dark)."
|
|
263
|
+
},
|
|
264
|
+
"inner": {
|
|
265
|
+
"light": "#333333",
|
|
266
|
+
"dark": "#D6D6D6",
|
|
267
|
+
"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)."
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"sgpc-bucket": {
|
|
271
|
+
"very-low": {
|
|
272
|
+
"value": "#D55E00",
|
|
273
|
+
"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."
|
|
274
|
+
},
|
|
275
|
+
"low": {
|
|
276
|
+
"value": "#E69F00",
|
|
277
|
+
"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."
|
|
278
|
+
},
|
|
279
|
+
"typical": {
|
|
280
|
+
"value": "#56B4E9",
|
|
281
|
+
"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."
|
|
282
|
+
},
|
|
283
|
+
"high": {
|
|
284
|
+
"value": "#009E73",
|
|
285
|
+
"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."
|
|
286
|
+
},
|
|
287
|
+
"very-high": {
|
|
288
|
+
"value": "#0072B2",
|
|
289
|
+
"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."
|
|
290
|
+
}
|
|
291
|
+
}
|
|
123
292
|
}
|
|
124
293
|
},
|
|
125
294
|
"spacing": {
|
|
@@ -200,14 +369,14 @@ const tokens = {
|
|
|
200
369
|
},
|
|
201
370
|
"border": {
|
|
202
371
|
"subtle": {
|
|
203
|
-
"light": "rgba(20, 20, 16, 0.
|
|
204
|
-
"dark": "rgba(237, 237, 235, 0.
|
|
205
|
-
"description": "Subtle borders - element separation"
|
|
372
|
+
"light": "rgba(20, 20, 16, 0.47)",
|
|
373
|
+
"dark": "rgba(237, 237, 235, 0.47)",
|
|
374
|
+
"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
375
|
},
|
|
207
376
|
"moderate": {
|
|
208
|
-
"light": "rgba(20, 20, 16, 0.
|
|
209
|
-
"dark": "rgba(237, 237, 235, 0.
|
|
210
|
-
"description": "Moderate borders - defined boundaries"
|
|
377
|
+
"light": "rgba(20, 20, 16, 0.63)",
|
|
378
|
+
"dark": "rgba(237, 237, 235, 0.63)",
|
|
379
|
+
"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
380
|
},
|
|
212
381
|
"focus": {
|
|
213
382
|
"light": "#3498DB",
|
|
@@ -278,23 +447,23 @@ const tokens = {
|
|
|
278
447
|
"font": {
|
|
279
448
|
"family": {
|
|
280
449
|
"sans": {
|
|
281
|
-
"value": "Noto Sans,
|
|
282
|
-
"description": "Primary sans-serif font - body text"
|
|
450
|
+
"value": "Noto Sans, Noto Sans Math, system-ui, sans-serif",
|
|
451
|
+
"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
452
|
},
|
|
284
453
|
"mono": {
|
|
285
|
-
"value": "
|
|
286
|
-
"description": "
|
|
454
|
+
"value": "Noto Sans Mono, SF Mono, Monaco, Inconsolata, monospace",
|
|
455
|
+
"description": "Noto Sans Mono — code blocks and technical content; matches the shipped font"
|
|
287
456
|
},
|
|
288
457
|
"display": {
|
|
289
458
|
"value": "var(--font-family-display-editorial)",
|
|
290
|
-
"description": "
|
|
459
|
+
"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
460
|
},
|
|
292
461
|
"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."
|
|
462
|
+
"value": "Josefin Sans, Noto Sans, Noto Sans Math, system-ui, sans-serif",
|
|
463
|
+
"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
464
|
},
|
|
296
465
|
"display-documentation": {
|
|
297
|
-
"value": "Noto Sans, system-ui, sans-serif",
|
|
466
|
+
"value": "Noto Sans, Noto Sans Math, system-ui, sans-serif",
|
|
298
467
|
"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
468
|
},
|
|
300
469
|
"brand": {
|
|
@@ -302,8 +471,8 @@ const tokens = {
|
|
|
302
471
|
"description": "Brand font - dataimago navbar and branding elements"
|
|
303
472
|
},
|
|
304
473
|
"math": {
|
|
305
|
-
"value": "Noto Sans Math,
|
|
306
|
-
"description": "
|
|
474
|
+
"value": "Noto Sans Math, math",
|
|
475
|
+
"description": "Noto Sans Math, falling back to the browser's maths face; native MathML is the maths contract"
|
|
307
476
|
}
|
|
308
477
|
},
|
|
309
478
|
"size": {
|