@atom63/styles 0.1.0-beta.0 → 0.1.0-beta.10

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 (118) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -36
  3. package/generated/atom63.figma-sync.json +23201 -0
  4. package/generated/atom63.tokens.json +19649 -8416
  5. package/generated/z-layers.d.ts +33 -0
  6. package/generated/z-layers.js +31 -0
  7. package/package.json +35 -21
  8. package/src/compat/a63-from-shadcn.css +275 -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 +151 -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/color-mix-space.browser.test.ts +101 -0
  75. package/src/tokens/contrast.browser.test.ts +257 -5
  76. package/src/tokens/density.browser.test.ts +167 -0
  77. package/src/tokens/figma-parity.browser.test.ts +270 -0
  78. package/src/tokens/font.css +13 -0
  79. package/src/tokens/font.resolver.json +128 -0
  80. package/src/tokens/form-factor.browser.test.ts +129 -0
  81. package/src/tokens/foundation/effects.css +13 -13
  82. package/src/tokens/foundation/effects.resolver.json +433 -0
  83. package/src/tokens/foundation/fonts.css +11 -5
  84. package/src/tokens/foundation/fonts.tokens.json +45 -0
  85. package/src/tokens/foundation/motion.css +3 -0
  86. package/src/tokens/foundation/motion.tokens.json +53 -0
  87. package/src/tokens/foundation/palette.css +3 -0
  88. package/src/tokens/foundation/palette.tokens.json +1743 -0
  89. package/src/tokens/foundation/primitives.css +20 -43
  90. package/src/tokens/foundation/primitives.tokens.json +3258 -0
  91. package/src/tokens/foundation/radius.css +11 -9
  92. package/src/tokens/foundation/radius.tokens.json +108 -0
  93. package/src/tokens/foundation/typography.css +49 -12
  94. package/src/tokens/foundation/typography.native.css +21 -0
  95. package/src/tokens/foundation/typography.resolver.json +1008 -0
  96. package/src/tokens/foundation.css +0 -1
  97. package/src/tokens/index.css +1 -0
  98. package/src/tokens/motion.css +3 -1
  99. package/src/tokens/motion.resolver.json +135 -0
  100. package/src/tokens/native-values.json +38 -0
  101. package/src/tokens/personalization-axes.browser.test.ts +20 -4
  102. package/src/tokens/plate-scope.browser.test.ts +73 -0
  103. package/src/tokens/radius.css +12 -8
  104. package/src/tokens/radius.resolver.json +138 -0
  105. package/src/tokens/semantics.css +656 -39
  106. package/src/tokens/semantics.resolver.json +1606 -0
  107. package/src/tokens/space.css +8 -6
  108. package/src/tokens/space.tokens.json +78 -0
  109. package/src/tokens/surface.css +13 -19
  110. package/src/tokens/surface.resolver.json +706 -0
  111. package/src/tokens/swift-parity.browser.test.ts +141 -0
  112. package/src/tokens/type-roles.css +88 -0
  113. package/src/tokens/type-roles.resolver.json +419 -0
  114. package/src/tokens/type-scale.css +6 -0
  115. package/src/tokens/type-scale.resolver.json +67 -0
  116. package/generated/atom63.figma-tokens.json +0 -21650
  117. package/src/tokens/foundation/aliases.css +0 -28
  118. package/src/z-layers.ts +0 -40
@@ -0,0 +1,585 @@
1
+ {
2
+ "version": "2025.10",
3
+ "description": "Terminal theme — flat monochrome phosphor CRT.\n\nValue-overrides only. CRT glow recipes are theme-private under this selector\nso color-mix(... var(--a63-action-primary) ...) re-resolves when brand changes\n(prefer theme scope over foundation :root-only recipes).\n\nMODE-SPLIT (matches production): terminal supports BOTH modes — dark = bright\nphosphor on near-black, light = dark-green phosphor on a light \"paper\" surface.\nThe surfaces + monochrome text + neutral action are mode-split semantics, so\neach mode is declared twice: on the theme element itself (theme + mode class/\nattr co-located) AND as a descendant re-assertion so a nested [data-a63-mode]\ncan't clobber the phosphor palette.\n\n── Light terminal — dark-green phosphor on a light paper surface ────────\n\nNo --a63-weather-shadow: the phosphor ring is the rim's job now, and the\n tile keeps the shared --terminal-overlay-glow like every other widget.\n\n── Dark terminal — bright phosphor on near-black ───────────────────────",
4
+ "sets": {
5
+ "01-data-a63-theme-terminal": {
6
+ "sources": [
7
+ {
8
+ "terminal": {
9
+ "overlay": {
10
+ "glow": {
11
+ "$type": "dimension",
12
+ "$value": "{a63.action.primary}",
13
+ "$extensions": {
14
+ "io.atom63.derive": "0 0 20px -4px color-mix(in oklch, {a63.action.primary} 40%, transparent)"
15
+ },
16
+ "$description": "Theme-private helper reused by overlay + widget."
17
+ }
18
+ }
19
+ },
20
+ "a63": {
21
+ "control": {
22
+ "radius": {
23
+ "$type": "dimension",
24
+ "$value": "{radius.sm}"
25
+ },
26
+ "font": {
27
+ "family": {
28
+ "$type": "dimension",
29
+ "$value": "{font.family.mono}",
30
+ "$description": "Monospace label + a soft phosphor text-glow — the CRT terminal signature."
31
+ }
32
+ },
33
+ "text": {
34
+ "shadow": {
35
+ "$type": "shadow",
36
+ "$value": "{a63.action.primary}",
37
+ "$extensions": {
38
+ "io.atom63.derive": "0 0 6px color-mix(in oklch, {a63.action.primary} 45%, transparent)"
39
+ }
40
+ }
41
+ },
42
+ "shadow": {
43
+ "$root": {
44
+ "$type": "shadow",
45
+ "$value": "{a63.action.primary}",
46
+ "$extensions": {
47
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 32%, transparent), 0 0 14px -2px color-mix(in oklch, {a63.action.primary} 45%, transparent)"
48
+ },
49
+ "$description": "Monochrome phosphor glow (accent) — terminal is intentionally single-colour.\n Uses --a63-action-primary (resolvable on the theme scope), not the per-button\n tint, which a theme-declared shadow can't see."
50
+ },
51
+ "active": {
52
+ "$type": "shadow",
53
+ "$value": "{a63.action.primary}",
54
+ "$extensions": {
55
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 48%, transparent), 0 0 8px -2px color-mix(in oklch, {a63.action.primary} 55%, transparent)"
56
+ },
57
+ "$description": "Pressed: tighten the glow and deepen the phosphor edge (no bevel — terminal is flat)."
58
+ }
59
+ },
60
+ "focus": {
61
+ "ring": {
62
+ "color": {
63
+ "$type": "color",
64
+ "$value": "{a63.action.primary}",
65
+ "$extensions": {
66
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 55%, transparent)"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "field": {
73
+ "shadow": {
74
+ "$type": "shadow",
75
+ "$value": "{a63.action.primary}",
76
+ "$extensions": {
77
+ "io.atom63.derive": "inset 0 0 6px -2px color-mix(in oklch, {a63.action.primary} 30%, transparent)"
78
+ }
79
+ }
80
+ },
81
+ "overlay": {
82
+ "shadow": {
83
+ "$type": "shadow",
84
+ "$value": "{a63.action.primary}",
85
+ "$extensions": {
86
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 30%, transparent), {terminal.overlay.glow}"
87
+ }
88
+ }
89
+ },
90
+ "widget": {
91
+ "shadow": {
92
+ "$type": "shadow",
93
+ "$value": "{terminal.overlay.glow}",
94
+ "$description": "Phosphor edge moved to the rim; keep only the outer glow."
95
+ }
96
+ },
97
+ "surface": {
98
+ "shadow": {
99
+ "$type": "shadow",
100
+ "$value": "{a63.action.primary}",
101
+ "$extensions": {
102
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 22%, transparent)"
103
+ }
104
+ },
105
+ "texture": {
106
+ "image": {
107
+ "$type": "color",
108
+ "$value": "{a63.action.primary}",
109
+ "$extensions": {
110
+ "io.atom63.derive": "repeating-linear-gradient( to bottom, color-mix(in oklch, {a63.action.primary} 6%, transparent) 0px, color-mix(in oklch, {a63.action.primary} 6%, transparent) 1px, transparent 1px, transparent 3px )"
111
+ },
112
+ "$description": "Terminal surfaces/overlays get a faint CRT scanline texture. Square look\n comes from the radius personalization axis, not hardcoded radii here."
113
+ }
114
+ },
115
+ "raised": {
116
+ "shadow": {
117
+ "$type": "shadow",
118
+ "$value": "{a63.surface.shadow}"
119
+ }
120
+ }
121
+ },
122
+ "track": {
123
+ "shadow": {
124
+ "$type": "shadow",
125
+ "$value": "{a63.action.primary}",
126
+ "$extensions": {
127
+ "io.atom63.derive": "inset 0 0 4px -1px color-mix(in oklch, {a63.action.primary} 22%, transparent)"
128
+ }
129
+ }
130
+ },
131
+ "choice": {
132
+ "box": {
133
+ "shadow": {
134
+ "$root": {
135
+ "$type": "shadow",
136
+ "$value": "{a63.action.primary}",
137
+ "$extensions": {
138
+ "io.atom63.derive": "inset 0 0 5px -2px color-mix(in oklch, {a63.action.primary} 32%, transparent)"
139
+ }
140
+ },
141
+ "checked": {
142
+ "$type": "shadow",
143
+ "$value": "{a63.action.primary}",
144
+ "$extensions": {
145
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 44%, transparent), 0 0 10px -4px color-mix(in oklch, {a63.action.primary} 55%, transparent)"
146
+ }
147
+ }
148
+ }
149
+ }
150
+ },
151
+ "segment": {
152
+ "track": {
153
+ "background": {
154
+ "$type": "color",
155
+ "$value": "{a63.field.background}",
156
+ "$description": "Segmented controls — flat phosphor cells; selected = edged glow, no gel."
157
+ },
158
+ "border": {
159
+ "$type": "dimension",
160
+ "$value": "{a63.border.subtle}"
161
+ }
162
+ },
163
+ "background": {
164
+ "$type": "color",
165
+ "$value": "{a63.surface.panel}"
166
+ },
167
+ "foreground": {
168
+ "$type": "color",
169
+ "$value": "{a63.text.secondary}"
170
+ },
171
+ "selected": {
172
+ "background": {
173
+ "$type": "color",
174
+ "$value": "{a63.surface.muted}"
175
+ },
176
+ "foreground": {
177
+ "$type": "color",
178
+ "$value": "{a63.text.primary}"
179
+ },
180
+ "shadow": {
181
+ "$type": "shadow",
182
+ "$value": "{a63.action.primary}",
183
+ "$extensions": {
184
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 36%, transparent)"
185
+ }
186
+ }
187
+ },
188
+ "primary": {
189
+ "background": {
190
+ "$type": "color",
191
+ "$value": "{a63.action.primary}"
192
+ },
193
+ "foreground": {
194
+ "$type": "color",
195
+ "$value": "{a63.action.primary.foreground}"
196
+ },
197
+ "shadow": {
198
+ "$type": "shadow",
199
+ "$value": "{a63.action.primary}",
200
+ "$extensions": {
201
+ "io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 50%, transparent), 0 0 10px -3px color-mix(in oklch, {a63.action.primary} 40%, transparent)"
202
+ }
203
+ }
204
+ }
205
+ },
206
+ "weather": {
207
+ "border": {
208
+ "color": {
209
+ "$type": "color",
210
+ "$value": "{a63.action.primary}",
211
+ "$extensions": {
212
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 44%, {a63.border.subtle} )"
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ ],
220
+ "$extensions": {
221
+ "io.atom63.css": {
222
+ "selector": "[data-a63-theme='terminal']"
223
+ }
224
+ }
225
+ },
226
+ "02-data-a63-theme-terminal-is-root-light-data-a63-m": {
227
+ "sources": [
228
+ {
229
+ "a63": {
230
+ "text": {
231
+ "primary": {
232
+ "$type": "color",
233
+ "$value": "{a63.action.primary}",
234
+ "$extensions": {
235
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 70%, black)"
236
+ },
237
+ "$description": "Darker phosphor ink on paper — pure brand-500 fails AA on near-white page."
238
+ },
239
+ "secondary": {
240
+ "$type": "color",
241
+ "$value": "{a63.action.primary}",
242
+ "$extensions": {
243
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 52%, black)"
244
+ }
245
+ },
246
+ "tertiary": {
247
+ "$type": "color",
248
+ "$value": "{a63.action.primary}",
249
+ "$extensions": {
250
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 80%, black)"
251
+ },
252
+ "$description": "Placeholders and meta: a lighter phosphor ink on paper, still AA 4.5:1."
253
+ }
254
+ },
255
+ "border": {
256
+ "control": {
257
+ "$type": "color",
258
+ "$value": "{a63.action.primary}",
259
+ "$extensions": {
260
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 26%, color-mix(in oklab, {surface.light.5} 60%, white) )"
261
+ }
262
+ },
263
+ "input": {
264
+ "$type": "color",
265
+ "$value": "{a63.action.primary}",
266
+ "$extensions": {
267
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 70%, {surface.light.10} )"
268
+ },
269
+ "$description": "Phosphor form-control border: 3:1 against the tinted page, panel and field fill."
270
+ },
271
+ "subtle": {
272
+ "$type": "color",
273
+ "$value": "{a63.action.primary}",
274
+ "$extensions": {
275
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 16%, color-mix(in oklab, {surface.light.6} 50%, white) )"
276
+ }
277
+ }
278
+ },
279
+ "surface": {
280
+ "page": {
281
+ "$type": "color",
282
+ "$value": "{surface.light.1}",
283
+ "$extensions": {
284
+ "io.atom63.derive": "color-mix(in oklab, {surface.light.1} 60%, white)"
285
+ }
286
+ },
287
+ "panel": {
288
+ "$type": "color",
289
+ "$value": "{surface.light.2}",
290
+ "$extensions": {
291
+ "io.atom63.derive": "color-mix(in oklab, {surface.light.2} 60%, white)"
292
+ }
293
+ }
294
+ },
295
+ "field": {
296
+ "background": {
297
+ "$type": "color",
298
+ "$value": "{surface.light.2}",
299
+ "$extensions": {
300
+ "io.atom63.derive": "color-mix( in oklab, {surface.light.2} 86%, {a63.action.primary} )"
301
+ }
302
+ }
303
+ },
304
+ "action": {
305
+ "neutral": {
306
+ "$root": {
307
+ "$type": "color",
308
+ "$value": "{surface.light.3}",
309
+ "$extensions": {
310
+ "io.atom63.derive": "color-mix(in oklab, {surface.light.3} 60%, white)"
311
+ }
312
+ },
313
+ "foreground": {
314
+ "$type": "color",
315
+ "$value": "{a63.action.primary}",
316
+ "$extensions": {
317
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 80%, {surface.light.12} )"
318
+ }
319
+ }
320
+ }
321
+ },
322
+ "weather": {
323
+ "background": {
324
+ "color": {
325
+ "$type": "color",
326
+ "$value": "{a63.action.primary}",
327
+ "$extensions": {
328
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 34%, white 66%)"
329
+ }
330
+ },
331
+ "image": {
332
+ "$type": "dimension",
333
+ "$value": "{a63.action.primary}",
334
+ "$extensions": {
335
+ "io.atom63.derive": "linear-gradient(color-mix(in oklch, {a63.action.primary} 18%, transparent), transparent), linear-gradient( 135deg, color-mix(in oklch, {a63.action.primary} 48%, white 52%), color-mix(in oklch, {a63.action.primary} 36%, white 64%) )"
336
+ }
337
+ }
338
+ },
339
+ "foreground": {
340
+ "$type": "color",
341
+ "$value": "{a63.action.primary}",
342
+ "$extensions": {
343
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 82%, {surface.light.12} )"
344
+ }
345
+ },
346
+ "muted": {
347
+ "foreground": {
348
+ "$type": "color",
349
+ "$value": "{a63.action.primary}",
350
+ "$extensions": {
351
+ "io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 58%, {surface.light.10} )"
352
+ }
353
+ }
354
+ },
355
+ "divider": {
356
+ "color": {
357
+ "$type": "color",
358
+ "$value": "{a63.action.primary}",
359
+ "$extensions": {
360
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 38%, transparent)"
361
+ }
362
+ }
363
+ },
364
+ "text": {
365
+ "shadow": {
366
+ "$type": "shadow",
367
+ "$value": "{a63.action.primary}",
368
+ "$extensions": {
369
+ "io.atom63.derive": "0 0 10px color-mix(in oklch, {a63.action.primary} 22%, transparent)"
370
+ }
371
+ }
372
+ }
373
+ },
374
+ "toggle": {
375
+ "on": {
376
+ "background": {
377
+ "$type": "color",
378
+ "$value": "{a63.text.primary}",
379
+ "$description": "A pressed toggle is reverse video: phosphor ink fill with page-coloured text. The neutral solid sits too close to the page in both modes."
380
+ },
381
+ "foreground": {
382
+ "$type": "color",
383
+ "$value": "{a63.surface.page}"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+ ],
390
+ "$extensions": {
391
+ "io.atom63.css": {
392
+ "selector": "[data-a63-theme='terminal']:is(:root, .light, [data-a63-mode='light']), [data-a63-theme='terminal'] :is(.light, [data-a63-mode='light'])"
393
+ }
394
+ }
395
+ },
396
+ "03-data-a63-theme-terminal-is-dark-data-a63-mode-da": {
397
+ "sources": [
398
+ {
399
+ "a63": {
400
+ "text": {
401
+ "primary": {
402
+ "$type": "color",
403
+ "$value": "{a63.action.primary}",
404
+ "$extensions": {
405
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 62%, white)"
406
+ },
407
+ "$description": "Opaque phosphor text — translucent secondary failed AA against the page."
408
+ },
409
+ "secondary": {
410
+ "$type": "color",
411
+ "$value": "{a63.text.accent}",
412
+ "$extensions": {
413
+ "io.atom63.derive": "color-mix(in oklab, {a63.text.accent} 48%, {surface.dark.11})"
414
+ },
415
+ "$description": "Text mixes read the brand-as-text token; the primary fill is too dark here."
416
+ },
417
+ "tertiary": {
418
+ "$type": "color",
419
+ "$value": "{a63.text.accent}",
420
+ "$extensions": {
421
+ "io.atom63.derive": "color-mix(in oklab, {a63.text.accent} 40%, {surface.dark.10})"
422
+ },
423
+ "$description": "Placeholders and meta: a dimmer phosphor than secondary, still AA 4.5:1."
424
+ }
425
+ },
426
+ "border": {
427
+ "control": {
428
+ "$type": "color",
429
+ "$value": "{a63.action.primary}",
430
+ "$extensions": {
431
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 42%, transparent)"
432
+ }
433
+ },
434
+ "input": {
435
+ "$type": "color",
436
+ "$value": "{a63.text.accent}",
437
+ "$extensions": {
438
+ "io.atom63.derive": "color-mix(in oklch, {a63.text.accent} 60%, transparent)"
439
+ }
440
+ },
441
+ "subtle": {
442
+ "$type": "color",
443
+ "$value": "{a63.action.primary}",
444
+ "$extensions": {
445
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 22%, transparent)"
446
+ }
447
+ }
448
+ },
449
+ "surface": {
450
+ "page": {
451
+ "$type": "color",
452
+ "$value": "{surface.dark.1}",
453
+ "$extensions": {
454
+ "io.atom63.derive": "color-mix(in oklab, {surface.dark.1} 92%, {a63.action.primary})"
455
+ }
456
+ },
457
+ "panel": {
458
+ "$type": "color",
459
+ "$value": "{surface.dark.2}",
460
+ "$extensions": {
461
+ "io.atom63.derive": "color-mix(in oklab, {surface.dark.2} 92%, {a63.action.primary})"
462
+ }
463
+ }
464
+ },
465
+ "field": {
466
+ "background": {
467
+ "$type": "color",
468
+ "$value": "{surface.dark.1}",
469
+ "$extensions": {
470
+ "io.atom63.derive": "color-mix(in oklab, {surface.dark.1} 90%, {a63.action.primary})"
471
+ }
472
+ }
473
+ },
474
+ "action": {
475
+ "neutral": {
476
+ "$root": {
477
+ "$type": "color",
478
+ "$value": "{surface.dark.3}",
479
+ "$extensions": {
480
+ "io.atom63.derive": "color-mix( in oklab, {surface.dark.3} 86%, {a63.action.primary} 14% )"
481
+ }
482
+ },
483
+ "foreground": {
484
+ "$type": "color",
485
+ "$value": "{a63.text.accent}"
486
+ }
487
+ }
488
+ },
489
+ "weather": {
490
+ "background": {
491
+ "color": {
492
+ "$type": "color",
493
+ "$value": "{a63.action.primary}",
494
+ "$extensions": {
495
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 22%, black 78%)"
496
+ }
497
+ },
498
+ "image": {
499
+ "$type": "dimension",
500
+ "$value": "{a63.action.primary}",
501
+ "$extensions": {
502
+ "io.atom63.derive": "linear-gradient(color-mix(in oklch, {a63.action.primary} 12%, transparent), transparent), linear-gradient( 135deg, color-mix(in oklch, {a63.action.primary} 30%, black 70%), color-mix(in oklch, {a63.action.primary} 16%, black 84%) )"
503
+ }
504
+ }
505
+ },
506
+ "foreground": {
507
+ "$type": "color",
508
+ "$value": "{a63.action.primary}",
509
+ "$extensions": {
510
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 26%, white 74%)"
511
+ }
512
+ },
513
+ "muted": {
514
+ "foreground": {
515
+ "$type": "color",
516
+ "$value": "{a63.text.accent}",
517
+ "$extensions": {
518
+ "io.atom63.derive": "color-mix(in oklch, {a63.text.accent} 54%, white 46%)"
519
+ }
520
+ }
521
+ },
522
+ "divider": {
523
+ "color": {
524
+ "$type": "color",
525
+ "$value": "{a63.action.primary}",
526
+ "$extensions": {
527
+ "io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 36%, transparent)"
528
+ }
529
+ }
530
+ },
531
+ "text": {
532
+ "shadow": {
533
+ "$type": "shadow",
534
+ "$value": "{a63.action.primary}",
535
+ "$extensions": {
536
+ "io.atom63.derive": "0 0 8px color-mix(in oklch, {a63.action.primary} 38%, transparent)"
537
+ }
538
+ }
539
+ }
540
+ },
541
+ "toggle": {
542
+ "on": {
543
+ "background": {
544
+ "$type": "color",
545
+ "$value": "{a63.text.primary}"
546
+ },
547
+ "foreground": {
548
+ "$type": "color",
549
+ "$value": "{a63.surface.page}"
550
+ }
551
+ }
552
+ }
553
+ }
554
+ }
555
+ ],
556
+ "$extensions": {
557
+ "io.atom63.css": {
558
+ "selector": "[data-a63-theme='terminal']:is(.dark, [data-a63-mode='dark']), [data-a63-theme='terminal'] :is(.dark, [data-a63-mode='dark'])"
559
+ }
560
+ }
561
+ }
562
+ },
563
+ "resolutionOrder": [
564
+ {
565
+ "$ref": "#/sets/01-data-a63-theme-terminal"
566
+ },
567
+ {
568
+ "$ref": "#/sets/02-data-a63-theme-terminal-is-root-light-data-a63-m"
569
+ },
570
+ {
571
+ "$ref": "#/sets/03-data-a63-theme-terminal-is-dark-data-a63-mode-da"
572
+ }
573
+ ],
574
+ "$extensions": {
575
+ "io.atom63.css": {
576
+ "imports": ["./terminal.native.css"],
577
+ "rescope": {
578
+ "selector": "[data-a63-theme='terminal']:is([data-a63-brand], [data-a63-surface]), [data-a63-theme='terminal'] :is([data-a63-brand], [data-a63-surface])",
579
+ "light": "02-data-a63-theme-terminal-is-root-light-data-a63-m",
580
+ "dark": "03-data-a63-theme-terminal-is-dark-data-a63-mode-da",
581
+ "base": "01-data-a63-theme-terminal"
582
+ }
583
+ }
584
+ }
585
+ }
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Generated from src/tokens/brand-action.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
+ *
5
+ * Primary action derived from the brand ramp (brand-ramp.resolver.json).
6
+ *
7
+ * The base set MUST be declared on the same scope that remaps the ramp (:root and every
8
+ * [data-a63-brand]): a var() inside a custom property resolves on the element where the
9
+ * property is DECLARED, then inherits as a resolved value. Declaring only on :root would
10
+ * freeze primary to the base ramp regardless of a downstream [data-a63-brand] override.
11
+ * The brand contexts hold the few per-brand exceptions and follow the base set, so they
12
+ * win at equal specificity.
13
+ */
14
+ :root,
15
+ [data-a63-brand] {
16
+ /* Step 600, not 500: white text on every brand's 500 falls below WCAG AA's
17
+ 4.5:1 for normal text (the default blue is about 3.5:1); 600 reaches it. */
18
+ --a63-action-primary: var(--a63-brand-600);
19
+ --a63-action-primary-hover: var(--a63-brand-700);
20
+ /* Auto-contrast foreground: near-white on dark primaries, near-black on bright
21
+ ones (light brand picks / wallpaper golds). oklch `l` is the proxy; the steep
22
+ clamp is a light/dark STEP at l≈0.57, about where near-white and near-black
23
+ give the same contrast (WCAG Y≈0.18), so each fill gets whichever reads
24
+ better. The old step at 0.665 matched large-text 3:1 and left mid-lightness
25
+ custom brands on white text at 2.8–4:1. Chroma ×0.06 keeps a faint brand
26
+ tint. Supersedes JS --color-auto-foreground for components. */
27
+ --a63-action-primary-foreground: oklch(
28
+ from var(--a63-action-primary) clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h
29
+ );
30
+ /* Subtle depth shadow under text on the primary (theme lever; Aqua sets a gel
31
+ tint). Default none so flat themes stay crisp. */
32
+ --a63-action-primary-text-shadow: none;
33
+ /* The brand as text on light surfaces (semantics.css --a63-text-accent). */
34
+ --a63-brand-text: var(--a63-brand-600);
35
+ /* The brand as a gradient for heroes and banners: ramp 500 to 700 at 135deg. Declared with the ramp so a nested brand gets its own. */
36
+ --a63-gradient-brand: linear-gradient(135deg, var(--a63-brand-500), var(--a63-brand-700));
37
+ /* A quiet brand gradient for illustration backgrounds and cards: ramp 50 to 100 at 135deg. */
38
+ --a63-gradient-brand-subtle: linear-gradient(135deg, var(--a63-brand-50), var(--a63-brand-100));
39
+ }
40
+
41
+ [data-a63-brand='b3'] {
42
+ /* Green (b3) is lighter than the other ramps: white on its 600 is about 4.2:1,
43
+ so its primary action steps one shade further to reach AA. */
44
+ --a63-action-primary: var(--a63-brand-700);
45
+ --a63-action-primary-hover: var(--a63-brand-800);
46
+ --a63-brand-text: var(--a63-brand-700);
47
+ }
48
+
49
+ [data-a63-brand='b2'] {
50
+ /* Orange (b2) keeps 600 for fills (white text is about 4.7:1), but its 600 as
51
+ text on the lightly tinted Aqua page is just under 4.5:1. */
52
+ --a63-brand-text: var(--a63-brand-700);
53
+ }
54
+
55
+ [data-a63-brand='b4'] {
56
+ /* Pink (b4) keeps 600 for fills, but its 600 as text on the selected wash over
57
+ the Aqua page sits at 4.5:1 exactly. */
58
+ --a63-brand-text: var(--a63-brand-700);
59
+ }
60
+
61
+ [data-a63-brand='b6'] {
62
+ /* Red (b6) keeps 600 for fills, but its 600 as text on the selected wash is
63
+ about 4.1–4.5:1 in light mode. */
64
+ --a63-brand-text: var(--a63-brand-700);
65
+ }