@atom63/styles 0.1.0-beta.1 → 0.1.0-beta.11

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 (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -13
  3. package/generated/atom63.figma-sync.json +23277 -0
  4. package/generated/atom63.tokens.json +19650 -8403
  5. package/generated/z-layers.d.ts +33 -0
  6. package/generated/z-layers.js +31 -0
  7. package/package.json +29 -15
  8. package/src/compat/a63-from-shadcn.css +281 -0
  9. package/src/compat/shadcn.browser.test.ts +23 -0
  10. package/src/compat/shadcn.css +133 -17
  11. package/src/contracts/action.css +4 -3
  12. package/src/contracts/action.native.css +11 -0
  13. package/src/contracts/action.tokens.json +66 -0
  14. package/src/contracts/badge.css +128 -58
  15. package/src/contracts/badge.resolver.json +454 -0
  16. package/src/contracts/choice.css +5 -2
  17. package/src/contracts/choice.native.css +9 -0
  18. package/src/contracts/choice.tokens.json +66 -0
  19. package/src/contracts/control.css +54 -57
  20. package/src/contracts/control.native.css +13 -0
  21. package/src/contracts/control.tokens.json +294 -0
  22. package/src/contracts/environment.css +178 -60
  23. package/src/contracts/environment.native.css +23 -0
  24. package/src/contracts/environment.resolver.json +1210 -0
  25. package/src/contracts/field.css +4 -2
  26. package/src/contracts/field.tokens.json +40 -0
  27. package/src/contracts/marker.css +6 -4
  28. package/src/contracts/marker.tokens.json +15 -0
  29. package/src/contracts/menu.css +25 -61
  30. package/src/contracts/menu.native.css +10 -0
  31. package/src/contracts/menu.resolver.json +122 -0
  32. package/src/contracts/overlay.css +11 -13
  33. package/src/contracts/overlay.native.css +13 -0
  34. package/src/contracts/overlay.tokens.json +103 -0
  35. package/src/contracts/segment.css +22 -68
  36. package/src/contracts/segment.tokens.json +19 -0
  37. package/src/contracts/selection.css +5 -1
  38. package/src/contracts/selection.tokens.json +42 -0
  39. package/src/contracts/skeleton.css +18 -2
  40. package/src/contracts/skeleton.resolver.json +62 -0
  41. package/src/contracts/surface.css +17 -24
  42. package/src/contracts/surface.native.css +17 -0
  43. package/src/contracts/surface.tokens.json +154 -0
  44. package/src/contracts/toggle.css +27 -3
  45. package/src/contracts/toggle.resolver.json +129 -0
  46. package/src/contracts/track.css +3 -1
  47. package/src/contracts/track.tokens.json +39 -0
  48. package/src/contracts/trigger.css +5 -2
  49. package/src/contracts/trigger.native.css +9 -0
  50. package/src/contracts/trigger.tokens.json +58 -0
  51. package/src/contracts/widget.css +76 -51
  52. package/src/contracts/widget.native.css +23 -0
  53. package/src/contracts/widget.resolver.json +1110 -0
  54. package/src/tailwind/roles.json +189 -0
  55. package/src/tailwind/theme.css +216 -24
  56. package/src/tailwind/utilities.css +17 -0
  57. package/src/themes/aqua.css +126 -89
  58. package/src/themes/aqua.native.css +80 -0
  59. package/src/themes/aqua.resolver.json +1304 -0
  60. package/src/themes/modern.css +10 -14
  61. package/src/themes/modern.native.css +16 -0
  62. package/src/themes/modern.resolver.json +350 -0
  63. package/src/themes/retro.css +22 -26
  64. package/src/themes/retro.native.css +16 -0
  65. package/src/themes/retro.resolver.json +794 -0
  66. package/src/themes/terminal.css +164 -41
  67. package/src/themes/terminal.native.css +22 -0
  68. package/src/themes/terminal.resolver.json +585 -0
  69. package/src/tokens/brand-action.css +65 -0
  70. package/src/tokens/brand-action.resolver.json +155 -0
  71. package/src/tokens/brand-ramp.css +108 -0
  72. package/src/tokens/brand-ramp.resolver.json +418 -0
  73. package/src/tokens/brand.css +6 -146
  74. package/src/tokens/chart-palette.browser.test.ts +188 -0
  75. package/src/tokens/color-mix-space.browser.test.ts +101 -0
  76. package/src/tokens/contrast.browser.test.ts +303 -5
  77. package/src/tokens/density.browser.test.ts +167 -0
  78. package/src/tokens/figma-parity.browser.test.ts +270 -0
  79. package/src/tokens/font.css +12 -0
  80. package/src/tokens/font.resolver.json +128 -0
  81. package/src/tokens/form-factor.browser.test.ts +129 -0
  82. package/src/tokens/foundation/effects.css +13 -13
  83. package/src/tokens/foundation/effects.resolver.json +433 -0
  84. package/src/tokens/foundation/fonts.css +11 -5
  85. package/src/tokens/foundation/fonts.tokens.json +45 -0
  86. package/src/tokens/foundation/motion.css +3 -0
  87. package/src/tokens/foundation/motion.tokens.json +53 -0
  88. package/src/tokens/foundation/palette.css +3 -0
  89. package/src/tokens/foundation/palette.tokens.json +1743 -0
  90. package/src/tokens/foundation/primitives.css +20 -43
  91. package/src/tokens/foundation/primitives.tokens.json +3258 -0
  92. package/src/tokens/foundation/radius.css +11 -9
  93. package/src/tokens/foundation/radius.tokens.json +108 -0
  94. package/src/tokens/foundation/typography.css +49 -12
  95. package/src/tokens/foundation/typography.native.css +21 -0
  96. package/src/tokens/foundation/typography.resolver.json +1008 -0
  97. package/src/tokens/foundation.css +0 -1
  98. package/src/tokens/index.css +1 -0
  99. package/src/tokens/motion.css +3 -1
  100. package/src/tokens/motion.resolver.json +135 -0
  101. package/src/tokens/native-values.json +38 -0
  102. package/src/tokens/personalization-axes.browser.test.ts +18 -3
  103. package/src/tokens/plate-scope.browser.test.ts +73 -0
  104. package/src/tokens/radius.css +12 -8
  105. package/src/tokens/radius.resolver.json +138 -0
  106. package/src/tokens/semantics.css +716 -41
  107. package/src/tokens/semantics.resolver.json +1639 -0
  108. package/src/tokens/space.css +8 -6
  109. package/src/tokens/space.tokens.json +78 -0
  110. package/src/tokens/surface.css +13 -19
  111. package/src/tokens/surface.resolver.json +706 -0
  112. package/src/tokens/swift-parity.browser.test.ts +141 -0
  113. package/src/tokens/type-roles.css +88 -0
  114. package/src/tokens/type-roles.resolver.json +419 -0
  115. package/src/tokens/type-scale.css +6 -0
  116. package/src/tokens/type-scale.resolver.json +67 -0
  117. package/generated/atom63.figma-tokens.json +0 -21664
  118. package/src/tokens/foundation/aliases.css +0 -28
  119. package/src/z-layers.ts +0 -40
@@ -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,6 +10,87 @@
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
  */
13
+ :root {
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
+ /* 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);
27
+ /* Media stage — behind full-screen photos and video: black in every theme, so letterboxing matches the picture. */
28
+ --a63-media-stage: var(--color-black-100);
29
+ /* Media scrim — the dim behind a video dialog; heavier than --a63-scrim because the video is the only thing on screen. */
30
+ --a63-media-scrim: var(--color-black-70);
31
+ /* On media — icons and text on controls that float over photos and video, whose colors are unknowable. */
32
+ --a63-on-media-foreground: var(--color-white-100);
33
+ /* On media — the backplate of a floating control, dark enough that its foreground reads over any picture. */
34
+ --a63-on-media-surface: var(--color-black-60);
35
+ /* On media — the backplate at rest for a primary control (play) and on hover for the others. */
36
+ --a63-on-media-surface-strong: var(--color-black-70);
37
+ /* On media — the hairline that separates a floating control from a dark picture. */
38
+ --a63-on-media-border: var(--color-white-20);
39
+ /* On media — the focus ring for controls over media. */
40
+ --a63-on-media-ring: var(--color-white-90);
41
+ /* On media — a light veil over a poster while it waits. */
42
+ --a63-on-media-veil: var(--color-black-10);
43
+ /* On media — the veil over a poster while a control on it is shown. */
44
+ --a63-on-media-veil-strong: var(--color-black-20);
45
+ /* Category hues for tags, labels and charts, one per palette hue. `subtle` is a
46
+ 14% tint of the hue for chip backgrounds, mixed in oklab so tinted neutrals render
47
+ alike in every engine; `subtle.foreground` is the text on that tint (step 700 or 800
48
+ on light surfaces, 400 on dark). Amber uses the warning ramp. */
49
+ --a63-category-red: var(--color-red-500);
50
+ --a63-category-red-subtle: color-mix(in oklab, var(--a63-category-red) 14%, transparent);
51
+ --a63-category-orange: var(--color-orange-500);
52
+ --a63-category-orange-subtle: color-mix(in oklab, var(--a63-category-orange) 14%, transparent);
53
+ --a63-category-amber: var(--color-warning-500);
54
+ --a63-category-amber-subtle: color-mix(in oklab, var(--a63-category-amber) 14%, transparent);
55
+ --a63-category-yellow: var(--color-yellow-500);
56
+ --a63-category-yellow-subtle: color-mix(in oklab, var(--a63-category-yellow) 14%, transparent);
57
+ --a63-category-lime: var(--color-lime-500);
58
+ --a63-category-lime-subtle: color-mix(in oklab, var(--a63-category-lime) 14%, transparent);
59
+ --a63-category-green: var(--color-green-500);
60
+ --a63-category-green-subtle: color-mix(in oklab, var(--a63-category-green) 14%, transparent);
61
+ --a63-category-emerald: var(--color-emerald-500);
62
+ --a63-category-emerald-subtle: color-mix(in oklab, var(--a63-category-emerald) 14%, transparent);
63
+ --a63-category-teal: var(--color-teal-500);
64
+ --a63-category-teal-subtle: color-mix(in oklab, var(--a63-category-teal) 14%, transparent);
65
+ --a63-category-cyan: var(--color-cyan-500);
66
+ --a63-category-cyan-subtle: color-mix(in oklab, var(--a63-category-cyan) 14%, transparent);
67
+ --a63-category-sky: var(--color-sky-500);
68
+ --a63-category-sky-subtle: color-mix(in oklab, var(--a63-category-sky) 14%, transparent);
69
+ --a63-category-blue: var(--color-blue-500);
70
+ --a63-category-blue-subtle: color-mix(in oklab, var(--a63-category-blue) 14%, transparent);
71
+ --a63-category-indigo: var(--color-indigo-500);
72
+ --a63-category-indigo-subtle: color-mix(in oklab, var(--a63-category-indigo) 14%, transparent);
73
+ --a63-category-violet: var(--color-violet-500);
74
+ --a63-category-violet-subtle: color-mix(in oklab, var(--a63-category-violet) 14%, transparent);
75
+ --a63-category-purple: var(--color-purple-500);
76
+ --a63-category-purple-subtle: color-mix(in oklab, var(--a63-category-purple) 14%, transparent);
77
+ --a63-category-fuchsia: var(--color-fuchsia-500);
78
+ --a63-category-fuchsia-subtle: color-mix(in oklab, var(--a63-category-fuchsia) 14%, transparent);
79
+ --a63-category-pink: var(--color-pink-500);
80
+ --a63-category-pink-subtle: color-mix(in oklab, var(--a63-category-pink) 14%, transparent);
81
+ --a63-category-rose: var(--color-rose-500);
82
+ --a63-category-rose-subtle: color-mix(in oklab, var(--a63-category-rose) 14%, transparent);
83
+ --a63-category-slate: var(--color-slate-500);
84
+ --a63-category-slate-subtle: color-mix(in oklab, var(--a63-category-slate) 14%, transparent);
85
+ --a63-category-gray: var(--color-gray-500);
86
+ --a63-category-gray-subtle: color-mix(in oklab, var(--a63-category-gray) 14%, transparent);
87
+ --a63-category-zinc: var(--color-zinc-500);
88
+ --a63-category-zinc-subtle: color-mix(in oklab, var(--a63-category-zinc) 14%, transparent);
89
+ --a63-category-neutral: var(--color-neutral-500);
90
+ --a63-category-neutral-subtle: color-mix(in oklab, var(--a63-category-neutral) 14%, transparent);
91
+ --a63-category-stone: var(--color-stone-500);
92
+ --a63-category-stone-subtle: color-mix(in oklab, var(--a63-category-stone) 14%, transparent);
93
+ }
10
94
 
11
95
  :root,
12
96
  .light,
@@ -14,29 +98,29 @@
14
98
  /* Surfaces — neutral, optionally bent toward the brand hue by --a63-surface-tint
15
99
  (0% = pure neutral). Each mixes with a lightness-matched --a63-brand-* step. */
16
100
  --a63-surface-page: color-mix(
17
- in oklch,
101
+ in oklab,
18
102
  var(--surface-light-2) calc(100% - var(--a63-surface-tint)),
19
103
  var(--a63-brand-100) var(--a63-surface-tint)
20
104
  );
21
105
  --a63-surface-panel: color-mix(
22
- in oklch,
106
+ in oklab,
23
107
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
24
108
  var(--a63-brand-50) var(--a63-surface-tint)
25
109
  );
26
110
  --a63-surface-overlay: color-mix(
27
- in oklch,
111
+ in oklab,
28
112
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
29
113
  var(--a63-brand-50) var(--a63-surface-tint)
30
114
  );
31
115
  --a63-surface-muted: color-mix(
32
- in oklch,
116
+ in oklab,
33
117
  var(--surface-light-3) calc(100% - var(--a63-surface-tint)),
34
118
  var(--a63-brand-200) var(--a63-surface-tint)
35
119
  );
36
120
  /* Recessed input surface (the field fill). Brightest surface in light mode so a
37
121
  field reads as a clean well recessed into its panel via --a63-field-shadow. */
38
122
  --a63-surface-control: color-mix(
39
- in oklch,
123
+ in oklab,
40
124
  var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
41
125
  var(--a63-brand-50) var(--a63-surface-tint)
42
126
  );
@@ -47,81 +131,227 @@
47
131
  --a63-surface-control-hover: color-mix(
48
132
  in srgb,
49
133
  color-mix(
50
- in oklch,
134
+ in oklab,
51
135
  var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
52
136
  var(--a63-brand-300) var(--a63-surface-tint)
53
137
  ),
54
138
  transparent 20%
55
139
  );
56
-
140
+ /* The sidebar surface (shadcn `sidebar`): the muted surface in light mode and
141
+ the page surface in dark mode. */
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
+ );
57
152
  /* Text */
58
153
  --a63-text-primary: var(--surface-light-12);
59
- --a63-text-secondary: var(--surface-light-11);
60
-
154
+ /* The second text grey. It darkens toward brand 800 by three tenths of
155
+ --a63-surface-tint, so it keeps WCAG AA 4.5:1 on the page, the panel and the muted fill
156
+ as they tint toward the brand. */
157
+ --a63-text-secondary: color-mix(
158
+ in oklab,
159
+ var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3),
160
+ var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
161
+ );
162
+ /* The third text grey, lighter than secondary: placeholders, meta and timestamps.
163
+ Seven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,
164
+ the panel, the field fill and the muted fill of a filled field. Like secondary, it darkens
165
+ toward brand 800 by three tenths of --a63-surface-tint, so it keeps 4.5:1 as the surfaces tint. */
166
+ --a63-text-tertiary: color-mix(
167
+ in oklab,
168
+ color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10))
169
+ calc(100% - var(--a63-surface-tint) * 0.3),
170
+ var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
171
+ );
172
+ /* The brand as text (links, accents) on light surfaces; brand.css picks the
173
+ ramp step per brand. Use --a63-action-primary for fills. */
174
+ --a63-text-accent: var(--a63-brand-text);
175
+ /* Danger text: error messages and destructive labels on surfaces. Step 600 on
176
+ light surfaces; --a63-action-danger stays the fill for danger buttons. */
177
+ --a63-text-danger: var(--color-danger-600);
61
178
  /* Border */
62
179
  --a63-border-subtle: color-mix(
63
- in oklch,
180
+ in oklab,
64
181
  var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
65
182
  var(--a63-brand-300) var(--a63-surface-tint)
66
183
  );
67
184
  --a63-border-control: color-mix(
68
- in oklch,
185
+ in oklab,
69
186
  var(--surface-light-5) calc(100% - var(--a63-surface-tint)),
70
187
  var(--a63-brand-400) var(--a63-surface-tint)
71
188
  );
72
-
73
- /* Action — primary + focus ring live in tokens/brand.css (brand-ramp scoped).
189
+ /* The border of a form control a person has to find: text fields, selects,
190
+ checkboxes, radios, switches and slider thumbs. WCAG 1.4.11 needs 3:1 against
191
+ the page, the panel and the field fill; step 10 reaches that on every theme,
192
+ brand and surface (step 9 falls to about 2.97:1). Decorative edges keep
193
+ --a63-border-control. */
194
+ --a63-border-input: color-mix(
195
+ in oklab,
196
+ var(--surface-light-10) calc(100% - var(--a63-surface-tint)),
197
+ var(--a63-brand-500) var(--a63-surface-tint)
198
+ );
199
+ /* The border of an invalid form control (aria-invalid or data-invalid). WCAG 1.4.11 needs
200
+ 3:1 against the page, the panel and the field fill: step 600 at 62% reaches about 3.1:1
201
+ on light surfaces. Mixed toward transparent so the red keeps its hue. A focused
202
+ invalid control draws its border and ring in --a63-status-danger. */
203
+ --a63-border-danger: color-mix(in oklch, var(--color-danger-600) 62%, transparent);
204
+ /* 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. */
205
+ --a63-control-outline-background: var(--a63-surface-panel);
206
+ /* Outline controls: the fill on hover and press. */
207
+ --a63-control-outline-hover-background: color-mix(
208
+ in oklab,
209
+ var(--a63-surface-control-hover) 50%,
210
+ transparent
211
+ );
212
+ /* Outline controls: the border on hover and press. */
213
+ --a63-control-outline-hover-border: var(--a63-border-subtle);
214
+ /* The default Alert's fill: none in light mode, a faint control-surface tint in dark mode. */
215
+ --a63-alert-background: transparent;
216
+ /* A choice card (a FieldLabel wrapping a checkbox, radio or switch) when checked: its border. */
217
+ --a63-choice-card-checked-border: color-mix(in oklch, var(--a63-action-primary) 30%, transparent);
218
+ /* A checked choice card's fill. */
219
+ --a63-choice-card-checked-background: color-mix(
220
+ in oklch,
221
+ var(--a63-action-primary) 5%,
222
+ transparent
223
+ );
224
+ /* The keyboard focus ring. WCAG 1.4.11 needs 3:1 against the control and the
225
+ page around it; step 600 reaches that on every brand's light surfaces (the
226
+ translucent 500 it replaced was about 1.4:1). */
227
+ --a63-focus-ring: var(--a63-brand-600);
228
+ /* Action — primary lives in tokens/brand-action.css (brand-ramp scoped).
74
229
  Neutral = the default variant's fill; sourced from surfaces (NOT --a63-text-*)
75
230
  so a theme can recolor text without turning the default button into a fill. */
76
231
  --a63-action-neutral: var(--surface-light-12);
77
232
  --a63-action-neutral-foreground: var(--surface-light-2);
233
+ /* The fill of a danger action (a destructive Button), under a white label. It keeps step 600 in both modes, which is about 2.8:1 on dark surfaces, so it is never text, an icon or an edge: those use --a63-text-danger, --a63-status-danger and --a63-border-danger. */
78
234
  --a63-action-danger: var(--color-danger-600);
79
235
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 90%, transparent);
80
236
  --a63-action-danger-foreground: white;
81
-
82
- /* Status (danger's status role is served by --a63-action-danger). The base is
237
+ --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
238
+ --a63-action-danger-subtle-foreground: var(--color-danger-700);
239
+ /* A disabled solid or outline action (Button): a neutral fill, so it reads as unavailable rather than as a paler accent. */
240
+ --a63-action-disabled-background: var(--a63-surface-muted);
241
+ /* 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. */
242
+ --a63-action-disabled-foreground: var(--surface-light-9);
243
+ /* A disabled action's border. */
244
+ --a63-action-disabled-border: var(--a63-border-subtle);
245
+ /* Status (info, success, warning and danger). The base is
83
246
  the accent used for tinted callouts (bg = mix toward transparent, text/border
84
- = the accent); -foreground is the text/icon color ON a SOLID status fill. */
85
- --a63-status-info: var(--color-info-500);
86
- --a63-status-info-foreground: white;
87
- --a63-status-success: var(--color-success-500);
88
- --a63-status-success-foreground: white;
89
- --a63-status-warning: var(--color-warning-500);
90
- --a63-status-warning-foreground: white;
91
- }
92
-
93
- /* Mode-agnostic semantics — same veil in light + dark, so declared once at :root
94
- (the .dark block below never overrides them). */
95
- :root {
96
- /* Scrim — the modal/drawer/sheet backdrop veil behind overlays. */
97
- --a63-scrim: color-mix(in oklch, black 40%, transparent);
247
+ = the accent); -foreground is the text/icon color ON a SOLID status fill.
248
+ Step 600 on light surfaces and 500 on dark ones (the .dark block), so icons
249
+ drawn in the accent reach WCAG's 3:1 for graphics in both modes. */
250
+ --a63-status-info: var(--color-info-600);
251
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
252
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
253
+ --a63-status-info-foreground: oklch(
254
+ from var(--a63-status-info) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
255
+ );
256
+ --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
257
+ --a63-status-info-subtle-foreground: var(--color-info-700);
258
+ --a63-status-success: var(--color-success-600);
259
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
260
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
261
+ --a63-status-success-foreground: oklch(
262
+ from var(--a63-status-success) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
263
+ );
264
+ --a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
265
+ --a63-status-success-subtle-foreground: var(--color-success-700);
266
+ --a63-status-warning: var(--color-warning-600);
267
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
268
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
269
+ --a63-status-warning-foreground: oklch(
270
+ from var(--a63-status-warning) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
271
+ );
272
+ --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
273
+ --a63-status-warning-subtle-foreground: var(--color-warning-800);
274
+ /* The danger status accent: error icons, borders and tints (Alert, form and
275
+ sync errors). --a63-action-danger stays the fill for danger buttons and does
276
+ not change with the mode; this one moves to step 500 on dark surfaces so it
277
+ reaches 3:1 there. Error text uses --a63-text-danger. */
278
+ --a63-status-danger: var(--color-danger-600);
279
+ /* Text and icons on a solid fill of this status. Same auto-contrast step as
280
+ the primary foreground: near-black on bright fills, near-white on dark ones. */
281
+ --a63-status-danger-foreground: oklch(
282
+ from var(--a63-status-danger) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
283
+ );
284
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
285
+ --a63-status-danger-subtle-foreground: var(--color-danger-700);
286
+ /* Chart series colors. Series 1 is the brand's primary; series 2 to 5 turn its hue
287
+ by fixed steps at a set lightness and chroma, so no series takes the brand's hue
288
+ whatever the brand (the wallpaper brand included), and each reaches 3:1 against
289
+ the page and the panel. The plain value is the default (blue) brand's result, for
290
+ tools that cannot run the derivation. */
291
+ --a63-chart-1: var(--a63-action-primary);
292
+ --a63-chart-2: oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144));
293
+ --a63-chart-3: oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288));
294
+ --a63-chart-4: oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216));
295
+ --a63-chart-5: oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72));
296
+ --a63-category-red-subtle-foreground: var(--color-red-700);
297
+ --a63-category-orange-subtle-foreground: var(--color-orange-800);
298
+ --a63-category-amber-subtle-foreground: var(--color-warning-800);
299
+ --a63-category-yellow-subtle-foreground: var(--color-yellow-800);
300
+ --a63-category-lime-subtle-foreground: var(--color-lime-800);
301
+ --a63-category-green-subtle-foreground: var(--color-green-800);
302
+ --a63-category-emerald-subtle-foreground: var(--color-emerald-800);
303
+ --a63-category-teal-subtle-foreground: var(--color-teal-800);
304
+ --a63-category-cyan-subtle-foreground: var(--color-cyan-800);
305
+ --a63-category-sky-subtle-foreground: var(--color-sky-700);
306
+ --a63-category-blue-subtle-foreground: var(--color-blue-700);
307
+ --a63-category-indigo-subtle-foreground: var(--color-indigo-700);
308
+ --a63-category-violet-subtle-foreground: var(--color-violet-700);
309
+ --a63-category-purple-subtle-foreground: var(--color-purple-700);
310
+ --a63-category-fuchsia-subtle-foreground: var(--color-fuchsia-700);
311
+ --a63-category-pink-subtle-foreground: var(--color-pink-700);
312
+ --a63-category-rose-subtle-foreground: var(--color-rose-700);
313
+ --a63-category-slate-subtle-foreground: var(--color-slate-700);
314
+ --a63-category-gray-subtle-foreground: var(--color-gray-700);
315
+ --a63-category-zinc-subtle-foreground: var(--color-zinc-700);
316
+ --a63-category-neutral-subtle-foreground: var(--color-neutral-700);
317
+ --a63-category-stone-subtle-foreground: var(--color-stone-700);
318
+ /* A selected or current item in a list, menu, table or grid: a neutral muted fill. */
319
+ --a63-selected-background: var(--a63-surface-muted);
320
+ /* Text and icons of a selected item. */
321
+ --a63-selected-foreground: var(--a63-text-primary);
322
+ /* The opt-in accent selection (tone="accent"): a light wash of the primary. */
323
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
324
+ /* Text and icons of an accent-selected item. */
325
+ --a63-selected-accent-foreground: var(--a63-text-accent);
326
+ --a63-if-light: initial;
327
+ --a63-if-dark: ;
98
328
  }
99
329
 
100
330
  :is(.dark, [data-a63-mode='dark']) {
101
331
  --a63-surface-page: color-mix(
102
- in oklch,
332
+ in oklab,
103
333
  var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
104
334
  var(--a63-brand-950) var(--a63-surface-tint)
105
335
  );
106
336
  --a63-surface-panel: color-mix(
107
- in oklch,
337
+ in oklab,
108
338
  var(--surface-dark-2) calc(100% - var(--a63-surface-tint)),
109
339
  var(--a63-brand-900) var(--a63-surface-tint)
110
340
  );
111
341
  --a63-surface-overlay: color-mix(
112
- in oklch,
342
+ in oklab,
113
343
  var(--surface-dark-4) calc(100% - var(--a63-surface-tint)),
114
344
  var(--a63-brand-800) var(--a63-surface-tint)
115
345
  );
116
346
  --a63-surface-muted: color-mix(
117
- in oklch,
347
+ in oklab,
118
348
  var(--surface-dark-3) calc(100% - var(--a63-surface-tint)),
119
349
  var(--a63-brand-800) var(--a63-surface-tint)
120
350
  );
121
351
  /* Recessed input surface — darkest surface in dark mode, so a field reads as a
122
352
  sunken well relative to its panel. */
123
353
  --a63-surface-control: color-mix(
124
- in oklch,
354
+ in oklab,
125
355
  var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
126
356
  var(--a63-brand-950) var(--a63-surface-tint)
127
357
  );
@@ -130,28 +360,473 @@
130
360
  --a63-surface-control-hover: color-mix(
131
361
  in srgb,
132
362
  color-mix(
133
- in oklch,
363
+ in oklab,
134
364
  var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
135
365
  var(--a63-brand-600) var(--a63-surface-tint)
136
366
  ),
137
367
  transparent 20%
138
368
  );
139
-
369
+ --a63-surface-sidebar: var(--a63-surface-page);
370
+ --a63-surface-recessed: var(--a63-surface-page);
371
+ /* 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. */
372
+ --a63-gradient-brand-fade: linear-gradient(
373
+ to bottom,
374
+ var(--a63-brand-800),
375
+ var(--a63-brand-700) var(--a63-gradient-brand-fade-dark-zone),
376
+ var(--a63-surface-page)
377
+ );
140
378
  --a63-text-primary: var(--surface-dark-12);
141
- --a63-text-secondary: var(--surface-dark-11);
142
-
379
+ /* It lightens toward brand 100 by three tenths of --a63-surface-tint,
380
+ as the dark surfaces tint toward the brand. */
381
+ --a63-text-secondary: color-mix(
382
+ in oklab,
383
+ var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3),
384
+ var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
385
+ );
386
+ /* Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,
387
+ the field fill and the muted fill. Like secondary, it lightens toward brand 100 by three
388
+ tenths of --a63-surface-tint. */
389
+ --a63-text-tertiary: color-mix(
390
+ in oklab,
391
+ color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))
392
+ calc(100% - var(--a63-surface-tint) * 0.3),
393
+ var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
394
+ );
395
+ /* The primary fill is too dark to read as text on dark surfaces. */
396
+ --a63-text-accent: var(--a63-brand-400);
397
+ /* Danger text on dark surfaces: step 400 reaches WCAG AA 4.5:1 on every theme's
398
+ dark page and panel (step 600, the fill, is about 2.7:1 there). */
399
+ --a63-text-danger: var(--color-danger-400);
143
400
  --a63-border-subtle: color-mix(
144
- in oklch,
401
+ in oklab,
145
402
  var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
146
403
  var(--a63-brand-600) var(--a63-surface-tint)
147
404
  );
148
405
  --a63-border-control: color-mix(
149
- in oklch,
406
+ in oklab,
150
407
  var(--surface-dark-7) calc(100% - var(--a63-surface-tint)),
151
408
  var(--a63-brand-500) var(--a63-surface-tint)
152
409
  );
153
-
410
+ /* Step 9 on dark surfaces reaches 3:1 against the page, the panel and the field fill. */
411
+ --a63-border-input: color-mix(
412
+ in oklab,
413
+ var(--surface-dark-9) calc(100% - var(--a63-surface-tint)),
414
+ var(--a63-brand-500) var(--a63-surface-tint)
415
+ );
416
+ /* Step 500, opaque, on dark surfaces: about 4.2:1 on the panel (step 600 at 62% was about 1.7:1). */
417
+ --a63-border-danger: var(--color-danger-500);
418
+ --a63-control-outline-background: color-mix(in oklab, var(--a63-border-control) 32%, transparent);
419
+ --a63-control-outline-hover-background: color-mix(
420
+ in oklab,
421
+ var(--a63-border-control) 64%,
422
+ transparent
423
+ );
424
+ --a63-control-outline-hover-border: var(--a63-border-control);
425
+ --a63-alert-background: color-mix(in oklab, var(--a63-surface-control) 32%, transparent);
426
+ --a63-choice-card-checked-border: color-mix(in oklch, var(--a63-action-primary) 20%, transparent);
427
+ --a63-choice-card-checked-background: color-mix(
428
+ in oklch,
429
+ var(--a63-action-primary) 10%,
430
+ transparent
431
+ );
432
+ /* Step 400 on dark surfaces: 600 and some brands' 500 fall below 3:1 there. */
433
+ --a63-focus-ring: var(--a63-brand-400);
154
434
  --a63-action-neutral: var(--surface-dark-12);
155
435
  --a63-action-neutral-foreground: var(--surface-dark-1);
156
436
  --a63-action-danger-hover: color-mix(in oklch, var(--a63-action-danger) 82%, white 8%);
437
+ --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
438
+ --a63-action-danger-subtle-foreground: var(--color-danger-400);
439
+ --a63-action-disabled-background: var(--a63-surface-muted);
440
+ --a63-action-disabled-foreground: var(--surface-dark-9);
441
+ --a63-action-disabled-border: var(--a63-border-subtle);
442
+ --a63-status-info: var(--color-info-500);
443
+ --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
444
+ --a63-status-info-subtle-foreground: var(--color-info-400);
445
+ --a63-status-success: var(--color-success-500);
446
+ --a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
447
+ --a63-status-success-subtle-foreground: var(--color-success-400);
448
+ --a63-status-warning: var(--color-warning-500);
449
+ --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
450
+ --a63-status-warning-subtle-foreground: var(--color-warning-400);
451
+ --a63-status-danger: var(--color-danger-500);
452
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
453
+ --a63-status-danger-subtle-foreground: var(--color-danger-400);
454
+ /* On dark surfaces series 1 is the brand's 400 step and 2 to 5 are lighter, for 3:1
455
+ against the dark page. */
456
+ --a63-chart-1: var(--a63-brand-400);
457
+ --a63-chart-2: oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144));
458
+ --a63-chart-3: oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288));
459
+ --a63-chart-4: oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216));
460
+ --a63-chart-5: oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72));
461
+ --a63-category-red-subtle-foreground: var(--color-red-400);
462
+ --a63-category-orange-subtle-foreground: var(--color-orange-400);
463
+ --a63-category-amber-subtle-foreground: var(--color-warning-400);
464
+ --a63-category-yellow-subtle-foreground: var(--color-yellow-400);
465
+ --a63-category-lime-subtle-foreground: var(--color-lime-400);
466
+ --a63-category-green-subtle-foreground: var(--color-green-400);
467
+ --a63-category-emerald-subtle-foreground: var(--color-emerald-400);
468
+ --a63-category-teal-subtle-foreground: var(--color-teal-400);
469
+ --a63-category-cyan-subtle-foreground: var(--color-cyan-400);
470
+ --a63-category-sky-subtle-foreground: var(--color-sky-400);
471
+ --a63-category-blue-subtle-foreground: var(--color-blue-400);
472
+ --a63-category-indigo-subtle-foreground: var(--color-indigo-400);
473
+ --a63-category-violet-subtle-foreground: var(--color-violet-400);
474
+ --a63-category-purple-subtle-foreground: var(--color-purple-400);
475
+ --a63-category-fuchsia-subtle-foreground: var(--color-fuchsia-400);
476
+ --a63-category-pink-subtle-foreground: var(--color-pink-400);
477
+ --a63-category-rose-subtle-foreground: var(--color-rose-400);
478
+ --a63-category-slate-subtle-foreground: var(--color-slate-400);
479
+ --a63-category-gray-subtle-foreground: var(--color-gray-400);
480
+ --a63-category-zinc-subtle-foreground: var(--color-zinc-400);
481
+ --a63-category-neutral-subtle-foreground: var(--color-neutral-400);
482
+ --a63-category-stone-subtle-foreground: var(--color-stone-400);
483
+ --a63-selected-background: var(--a63-surface-muted);
484
+ --a63-selected-foreground: var(--a63-text-primary);
485
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
486
+ --a63-selected-accent-foreground: var(--a63-text-accent);
487
+ --a63-if-light: ;
488
+ --a63-if-dark: initial;
489
+ }
490
+
491
+ [data-a63-brand],
492
+ [data-a63-surface] {
493
+ /* The mode roles again, on scopes that change what they read, keyed to the nearest mode scope. */
494
+ --a63-surface-page: var(
495
+ --a63-if-light,
496
+ color-mix(
497
+ in oklab,
498
+ var(--surface-light-2) calc(100% - var(--a63-surface-tint)),
499
+ var(--a63-brand-100) var(--a63-surface-tint)
500
+ )
501
+ )
502
+ var(
503
+ --a63-if-dark,
504
+ color-mix(
505
+ in oklab,
506
+ var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
507
+ var(--a63-brand-950) var(--a63-surface-tint)
508
+ )
509
+ );
510
+ --a63-surface-panel: var(
511
+ --a63-if-light,
512
+ color-mix(
513
+ in oklab,
514
+ var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
515
+ var(--a63-brand-50) var(--a63-surface-tint)
516
+ )
517
+ )
518
+ var(
519
+ --a63-if-dark,
520
+ color-mix(
521
+ in oklab,
522
+ var(--surface-dark-2) calc(100% - var(--a63-surface-tint)),
523
+ var(--a63-brand-900) var(--a63-surface-tint)
524
+ )
525
+ );
526
+ --a63-surface-overlay: var(
527
+ --a63-if-light,
528
+ color-mix(
529
+ in oklab,
530
+ var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
531
+ var(--a63-brand-50) var(--a63-surface-tint)
532
+ )
533
+ )
534
+ var(
535
+ --a63-if-dark,
536
+ color-mix(
537
+ in oklab,
538
+ var(--surface-dark-4) calc(100% - var(--a63-surface-tint)),
539
+ var(--a63-brand-800) var(--a63-surface-tint)
540
+ )
541
+ );
542
+ --a63-surface-muted: var(
543
+ --a63-if-light,
544
+ color-mix(
545
+ in oklab,
546
+ var(--surface-light-3) calc(100% - var(--a63-surface-tint)),
547
+ var(--a63-brand-200) var(--a63-surface-tint)
548
+ )
549
+ )
550
+ var(
551
+ --a63-if-dark,
552
+ color-mix(
553
+ in oklab,
554
+ var(--surface-dark-3) calc(100% - var(--a63-surface-tint)),
555
+ var(--a63-brand-800) var(--a63-surface-tint)
556
+ )
557
+ );
558
+ --a63-surface-control: var(
559
+ --a63-if-light,
560
+ color-mix(
561
+ in oklab,
562
+ var(--surface-light-1) calc(100% - var(--a63-surface-tint)),
563
+ var(--a63-brand-50) var(--a63-surface-tint)
564
+ )
565
+ )
566
+ var(
567
+ --a63-if-dark,
568
+ color-mix(
569
+ in oklab,
570
+ var(--surface-dark-1) calc(100% - var(--a63-surface-tint)),
571
+ var(--a63-brand-950) var(--a63-surface-tint)
572
+ )
573
+ );
574
+ --a63-surface-control-hover: var(
575
+ --a63-if-light,
576
+ color-mix(
577
+ in srgb,
578
+ color-mix(
579
+ in oklab,
580
+ var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
581
+ var(--a63-brand-300) var(--a63-surface-tint)
582
+ ),
583
+ transparent 20%
584
+ )
585
+ )
586
+ var(
587
+ --a63-if-dark,
588
+ color-mix(
589
+ in srgb,
590
+ color-mix(
591
+ in oklab,
592
+ var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
593
+ var(--a63-brand-600) var(--a63-surface-tint)
594
+ ),
595
+ transparent 20%
596
+ )
597
+ );
598
+ --a63-surface-sidebar: var(--a63-if-light, var(--a63-surface-muted))
599
+ var(--a63-if-dark, var(--a63-surface-page));
600
+ --a63-surface-recessed: var(--a63-if-light, var(--a63-surface-muted))
601
+ var(--a63-if-dark, var(--a63-surface-page));
602
+ --a63-gradient-brand-fade: linear-gradient(
603
+ to bottom,
604
+ var(--a63-brand-800),
605
+ var(--a63-brand-700) var(--a63-gradient-brand-fade-dark-zone),
606
+ var(--a63-surface-page)
607
+ );
608
+ --a63-text-primary: var(--a63-if-light, var(--surface-light-12))
609
+ var(--a63-if-dark, var(--surface-dark-12));
610
+ --a63-text-secondary: var(
611
+ --a63-if-light,
612
+ color-mix(
613
+ in oklab,
614
+ var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3),
615
+ var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
616
+ )
617
+ )
618
+ var(
619
+ --a63-if-dark,
620
+ color-mix(
621
+ in oklab,
622
+ var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3),
623
+ var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
624
+ )
625
+ );
626
+ --a63-text-tertiary: var(
627
+ --a63-if-light,
628
+ color-mix(
629
+ in oklab,
630
+ color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10))
631
+ calc(100% - var(--a63-surface-tint) * 0.3),
632
+ var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
633
+ )
634
+ )
635
+ var(
636
+ --a63-if-dark,
637
+ color-mix(
638
+ in oklab,
639
+ color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))
640
+ calc(100% - var(--a63-surface-tint) * 0.3),
641
+ var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
642
+ )
643
+ );
644
+ --a63-text-accent: var(--a63-if-light, var(--a63-brand-text))
645
+ var(--a63-if-dark, var(--a63-brand-400));
646
+ --a63-text-danger: var(--a63-if-light, var(--color-danger-600))
647
+ var(--a63-if-dark, var(--color-danger-400));
648
+ --a63-border-subtle: var(
649
+ --a63-if-light,
650
+ color-mix(
651
+ in oklab,
652
+ var(--surface-light-4) calc(100% - var(--a63-surface-tint)),
653
+ var(--a63-brand-300) var(--a63-surface-tint)
654
+ )
655
+ )
656
+ var(
657
+ --a63-if-dark,
658
+ color-mix(
659
+ in oklab,
660
+ var(--surface-dark-6) calc(100% - var(--a63-surface-tint)),
661
+ var(--a63-brand-600) var(--a63-surface-tint)
662
+ )
663
+ );
664
+ --a63-border-control: var(
665
+ --a63-if-light,
666
+ color-mix(
667
+ in oklab,
668
+ var(--surface-light-5) calc(100% - var(--a63-surface-tint)),
669
+ var(--a63-brand-400) var(--a63-surface-tint)
670
+ )
671
+ )
672
+ var(
673
+ --a63-if-dark,
674
+ color-mix(
675
+ in oklab,
676
+ var(--surface-dark-7) calc(100% - var(--a63-surface-tint)),
677
+ var(--a63-brand-500) var(--a63-surface-tint)
678
+ )
679
+ );
680
+ --a63-border-input: var(
681
+ --a63-if-light,
682
+ color-mix(
683
+ in oklab,
684
+ var(--surface-light-10) calc(100% - var(--a63-surface-tint)),
685
+ var(--a63-brand-500) var(--a63-surface-tint)
686
+ )
687
+ )
688
+ var(
689
+ --a63-if-dark,
690
+ color-mix(
691
+ in oklab,
692
+ var(--surface-dark-9) calc(100% - var(--a63-surface-tint)),
693
+ var(--a63-brand-500) var(--a63-surface-tint)
694
+ )
695
+ );
696
+ --a63-border-danger: var(
697
+ --a63-if-light,
698
+ color-mix(in oklch, var(--color-danger-600) 62%, transparent)
699
+ )
700
+ var(--a63-if-dark, var(--color-danger-500));
701
+ --a63-control-outline-background: var(--a63-if-light, var(--a63-surface-panel))
702
+ var(--a63-if-dark, color-mix(in oklab, var(--a63-border-control) 32%, transparent));
703
+ --a63-control-outline-hover-background: var(
704
+ --a63-if-light,
705
+ color-mix(in oklab, var(--a63-surface-control-hover) 50%, transparent)
706
+ )
707
+ var(--a63-if-dark, color-mix(in oklab, var(--a63-border-control) 64%, transparent));
708
+ --a63-control-outline-hover-border: var(--a63-if-light, var(--a63-border-subtle))
709
+ var(--a63-if-dark, var(--a63-border-control));
710
+ --a63-alert-background: var(--a63-if-light, transparent)
711
+ var(--a63-if-dark, color-mix(in oklab, var(--a63-surface-control) 32%, transparent));
712
+ --a63-choice-card-checked-border: var(
713
+ --a63-if-light,
714
+ color-mix(in oklch, var(--a63-action-primary) 30%, transparent)
715
+ )
716
+ var(--a63-if-dark, color-mix(in oklch, var(--a63-action-primary) 20%, transparent));
717
+ --a63-choice-card-checked-background: var(
718
+ --a63-if-light,
719
+ color-mix(in oklch, var(--a63-action-primary) 5%, transparent)
720
+ )
721
+ var(--a63-if-dark, color-mix(in oklch, var(--a63-action-primary) 10%, transparent));
722
+ --a63-focus-ring: var(--a63-if-light, var(--a63-brand-600))
723
+ var(--a63-if-dark, var(--a63-brand-400));
724
+ --a63-action-neutral: var(--a63-if-light, var(--surface-light-12))
725
+ var(--a63-if-dark, var(--surface-dark-12));
726
+ --a63-action-neutral-foreground: var(--a63-if-light, var(--surface-light-2))
727
+ var(--a63-if-dark, var(--surface-dark-1));
728
+ --a63-action-danger: var(--color-danger-600);
729
+ --a63-action-danger-hover: var(
730
+ --a63-if-light,
731
+ color-mix(in oklch, var(--a63-action-danger) 90%, transparent)
732
+ )
733
+ var(--a63-if-dark, color-mix(in oklch, var(--a63-action-danger) 82%, white 8%));
734
+ --a63-action-danger-foreground: white;
735
+ --a63-action-danger-subtle: color-mix(in oklab, var(--a63-action-danger) 14%, transparent);
736
+ --a63-action-danger-subtle-foreground: var(--a63-if-light, var(--color-danger-700))
737
+ var(--a63-if-dark, var(--color-danger-400));
738
+ --a63-action-disabled-background: var(--a63-surface-muted);
739
+ --a63-action-disabled-foreground: var(--a63-if-light, var(--surface-light-9))
740
+ var(--a63-if-dark, var(--surface-dark-9));
741
+ --a63-action-disabled-border: var(--a63-border-subtle);
742
+ --a63-status-info: var(--a63-if-light, var(--color-info-600))
743
+ var(--a63-if-dark, var(--color-info-500));
744
+ --a63-status-info-foreground: oklch(
745
+ from var(--a63-status-info) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
746
+ );
747
+ --a63-status-info-subtle: color-mix(in oklab, var(--a63-status-info) 14%, transparent);
748
+ --a63-status-info-subtle-foreground: var(--a63-if-light, var(--color-info-700))
749
+ var(--a63-if-dark, var(--color-info-400));
750
+ --a63-status-success: var(--a63-if-light, var(--color-success-600))
751
+ var(--a63-if-dark, var(--color-success-500));
752
+ --a63-status-success-foreground: oklch(
753
+ from var(--a63-status-success) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
754
+ );
755
+ --a63-status-success-subtle: color-mix(in oklab, var(--a63-status-success) 14%, transparent);
756
+ --a63-status-success-subtle-foreground: var(--a63-if-light, var(--color-success-700))
757
+ var(--a63-if-dark, var(--color-success-400));
758
+ --a63-status-warning: var(--a63-if-light, var(--color-warning-600))
759
+ var(--a63-if-dark, var(--color-warning-500));
760
+ --a63-status-warning-foreground: oklch(
761
+ from var(--a63-status-warning) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
762
+ );
763
+ --a63-status-warning-subtle: color-mix(in oklab, var(--a63-status-warning) 14%, transparent);
764
+ --a63-status-warning-subtle-foreground: var(--a63-if-light, var(--color-warning-800))
765
+ var(--a63-if-dark, var(--color-warning-400));
766
+ --a63-status-danger: var(--a63-if-light, var(--color-danger-600))
767
+ var(--a63-if-dark, var(--color-danger-500));
768
+ --a63-status-danger-foreground: oklch(
769
+ from var(--a63-status-danger) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
770
+ );
771
+ --a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
772
+ --a63-status-danger-subtle-foreground: var(--a63-if-light, var(--color-danger-700))
773
+ var(--a63-if-dark, var(--color-danger-400));
774
+ --a63-chart-1: var(--a63-if-light, var(--a63-action-primary))
775
+ var(--a63-if-dark, var(--a63-brand-400));
776
+ --a63-chart-2: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144)))
777
+ var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144)));
778
+ --a63-chart-3: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288)))
779
+ var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288)));
780
+ --a63-chart-4: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216)))
781
+ var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216)));
782
+ --a63-chart-5: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72)))
783
+ var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72)));
784
+ --a63-category-red-subtle-foreground: var(--a63-if-light, var(--color-red-700))
785
+ var(--a63-if-dark, var(--color-red-400));
786
+ --a63-category-orange-subtle-foreground: var(--a63-if-light, var(--color-orange-800))
787
+ var(--a63-if-dark, var(--color-orange-400));
788
+ --a63-category-amber-subtle-foreground: var(--a63-if-light, var(--color-warning-800))
789
+ var(--a63-if-dark, var(--color-warning-400));
790
+ --a63-category-yellow-subtle-foreground: var(--a63-if-light, var(--color-yellow-800))
791
+ var(--a63-if-dark, var(--color-yellow-400));
792
+ --a63-category-lime-subtle-foreground: var(--a63-if-light, var(--color-lime-800))
793
+ var(--a63-if-dark, var(--color-lime-400));
794
+ --a63-category-green-subtle-foreground: var(--a63-if-light, var(--color-green-800))
795
+ var(--a63-if-dark, var(--color-green-400));
796
+ --a63-category-emerald-subtle-foreground: var(--a63-if-light, var(--color-emerald-800))
797
+ var(--a63-if-dark, var(--color-emerald-400));
798
+ --a63-category-teal-subtle-foreground: var(--a63-if-light, var(--color-teal-800))
799
+ var(--a63-if-dark, var(--color-teal-400));
800
+ --a63-category-cyan-subtle-foreground: var(--a63-if-light, var(--color-cyan-800))
801
+ var(--a63-if-dark, var(--color-cyan-400));
802
+ --a63-category-sky-subtle-foreground: var(--a63-if-light, var(--color-sky-700))
803
+ var(--a63-if-dark, var(--color-sky-400));
804
+ --a63-category-blue-subtle-foreground: var(--a63-if-light, var(--color-blue-700))
805
+ var(--a63-if-dark, var(--color-blue-400));
806
+ --a63-category-indigo-subtle-foreground: var(--a63-if-light, var(--color-indigo-700))
807
+ var(--a63-if-dark, var(--color-indigo-400));
808
+ --a63-category-violet-subtle-foreground: var(--a63-if-light, var(--color-violet-700))
809
+ var(--a63-if-dark, var(--color-violet-400));
810
+ --a63-category-purple-subtle-foreground: var(--a63-if-light, var(--color-purple-700))
811
+ var(--a63-if-dark, var(--color-purple-400));
812
+ --a63-category-fuchsia-subtle-foreground: var(--a63-if-light, var(--color-fuchsia-700))
813
+ var(--a63-if-dark, var(--color-fuchsia-400));
814
+ --a63-category-pink-subtle-foreground: var(--a63-if-light, var(--color-pink-700))
815
+ var(--a63-if-dark, var(--color-pink-400));
816
+ --a63-category-rose-subtle-foreground: var(--a63-if-light, var(--color-rose-700))
817
+ var(--a63-if-dark, var(--color-rose-400));
818
+ --a63-category-slate-subtle-foreground: var(--a63-if-light, var(--color-slate-700))
819
+ var(--a63-if-dark, var(--color-slate-400));
820
+ --a63-category-gray-subtle-foreground: var(--a63-if-light, var(--color-gray-700))
821
+ var(--a63-if-dark, var(--color-gray-400));
822
+ --a63-category-zinc-subtle-foreground: var(--a63-if-light, var(--color-zinc-700))
823
+ var(--a63-if-dark, var(--color-zinc-400));
824
+ --a63-category-neutral-subtle-foreground: var(--a63-if-light, var(--color-neutral-700))
825
+ var(--a63-if-dark, var(--color-neutral-400));
826
+ --a63-category-stone-subtle-foreground: var(--a63-if-light, var(--color-stone-700))
827
+ var(--a63-if-dark, var(--color-stone-400));
828
+ --a63-selected-background: var(--a63-surface-muted);
829
+ --a63-selected-foreground: var(--a63-text-primary);
830
+ --a63-selected-accent-background: color-mix(in oklch, var(--a63-action-primary) 12%, transparent);
831
+ --a63-selected-accent-foreground: var(--a63-text-accent);
157
832
  }