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

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 (100) hide show
  1. package/README.md +16 -10
  2. package/generated/atom63.figma-sync.json +12897 -6323
  3. package/generated/atom63.tokens.json +8778 -3550
  4. package/package.json +8 -7
  5. package/src/compat/a63-from-shadcn.css +10 -0
  6. package/src/compat/shadcn.browser.test.ts +23 -0
  7. package/src/compat/shadcn.css +118 -16
  8. package/src/contracts/action.css +4 -3
  9. package/src/contracts/action.native.css +11 -0
  10. package/src/contracts/action.tokens.json +66 -0
  11. package/src/contracts/badge.css +83 -58
  12. package/src/contracts/badge.resolver.json +449 -0
  13. package/src/contracts/choice.css +4 -1
  14. package/src/contracts/choice.native.css +9 -0
  15. package/src/contracts/choice.tokens.json +66 -0
  16. package/src/contracts/control.css +43 -52
  17. package/src/contracts/control.native.css +13 -0
  18. package/src/contracts/control.tokens.json +245 -0
  19. package/src/contracts/environment.css +45 -49
  20. package/src/contracts/environment.native.css +23 -0
  21. package/src/contracts/environment.resolver.json +569 -0
  22. package/src/contracts/field.css +3 -1
  23. package/src/contracts/field.tokens.json +40 -0
  24. package/src/contracts/marker.css +6 -4
  25. package/src/contracts/marker.tokens.json +15 -0
  26. package/src/contracts/menu.css +25 -61
  27. package/src/contracts/menu.native.css +10 -0
  28. package/src/contracts/menu.resolver.json +122 -0
  29. package/src/contracts/overlay.css +11 -13
  30. package/src/contracts/overlay.native.css +13 -0
  31. package/src/contracts/overlay.tokens.json +103 -0
  32. package/src/contracts/segment.css +22 -68
  33. package/src/contracts/segment.tokens.json +19 -0
  34. package/src/contracts/selection.css +3 -1
  35. package/src/contracts/selection.tokens.json +37 -0
  36. package/src/contracts/skeleton.css +3 -0
  37. package/src/contracts/skeleton.resolver.json +66 -0
  38. package/src/contracts/surface.css +13 -24
  39. package/src/contracts/surface.native.css +17 -0
  40. package/src/contracts/surface.tokens.json +97 -0
  41. package/src/contracts/toggle.css +3 -1
  42. package/src/contracts/toggle.tokens.json +49 -0
  43. package/src/contracts/track.css +3 -1
  44. package/src/contracts/track.tokens.json +39 -0
  45. package/src/contracts/trigger.css +5 -2
  46. package/src/contracts/trigger.native.css +9 -0
  47. package/src/contracts/trigger.tokens.json +58 -0
  48. package/src/contracts/widget.css +41 -51
  49. package/src/contracts/widget.native.css +23 -0
  50. package/src/contracts/widget.resolver.json +1104 -0
  51. package/src/tailwind/roles.json +172 -0
  52. package/src/tailwind/theme.css +107 -23
  53. package/src/themes/aqua.css +24 -89
  54. package/src/themes/aqua.native.css +80 -0
  55. package/src/themes/aqua.resolver.json +1292 -0
  56. package/src/themes/modern.css +10 -14
  57. package/src/themes/modern.native.css +16 -0
  58. package/src/themes/modern.resolver.json +350 -0
  59. package/src/themes/retro.css +21 -26
  60. package/src/themes/retro.native.css +16 -0
  61. package/src/themes/retro.resolver.json +788 -0
  62. package/src/themes/terminal.css +34 -41
  63. package/src/themes/terminal.native.css +22 -0
  64. package/src/themes/terminal.resolver.json +517 -0
  65. package/src/tokens/brand-action.css +61 -0
  66. package/src/tokens/brand-action.resolver.json +137 -0
  67. package/src/tokens/brand-ramp.css +108 -0
  68. package/src/tokens/brand-ramp.resolver.json +418 -0
  69. package/src/tokens/brand.css +6 -146
  70. package/src/tokens/color-mix-space.browser.test.ts +79 -0
  71. package/src/tokens/contrast.browser.test.ts +82 -3
  72. package/src/tokens/figma-parity.browser.test.ts +270 -0
  73. package/src/tokens/font.css +6 -0
  74. package/src/tokens/font.resolver.json +107 -0
  75. package/src/tokens/foundation/effects.css +13 -13
  76. package/src/tokens/foundation/effects.resolver.json +433 -0
  77. package/src/tokens/foundation/fonts.css +3 -1
  78. package/src/tokens/foundation/fonts.tokens.json +6 -1
  79. package/src/tokens/foundation/radius.css +6 -9
  80. package/src/tokens/foundation/radius.tokens.json +100 -0
  81. package/src/tokens/foundation/typography.css +25 -12
  82. package/src/tokens/foundation/typography.native.css +11 -0
  83. package/src/tokens/foundation/typography.resolver.json +936 -0
  84. package/src/tokens/foundation.css +0 -1
  85. package/src/tokens/motion.css +3 -1
  86. package/src/tokens/motion.resolver.json +135 -0
  87. package/src/tokens/native-values.json +38 -0
  88. package/src/tokens/personalization-axes.browser.test.ts +5 -3
  89. package/src/tokens/radius.css +12 -8
  90. package/src/tokens/radius.resolver.json +138 -0
  91. package/src/tokens/semantics.css +211 -47
  92. package/src/tokens/semantics.resolver.json +1296 -0
  93. package/src/tokens/space.css +8 -6
  94. package/src/tokens/space.tokens.json +78 -0
  95. package/src/tokens/swift-parity.browser.test.ts +141 -0
  96. package/src/tokens/type-scale.css +6 -0
  97. package/src/tokens/type-scale.resolver.json +67 -0
  98. package/generated/atom63.figma-tokens.json +0 -21661
  99. package/src/tokens/foundation/aliases.css +0 -32
  100. package/src/tokens/foundation/aliases.tokens.json +0 -105
@@ -1,4 +1,7 @@
1
1
  /*
2
+ * Generated from src/tokens/semantics.resolver.json by scripts/build-css-from-dtcg.mjs. Do not edit;
3
+ * change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
4
+ *
2
5
  * Canonical semantic layer.
3
6
  *
4
7
  * This is the single source of semantic truth for the new system. Values are
@@ -7,17 +10,76 @@
7
10
  * and Tailwind are opt-in adapters that re-reference THESE names — never the
8
11
  * reverse. See packages/styles/README.md (the mirror rule).
9
12
  */
10
-
11
- /*
12
- * Surface tint — --a63-surface-tint (0%..100%) bends the neutrals toward the brand
13
- * hue. Rather than mixing all 24 raw ramp stops, only the semantic surface and
14
- * border tokens below mix toward a lightness-matched --a63-brand-* step: about
15
- * 12 color-mixes instead of 144. Themes that fully re-skin surfaces (aqua and
16
- * terminal) define their own surface identity and do not receive the tint.
17
- * Tint 0 is neutral.
18
- */
19
13
  :root {
20
14
  --a63-surface-tint: 0%;
15
+ /* Scrim — the modal/drawer/sheet backdrop veil behind overlays. */
16
+ --a63-scrim: color-mix(in oklch, black 40%, transparent);
17
+ /* Media stage — behind full-screen photos and video: black in every theme, so letterboxing matches the picture. */
18
+ --a63-media-stage: var(--color-black-100);
19
+ /* Media scrim — the dim behind a video dialog; heavier than --a63-scrim because the video is the only thing on screen. */
20
+ --a63-media-scrim: var(--color-black-70);
21
+ /* On media — icons and text on controls that float over photos and video, whose colors are unknowable. */
22
+ --a63-on-media-foreground: var(--color-white-100);
23
+ /* On media — the backplate of a floating control, dark enough that its foreground reads over any picture. */
24
+ --a63-on-media-surface: var(--color-black-60);
25
+ /* On media — the backplate at rest for a primary control (play) and on hover for the others. */
26
+ --a63-on-media-surface-strong: var(--color-black-70);
27
+ /* On media — the hairline that separates a floating control from a dark picture. */
28
+ --a63-on-media-border: var(--color-white-20);
29
+ /* On media — the focus ring for controls over media. */
30
+ --a63-on-media-ring: var(--color-white-90);
31
+ /* On media — a light veil over a poster while it waits. */
32
+ --a63-on-media-veil: var(--color-black-10);
33
+ /* On media — the veil over a poster while a control on it is shown. */
34
+ --a63-on-media-veil-strong: var(--color-black-20);
35
+ /* Category hues for tags, labels and charts, one per palette hue. `subtle` is a
36
+ 14% tint of the hue for chip backgrounds, mixed in oklab so tinted neutrals render
37
+ alike in every engine; `subtle.foreground` is the text on that tint (step 700 or 800
38
+ on light surfaces, 400 on dark). Amber uses the warning ramp. */
39
+ --a63-category-red: var(--color-red-500);
40
+ --a63-category-red-subtle: color-mix(in oklab, var(--a63-category-red) 14%, transparent);
41
+ --a63-category-orange: var(--color-orange-500);
42
+ --a63-category-orange-subtle: color-mix(in oklab, var(--a63-category-orange) 14%, transparent);
43
+ --a63-category-amber: var(--color-warning-500);
44
+ --a63-category-amber-subtle: color-mix(in oklab, var(--a63-category-amber) 14%, transparent);
45
+ --a63-category-yellow: var(--color-yellow-500);
46
+ --a63-category-yellow-subtle: color-mix(in oklab, var(--a63-category-yellow) 14%, transparent);
47
+ --a63-category-lime: var(--color-lime-500);
48
+ --a63-category-lime-subtle: color-mix(in oklab, var(--a63-category-lime) 14%, transparent);
49
+ --a63-category-green: var(--color-green-500);
50
+ --a63-category-green-subtle: color-mix(in oklab, var(--a63-category-green) 14%, transparent);
51
+ --a63-category-emerald: var(--color-emerald-500);
52
+ --a63-category-emerald-subtle: color-mix(in oklab, var(--a63-category-emerald) 14%, transparent);
53
+ --a63-category-teal: var(--color-teal-500);
54
+ --a63-category-teal-subtle: color-mix(in oklab, var(--a63-category-teal) 14%, transparent);
55
+ --a63-category-cyan: var(--color-cyan-500);
56
+ --a63-category-cyan-subtle: color-mix(in oklab, var(--a63-category-cyan) 14%, transparent);
57
+ --a63-category-sky: var(--color-sky-500);
58
+ --a63-category-sky-subtle: color-mix(in oklab, var(--a63-category-sky) 14%, transparent);
59
+ --a63-category-blue: var(--color-blue-500);
60
+ --a63-category-blue-subtle: color-mix(in oklab, var(--a63-category-blue) 14%, transparent);
61
+ --a63-category-indigo: var(--color-indigo-500);
62
+ --a63-category-indigo-subtle: color-mix(in oklab, var(--a63-category-indigo) 14%, transparent);
63
+ --a63-category-violet: var(--color-violet-500);
64
+ --a63-category-violet-subtle: color-mix(in oklab, var(--a63-category-violet) 14%, transparent);
65
+ --a63-category-purple: var(--color-purple-500);
66
+ --a63-category-purple-subtle: color-mix(in oklab, var(--a63-category-purple) 14%, transparent);
67
+ --a63-category-fuchsia: var(--color-fuchsia-500);
68
+ --a63-category-fuchsia-subtle: color-mix(in oklab, var(--a63-category-fuchsia) 14%, transparent);
69
+ --a63-category-pink: var(--color-pink-500);
70
+ --a63-category-pink-subtle: color-mix(in oklab, var(--a63-category-pink) 14%, transparent);
71
+ --a63-category-rose: var(--color-rose-500);
72
+ --a63-category-rose-subtle: color-mix(in oklab, var(--a63-category-rose) 14%, transparent);
73
+ --a63-category-slate: var(--color-slate-500);
74
+ --a63-category-slate-subtle: color-mix(in oklab, var(--a63-category-slate) 14%, transparent);
75
+ --a63-category-gray: var(--color-gray-500);
76
+ --a63-category-gray-subtle: color-mix(in oklab, var(--a63-category-gray) 14%, transparent);
77
+ --a63-category-zinc: var(--color-zinc-500);
78
+ --a63-category-zinc-subtle: color-mix(in oklab, var(--a63-category-zinc) 14%, transparent);
79
+ --a63-category-neutral: var(--color-neutral-500);
80
+ --a63-category-neutral-subtle: color-mix(in oklab, var(--a63-category-neutral) 14%, transparent);
81
+ --a63-category-stone: var(--color-stone-500);
82
+ --a63-category-stone-subtle: color-mix(in oklab, var(--a63-category-stone) 14%, transparent);
21
83
  }
22
84
 
23
85
  :root,
@@ -26,29 +88,29 @@
26
88
  /* Surfaces — neutral, optionally bent toward the brand hue by --a63-surface-tint
27
89
  (0% = pure neutral). Each mixes with a lightness-matched --a63-brand-* step. */
28
90
  --a63-surface-page: color-mix(
29
- in oklch,
91
+ in oklab,
30
92
  var(--surface-light-2) calc(100% - var(--a63-surface-tint)),
31
93
  var(--a63-brand-100) var(--a63-surface-tint)
32
94
  );
33
95
  --a63-surface-panel: color-mix(
34
- in oklch,
96
+ in oklab,
35
97
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
36
98
  var(--a63-brand-50) var(--a63-surface-tint)
37
99
  );
38
100
  --a63-surface-overlay: color-mix(
39
- in oklch,
101
+ in oklab,
40
102
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
41
103
  var(--a63-brand-50) var(--a63-surface-tint)
42
104
  );
43
105
  --a63-surface-muted: color-mix(
44
- in oklch,
106
+ in oklab,
45
107
  var(--surface-light-3) calc(100% - var(--a63-surface-tint)),
46
108
  var(--a63-brand-200) var(--a63-surface-tint)
47
109
  );
48
110
  /* Recessed input surface (the field fill). Brightest surface in light mode so a
49
111
  field reads as a clean well recessed into its panel via --a63-field-shadow. */
50
112
  --a63-surface-control: color-mix(
51
- in oklch,
113
+ in oklab,
52
114
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
53
115
  var(--a63-brand-50) var(--a63-surface-tint)
54
116
  );
@@ -59,30 +121,40 @@
59
121
  --a63-surface-control-hover: color-mix(
60
122
  in srgb,
61
123
  color-mix(
62
- in oklch,
124
+ in oklab,
63
125
  var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
64
126
  var(--a63-brand-300) var(--a63-surface-tint)
65
127
  ),
66
128
  transparent 20%
67
129
  );
68
-
130
+ /* The sidebar surface (shadcn `sidebar`): the muted surface in light mode and
131
+ the page surface in dark mode. */
132
+ --a63-surface-sidebar: var(--a63-surface-muted);
69
133
  /* Text */
70
134
  --a63-text-primary: var(--surface-light-12);
71
135
  --a63-text-secondary: var(--surface-light-11);
72
-
136
+ /* The brand as text (links, accents) on light surfaces; brand.css picks the
137
+ ramp step per brand. Use --a63-action-primary for fills. */
138
+ --a63-text-accent: var(--a63-brand-text);
139
+ /* Danger text: error messages and destructive labels on surfaces. Step 600 on
140
+ light surfaces; --a63-action-danger stays the fill for danger buttons. */
141
+ --a63-text-danger: var(--color-danger-600);
73
142
  /* Border */
74
143
  --a63-border-subtle: color-mix(
75
- in oklch,
144
+ in oklab,
76
145
  var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
77
146
  var(--a63-brand-300) var(--a63-surface-tint)
78
147
  );
79
148
  --a63-border-control: color-mix(
80
- in oklch,
149
+ in oklab,
81
150
  var(--surface-light-5) calc(100% - var(--a63-surface-tint)),
82
151
  var(--a63-brand-400) var(--a63-surface-tint)
83
152
  );
84
-
85
- /* Action — primary + focus ring live in tokens/brand.css (brand-ramp scoped).
153
+ /* The keyboard focus ring. WCAG 1.4.11 needs 3:1 against the control and the
154
+ page around it; step 600 reaches that on every brand's light surfaces (the
155
+ translucent 500 it replaced was about 1.4:1). */
156
+ --a63-focus-ring: var(--a63-brand-600);
157
+ /* Action — primary lives in tokens/brand-action.css (brand-ramp scoped).
86
158
  Neutral = the default variant's fill; sourced from surfaces (NOT --a63-text-*)
87
159
  so a theme can recolor text without turning the default button into a fill. */
88
160
  --a63-action-neutral: var(--surface-light-12);
@@ -90,50 +162,97 @@
90
162
  --a63-action-danger: var(--color-danger-600);
91
163
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 90%, transparent);
92
164
  --a63-action-danger-foreground: white;
93
-
165
+ --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
166
+ --a63-action-danger-subtle-foreground: var(--color-danger-700);
94
167
  /* Status (danger's status role is served by --a63-action-danger). The base is
95
168
  the accent used for tinted callouts (bg = mix toward transparent, text/border
96
- = the accent); -foreground is the text/icon color ON a SOLID status fill. */
97
- --a63-status-info: var(--color-info-500);
98
- --a63-status-info-foreground: white;
99
- --a63-status-success: var(--color-success-500);
100
- --a63-status-success-foreground: white;
101
- --a63-status-warning: var(--color-warning-500);
102
- --a63-status-warning-foreground: white;
103
- }
104
-
105
- /* Mode-agnostic semantics — same veil in light + dark, so declared once at :root
106
- (the .dark block below never overrides them). */
107
- :root {
108
- /* Scrim — the modal/drawer/sheet backdrop veil behind overlays. */
109
- --a63-scrim: color-mix(in oklch, black 40%, transparent);
169
+ = the accent); -foreground is the text/icon color ON a SOLID status fill.
170
+ Step 600 on light surfaces and 500 on dark ones (the .dark block), so icons
171
+ drawn in the accent reach WCAG's 3:1 for graphics in both modes. */
172
+ --a63-status-info: var(--color-info-600);
173
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
174
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
175
+ --a63-status-info-foreground: oklch(
176
+ from var(--a63-status-info) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
177
+ );
178
+ --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
179
+ --a63-status-info-subtle-foreground: var(--color-info-700);
180
+ --a63-status-success: var(--color-success-600);
181
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
182
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
183
+ --a63-status-success-foreground: oklch(
184
+ from var(--a63-status-success) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
185
+ );
186
+ --a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
187
+ --a63-status-success-subtle-foreground: var(--color-success-700);
188
+ --a63-status-warning: var(--color-warning-600);
189
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
190
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
191
+ --a63-status-warning-foreground: oklch(
192
+ from var(--a63-status-warning) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
193
+ );
194
+ --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
195
+ --a63-status-warning-subtle-foreground: var(--color-warning-800);
196
+ /* Chart series colors. Series 1 is the primary; 2–5 are fixed hues that stay
197
+ distinct from it and from each other (500 on light surfaces, 400 on dark). */
198
+ --a63-chart-1: var(--a63-action-primary);
199
+ --a63-chart-2: var(--color-teal-500);
200
+ --a63-chart-3: var(--color-amber-500);
201
+ --a63-chart-4: var(--color-violet-500);
202
+ --a63-chart-5: var(--color-rose-500);
203
+ --a63-category-red-subtle-foreground: var(--color-red-700);
204
+ --a63-category-orange-subtle-foreground: var(--color-orange-800);
205
+ --a63-category-amber-subtle-foreground: var(--color-warning-800);
206
+ --a63-category-yellow-subtle-foreground: var(--color-yellow-800);
207
+ --a63-category-lime-subtle-foreground: var(--color-lime-800);
208
+ --a63-category-green-subtle-foreground: var(--color-green-800);
209
+ --a63-category-emerald-subtle-foreground: var(--color-emerald-800);
210
+ --a63-category-teal-subtle-foreground: var(--color-teal-800);
211
+ --a63-category-cyan-subtle-foreground: var(--color-cyan-800);
212
+ --a63-category-sky-subtle-foreground: var(--color-sky-700);
213
+ --a63-category-blue-subtle-foreground: var(--color-blue-700);
214
+ --a63-category-indigo-subtle-foreground: var(--color-indigo-700);
215
+ --a63-category-violet-subtle-foreground: var(--color-violet-700);
216
+ --a63-category-purple-subtle-foreground: var(--color-purple-700);
217
+ --a63-category-fuchsia-subtle-foreground: var(--color-fuchsia-700);
218
+ --a63-category-pink-subtle-foreground: var(--color-pink-700);
219
+ --a63-category-rose-subtle-foreground: var(--color-rose-700);
220
+ --a63-category-slate-subtle-foreground: var(--color-slate-700);
221
+ --a63-category-gray-subtle-foreground: var(--color-gray-700);
222
+ --a63-category-zinc-subtle-foreground: var(--color-zinc-700);
223
+ --a63-category-neutral-subtle-foreground: var(--color-neutral-700);
224
+ --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);
227
+ /* Text and icons of a selected item. */
228
+ --a63-selected-foreground: var(--a63-text-accent);
110
229
  }
111
230
 
112
231
  :is(.dark, [data-a63-mode='dark']) {
113
232
  --a63-surface-page: color-mix(
114
- in oklch,
233
+ in oklab,
115
234
  var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
116
235
  var(--a63-brand-950) var(--a63-surface-tint)
117
236
  );
118
237
  --a63-surface-panel: color-mix(
119
- in oklch,
238
+ in oklab,
120
239
  var(--surface-dark-2) calc(100% - var(--a63-surface-tint)),
121
240
  var(--a63-brand-900) var(--a63-surface-tint)
122
241
  );
123
242
  --a63-surface-overlay: color-mix(
124
- in oklch,
243
+ in oklab,
125
244
  var(--surface-dark-4) calc(100% - var(--a63-surface-tint)),
126
245
  var(--a63-brand-800) var(--a63-surface-tint)
127
246
  );
128
247
  --a63-surface-muted: color-mix(
129
- in oklch,
248
+ in oklab,
130
249
  var(--surface-dark-3) calc(100% - var(--a63-surface-tint)),
131
250
  var(--a63-brand-800) var(--a63-surface-tint)
132
251
  );
133
252
  /* Recessed input surface — darkest surface in dark mode, so a field reads as a
134
253
  sunken well relative to its panel. */
135
254
  --a63-surface-control: color-mix(
136
- in oklch,
255
+ in oklab,
137
256
  var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
138
257
  var(--a63-brand-950) var(--a63-surface-tint)
139
258
  );
@@ -142,28 +261,73 @@
142
261
  --a63-surface-control-hover: color-mix(
143
262
  in srgb,
144
263
  color-mix(
145
- in oklch,
264
+ in oklab,
146
265
  var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
147
266
  var(--a63-brand-600) var(--a63-surface-tint)
148
267
  ),
149
268
  transparent 20%
150
269
  );
151
-
270
+ --a63-surface-sidebar: var(--a63-surface-page);
152
271
  --a63-text-primary: var(--surface-dark-12);
153
272
  --a63-text-secondary: var(--surface-dark-11);
154
-
273
+ /* The primary fill is too dark to read as text on dark surfaces. */
274
+ --a63-text-accent: var(--a63-brand-400);
275
+ /* Danger text on dark surfaces: step 400 reaches WCAG AA 4.5:1 on every theme's
276
+ dark page and panel (step 600, the fill, is about 2.7:1 there). */
277
+ --a63-text-danger: var(--color-danger-400);
155
278
  --a63-border-subtle: color-mix(
156
- in oklch,
279
+ in oklab,
157
280
  var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
158
281
  var(--a63-brand-600) var(--a63-surface-tint)
159
282
  );
160
283
  --a63-border-control: color-mix(
161
- in oklch,
284
+ in oklab,
162
285
  var(--surface-dark-7) calc(100% - var(--a63-surface-tint)),
163
286
  var(--a63-brand-500) var(--a63-surface-tint)
164
287
  );
165
-
288
+ /* Step 400 on dark surfaces: 600 and some brands' 500 fall below 3:1 there. */
289
+ --a63-focus-ring: var(--a63-brand-400);
166
290
  --a63-action-neutral: var(--surface-dark-12);
167
291
  --a63-action-neutral-foreground: var(--surface-dark-1);
168
292
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 82%, white 8%);
293
+ --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
294
+ --a63-action-danger-subtle-foreground: var(--color-danger-400);
295
+ --a63-status-info: var(--color-info-500);
296
+ --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
297
+ --a63-status-info-subtle-foreground: var(--color-info-400);
298
+ --a63-status-success: var(--color-success-500);
299
+ --a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
300
+ --a63-status-success-subtle-foreground: var(--color-success-400);
301
+ --a63-status-warning: var(--color-warning-500);
302
+ --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
303
+ --a63-status-warning-subtle-foreground: var(--color-warning-400);
304
+ --a63-chart-1: var(--a63-action-primary);
305
+ --a63-chart-2: var(--color-teal-400);
306
+ --a63-chart-3: var(--color-amber-400);
307
+ --a63-chart-4: var(--color-violet-400);
308
+ --a63-chart-5: var(--color-rose-400);
309
+ --a63-category-red-subtle-foreground: var(--color-red-400);
310
+ --a63-category-orange-subtle-foreground: var(--color-orange-400);
311
+ --a63-category-amber-subtle-foreground: var(--color-warning-400);
312
+ --a63-category-yellow-subtle-foreground: var(--color-yellow-400);
313
+ --a63-category-lime-subtle-foreground: var(--color-lime-400);
314
+ --a63-category-green-subtle-foreground: var(--color-green-400);
315
+ --a63-category-emerald-subtle-foreground: var(--color-emerald-400);
316
+ --a63-category-teal-subtle-foreground: var(--color-teal-400);
317
+ --a63-category-cyan-subtle-foreground: var(--color-cyan-400);
318
+ --a63-category-sky-subtle-foreground: var(--color-sky-400);
319
+ --a63-category-blue-subtle-foreground: var(--color-blue-400);
320
+ --a63-category-indigo-subtle-foreground: var(--color-indigo-400);
321
+ --a63-category-violet-subtle-foreground: var(--color-violet-400);
322
+ --a63-category-purple-subtle-foreground: var(--color-purple-400);
323
+ --a63-category-fuchsia-subtle-foreground: var(--color-fuchsia-400);
324
+ --a63-category-pink-subtle-foreground: var(--color-pink-400);
325
+ --a63-category-rose-subtle-foreground: var(--color-rose-400);
326
+ --a63-category-slate-subtle-foreground: var(--color-slate-400);
327
+ --a63-category-gray-subtle-foreground: var(--color-gray-400);
328
+ --a63-category-zinc-subtle-foreground: var(--color-zinc-400);
329
+ --a63-category-neutral-subtle-foreground: var(--color-neutral-400);
330
+ --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);
169
333
  }