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

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 (52) hide show
  1. package/README.md +6 -3
  2. package/generated/atom63.figma-sync.json +5506 -3844
  3. package/generated/atom63.tokens.json +7536 -4284
  4. package/package.json +6 -6
  5. package/src/compat/a63-from-shadcn.css +265 -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/skeleton.css +7 -2
  18. package/src/contracts/skeleton.resolver.json +21 -30
  19. package/src/contracts/surface.css +4 -0
  20. package/src/contracts/surface.tokens.json +57 -0
  21. package/src/contracts/toggle.css +18 -3
  22. package/src/contracts/toggle.resolver.json +123 -0
  23. package/src/tailwind/roles.json +19 -2
  24. package/src/tailwind/theme.css +104 -2
  25. package/src/tailwind/utilities.css +17 -0
  26. package/src/themes/aqua.css +1 -0
  27. package/src/themes/aqua.resolver.json +6 -0
  28. package/src/themes/retro.css +1 -0
  29. package/src/themes/retro.resolver.json +6 -0
  30. package/src/themes/terminal.css +13 -0
  31. package/src/themes/terminal.resolver.json +62 -0
  32. package/src/tokens/brand-action.css +4 -0
  33. package/src/tokens/brand-action.resolver.json +18 -0
  34. package/src/tokens/contrast.browser.test.ts +92 -18
  35. package/src/tokens/density.browser.test.ts +167 -0
  36. package/src/tokens/form-factor.browser.test.ts +129 -0
  37. package/src/tokens/foundation/primitives.css +0 -30
  38. package/src/tokens/foundation/primitives.tokens.json +0 -212
  39. package/src/tokens/foundation/radius.css +5 -0
  40. package/src/tokens/foundation/radius.tokens.json +8 -0
  41. package/src/tokens/foundation/typography.css +24 -0
  42. package/src/tokens/foundation/typography.native.css +12 -2
  43. package/src/tokens/foundation/typography.resolver.json +72 -0
  44. package/src/tokens/index.css +1 -0
  45. package/src/tokens/personalization-axes.browser.test.ts +13 -0
  46. package/src/tokens/semantics.css +120 -6
  47. package/src/tokens/semantics.resolver.json +301 -12
  48. package/src/tokens/surface.css +8 -0
  49. package/src/tokens/surface.resolver.json +49 -0
  50. package/src/tokens/type-roles.css +75 -0
  51. package/src/tokens/type-roles.resolver.json +366 -0
  52. package/src/contracts/toggle.tokens.json +0 -49
@@ -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,7 +217,13 @@
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);
167
- /* Status (danger's status role is served by --a63-action-danger). The base is
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);
226
+ /* Status (info, success, warning and 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.
170
229
  Step 600 on light surfaces and 500 on dark ones (the .dark block), so icons
@@ -193,6 +252,18 @@
193
252
  );
194
253
  --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
195
254
  --a63-status-warning-subtle-foreground: var(--color-warning-800);
255
+ /* The danger status accent: error icons, borders and tints (Alert, form and
256
+ sync errors). --a63-action-danger stays the fill for danger buttons and does
257
+ not change with the mode; this one moves to step 500 on dark surfaces so it
258
+ reaches 3:1 there. Error text uses --a63-text-danger. */
259
+ --a63-status-danger: var(--color-danger-600);
260
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
261
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
262
+ --a63-status-danger-foreground: oklch(
263
+ from var(--a63-status-danger) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
264
+ );
265
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
266
+ --a63-status-danger-subtle-foreground: var(--color-danger-700);
196
267
  /* Chart series colors. Series 1 is the primary; 2–5 are fixed hues that stay
197
268
  distinct from it and from each other (500 on light surfaces, 400 on dark). */
198
269
  --a63-chart-1: var(--a63-action-primary);
@@ -222,10 +293,14 @@
222
293
  --a63-category-zinc-subtle-foreground: var(--color-zinc-700);
223
294
  --a63-category-neutral-subtle-foreground: var(--color-neutral-700);
224
295
  --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);
296
+ /* A selected or current item in a list, menu, table or grid: a neutral muted fill. */
297
+ --a63-selected-background: var(--a63-surface-muted);
227
298
  /* Text and icons of a selected item. */
228
- --a63-selected-foreground: var(--a63-text-accent);
299
+ --a63-selected-foreground: var(--a63-text-primary);
300
+ /* The opt-in accent selection (tone="accent"): a light wash of the primary. */
301
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
302
+ /* Text and icons of an accent-selected item. */
303
+ --a63-selected-accent-foreground: var(--a63-text-accent);
229
304
  }
230
305
 
231
306
  :is(.dark, [data-a63-mode='dark']) {
@@ -268,8 +343,19 @@
268
343
  transparent 20%
269
344
  );
270
345
  --a63-surface-sidebar: var(--a63-surface-page);
346
+ --a63-surface-recessed: var(--a63-surface-page);
347
+ /* 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. */
348
+ --a63-gradient-brand-fade: linear-gradient(
349
+ to bottom,
350
+ var(--a63-brand-800),
351
+ var(--a63-brand-700) var(--a63-gradient-brand-fade-dark-zone),
352
+ var(--a63-surface-page)
353
+ );
271
354
  --a63-text-primary: var(--surface-dark-12);
272
355
  --a63-text-secondary: var(--surface-dark-11);
356
+ /* Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,
357
+ the field fill and the muted fill. */
358
+ --a63-text-tertiary: color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10));
273
359
  /* The primary fill is too dark to read as text on dark surfaces. */
274
360
  --a63-text-accent: var(--a63-brand-400);
275
361
  /* Danger text on dark surfaces: step 400 reaches WCAG AA 4.5:1 on every theme's
@@ -285,6 +371,26 @@
285
371
  var(--surface-dark-7) calc(100% - var(--a63-surface-tint)),
286
372
  var(--a63-brand-500) var(--a63-surface-tint)
287
373
  );
374
+ /* Step 9 on dark surfaces reaches 3:1 against the page, the panel and the field fill. */
375
+ --a63-border-input: color-mix(
376
+ in oklab,
377
+ var(--surface-dark-9) calc(100% - var(--a63-surface-tint)),
378
+ var(--a63-brand-500) var(--a63-surface-tint)
379
+ );
380
+ --a63-control-outline-background: color-mix(in oklab, var(--a63-border-control) 32%, transparent);
381
+ --a63-control-outline-hover-background: color-mix(
382
+ in oklab,
383
+ var(--a63-border-control) 64%,
384
+ transparent
385
+ );
386
+ --a63-control-outline-hover-border: var(--a63-border-control);
387
+ --a63-alert-background: color-mix(in oklab, var(--a63-surface-control) 32%, transparent);
388
+ --a63-choice-card-checked-border: color-mix(in oklch, var(--a63-action-primary) 20%, transparent);
389
+ --a63-choice-card-checked-background: color-mix(
390
+ in oklch,
391
+ var(--a63-action-primary) 10%,
392
+ transparent
393
+ );
288
394
  /* Step 400 on dark surfaces: 600 and some brands' 500 fall below 3:1 there. */
289
395
  --a63-focus-ring: var(--a63-brand-400);
290
396
  --a63-action-neutral: var(--surface-dark-12);
@@ -292,6 +398,9 @@
292
398
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 82%, white 8%);
293
399
  --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
294
400
  --a63-action-danger-subtle-foreground: var(--color-danger-400);
401
+ --a63-action-disabled-background: var(--a63-surface-muted);
402
+ --a63-action-disabled-foreground: var(--surface-dark-9);
403
+ --a63-action-disabled-border: var(--a63-border-subtle);
295
404
  --a63-status-info: var(--color-info-500);
296
405
  --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
297
406
  --a63-status-info-subtle-foreground: var(--color-info-400);
@@ -301,6 +410,9 @@
301
410
  --a63-status-warning: var(--color-warning-500);
302
411
  --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
303
412
  --a63-status-warning-subtle-foreground: var(--color-warning-400);
413
+ --a63-status-danger: var(--color-danger-500);
414
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
415
+ --a63-status-danger-subtle-foreground: var(--color-danger-400);
304
416
  --a63-chart-1: var(--a63-action-primary);
305
417
  --a63-chart-2: var(--color-teal-400);
306
418
  --a63-chart-3: var(--color-amber-400);
@@ -328,6 +440,8 @@
328
440
  --a63-category-zinc-subtle-foreground: var(--color-zinc-400);
329
441
  --a63-category-neutral-subtle-foreground: var(--color-neutral-400);
330
442
  --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);
443
+ --a63-selected-background: var(--a63-surface-muted);
444
+ --a63-selected-foreground: var(--a63-text-primary);
445
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
446
+ --a63-selected-accent-foreground: var(--a63-text-accent);
333
447
  }
@@ -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": {
@@ -570,7 +697,7 @@
570
697
  "$root": {
571
698
  "$type": "color",
572
699
  "$value": "{color.info.600}",
573
- "$description": "Status (danger's status role is served by --a63-action-danger). The base is\nthe accent used for tinted callouts (bg = mix toward transparent, text/border\n= the accent); -foreground is the text/icon color ON a SOLID status fill.\nStep 600 on light surfaces and 500 on dark ones (the .dark block), so icons\ndrawn in the accent reach WCAG's 3:1 for graphics in both modes."
700
+ "$description": "Status (info, success, warning and danger). The base is\nthe accent used for tinted callouts (bg = mix toward transparent, text/border\n= the accent); -foreground is the text/icon color ON a SOLID status fill.\nStep 600 on light surfaces and 500 on dark ones (the .dark block), so icons\ndrawn in the accent reach WCAG's 3:1 for graphics in both modes."
574
701
  },
575
702
  "foreground": {
576
703
  "$type": "color",
@@ -647,6 +774,34 @@
647
774
  "$value": "{color.warning.800}"
648
775
  }
649
776
  }
777
+ },
778
+ "danger": {
779
+ "$root": {
780
+ "$type": "color",
781
+ "$value": "{color.danger.600}",
782
+ "$description": "The danger status accent: error icons, borders and tints (Alert, form and\nsync errors). --a63-action-danger stays the fill for danger buttons and does\nnot change with the mode; this one moves to step 500 on dark surfaces so it\nreaches 3:1 there. Error text uses --a63-text-danger."
783
+ },
784
+ "foreground": {
785
+ "$type": "color",
786
+ "$value": "{a63.status.danger}",
787
+ "$description": "Text and icons on a solid fill of this status. Same auto-contrast step as\nthe primary foreground: near-black on bright fills, near-white on dark ones.",
788
+ "$extensions": {
789
+ "io.atom63.derive": "oklch(from {a63.status.danger} clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h)"
790
+ }
791
+ },
792
+ "subtle": {
793
+ "$root": {
794
+ "$type": "color",
795
+ "$value": "{a63.status.danger}",
796
+ "$extensions": {
797
+ "io.atom63.derive": "color-mix(in oklab, {a63.status.danger} 14%, transparent)"
798
+ }
799
+ },
800
+ "foreground": {
801
+ "$type": "color",
802
+ "$value": "{color.danger.700}"
803
+ }
804
+ }
650
805
  }
651
806
  },
652
807
  "chart": {
@@ -853,16 +1008,28 @@
853
1008
  "selected": {
854
1009
  "background": {
855
1010
  "$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
- }
1011
+ "$value": "{a63.surface.muted}",
1012
+ "$description": "A selected or current item in a list, menu, table or grid: a neutral muted fill."
861
1013
  },
862
1014
  "foreground": {
863
1015
  "$type": "color",
864
- "$value": "{a63.text.accent}",
1016
+ "$value": "{a63.text.primary}",
865
1017
  "$description": "Text and icons of a selected item."
1018
+ },
1019
+ "accent": {
1020
+ "background": {
1021
+ "$type": "color",
1022
+ "$value": "{a63.action.primary}",
1023
+ "$description": "The opt-in accent selection (tone=\"accent\"): a light wash of the primary.",
1024
+ "$extensions": {
1025
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
1026
+ }
1027
+ },
1028
+ "foreground": {
1029
+ "$type": "color",
1030
+ "$value": "{a63.text.accent}",
1031
+ "$description": "Text and icons of an accent-selected item."
1032
+ }
866
1033
  }
867
1034
  }
868
1035
  }
@@ -921,6 +1088,22 @@
921
1088
  "sidebar": {
922
1089
  "$type": "color",
923
1090
  "$value": "{a63.surface.page}"
1091
+ },
1092
+ "recessed": {
1093
+ "$type": "color",
1094
+ "$value": "{a63.surface.page}"
1095
+ }
1096
+ },
1097
+ "gradient": {
1098
+ "brand-fade": {
1099
+ "$root": {
1100
+ "$type": "color",
1101
+ "$value": "{a63.brand.800}",
1102
+ "$extensions": {
1103
+ "io.atom63.derive": "linear-gradient(to bottom, {a63.brand.800}, {a63.brand.700} {a63.gradient.brand-fade.dark-zone}, {a63.surface.page})"
1104
+ },
1105
+ "$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."
1106
+ }
924
1107
  }
925
1108
  },
926
1109
  "text": {
@@ -932,6 +1115,14 @@
932
1115
  "$type": "color",
933
1116
  "$value": "{surface.dark.11}"
934
1117
  },
1118
+ "tertiary": {
1119
+ "$type": "color",
1120
+ "$value": "{surface.dark.10}",
1121
+ "$extensions": {
1122
+ "io.atom63.derive": "color-mix(in oklab, {surface.dark.11} 30%, {surface.dark.10})"
1123
+ },
1124
+ "$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."
1125
+ },
935
1126
  "accent": {
936
1127
  "$type": "color",
937
1128
  "$value": "{a63.brand.400}",
@@ -957,6 +1148,61 @@
957
1148
  "$extensions": {
958
1149
  "io.atom63.derive": "color-mix( in oklab, {surface.dark.7} calc(100% - {a63.surface.tint}), {a63.brand.500} {a63.surface.tint} )"
959
1150
  }
1151
+ },
1152
+ "input": {
1153
+ "$type": "color",
1154
+ "$value": "{surface.dark.9}",
1155
+ "$extensions": {
1156
+ "io.atom63.derive": "color-mix( in oklab, {surface.dark.9} calc(100% - {a63.surface.tint}), {a63.brand.500} {a63.surface.tint} )"
1157
+ },
1158
+ "$description": "Step 9 on dark surfaces reaches 3:1 against the page, the panel and the field fill."
1159
+ }
1160
+ },
1161
+ "control": {
1162
+ "outline": {
1163
+ "background": {
1164
+ "$type": "color",
1165
+ "$value": "{a63.border.control}",
1166
+ "$extensions": {
1167
+ "io.atom63.derive": "color-mix(in oklab, {a63.border.control} 32%, transparent)"
1168
+ }
1169
+ },
1170
+ "hover-background": {
1171
+ "$type": "color",
1172
+ "$value": "{a63.border.control}",
1173
+ "$extensions": {
1174
+ "io.atom63.derive": "color-mix(in oklab, {a63.border.control} 64%, transparent)"
1175
+ }
1176
+ },
1177
+ "hover-border": {
1178
+ "$type": "color",
1179
+ "$value": "{a63.border.control}"
1180
+ }
1181
+ }
1182
+ },
1183
+ "alert": {
1184
+ "background": {
1185
+ "$type": "color",
1186
+ "$value": "{a63.surface.control}",
1187
+ "$extensions": {
1188
+ "io.atom63.derive": "color-mix(in oklab, {a63.surface.control} 32%, transparent)"
1189
+ }
1190
+ }
1191
+ },
1192
+ "choice-card": {
1193
+ "checked-border": {
1194
+ "$type": "color",
1195
+ "$value": "{a63.action.primary}",
1196
+ "$extensions": {
1197
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 20%, transparent)"
1198
+ }
1199
+ },
1200
+ "checked-background": {
1201
+ "$type": "color",
1202
+ "$value": "{a63.action.primary}",
1203
+ "$extensions": {
1204
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 10%, transparent)"
1205
+ }
960
1206
  }
961
1207
  },
962
1208
  "focus-ring": {
@@ -996,6 +1242,20 @@
996
1242
  "$value": "{color.danger.400}"
997
1243
  }
998
1244
  }
1245
+ },
1246
+ "disabled": {
1247
+ "background": {
1248
+ "$type": "color",
1249
+ "$value": "{a63.surface.muted}"
1250
+ },
1251
+ "foreground": {
1252
+ "$type": "color",
1253
+ "$value": "{surface.dark.9}"
1254
+ },
1255
+ "border": {
1256
+ "$type": "color",
1257
+ "$value": "{a63.border.subtle}"
1258
+ }
999
1259
  }
1000
1260
  },
1001
1261
  "status": {
@@ -1055,6 +1315,25 @@
1055
1315
  "$value": "{color.warning.400}"
1056
1316
  }
1057
1317
  }
1318
+ },
1319
+ "danger": {
1320
+ "$root": {
1321
+ "$type": "color",
1322
+ "$value": "{color.danger.500}"
1323
+ },
1324
+ "subtle": {
1325
+ "$root": {
1326
+ "$type": "color",
1327
+ "$value": "{a63.status.danger}",
1328
+ "$extensions": {
1329
+ "io.atom63.derive": "color-mix(in oklab, {a63.status.danger} 14%, transparent)"
1330
+ }
1331
+ },
1332
+ "foreground": {
1333
+ "$type": "color",
1334
+ "$value": "{color.danger.400}"
1335
+ }
1336
+ }
1058
1337
  }
1059
1338
  },
1060
1339
  "chart": {
@@ -1260,14 +1539,24 @@
1260
1539
  "selected": {
1261
1540
  "background": {
1262
1541
  "$type": "color",
1263
- "$value": "{a63.action.primary}",
1264
- "$extensions": {
1265
- "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
1266
- }
1542
+ "$value": "{a63.surface.muted}"
1267
1543
  },
1268
1544
  "foreground": {
1269
1545
  "$type": "color",
1270
- "$value": "{a63.text.accent}"
1546
+ "$value": "{a63.text.primary}"
1547
+ },
1548
+ "accent": {
1549
+ "background": {
1550
+ "$type": "color",
1551
+ "$value": "{a63.action.primary}",
1552
+ "$extensions": {
1553
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 12%, transparent)"
1554
+ }
1555
+ },
1556
+ "foreground": {
1557
+ "$type": "color",
1558
+ "$value": "{a63.text.accent}"
1559
+ }
1271
1560
  }
1272
1561
  }
1273
1562
  }
@@ -32,6 +32,9 @@
32
32
  --surface-dark-10: var(--color-n1-dark-10);
33
33
  --surface-dark-11: var(--color-n1-dark-11);
34
34
  --surface-dark-12: var(--color-n1-dark-12);
35
+ /* An opaque dark neutral for media areas (players, lightboxes, posters). It follows the
36
+ surface palette but not the mode: media reads on dark in both. */
37
+ --a63-media-surface: var(--surface-dark-2);
35
38
  }
36
39
 
37
40
  [data-a63-surface='n2'] {
@@ -59,6 +62,7 @@
59
62
  --surface-dark-10: var(--color-n2-dark-10);
60
63
  --surface-dark-11: var(--color-n2-dark-11);
61
64
  --surface-dark-12: var(--color-n2-dark-12);
65
+ --a63-media-surface: var(--surface-dark-2);
62
66
  }
63
67
 
64
68
  [data-a63-surface='n3'] {
@@ -86,6 +90,7 @@
86
90
  --surface-dark-10: var(--color-n3-dark-10);
87
91
  --surface-dark-11: var(--color-n3-dark-11);
88
92
  --surface-dark-12: var(--color-n3-dark-12);
93
+ --a63-media-surface: var(--surface-dark-2);
89
94
  }
90
95
 
91
96
  [data-a63-surface='n4'] {
@@ -113,6 +118,7 @@
113
118
  --surface-dark-10: var(--color-n4-dark-10);
114
119
  --surface-dark-11: var(--color-n4-dark-11);
115
120
  --surface-dark-12: var(--color-n4-dark-12);
121
+ --a63-media-surface: var(--surface-dark-2);
116
122
  }
117
123
 
118
124
  [data-a63-surface='n5'] {
@@ -140,6 +146,7 @@
140
146
  --surface-dark-10: var(--color-n5-dark-10);
141
147
  --surface-dark-11: var(--color-n5-dark-11);
142
148
  --surface-dark-12: var(--color-n5-dark-12);
149
+ --a63-media-surface: var(--surface-dark-2);
143
150
  }
144
151
 
145
152
  [data-a63-surface='n6'] {
@@ -167,4 +174,5 @@
167
174
  --surface-dark-10: var(--color-n6-dark-10);
168
175
  --surface-dark-11: var(--color-n6-dark-11);
169
176
  --surface-dark-12: var(--color-n6-dark-12);
177
+ --a63-media-surface: var(--surface-dark-2);
170
178
  }