1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
---
title: Color
summary: >-
Two neutral ramps, five accents, two fixed semantic colors, seventeen
semantic aliases. Low-chroma warm-gray, never stark white or black.
---
## The two layers
The system separates *what a color is* from *what a color is for*.
The **ramps** below are raw material: ten steps of neutral (light), the same
ten inverted for dark mode, and five accent hues. No component references
them directly.
The **aliases** underneath are the working vocabulary — `--gl-color-text-primary`,
`--gl-color-surface-card`, `--gl-color-accent`. Every component stylesheet
reads from these. Retheming, or switching to dark, means repointing aliases
at different values — which is exactly what the dark block does.
<div class="gl-callout">
<p>
The neutral ramps were authored in <code>oklch()</code>. Every value
below is that same color converted to flat sRGB hex — not re-picked,
not rounded. The contrast figures on this page are computed from those
hex values with the standard WCAG 2.1 relative-luminance
formula, then transcribed here as fact rather than typed by eye.
</p>
</div>
## Neutral
Low-chroma warm-gray, never stark white or black. Ten steps, not twelve or
sixteen — the palette defines exactly these.
<p class="gl-muted">Low-chroma warm-gray. Not stark white or black. Ten steps, not twelve: exactly 0/50/100/150/200/300/500/600/800/900 — steps 400 and 700 do not exist.</p>
<ul class="gl-swatch-grid">
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #faf9f7; color: #171512;">n-0</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#faf9f7</span>
<span class="gl-swatch__ratio">1.05 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #fdfdfb; color: #171512;">n-50</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#fdfdfb</span>
<span class="gl-swatch__ratio">1.02 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #f1f0ed; color: #171512;">n-100</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#f1f0ed</span>
<span class="gl-swatch__ratio">1.14 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #e8e6e2; color: #171512;">n-150</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#e8e6e2</span>
<span class="gl-swatch__ratio">1.25 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #dcdad7; color: #171512;">n-200</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#dcdad7</span>
<span class="gl-swatch__ratio">1.40 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #c0bdb9; color: #171512;">n-300</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#c0bdb9</span>
<span class="gl-swatch__ratio">1.87 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #888681; color: #171512;">n-500</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#888681</span>
<span class="gl-swatch__ratio">3.64 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #5f5d59; color: #ffffff;">n-600</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#5f5d59</span>
<span class="gl-swatch__ratio">6.57 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #2a2926; color: #ffffff;">n-800</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#2a2926</span>
<span class="gl-swatch__ratio">14.55 on white</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #100f0d; color: #ffffff;">n-900</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#100f0d</span>
<span class="gl-swatch__ratio">19.16 on white</span>
</div>
</li>
</ul>
<p class="gl-muted">The same low-chroma warm-gray scale, inverted for dark mode. Same ten step numbers as `neutral`; `0` is the darkest step here (the dark-theme page background) rather than the lightest.</p>
<ul class="gl-swatch-grid">
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #0e0d0b; color: #ffffff;">nd-0</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#0e0d0b</span>
<span class="gl-swatch__ratio">1.08 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #151412; color: #ffffff;">nd-50</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#151412</span>
<span class="gl-swatch__ratio">1.14 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #1e1d1a; color: #ffffff;">nd-100</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#1e1d1a</span>
<span class="gl-swatch__ratio">1.25 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #252421; color: #ffffff;">nd-150</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#252421</span>
<span class="gl-swatch__ratio">1.35 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #2c2b29; color: #ffffff;">nd-200</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#2c2b29</span>
<span class="gl-swatch__ratio">1.48 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #44423f; color: #ffffff;">nd-300</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#44423f</span>
<span class="gl-swatch__ratio">2.10 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #7c7a76; color: #ffffff;">nd-500</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#7c7a76</span>
<span class="gl-swatch__ratio">4.90 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #a09e9a; color: #171512;">nd-600</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#a09e9a</span>
<span class="gl-swatch__ratio">7.85 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #d9d7d4; color: #171512;">nd-800</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#d9d7d4</span>
<span class="gl-swatch__ratio">14.62 on black</span>
</div>
</li>
<li class="gl-swatch">
<div class="gl-swatch__chip" style="background: #e9e8e6; color: #171512;">nd-900</div>
<div class="gl-swatch__meta">
<span class="gl-swatch__hex">#e9e8e6</span>
<span class="gl-swatch__ratio">17.15 on black</span>
</div>
</li>
</ul>
## Accent
One swappable accent per project — never two in the same view. Signal Teal is
the default; the other four are the sanctioned menu a project can switch to.
<ul class="gl-accent-grid">
<li>
<div class="gl-accent-demo" style="background: #3a6a63;">teal (default)</div>
<div class="gl-specimen__meta"><code>#3a6a63</code><span>6.14:1 on white</span></div>
<p class="gl-muted" style="font-size: var(--gl-step--2); margin: var(--gl-space-3xs) 0 0;">Default. Neutral, technical.</p>
</li>
<li>
<div class="gl-accent-demo" style="background: #9a5a3c;">clay</div>
<div class="gl-specimen__meta"><code>#9a5a3c</code><span>5.38:1 on white</span></div>
<p class="gl-muted" style="font-size: var(--gl-step--2); margin: var(--gl-space-3xs) 0 0;">Warm, archival.</p>
</li>
<li>
<div class="gl-accent-demo" style="background: #2b4a78;">ink-blue</div>
<div class="gl-specimen__meta"><code>#2b4a78</code><span>8.92:1 on white</span></div>
<p class="gl-muted" style="font-size: var(--gl-step--2); margin: var(--gl-space-3xs) 0 0;">Sober, utilitarian.</p>
</li>
<li>
<div class="gl-accent-demo" style="background: #93701f;">ochre</div>
<div class="gl-specimen__meta"><code>#93701f</code><span>4.59:1 on white</span></div>
<p class="gl-muted" style="font-size: var(--gl-step--2); margin: var(--gl-space-3xs) 0 0;">Dry, papery.</p>
</li>
<li>
<div class="gl-accent-demo" style="background: #6a3a5c;">plum</div>
<div class="gl-specimen__meta"><code>#6a3a5c</code><span>8.85:1 on white</span></div>
<p class="gl-muted" style="font-size: var(--gl-step--2); margin: var(--gl-space-3xs) 0 0;">Quiet, personal.</p>
</li>
</ul>
<div class="gl-callout">
<p>
All five clear AA (4.5:1) for white text at their own value, but Ochre is
the tightest of the five at roughly 4.6:1 — closer to the floor than the
others (Ink Blue and Plum both clear 8.5:1). That is a real property of a
dry, papery ochre and is not being rounded away; a project choosing Ochre
as its accent should re-check any place it sets small white text directly
on the accent fill, rather than through <code>--gl-color-accent-fg</code>
on a full-size Button.
</p>
</div>
## Semantic aliases
Both themes, side by side. The left half of each chip is the light value and
the right half is the dark one.
### Surfaces
<p class="gl-muted">Backgrounds, from the page itself up to a card sitting on it.</p>
<table>
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Light</th>
<th scope="col">Dark</th>
<th scope="col">Use for</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #faf9f7"></span>
<span style="background: #0e0d0b"></span>
</span>
<code>--gl-color-surface-page</code>
</div>
</td>
<td><code>neutral.0</code></td>
<td><code>neutral_dark.0</code></td>
<td>The page itself. Nothing sits behind it.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #fdfdfb"></span>
<span style="background: #151412"></span>
</span>
<code>--gl-color-surface-card</code>
</div>
</td>
<td><code>neutral.50</code></td>
<td><code>neutral_dark.50</code></td>
<td>Cards, dialogs, toasts — anything that reads as a sheet on the page.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #f1f0ed"></span>
<span style="background: #1e1d1a"></span>
</span>
<code>--gl-color-surface-fill</code>
</div>
</td>
<td><code>neutral.100</code></td>
<td><code>neutral_dark.100</code></td>
<td>Recessed fill — a hovered row, a segmented-tab track, a photo placeholder.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #e8e6e2"></span>
<span style="background: #252421"></span>
</span>
<code>--gl-color-surface-fill-2</code>
</div>
</td>
<td><code>neutral.150</code></td>
<td><code>neutral_dark.150</code></td>
<td>A second, deeper fill step — the diagonal-grain stripe inside an empty photo slot.</td>
</tr>
</tbody>
</table>
### Borders
<p class="gl-muted">Two weights. Hairlines do most of the elevation work in this system, so there was never a reason for a third.</p>
<table>
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Light</th>
<th scope="col">Dark</th>
<th scope="col">Use for</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #dcdad7"></span>
<span style="background: #2c2b29"></span>
</span>
<code>--gl-color-border-hairline</code>
</div>
</td>
<td><code>neutral.200</code></td>
<td><code>neutral_dark.200</code></td>
<td>Card edges, row dividers, dialog dividers. The default edge everywhere.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #c0bdb9"></span>
<span style="background: #44423f"></span>
</span>
<code>--gl-color-border-default</code>
</div>
</td>
<td><code>neutral.300</code></td>
<td><code>neutral_dark.300</code></td>
<td>Input and button borders — anything a reader has to recognize as a control.</td>
</tr>
</tbody>
</table>
### Text
<p class="gl-muted">Three levels of emphasis, deliberately not four. Past three, a reader stops perceiving a hierarchy and starts perceiving noise.</p>
<table>
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Light</th>
<th scope="col">Dark</th>
<th scope="col">Use for</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #100f0d"></span>
<span style="background: #e9e8e6"></span>
</span>
<code>--gl-color-text-primary</code>
</div>
</td>
<td><code>neutral.900</code></td>
<td><code>neutral_dark.900</code></td>
<td>Body copy, headings, and every control label.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #5f5d59"></span>
<span style="background: #a09e9a"></span>
</span>
<code>--gl-color-text-secondary</code>
</div>
</td>
<td><code>neutral.600</code></td>
<td><code>neutral_dark.600</code></td>
<td>Supporting copy, hints, mono meta values, type-label's color.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #888681"></span>
<span style="background: #7c7a76"></span>
</span>
<code>--gl-color-text-tertiary</code>
</div>
</td>
<td><code>neutral.500</code></td>
<td><code>neutral_dark.500</code></td>
<td>Placeholders and de-emphasized metadata only — never body text. This step is intentionally sub-AA against the page; see the caveat on the Color page.</td>
</tr>
</tbody>
</table>
### Accent
<p class="gl-muted">One swappable accent per project, held constant across a whole view. `-ink` and `-soft` re-derive from `--gl-color-accent` via `color-mix()`, so retheming the accent retones both automatically.</p>
<table>
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Light</th>
<th scope="col">Dark</th>
<th scope="col">Use for</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #3a6a63"></span>
<span style="background: #3a6a63"></span>
</span>
<code>--gl-color-accent</code>
</div>
</td>
<td><code>accent.teal</code></td>
<td><code>accent.teal</code></td>
<td>Primary buttons, links, focus affordance, the active tab underline. Never two accents in one view.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #ffffff"></span>
<span style="background: #ffffff"></span>
</span>
<code>--gl-color-accent-fg</code>
</div>
</td>
<td><code>#ffffff</code></td>
<td><code>#ffffff</code></td>
<td>Label and icon color on a filled accent surface. Fixed white, not a ramp reference.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: repeating-linear-gradient(45deg, var(--gl-color-surface-fill) 0 4px, var(--gl-color-surface-card) 4px 8px);"></span>
<code>--gl-color-accent-ink</code>
</div>
</td>
<td><code>color-mix(in oklch, var(--gl-color-accent) 78%, black)</code></td>
<td><code>color-mix(in oklch, var(--gl-color-accent) 78%, black)</code></td>
<td>Text sitting on an `-soft` accent tint — an IconButton's active state, an accent avatar's initials.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: repeating-linear-gradient(45deg, var(--gl-color-surface-fill) 0 4px, var(--gl-color-surface-card) 4px 8px);"></span>
<code>--gl-color-accent-soft</code>
</div>
</td>
<td><code>color-mix(in oklch, var(--gl-color-accent) 12%, white)</code></td>
<td><code>color-mix(in oklch, var(--gl-color-accent) 12%, white)</code></td>
<td>The tint behind an accent Badge, a toggled IconButton, an accent avatar chip.</td>
</tr>
</tbody>
</table>
### Status
<p class="gl-muted">Exactly two states, both fixed — they read the same in every project and are never swapped the way the accent is.</p>
<table>
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Light</th>
<th scope="col">Dark</th>
<th scope="col">Use for</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #3f7a4a"></span>
<span style="background: #3f7a4a"></span>
</span>
<code>--gl-color-success</code>
</div>
</td>
<td><code>#3f7a4a</code></td>
<td><code>#3f7a4a</code></td>
<td>Success text and icons — a completed task's check, a saved-state badge.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: repeating-linear-gradient(45deg, var(--gl-color-surface-fill) 0 4px, var(--gl-color-surface-card) 4px 8px);"></span>
<code>--gl-color-success-bg</code>
</div>
</td>
<td><code>color-mix(in oklch, var(--gl-color-success) 12%, white)</code></td>
<td><code>color-mix(in oklch, var(--gl-color-success) 12%, white)</code></td>
<td>Tint behind a success Badge. Mixed against literal white, so it stays constant across themes.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip gl-alias-chip--pair" aria-hidden="true">
<span style="background: #ad3a2c"></span>
<span style="background: #ad3a2c"></span>
</span>
<code>--gl-color-danger</code>
</div>
</td>
<td><code>#ad3a2c</code></td>
<td><code>#ad3a2c</code></td>
<td>Overdue/destructive text, the Toast undo action, a danger Button's fill.</td>
</tr>
<tr>
<td>
<div class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: repeating-linear-gradient(45deg, var(--gl-color-surface-fill) 0 4px, var(--gl-color-surface-card) 4px 8px);"></span>
<code>--gl-color-danger-bg</code>
</div>
</td>
<td><code>color-mix(in oklch, var(--gl-color-danger) 10%, white)</code></td>
<td><code>color-mix(in oklch, var(--gl-color-danger) 10%, white)</code></td>
<td>Tint behind a danger Badge. Mixed against literal white, so it stays constant across themes.</td>
</tr>
</tbody>
</table>
## Contrast that has to hold
Color is the one part of this system that is not arbitrary: a ratio is a
fact about two colors and a pair of eyes, and it does not care what the
palette wants. The pairings below are fixed facts about the token values
above, computed once with the standard WCAG 2.1 relative-luminance formula
and checked by hand rather than by a build-time test.
### Text — 4.5:1 minimum
<p class="gl-muted">WCAG 2.1 SC 1.4.3 (normal-size text)</p>
<table>
<thead>
<tr>
<th scope="col">Pairing</th>
<th scope="col">Where it shows up</th>
<th scope="col" class="num">Light</th>
<th scope="col" class="num">Dark</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: #faf9f7; color: #100f0d; display: grid; place-items: center; font-size: 10px;">Aa</span>
<code>color-text-primary<br><span class="gl-subtle">on color-surface-page</span></code>
</span>
</td>
<td>Body copy</td>
<td class="num">18.21</td>
<td class="num">15.86</td>
</tr>
<tr>
<td>
<span class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: #faf9f7; color: #5f5d59; display: grid; place-items: center; font-size: 10px;">Aa</span>
<code>color-text-secondary<br><span class="gl-subtle">on color-surface-page</span></code>
</span>
</td>
<td>Supporting copy</td>
<td class="num">6.24</td>
<td class="num">7.26</td>
</tr>
<tr>
<td>
<span class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: #3a6a63; color: #ffffff; display: grid; place-items: center; font-size: 10px;">Aa</span>
<code>color-accent-fg<br><span class="gl-subtle">on color-accent</span></code>
</span>
</td>
<td>The label on a primary or dark-variant Button.</td>
<td class="num">6.14</td>
<td class="num">6.14</td>
</tr>
<tr>
<td>
<span class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: #ffffff; color: #3f7a4a; display: grid; place-items: center; font-size: 10px;">Aa</span>
<code>color-success<br><span class="gl-subtle">on color-accent-fg</span></code>
</span>
</td>
<td>Success text on a light backdrop — proxied by color-accent-fg</td>
<td class="num">5.13</td>
<td class="num">5.13</td>
</tr>
<tr>
<td>
<span class="gl-alias-row">
<span class="gl-alias-chip" aria-hidden="true" style="background: #ffffff; color: #ad3a2c; display: grid; place-items: center; font-size: 10px;">Aa</span>
<code>color-danger<br><span class="gl-subtle">on color-accent-fg</span></code>
</span>
</td>
<td>Overdue/destructive text on a light backdrop</td>
<td class="num">6.14</td>
<td class="num">6.14</td>
</tr>
</tbody>
</table>
<div class="gl-callout">
<p>
Two things this contract deliberately does not assert.
<strong>Text tertiary</strong> — <code>--gl-color-text-tertiary</code>
(neutral.500) is roughly 3.46:1 against the page in light mode, under the
4.5:1 floor. That step is documented as muted-faint text — placeholders
and de-emphasized metadata, never body copy — so this is a real,
intentional property of the palette, not a bug to patch by darkening the
step.
<strong>Dividers</strong> — <code>--gl-color-border-hairline</code> and
<code>--gl-color-border-default</code> sit well under the 3:1 that WCAG
1.4.11 asks of a meaningful boundary. That's deliberate: a bounded
surface in this system reads by surface contrast, not a border, so these
tokens are reserved for dividers inside a surface (a CardRow, a table
rule) — never a boundary around one — and this system never claims a
3:1 bar for them, so this contract does not invent one.
</p>
</div>
## Rules
- **Never write a hex outside `assets/css/tokens.css`.** If a component
needs a color that does not exist yet, add the alias.
- **One accent per project, never two in a view.** Swapping `--gl-color-accent`
re-derives `-ink` and `-soft` automatically via `color-mix()`.
- **`--gl-color-success` and `--gl-color-danger` are fixed.** They read the
same in every project and are never swapped the way the accent is.