@atom63/styles 0.1.0-beta.7 → 0.1.0-beta.8

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.
Files changed (47) hide show
  1. package/README.md +5 -2
  2. package/generated/atom63.figma-sync.json +5303 -3801
  3. package/generated/atom63.tokens.json +7298 -4304
  4. package/package.json +3 -3
  5. package/src/compat/a63-from-shadcn.css +5 -1
  6. package/src/compat/shadcn.css +15 -1
  7. package/src/contracts/choice.css +1 -1
  8. package/src/contracts/choice.tokens.json +1 -1
  9. package/src/contracts/control.css +14 -8
  10. package/src/contracts/control.tokens.json +57 -8
  11. package/src/contracts/environment.css +134 -12
  12. package/src/contracts/environment.resolver.json +664 -23
  13. package/src/contracts/field.css +1 -1
  14. package/src/contracts/field.tokens.json +1 -1
  15. package/src/contracts/selection.css +2 -0
  16. package/src/contracts/selection.tokens.json +5 -0
  17. package/src/contracts/surface.css +4 -0
  18. package/src/contracts/surface.tokens.json +57 -0
  19. package/src/tailwind/roles.json +19 -2
  20. package/src/tailwind/theme.css +104 -2
  21. package/src/tailwind/utilities.css +17 -0
  22. package/src/themes/aqua.css +1 -0
  23. package/src/themes/aqua.resolver.json +6 -0
  24. package/src/themes/retro.css +1 -0
  25. package/src/themes/retro.resolver.json +6 -0
  26. package/src/themes/terminal.css +8 -0
  27. package/src/themes/terminal.resolver.json +37 -0
  28. package/src/tokens/brand-action.css +4 -0
  29. package/src/tokens/brand-action.resolver.json +18 -0
  30. package/src/tokens/contrast.browser.test.ts +40 -16
  31. package/src/tokens/density.browser.test.ts +167 -0
  32. package/src/tokens/form-factor.browser.test.ts +129 -0
  33. package/src/tokens/foundation/primitives.css +0 -30
  34. package/src/tokens/foundation/primitives.tokens.json +0 -212
  35. package/src/tokens/foundation/radius.css +5 -0
  36. package/src/tokens/foundation/radius.tokens.json +8 -0
  37. package/src/tokens/foundation/typography.css +24 -0
  38. package/src/tokens/foundation/typography.native.css +12 -2
  39. package/src/tokens/foundation/typography.resolver.json +72 -0
  40. package/src/tokens/index.css +1 -0
  41. package/src/tokens/personalization-axes.browser.test.ts +13 -0
  42. package/src/tokens/semantics.css +104 -5
  43. package/src/tokens/semantics.resolver.json +253 -11
  44. package/src/tokens/surface.css +8 -0
  45. package/src/tokens/surface.resolver.json +49 -0
  46. package/src/tokens/type-roles.css +75 -0
  47. package/src/tokens/type-roles.resolver.json +366 -0
@@ -6,6 +6,30 @@
6
6
  "sources": [
7
7
  {
8
8
  "typography": {
9
+ "2xs": {
10
+ "font": {
11
+ "size": {
12
+ "$value": {
13
+ "value": 11,
14
+ "unit": "px"
15
+ },
16
+ "$extensions": {
17
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
18
+ }
19
+ }
20
+ },
21
+ "line": {
22
+ "height": {
23
+ "$value": {
24
+ "value": 13,
25
+ "unit": "px"
26
+ },
27
+ "$extensions": {
28
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
29
+ }
30
+ }
31
+ }
32
+ },
9
33
  "xs": {
10
34
  "font": {
11
35
  "size": {
@@ -317,6 +341,54 @@
317
341
  }
318
342
  }
319
343
  }
344
+ },
345
+ "10xl": {
346
+ "font": {
347
+ "size": {
348
+ "$value": {
349
+ "value": 40,
350
+ "unit": "px"
351
+ },
352
+ "$extensions": {
353
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
354
+ }
355
+ }
356
+ },
357
+ "line": {
358
+ "height": {
359
+ "$value": {
360
+ "value": 44,
361
+ "unit": "px"
362
+ },
363
+ "$extensions": {
364
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
365
+ }
366
+ }
367
+ }
368
+ },
369
+ "11xl": {
370
+ "font": {
371
+ "size": {
372
+ "$value": {
373
+ "value": 56,
374
+ "unit": "px"
375
+ },
376
+ "$extensions": {
377
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
378
+ }
379
+ }
380
+ },
381
+ "line": {
382
+ "height": {
383
+ "$value": {
384
+ "value": 60,
385
+ "unit": "px"
386
+ },
387
+ "$extensions": {
388
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
389
+ }
390
+ }
391
+ }
320
392
  }
321
393
  },
322
394
  "$type": "dimension"
@@ -3,6 +3,7 @@
3
3
  @import './radius.css';
4
4
  @import './type-scale.css';
5
5
  @import './font.css';
6
+ @import './type-roles.css';
6
7
  @import './motion.css';
7
8
  @import './semantics.css';
8
9
  @import './brand.css';
@@ -53,6 +53,19 @@ describe('radius scale axis', () => {
53
53
  probe.remove()
54
54
  })
55
55
 
56
+ it('keeps --radius-pill a fixed 9999px pill on every radius axis value', () => {
57
+ const probe = document.createElement('div')
58
+ probe.style.borderRadius = 'var(--radius-pill)'
59
+ document.body.appendChild(probe)
60
+
61
+ expect(getComputedStyle(probe).borderRadius).toBe('9999px')
62
+ for (const value of ['none', 'subtle', 'default', 'round']) {
63
+ root().setAttribute('data-a63-radius', value)
64
+ expect(getComputedStyle(probe).borderRadius).toBe('9999px')
65
+ }
66
+ probe.remove()
67
+ })
68
+
56
69
  it('keeps avatar radius circular by default while still following the radius axis', () => {
57
70
  const probe = document.createElement('div')
58
71
  probe.style.borderRadius = 'var(--a63-avatar-radius)'
@@ -14,6 +14,16 @@
14
14
  --a63-surface-tint: 0%;
15
15
  /* Scrim — the modal/drawer/sheet backdrop veil behind overlays. */
16
16
  --a63-scrim: color-mix(in oklch, black 40%, transparent);
17
+ /* A vertical fade to dark under text laid over a photo, such as a title at the foot of a hero image. */
18
+ --a63-gradient-scrim: linear-gradient(
19
+ to bottom,
20
+ transparent,
21
+ color-mix(in oklch, black 60%, transparent)
22
+ );
23
+ /* The dark zone of --a63-gradient-brand-fade: the top share of the hero that stays at brand 700 or darker, where white on-media text and overlay controls reach WCAG AA on every brand. Below it the hero fades into the page, so content there uses the page tokens, on its own panel while the fade is still running. */
24
+ --a63-gradient-brand-fade-dark-zone: 50%;
25
+ /* Shadow color — the ink of drop shadows and the faint edge of a raised knob. Black in every theme and mode; recipes mix it to the strength they need, so they never write a literal color. */
26
+ --a63-shadow-color: var(--color-black-100);
17
27
  /* Media stage — behind full-screen photos and video: black in every theme, so letterboxing matches the picture. */
18
28
  --a63-media-stage: var(--color-black-100);
19
29
  /* Media scrim — the dim behind a video dialog; heavier than --a63-scrim because the video is the only thing on screen. */
@@ -130,9 +140,22 @@
130
140
  /* The sidebar surface (shadcn `sidebar`): the muted surface in light mode and
131
141
  the page surface in dark mode. */
132
142
  --a63-surface-sidebar: var(--a63-surface-muted);
143
+ /* A panel set back from the page, such as the command palette's list: the muted surface in light mode and the page surface in dark mode. */
144
+ --a63-surface-recessed: var(--a63-surface-muted);
145
+ /* A hero that fades from the brand into the page: brand 800 at the top, brand 700 at the end of the dark zone (--a63-gradient-brand-fade-dark-zone), then the page color at the bottom. Overlay buttons and on-media labels go in the dark zone only; content over the faded part uses the page tokens. */
146
+ --a63-gradient-brand-fade: linear-gradient(
147
+ to bottom,
148
+ var(--a63-brand-800),
149
+ var(--a63-brand-700) var(--a63-gradient-brand-fade-dark-zone),
150
+ var(--a63-surface-page)
151
+ );
133
152
  /* Text */
134
153
  --a63-text-primary: var(--surface-light-12);
135
154
  --a63-text-secondary: var(--surface-light-11);
155
+ /* The third text grey, lighter than secondary: placeholders, meta and timestamps.
156
+ Seven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,
157
+ the panel, the field fill and the muted fill of a filled field. */
158
+ --a63-text-tertiary: color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10));
136
159
  /* The brand as text (links, accents) on light surfaces; brand.css picks the
137
160
  ramp step per brand. Use --a63-action-primary for fills. */
138
161
  --a63-text-accent: var(--a63-brand-text);
@@ -150,6 +173,36 @@
150
173
  var(--surface-light-5) calc(100% - var(--a63-surface-tint)),
151
174
  var(--a63-brand-400) var(--a63-surface-tint)
152
175
  );
176
+ /* The border of a form control a person has to find: text fields, selects,
177
+ checkboxes, radios, switches and slider thumbs. WCAG 1.4.11 needs 3:1 against
178
+ the page, the panel and the field fill; step 10 reaches that on every theme,
179
+ brand and surface (step 9 falls to about 2.97:1). Decorative edges keep
180
+ --a63-border-control. */
181
+ --a63-border-input: color-mix(
182
+ in oklab,
183
+ var(--surface-light-10) calc(100% - var(--a63-surface-tint)),
184
+ var(--a63-brand-500) var(--a63-surface-tint)
185
+ );
186
+ /* Outline controls (the outline Button and the button-group ConnectedPanel): the fill at rest. Dark mode tints it from the control border instead of the panel. */
187
+ --a63-control-outline-background: var(--a63-surface-panel);
188
+ /* Outline controls: the fill on hover and press. */
189
+ --a63-control-outline-hover-background: color-mix(
190
+ in oklab,
191
+ var(--a63-surface-control-hover) 50%,
192
+ transparent
193
+ );
194
+ /* Outline controls: the border on hover and press. */
195
+ --a63-control-outline-hover-border: var(--a63-border-subtle);
196
+ /* The default Alert's fill: none in light mode, a faint control-surface tint in dark mode. */
197
+ --a63-alert-background: transparent;
198
+ /* A choice card (a FieldLabel wrapping a checkbox, radio or switch) when checked: its border. */
199
+ --a63-choice-card-checked-border: color-mix(in oklch, var(--a63-action-primary) 30%, transparent);
200
+ /* A checked choice card's fill. */
201
+ --a63-choice-card-checked-background: color-mix(
202
+ in oklch,
203
+ var(--a63-action-primary) 5%,
204
+ transparent
205
+ );
153
206
  /* The keyboard focus ring. WCAG 1.4.11 needs 3:1 against the control and the
154
207
  page around it; step 600 reaches that on every brand's light surfaces (the
155
208
  translucent 500 it replaced was about 1.4:1). */
@@ -164,6 +217,12 @@
164
217
  --a63-action-danger-foreground: white;
165
218
  --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
166
219
  --a63-action-danger-subtle-foreground: var(--color-danger-700);
220
+ /* A disabled solid or outline action (Button): a neutral fill, so it reads as unavailable rather than as a paler accent. */
221
+ --a63-action-disabled-background: var(--a63-surface-muted);
222
+ /* A disabled action's label and icon: muted text. It stays legible (about 3:1 on the disabled fill) but is exempt from WCAG's 4.5:1. */
223
+ --a63-action-disabled-foreground: var(--surface-light-9);
224
+ /* A disabled action's border. */
225
+ --a63-action-disabled-border: var(--a63-border-subtle);
167
226
  /* Status (danger's status role is served by --a63-action-danger). The base is
168
227
  the accent used for tinted callouts (bg = mix toward transparent, text/border
169
228
  = the accent); -foreground is the text/icon color ON a SOLID status fill.
@@ -222,10 +281,14 @@
222
281
  --a63-category-zinc-subtle-foreground: var(--color-zinc-700);
223
282
  --a63-category-neutral-subtle-foreground: var(--color-neutral-700);
224
283
  --a63-category-stone-subtle-foreground: var(--color-stone-700);
225
- /* A selected item in a list, menu or grid: a light wash of the primary. */
226
- --a63-selected-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
284
+ /* A selected or current item in a list, menu, table or grid: a neutral muted fill. */
285
+ --a63-selected-background: var(--a63-surface-muted);
227
286
  /* Text and icons of a selected item. */
228
- --a63-selected-foreground: var(--a63-text-accent);
287
+ --a63-selected-foreground: var(--a63-text-primary);
288
+ /* The opt-in accent selection (tone="accent"): a light wash of the primary. */
289
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
290
+ /* Text and icons of an accent-selected item. */
291
+ --a63-selected-accent-foreground: var(--a63-text-accent);
229
292
  }
230
293
 
231
294
  :is(.dark, [data-a63-mode='dark']) {
@@ -268,8 +331,19 @@
268
331
  transparent 20%
269
332
  );
270
333
  --a63-surface-sidebar: var(--a63-surface-page);
334
+ --a63-surface-recessed: var(--a63-surface-page);
335
+ /* A hero that fades from the brand into the page: brand 800 at the top, brand 700 at the end of the dark zone (--a63-gradient-brand-fade-dark-zone), then the page color at the bottom. Overlay buttons and on-media labels go in the dark zone only; content over the faded part uses the page tokens. */
336
+ --a63-gradient-brand-fade: linear-gradient(
337
+ to bottom,
338
+ var(--a63-brand-800),
339
+ var(--a63-brand-700) var(--a63-gradient-brand-fade-dark-zone),
340
+ var(--a63-surface-page)
341
+ );
271
342
  --a63-text-primary: var(--surface-dark-12);
272
343
  --a63-text-secondary: var(--surface-dark-11);
344
+ /* Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,
345
+ the field fill and the muted fill. */
346
+ --a63-text-tertiary: color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10));
273
347
  /* The primary fill is too dark to read as text on dark surfaces. */
274
348
  --a63-text-accent: var(--a63-brand-400);
275
349
  /* Danger text on dark surfaces: step 400 reaches WCAG AA 4.5:1 on every theme's
@@ -285,6 +359,26 @@
285
359
  var(--surface-dark-7) calc(100% - var(--a63-surface-tint)),
286
360
  var(--a63-brand-500) var(--a63-surface-tint)
287
361
  );
362
+ /* Step 9 on dark surfaces reaches 3:1 against the page, the panel and the field fill. */
363
+ --a63-border-input: color-mix(
364
+ in oklab,
365
+ var(--surface-dark-9) calc(100% - var(--a63-surface-tint)),
366
+ var(--a63-brand-500) var(--a63-surface-tint)
367
+ );
368
+ --a63-control-outline-background: color-mix(in oklab, var(--a63-border-control) 32%, transparent);
369
+ --a63-control-outline-hover-background: color-mix(
370
+ in oklab,
371
+ var(--a63-border-control) 64%,
372
+ transparent
373
+ );
374
+ --a63-control-outline-hover-border: var(--a63-border-control);
375
+ --a63-alert-background: color-mix(in oklab, var(--a63-surface-control) 32%, transparent);
376
+ --a63-choice-card-checked-border: color-mix(in oklch, var(--a63-action-primary) 20%, transparent);
377
+ --a63-choice-card-checked-background: color-mix(
378
+ in oklch,
379
+ var(--a63-action-primary) 10%,
380
+ transparent
381
+ );
288
382
  /* Step 400 on dark surfaces: 600 and some brands' 500 fall below 3:1 there. */
289
383
  --a63-focus-ring: var(--a63-brand-400);
290
384
  --a63-action-neutral: var(--surface-dark-12);
@@ -292,6 +386,9 @@
292
386
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 82%, white 8%);
293
387
  --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
294
388
  --a63-action-danger-subtle-foreground: var(--color-danger-400);
389
+ --a63-action-disabled-background: var(--a63-surface-muted);
390
+ --a63-action-disabled-foreground: var(--surface-dark-9);
391
+ --a63-action-disabled-border: var(--a63-border-subtle);
295
392
  --a63-status-info: var(--color-info-500);
296
393
  --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
297
394
  --a63-status-info-subtle-foreground: var(--color-info-400);
@@ -328,6 +425,8 @@
328
425
  --a63-category-zinc-subtle-foreground: var(--color-zinc-400);
329
426
  --a63-category-neutral-subtle-foreground: var(--color-neutral-400);
330
427
  --a63-category-stone-subtle-foreground: var(--color-stone-400);
331
- --a63-selected-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
332
- --a63-selected-foreground: var(--a63-text-accent);
428
+ --a63-selected-background: var(--a63-surface-muted);
429
+ --a63-selected-foreground: var(--a63-text-primary);
430
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
431
+ --a63-selected-accent-foreground: var(--a63-text-accent);
333
432
  }
@@ -23,6 +23,33 @@
23
23
  },
24
24
  "$description": "Scrim — the modal/drawer/sheet backdrop veil behind overlays."
25
25
  },
26
+ "gradient": {
27
+ "scrim": {
28
+ "$type": "color",
29
+ "$value": "{color.black.100}",
30
+ "$extensions": {
31
+ "io.atom63.derive": "linear-gradient(to bottom, transparent, color-mix(in oklch, black 60%, transparent))"
32
+ },
33
+ "$description": "A vertical fade to dark under text laid over a photo, such as a title at the foot of a hero image."
34
+ },
35
+ "brand-fade": {
36
+ "dark-zone": {
37
+ "$type": "number",
38
+ "$value": 50,
39
+ "$extensions": {
40
+ "io.atom63.derive": "50%"
41
+ },
42
+ "$description": "The dark zone of --a63-gradient-brand-fade: the top share of the hero that stays at brand 700 or darker, where white on-media text and overlay controls reach WCAG AA on every brand. Below it the hero fades into the page, so content there uses the page tokens, on its own panel while the fade is still running."
43
+ }
44
+ }
45
+ },
46
+ "shadow": {
47
+ "color": {
48
+ "$type": "color",
49
+ "$value": "{color.black.100}",
50
+ "$description": "Shadow color — the ink of drop shadows and the faint edge of a raised knob. Black in every theme and mode; recipes mix it to the strength they need, so they never write a literal color."
51
+ }
52
+ },
26
53
  "media": {
27
54
  "stage": {
28
55
  "$type": "color",
@@ -474,6 +501,23 @@
474
501
  "$type": "color",
475
502
  "$value": "{a63.surface.muted}",
476
503
  "$description": "The sidebar surface (shadcn `sidebar`): the muted surface in light mode and\nthe page surface in dark mode."
504
+ },
505
+ "recessed": {
506
+ "$type": "color",
507
+ "$value": "{a63.surface.muted}",
508
+ "$description": "A panel set back from the page, such as the command palette's list: the muted surface in light mode and the page surface in dark mode."
509
+ }
510
+ },
511
+ "gradient": {
512
+ "brand-fade": {
513
+ "$root": {
514
+ "$type": "color",
515
+ "$value": "{a63.brand.800}",
516
+ "$extensions": {
517
+ "io.atom63.derive": "linear-gradient(to bottom, {a63.brand.800}, {a63.brand.700} {a63.gradient.brand-fade.dark-zone}, {a63.surface.page})"
518
+ },
519
+ "$description": "A hero that fades from the brand into the page: brand 800 at the top, brand 700 at the end of the dark zone (--a63-gradient-brand-fade-dark-zone), then the page color at the bottom. Overlay buttons and on-media labels go in the dark zone only; content over the faded part uses the page tokens."
520
+ }
477
521
  }
478
522
  },
479
523
  "text": {
@@ -486,6 +530,14 @@
486
530
  "$type": "color",
487
531
  "$value": "{surface.light.11}"
488
532
  },
533
+ "tertiary": {
534
+ "$type": "color",
535
+ "$value": "{surface.light.11}",
536
+ "$extensions": {
537
+ "io.atom63.derive": "color-mix(in oklab, {surface.light.11} 70%, {surface.light.10})"
538
+ },
539
+ "$description": "The third text grey, lighter than secondary: placeholders, meta and timestamps.\nSeven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,\nthe panel, the field fill and the muted fill of a filled field."
540
+ },
489
541
  "accent": {
490
542
  "$type": "color",
491
543
  "$value": "{a63.brand.text}",
@@ -512,6 +564,64 @@
512
564
  "$extensions": {
513
565
  "io.atom63.derive": "color-mix( in oklab, {surface.light.5} calc(100% - {a63.surface.tint}), {a63.brand.400} {a63.surface.tint} )"
514
566
  }
567
+ },
568
+ "input": {
569
+ "$type": "color",
570
+ "$value": "{surface.light.10}",
571
+ "$extensions": {
572
+ "io.atom63.derive": "color-mix( in oklab, {surface.light.10} calc(100% - {a63.surface.tint}), {a63.brand.500} {a63.surface.tint} )"
573
+ },
574
+ "$description": "The border of a form control a person has to find: text fields, selects,\ncheckboxes, radios, switches and slider thumbs. WCAG 1.4.11 needs 3:1 against\nthe page, the panel and the field fill; step 10 reaches that on every theme,\nbrand and surface (step 9 falls to about 2.97:1). Decorative edges keep\n--a63-border-control."
575
+ }
576
+ },
577
+ "control": {
578
+ "outline": {
579
+ "background": {
580
+ "$type": "color",
581
+ "$value": "{a63.surface.panel}",
582
+ "$description": "Outline controls (the outline Button and the button-group ConnectedPanel): the fill at rest. Dark mode tints it from the control border instead of the panel."
583
+ },
584
+ "hover-background": {
585
+ "$type": "color",
586
+ "$value": "{a63.surface.control.hover}",
587
+ "$extensions": {
588
+ "io.atom63.derive": "color-mix(in oklab, {a63.surface.control.hover} 50%, transparent)"
589
+ },
590
+ "$description": "Outline controls: the fill on hover and press."
591
+ },
592
+ "hover-border": {
593
+ "$type": "color",
594
+ "$value": "{a63.border.subtle}",
595
+ "$description": "Outline controls: the border on hover and press."
596
+ }
597
+ }
598
+ },
599
+ "alert": {
600
+ "background": {
601
+ "$type": "color",
602
+ "$value": "{color.black.0}",
603
+ "$extensions": {
604
+ "io.atom63.derive": "transparent"
605
+ },
606
+ "$description": "The default Alert's fill: none in light mode, a faint control-surface tint in dark mode."
607
+ }
608
+ },
609
+ "choice-card": {
610
+ "checked-border": {
611
+ "$type": "color",
612
+ "$value": "{a63.action.primary}",
613
+ "$extensions": {
614
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 30%, transparent)"
615
+ },
616
+ "$description": "A choice card (a FieldLabel wrapping a checkbox, radio or switch) when checked: its border."
617
+ },
618
+ "checked-background": {
619
+ "$type": "color",
620
+ "$value": "{a63.action.primary}",
621
+ "$extensions": {
622
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 5%, transparent)"
623
+ },
624
+ "$description": "A checked choice card's fill."
515
625
  }
516
626
  },
517
627
  "focus-ring": {
@@ -563,6 +673,23 @@
563
673
  "$value": "{color.danger.700}"
564
674
  }
565
675
  }
676
+ },
677
+ "disabled": {
678
+ "background": {
679
+ "$type": "color",
680
+ "$value": "{a63.surface.muted}",
681
+ "$description": "A disabled solid or outline action (Button): a neutral fill, so it reads as unavailable rather than as a paler accent."
682
+ },
683
+ "foreground": {
684
+ "$type": "color",
685
+ "$value": "{surface.light.9}",
686
+ "$description": "A disabled action's label and icon: muted text. It stays legible (about 3:1 on the disabled fill) but is exempt from WCAG's 4.5:1."
687
+ },
688
+ "border": {
689
+ "$type": "color",
690
+ "$value": "{a63.border.subtle}",
691
+ "$description": "A disabled action's border."
692
+ }
566
693
  }
567
694
  },
568
695
  "status": {
@@ -853,16 +980,28 @@
853
980
  "selected": {
854
981
  "background": {
855
982
  "$type": "color",
856
- "$value": "{a63.action.primary}",
857
- "$description": "A selected item in a list, menu or grid: a light wash of the primary.",
858
- "$extensions": {
859
- "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
860
- }
983
+ "$value": "{a63.surface.muted}",
984
+ "$description": "A selected or current item in a list, menu, table or grid: a neutral muted fill."
861
985
  },
862
986
  "foreground": {
863
987
  "$type": "color",
864
- "$value": "{a63.text.accent}",
988
+ "$value": "{a63.text.primary}",
865
989
  "$description": "Text and icons of a selected item."
990
+ },
991
+ "accent": {
992
+ "background": {
993
+ "$type": "color",
994
+ "$value": "{a63.action.primary}",
995
+ "$description": "The opt-in accent selection (tone=\"accent\"): a light wash of the primary.",
996
+ "$extensions": {
997
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
998
+ }
999
+ },
1000
+ "foreground": {
1001
+ "$type": "color",
1002
+ "$value": "{a63.text.accent}",
1003
+ "$description": "Text and icons of an accent-selected item."
1004
+ }
866
1005
  }
867
1006
  }
868
1007
  }
@@ -921,6 +1060,22 @@
921
1060
  "sidebar": {
922
1061
  "$type": "color",
923
1062
  "$value": "{a63.surface.page}"
1063
+ },
1064
+ "recessed": {
1065
+ "$type": "color",
1066
+ "$value": "{a63.surface.page}"
1067
+ }
1068
+ },
1069
+ "gradient": {
1070
+ "brand-fade": {
1071
+ "$root": {
1072
+ "$type": "color",
1073
+ "$value": "{a63.brand.800}",
1074
+ "$extensions": {
1075
+ "io.atom63.derive": "linear-gradient(to bottom, {a63.brand.800}, {a63.brand.700} {a63.gradient.brand-fade.dark-zone}, {a63.surface.page})"
1076
+ },
1077
+ "$description": "A hero that fades from the brand into the page: brand 800 at the top, brand 700 at the end of the dark zone (--a63-gradient-brand-fade-dark-zone), then the page color at the bottom. Overlay buttons and on-media labels go in the dark zone only; content over the faded part uses the page tokens."
1078
+ }
924
1079
  }
925
1080
  },
926
1081
  "text": {
@@ -932,6 +1087,14 @@
932
1087
  "$type": "color",
933
1088
  "$value": "{surface.dark.11}"
934
1089
  },
1090
+ "tertiary": {
1091
+ "$type": "color",
1092
+ "$value": "{surface.dark.10}",
1093
+ "$extensions": {
1094
+ "io.atom63.derive": "color-mix(in oklab, {surface.dark.11} 30%, {surface.dark.10})"
1095
+ },
1096
+ "$description": "Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,\nthe field fill and the muted fill."
1097
+ },
935
1098
  "accent": {
936
1099
  "$type": "color",
937
1100
  "$value": "{a63.brand.400}",
@@ -957,6 +1120,61 @@
957
1120
  "$extensions": {
958
1121
  "io.atom63.derive": "color-mix( in oklab, {surface.dark.7} calc(100% - {a63.surface.tint}), {a63.brand.500} {a63.surface.tint} )"
959
1122
  }
1123
+ },
1124
+ "input": {
1125
+ "$type": "color",
1126
+ "$value": "{surface.dark.9}",
1127
+ "$extensions": {
1128
+ "io.atom63.derive": "color-mix( in oklab, {surface.dark.9} calc(100% - {a63.surface.tint}), {a63.brand.500} {a63.surface.tint} )"
1129
+ },
1130
+ "$description": "Step 9 on dark surfaces reaches 3:1 against the page, the panel and the field fill."
1131
+ }
1132
+ },
1133
+ "control": {
1134
+ "outline": {
1135
+ "background": {
1136
+ "$type": "color",
1137
+ "$value": "{a63.border.control}",
1138
+ "$extensions": {
1139
+ "io.atom63.derive": "color-mix(in oklab, {a63.border.control} 32%, transparent)"
1140
+ }
1141
+ },
1142
+ "hover-background": {
1143
+ "$type": "color",
1144
+ "$value": "{a63.border.control}",
1145
+ "$extensions": {
1146
+ "io.atom63.derive": "color-mix(in oklab, {a63.border.control} 64%, transparent)"
1147
+ }
1148
+ },
1149
+ "hover-border": {
1150
+ "$type": "color",
1151
+ "$value": "{a63.border.control}"
1152
+ }
1153
+ }
1154
+ },
1155
+ "alert": {
1156
+ "background": {
1157
+ "$type": "color",
1158
+ "$value": "{a63.surface.control}",
1159
+ "$extensions": {
1160
+ "io.atom63.derive": "color-mix(in oklab, {a63.surface.control} 32%, transparent)"
1161
+ }
1162
+ }
1163
+ },
1164
+ "choice-card": {
1165
+ "checked-border": {
1166
+ "$type": "color",
1167
+ "$value": "{a63.action.primary}",
1168
+ "$extensions": {
1169
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 20%, transparent)"
1170
+ }
1171
+ },
1172
+ "checked-background": {
1173
+ "$type": "color",
1174
+ "$value": "{a63.action.primary}",
1175
+ "$extensions": {
1176
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 10%, transparent)"
1177
+ }
960
1178
  }
961
1179
  },
962
1180
  "focus-ring": {
@@ -996,6 +1214,20 @@
996
1214
  "$value": "{color.danger.400}"
997
1215
  }
998
1216
  }
1217
+ },
1218
+ "disabled": {
1219
+ "background": {
1220
+ "$type": "color",
1221
+ "$value": "{a63.surface.muted}"
1222
+ },
1223
+ "foreground": {
1224
+ "$type": "color",
1225
+ "$value": "{surface.dark.9}"
1226
+ },
1227
+ "border": {
1228
+ "$type": "color",
1229
+ "$value": "{a63.border.subtle}"
1230
+ }
999
1231
  }
1000
1232
  },
1001
1233
  "status": {
@@ -1260,14 +1492,24 @@
1260
1492
  "selected": {
1261
1493
  "background": {
1262
1494
  "$type": "color",
1263
- "$value": "{a63.action.primary}",
1264
- "$extensions": {
1265
- "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
1266
- }
1495
+ "$value": "{a63.surface.muted}"
1267
1496
  },
1268
1497
  "foreground": {
1269
1498
  "$type": "color",
1270
- "$value": "{a63.text.accent}"
1499
+ "$value": "{a63.text.primary}"
1500
+ },
1501
+ "accent": {
1502
+ "background": {
1503
+ "$type": "color",
1504
+ "$value": "{a63.action.primary}",
1505
+ "$extensions": {
1506
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
1507
+ }
1508
+ },
1509
+ "foreground": {
1510
+ "$type": "color",
1511
+ "$value": "{a63.text.accent}"
1512
+ }
1271
1513
  }
1272
1514
  }
1273
1515
  }