@atom63/styles 0.1.0-beta.5 → 0.1.0-beta.6
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.
- package/README.md +14 -8
- package/generated/atom63.figma-sync.json +3763 -1108
- package/generated/atom63.tokens.json +3809 -829
- package/package.json +5 -6
- package/src/compat/a63-from-shadcn.css +10 -0
- package/src/contracts/action.css +4 -3
- package/src/contracts/action.native.css +11 -0
- package/src/contracts/action.tokens.json +66 -0
- package/src/contracts/badge.css +28 -19
- package/src/contracts/badge.resolver.json +366 -0
- package/src/contracts/choice.css +4 -1
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +43 -52
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +245 -0
- package/src/contracts/environment.css +45 -49
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +569 -0
- package/src/contracts/field.css +3 -1
- package/src/contracts/field.tokens.json +40 -0
- package/src/contracts/marker.css +6 -4
- package/src/contracts/marker.tokens.json +15 -0
- package/src/contracts/menu.css +25 -61
- package/src/contracts/menu.native.css +10 -0
- package/src/contracts/menu.resolver.json +122 -0
- package/src/contracts/overlay.css +11 -13
- package/src/contracts/overlay.native.css +13 -0
- package/src/contracts/overlay.tokens.json +103 -0
- package/src/contracts/segment.css +22 -68
- package/src/contracts/segment.tokens.json +19 -0
- package/src/contracts/selection.css +3 -1
- package/src/contracts/selection.tokens.json +37 -0
- package/src/contracts/skeleton.css +3 -0
- package/src/contracts/skeleton.resolver.json +66 -0
- package/src/contracts/surface.css +13 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +97 -0
- package/src/contracts/toggle.css +3 -1
- package/src/contracts/toggle.tokens.json +49 -0
- package/src/contracts/track.css +3 -1
- package/src/contracts/track.tokens.json +39 -0
- package/src/contracts/trigger.css +5 -2
- package/src/contracts/trigger.native.css +9 -0
- package/src/contracts/trigger.tokens.json +58 -0
- package/src/contracts/widget.css +41 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1104 -0
- package/src/tailwind/theme.css +0 -2
- package/src/themes/aqua.css +24 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1292 -0
- package/src/themes/modern.css +10 -14
- package/src/themes/modern.native.css +16 -0
- package/src/themes/modern.resolver.json +350 -0
- package/src/themes/retro.css +21 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +788 -0
- package/src/themes/terminal.css +34 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +517 -0
- package/src/tokens/brand-action.css +50 -0
- package/src/tokens/brand-action.resolver.json +118 -0
- package/src/tokens/brand-ramp.css +108 -0
- package/src/tokens/brand-ramp.resolver.json +418 -0
- package/src/tokens/brand.css +6 -146
- package/src/tokens/color-mix-space.browser.test.ts +79 -0
- package/src/tokens/contrast.browser.test.ts +47 -3
- package/src/tokens/figma-parity.browser.test.ts +257 -0
- package/src/tokens/font.css +6 -0
- package/src/tokens/font.resolver.json +107 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +3 -1
- package/src/tokens/foundation/fonts.tokens.json +6 -1
- package/src/tokens/foundation/radius.css +6 -9
- package/src/tokens/foundation/radius.tokens.json +100 -0
- package/src/tokens/foundation/typography.css +25 -12
- package/src/tokens/foundation/typography.native.css +11 -0
- package/src/tokens/foundation/typography.resolver.json +936 -0
- package/src/tokens/foundation.css +0 -1
- package/src/tokens/motion.css +3 -1
- package/src/tokens/motion.resolver.json +135 -0
- package/src/tokens/native-values.json +38 -0
- package/src/tokens/personalization-axes.browser.test.ts +5 -3
- package/src/tokens/radius.css +12 -8
- package/src/tokens/radius.resolver.json +138 -0
- package/src/tokens/semantics.css +59 -43
- package/src/tokens/semantics.resolver.json +402 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/swift-parity.browser.test.ts +137 -0
- package/src/tokens/type-scale.css +6 -0
- package/src/tokens/type-scale.resolver.json +67 -0
- package/generated/atom63.figma-tokens.json +0 -21661
- package/src/tokens/foundation/aliases.css +0 -32
- package/src/tokens/foundation/aliases.tokens.json +0 -105
|
@@ -0,0 +1,517 @@
|
|
|
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
|
+
},
|
|
116
|
+
"track": {
|
|
117
|
+
"shadow": {
|
|
118
|
+
"$type": "shadow",
|
|
119
|
+
"$value": "{a63.action.primary}",
|
|
120
|
+
"$extensions": {
|
|
121
|
+
"io.atom63.derive": "inset 0 0 4px -1px color-mix(in oklch, {a63.action.primary} 22%, transparent)"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"choice": {
|
|
126
|
+
"box": {
|
|
127
|
+
"shadow": {
|
|
128
|
+
"$root": {
|
|
129
|
+
"$type": "shadow",
|
|
130
|
+
"$value": "{a63.action.primary}",
|
|
131
|
+
"$extensions": {
|
|
132
|
+
"io.atom63.derive": "inset 0 0 5px -2px color-mix(in oklch, {a63.action.primary} 32%, transparent)"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"checked": {
|
|
136
|
+
"$type": "shadow",
|
|
137
|
+
"$value": "{a63.action.primary}",
|
|
138
|
+
"$extensions": {
|
|
139
|
+
"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)"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"segment": {
|
|
146
|
+
"track": {
|
|
147
|
+
"background": {
|
|
148
|
+
"$type": "color",
|
|
149
|
+
"$value": "{a63.field.background}",
|
|
150
|
+
"$description": "Segmented controls — flat phosphor cells; selected = edged glow, no gel."
|
|
151
|
+
},
|
|
152
|
+
"border": {
|
|
153
|
+
"$type": "dimension",
|
|
154
|
+
"$value": "{a63.border.subtle}"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"background": {
|
|
158
|
+
"$type": "color",
|
|
159
|
+
"$value": "{a63.surface.panel}"
|
|
160
|
+
},
|
|
161
|
+
"foreground": {
|
|
162
|
+
"$type": "color",
|
|
163
|
+
"$value": "{a63.text.secondary}"
|
|
164
|
+
},
|
|
165
|
+
"selected": {
|
|
166
|
+
"background": {
|
|
167
|
+
"$type": "color",
|
|
168
|
+
"$value": "{a63.surface.muted}"
|
|
169
|
+
},
|
|
170
|
+
"foreground": {
|
|
171
|
+
"$type": "color",
|
|
172
|
+
"$value": "{a63.text.primary}"
|
|
173
|
+
},
|
|
174
|
+
"shadow": {
|
|
175
|
+
"$type": "shadow",
|
|
176
|
+
"$value": "{a63.action.primary}",
|
|
177
|
+
"$extensions": {
|
|
178
|
+
"io.atom63.derive": "inset 0 0 0 1px color-mix(in oklch, {a63.action.primary} 36%, transparent)"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"primary": {
|
|
183
|
+
"background": {
|
|
184
|
+
"$type": "color",
|
|
185
|
+
"$value": "{a63.action.primary}"
|
|
186
|
+
},
|
|
187
|
+
"foreground": {
|
|
188
|
+
"$type": "color",
|
|
189
|
+
"$value": "{a63.action.primary.foreground}"
|
|
190
|
+
},
|
|
191
|
+
"shadow": {
|
|
192
|
+
"$type": "shadow",
|
|
193
|
+
"$value": "{a63.action.primary}",
|
|
194
|
+
"$extensions": {
|
|
195
|
+
"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)"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"weather": {
|
|
201
|
+
"border": {
|
|
202
|
+
"color": {
|
|
203
|
+
"$type": "color",
|
|
204
|
+
"$value": "{a63.action.primary}",
|
|
205
|
+
"$extensions": {
|
|
206
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 44%, {a63.border.subtle} )"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"$extensions": {
|
|
215
|
+
"io.atom63.css": {
|
|
216
|
+
"selector": "[data-a63-theme='terminal']"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"02-data-a63-theme-terminal-is-root-light-data-a63-m": {
|
|
221
|
+
"sources": [
|
|
222
|
+
{
|
|
223
|
+
"a63": {
|
|
224
|
+
"text": {
|
|
225
|
+
"primary": {
|
|
226
|
+
"$type": "color",
|
|
227
|
+
"$value": "{a63.action.primary}",
|
|
228
|
+
"$extensions": {
|
|
229
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 70%, black)"
|
|
230
|
+
},
|
|
231
|
+
"$description": "Darker phosphor ink on paper — pure brand-500 fails AA on near-white page."
|
|
232
|
+
},
|
|
233
|
+
"secondary": {
|
|
234
|
+
"$type": "color",
|
|
235
|
+
"$value": "{a63.action.primary}",
|
|
236
|
+
"$extensions": {
|
|
237
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 52%, black)"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"border": {
|
|
242
|
+
"control": {
|
|
243
|
+
"$type": "color",
|
|
244
|
+
"$value": "{a63.action.primary}",
|
|
245
|
+
"$extensions": {
|
|
246
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 26%, color-mix(in oklab, {surface.light.5} 60%, white) )"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"subtle": {
|
|
250
|
+
"$type": "color",
|
|
251
|
+
"$value": "{a63.action.primary}",
|
|
252
|
+
"$extensions": {
|
|
253
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 16%, color-mix(in oklab, {surface.light.6} 50%, white) )"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"surface": {
|
|
258
|
+
"page": {
|
|
259
|
+
"$type": "color",
|
|
260
|
+
"$value": "{surface.light.1}",
|
|
261
|
+
"$extensions": {
|
|
262
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.light.1} 60%, white)"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"panel": {
|
|
266
|
+
"$type": "color",
|
|
267
|
+
"$value": "{surface.light.2}",
|
|
268
|
+
"$extensions": {
|
|
269
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.light.2} 60%, white)"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"field": {
|
|
274
|
+
"background": {
|
|
275
|
+
"$type": "color",
|
|
276
|
+
"$value": "{surface.light.2}",
|
|
277
|
+
"$extensions": {
|
|
278
|
+
"io.atom63.derive": "color-mix( in oklab, {surface.light.2} 86%, {a63.action.primary} )"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"action": {
|
|
283
|
+
"neutral": {
|
|
284
|
+
"$root": {
|
|
285
|
+
"$type": "color",
|
|
286
|
+
"$value": "{surface.light.3}",
|
|
287
|
+
"$extensions": {
|
|
288
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.light.3} 60%, white)"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"foreground": {
|
|
292
|
+
"$type": "color",
|
|
293
|
+
"$value": "{a63.action.primary}",
|
|
294
|
+
"$extensions": {
|
|
295
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 80%, {surface.light.12} )"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"weather": {
|
|
301
|
+
"background": {
|
|
302
|
+
"color": {
|
|
303
|
+
"$type": "color",
|
|
304
|
+
"$value": "{a63.action.primary}",
|
|
305
|
+
"$extensions": {
|
|
306
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 34%, white 66%)"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"image": {
|
|
310
|
+
"$type": "dimension",
|
|
311
|
+
"$value": "{a63.action.primary}",
|
|
312
|
+
"$extensions": {
|
|
313
|
+
"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%) )"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"foreground": {
|
|
318
|
+
"$type": "color",
|
|
319
|
+
"$value": "{a63.action.primary}",
|
|
320
|
+
"$extensions": {
|
|
321
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 82%, {surface.light.12} )"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"muted": {
|
|
325
|
+
"foreground": {
|
|
326
|
+
"$type": "color",
|
|
327
|
+
"$value": "{a63.action.primary}",
|
|
328
|
+
"$extensions": {
|
|
329
|
+
"io.atom63.derive": "color-mix( in oklab, {a63.action.primary} 58%, {surface.light.10} )"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"divider": {
|
|
334
|
+
"color": {
|
|
335
|
+
"$type": "color",
|
|
336
|
+
"$value": "{a63.action.primary}",
|
|
337
|
+
"$extensions": {
|
|
338
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 38%, transparent)"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"text": {
|
|
343
|
+
"shadow": {
|
|
344
|
+
"$type": "shadow",
|
|
345
|
+
"$value": "{a63.action.primary}",
|
|
346
|
+
"$extensions": {
|
|
347
|
+
"io.atom63.derive": "0 0 10px color-mix(in oklch, {a63.action.primary} 22%, transparent)"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"$extensions": {
|
|
356
|
+
"io.atom63.css": {
|
|
357
|
+
"selector": "[data-a63-theme='terminal']:is(:root, .light, [data-a63-mode='light']), [data-a63-theme='terminal'] :is(.light, [data-a63-mode='light'])"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"03-data-a63-theme-terminal-is-dark-data-a63-mode-da": {
|
|
362
|
+
"sources": [
|
|
363
|
+
{
|
|
364
|
+
"a63": {
|
|
365
|
+
"text": {
|
|
366
|
+
"primary": {
|
|
367
|
+
"$type": "color",
|
|
368
|
+
"$value": "{a63.action.primary}",
|
|
369
|
+
"$extensions": {
|
|
370
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 62%, white)"
|
|
371
|
+
},
|
|
372
|
+
"$description": "Opaque phosphor text — translucent secondary failed AA against the page."
|
|
373
|
+
},
|
|
374
|
+
"secondary": {
|
|
375
|
+
"$type": "color",
|
|
376
|
+
"$value": "{a63.text.accent}",
|
|
377
|
+
"$extensions": {
|
|
378
|
+
"io.atom63.derive": "color-mix(in oklab, {a63.text.accent} 48%, {surface.dark.11})"
|
|
379
|
+
},
|
|
380
|
+
"$description": "Text mixes read the brand-as-text token; the primary fill is too dark here."
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"border": {
|
|
384
|
+
"control": {
|
|
385
|
+
"$type": "color",
|
|
386
|
+
"$value": "{a63.action.primary}",
|
|
387
|
+
"$extensions": {
|
|
388
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 42%, transparent)"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"subtle": {
|
|
392
|
+
"$type": "color",
|
|
393
|
+
"$value": "{a63.action.primary}",
|
|
394
|
+
"$extensions": {
|
|
395
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 22%, transparent)"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"surface": {
|
|
400
|
+
"page": {
|
|
401
|
+
"$type": "color",
|
|
402
|
+
"$value": "{surface.dark.1}",
|
|
403
|
+
"$extensions": {
|
|
404
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.dark.1} 92%, {a63.action.primary})"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"panel": {
|
|
408
|
+
"$type": "color",
|
|
409
|
+
"$value": "{surface.dark.2}",
|
|
410
|
+
"$extensions": {
|
|
411
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.dark.2} 92%, {a63.action.primary})"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"field": {
|
|
416
|
+
"background": {
|
|
417
|
+
"$type": "color",
|
|
418
|
+
"$value": "{surface.dark.1}",
|
|
419
|
+
"$extensions": {
|
|
420
|
+
"io.atom63.derive": "color-mix(in oklab, {surface.dark.1} 90%, {a63.action.primary})"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"action": {
|
|
425
|
+
"neutral": {
|
|
426
|
+
"$root": {
|
|
427
|
+
"$type": "color",
|
|
428
|
+
"$value": "{surface.dark.3}",
|
|
429
|
+
"$extensions": {
|
|
430
|
+
"io.atom63.derive": "color-mix( in oklab, {surface.dark.3} 86%, {a63.action.primary} 14% )"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"foreground": {
|
|
434
|
+
"$type": "color",
|
|
435
|
+
"$value": "{a63.text.accent}"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"weather": {
|
|
440
|
+
"background": {
|
|
441
|
+
"color": {
|
|
442
|
+
"$type": "color",
|
|
443
|
+
"$value": "{a63.action.primary}",
|
|
444
|
+
"$extensions": {
|
|
445
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 22%, black 78%)"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"image": {
|
|
449
|
+
"$type": "dimension",
|
|
450
|
+
"$value": "{a63.action.primary}",
|
|
451
|
+
"$extensions": {
|
|
452
|
+
"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%) )"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"foreground": {
|
|
457
|
+
"$type": "color",
|
|
458
|
+
"$value": "{a63.action.primary}",
|
|
459
|
+
"$extensions": {
|
|
460
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 26%, white 74%)"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"muted": {
|
|
464
|
+
"foreground": {
|
|
465
|
+
"$type": "color",
|
|
466
|
+
"$value": "{a63.text.accent}",
|
|
467
|
+
"$extensions": {
|
|
468
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.text.accent} 54%, white 46%)"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"divider": {
|
|
473
|
+
"color": {
|
|
474
|
+
"$type": "color",
|
|
475
|
+
"$value": "{a63.action.primary}",
|
|
476
|
+
"$extensions": {
|
|
477
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.action.primary} 36%, transparent)"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"text": {
|
|
482
|
+
"shadow": {
|
|
483
|
+
"$type": "shadow",
|
|
484
|
+
"$value": "{a63.action.primary}",
|
|
485
|
+
"$extensions": {
|
|
486
|
+
"io.atom63.derive": "0 0 8px color-mix(in oklch, {a63.action.primary} 38%, transparent)"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"$extensions": {
|
|
495
|
+
"io.atom63.css": {
|
|
496
|
+
"selector": "[data-a63-theme='terminal']:is(.dark, [data-a63-mode='dark']), [data-a63-theme='terminal'] :is(.dark, [data-a63-mode='dark'])"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"resolutionOrder": [
|
|
502
|
+
{
|
|
503
|
+
"$ref": "#/sets/01-data-a63-theme-terminal"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"$ref": "#/sets/02-data-a63-theme-terminal-is-root-light-data-a63-m"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"$ref": "#/sets/03-data-a63-theme-terminal-is-dark-data-a63-mode-da"
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"$extensions": {
|
|
513
|
+
"io.atom63.css": {
|
|
514
|
+
"imports": ["./terminal.native.css"]
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
--a63-focus-ring: color-mix(in oklch, var(--a63-brand-500) 30%, transparent);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-a63-brand='b3'] {
|
|
39
|
+
/* Green (b3) is lighter than the other ramps: white on its 600 is about 4.2:1,
|
|
40
|
+
so its primary action steps one shade further to reach AA. */
|
|
41
|
+
--a63-action-primary: var(--a63-brand-700);
|
|
42
|
+
--a63-action-primary-hover: var(--a63-brand-800);
|
|
43
|
+
--a63-brand-text: var(--a63-brand-700);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-a63-brand='b2'] {
|
|
47
|
+
/* Orange (b2) keeps 600 for fills (white text is about 4.7:1), but its 600 as
|
|
48
|
+
text on the lightly tinted Aqua page is just under 4.5:1. */
|
|
49
|
+
--a63-brand-text: var(--a63-brand-700);
|
|
50
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Primary action derived from the brand ramp (brand-ramp.resolver.json).\n\nThe base set MUST be declared on the same scope that remaps the ramp (:root and every\n[data-a63-brand]): a var() inside a custom property resolves on the element where the\nproperty is DECLARED, then inherits as a resolved value. Declaring only on :root would\nfreeze primary to the base ramp regardless of a downstream [data-a63-brand] override.\nThe brand contexts hold the few per-brand exceptions and follow the base set, so they\nwin at equal specificity.",
|
|
4
|
+
"sets": {
|
|
5
|
+
"base": {
|
|
6
|
+
"sources": [
|
|
7
|
+
{
|
|
8
|
+
"a63": {
|
|
9
|
+
"action": {
|
|
10
|
+
"primary": {
|
|
11
|
+
"$root": {
|
|
12
|
+
"$type": "color",
|
|
13
|
+
"$value": "{a63.brand.600}",
|
|
14
|
+
"$description": "Step 600, not 500: white text on every brand's 500 falls below WCAG AA's\n4.5:1 for normal text (the default blue is about 3.5:1); 600 reaches it."
|
|
15
|
+
},
|
|
16
|
+
"hover": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": "{a63.brand.700}"
|
|
19
|
+
},
|
|
20
|
+
"foreground": {
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$value": "{a63.action.primary}",
|
|
23
|
+
"$description": "Auto-contrast foreground: near-white on dark primaries, near-black on bright\nones (light brand picks / wallpaper golds). oklch `l` is the proxy; the steep\nclamp is a light/dark STEP at l≈0.57, about where near-white and near-black\ngive the same contrast (WCAG Y≈0.18), so each fill gets whichever reads\nbetter. The old step at 0.665 matched large-text 3:1 and left mid-lightness\ncustom brands on white text at 2.8–4:1. Chroma ×0.06 keeps a faint brand\ntint. Supersedes JS --color-auto-foreground for components.",
|
|
24
|
+
"$extensions": {
|
|
25
|
+
"io.atom63.derive": "oklch(from {a63.action.primary} clamp(0.15, (0.57 - l) * 1000, 0.985) calc(c * 0.06) h)"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"text-shadow": {
|
|
29
|
+
"$type": "shadow",
|
|
30
|
+
"$value": [],
|
|
31
|
+
"$description": "Subtle depth shadow under text on the primary (theme lever; Aqua sets a gel\ntint). Default none so flat themes stay crisp."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"brand": {
|
|
36
|
+
"text": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": "{a63.brand.600}",
|
|
39
|
+
"$description": "The brand as text on light surfaces (semantics.css --a63-text-accent)."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"focus-ring": {
|
|
43
|
+
"$type": "color",
|
|
44
|
+
"$value": "{a63.brand.500}",
|
|
45
|
+
"$extensions": {
|
|
46
|
+
"io.atom63.derive": "color-mix(in oklch, {a63.brand.500} 30%, transparent)"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"$extensions": {
|
|
53
|
+
"io.atom63.css": {
|
|
54
|
+
"selector": ":root,\n[data-a63-brand]"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"modifiers": {
|
|
60
|
+
"brand": {
|
|
61
|
+
"default": "b1",
|
|
62
|
+
"contexts": {
|
|
63
|
+
"b1": [],
|
|
64
|
+
"b3": [
|
|
65
|
+
{
|
|
66
|
+
"a63": {
|
|
67
|
+
"action": {
|
|
68
|
+
"primary": {
|
|
69
|
+
"$root": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "{a63.brand.700}",
|
|
72
|
+
"$description": "Green (b3) is lighter than the other ramps: white on its 600 is about 4.2:1,\nso its primary action steps one shade further to reach AA."
|
|
73
|
+
},
|
|
74
|
+
"hover": {
|
|
75
|
+
"$type": "color",
|
|
76
|
+
"$value": "{a63.brand.800}"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"brand": {
|
|
81
|
+
"text": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "{a63.brand.700}"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"b2": [
|
|
90
|
+
{
|
|
91
|
+
"a63": {
|
|
92
|
+
"brand": {
|
|
93
|
+
"text": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{a63.brand.700}",
|
|
96
|
+
"$description": "Orange (b2) keeps 600 for fills (white text is about 4.7:1), but its 600 as\ntext on the lightly tinted Aqua page is just under 4.5:1."
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"resolutionOrder": [
|
|
106
|
+
{
|
|
107
|
+
"$ref": "#/sets/base"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"$ref": "#/modifiers/brand"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"$extensions": {
|
|
114
|
+
"io.atom63.css": {
|
|
115
|
+
"attribute": "data-a63-brand"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|