@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.
- package/LICENSE +21 -0
- package/README.md +22 -13
- package/generated/atom63.figma-sync.json +23277 -0
- package/generated/atom63.tokens.json +19650 -8403
- package/generated/z-layers.d.ts +33 -0
- package/generated/z-layers.js +31 -0
- package/package.json +29 -15
- package/src/compat/a63-from-shadcn.css +281 -0
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +133 -17
- 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 +128 -58
- package/src/contracts/badge.resolver.json +454 -0
- package/src/contracts/choice.css +5 -2
- package/src/contracts/choice.native.css +9 -0
- package/src/contracts/choice.tokens.json +66 -0
- package/src/contracts/control.css +54 -57
- package/src/contracts/control.native.css +13 -0
- package/src/contracts/control.tokens.json +294 -0
- package/src/contracts/environment.css +178 -60
- package/src/contracts/environment.native.css +23 -0
- package/src/contracts/environment.resolver.json +1210 -0
- package/src/contracts/field.css +4 -2
- 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 +5 -1
- package/src/contracts/selection.tokens.json +42 -0
- package/src/contracts/skeleton.css +18 -2
- package/src/contracts/skeleton.resolver.json +62 -0
- package/src/contracts/surface.css +17 -24
- package/src/contracts/surface.native.css +17 -0
- package/src/contracts/surface.tokens.json +154 -0
- package/src/contracts/toggle.css +27 -3
- package/src/contracts/toggle.resolver.json +129 -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 +76 -51
- package/src/contracts/widget.native.css +23 -0
- package/src/contracts/widget.resolver.json +1110 -0
- package/src/tailwind/roles.json +189 -0
- package/src/tailwind/theme.css +216 -24
- package/src/tailwind/utilities.css +17 -0
- package/src/themes/aqua.css +126 -89
- package/src/themes/aqua.native.css +80 -0
- package/src/themes/aqua.resolver.json +1304 -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 +22 -26
- package/src/themes/retro.native.css +16 -0
- package/src/themes/retro.resolver.json +794 -0
- package/src/themes/terminal.css +164 -41
- package/src/themes/terminal.native.css +22 -0
- package/src/themes/terminal.resolver.json +585 -0
- package/src/tokens/brand-action.css +65 -0
- package/src/tokens/brand-action.resolver.json +155 -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/chart-palette.browser.test.ts +188 -0
- package/src/tokens/color-mix-space.browser.test.ts +101 -0
- package/src/tokens/contrast.browser.test.ts +303 -5
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/figma-parity.browser.test.ts +270 -0
- package/src/tokens/font.css +12 -0
- package/src/tokens/font.resolver.json +128 -0
- package/src/tokens/form-factor.browser.test.ts +129 -0
- package/src/tokens/foundation/effects.css +13 -13
- package/src/tokens/foundation/effects.resolver.json +433 -0
- package/src/tokens/foundation/fonts.css +11 -5
- package/src/tokens/foundation/fonts.tokens.json +45 -0
- package/src/tokens/foundation/motion.css +3 -0
- package/src/tokens/foundation/motion.tokens.json +53 -0
- package/src/tokens/foundation/palette.css +3 -0
- package/src/tokens/foundation/palette.tokens.json +1743 -0
- package/src/tokens/foundation/primitives.css +20 -43
- package/src/tokens/foundation/primitives.tokens.json +3258 -0
- package/src/tokens/foundation/radius.css +11 -9
- package/src/tokens/foundation/radius.tokens.json +108 -0
- package/src/tokens/foundation/typography.css +49 -12
- package/src/tokens/foundation/typography.native.css +21 -0
- package/src/tokens/foundation/typography.resolver.json +1008 -0
- package/src/tokens/foundation.css +0 -1
- package/src/tokens/index.css +1 -0
- 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 +18 -3
- package/src/tokens/plate-scope.browser.test.ts +73 -0
- package/src/tokens/radius.css +12 -8
- package/src/tokens/radius.resolver.json +138 -0
- package/src/tokens/semantics.css +716 -41
- package/src/tokens/semantics.resolver.json +1639 -0
- package/src/tokens/space.css +8 -6
- package/src/tokens/space.tokens.json +78 -0
- package/src/tokens/surface.css +13 -19
- package/src/tokens/surface.resolver.json +706 -0
- package/src/tokens/swift-parity.browser.test.ts +141 -0
- package/src/tokens/type-roles.css +88 -0
- package/src/tokens/type-roles.resolver.json +419 -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 -21664
- package/src/tokens/foundation/aliases.css +0 -28
- package/src/z-layers.ts +0 -40
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Badge palette contract: aliases of the semantic category and status tints (--a63-category-*, --a63-status-*-subtle-*), kept so recipes and themes that read --a63-badge-* keep working. The dark block repeats the aliases so a nested dark scope resolves them against its own roles.",
|
|
4
|
+
"modifiers": {
|
|
5
|
+
"mode": {
|
|
6
|
+
"default": "light",
|
|
7
|
+
"contexts": {
|
|
8
|
+
"light": [
|
|
9
|
+
{
|
|
10
|
+
"a63": {
|
|
11
|
+
"badge": {
|
|
12
|
+
"red": {
|
|
13
|
+
"accent": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "{a63.category.red}"
|
|
16
|
+
},
|
|
17
|
+
"foreground": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "{a63.category.red.subtle.foreground}"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"orange": {
|
|
23
|
+
"accent": {
|
|
24
|
+
"$type": "color",
|
|
25
|
+
"$value": "{a63.category.orange}"
|
|
26
|
+
},
|
|
27
|
+
"foreground": {
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"$value": "{a63.category.orange.subtle.foreground}"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"amber": {
|
|
33
|
+
"accent": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{a63.category.amber}"
|
|
36
|
+
},
|
|
37
|
+
"foreground": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": "{a63.category.amber.subtle.foreground}"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"yellow": {
|
|
43
|
+
"accent": {
|
|
44
|
+
"$type": "color",
|
|
45
|
+
"$value": "{a63.category.yellow}"
|
|
46
|
+
},
|
|
47
|
+
"foreground": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": "{a63.category.yellow.subtle.foreground}"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"lime": {
|
|
53
|
+
"accent": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "{a63.category.lime}"
|
|
56
|
+
},
|
|
57
|
+
"foreground": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "{a63.category.lime.subtle.foreground}"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"green": {
|
|
63
|
+
"accent": {
|
|
64
|
+
"$type": "color",
|
|
65
|
+
"$value": "{a63.category.green}"
|
|
66
|
+
},
|
|
67
|
+
"foreground": {
|
|
68
|
+
"$type": "color",
|
|
69
|
+
"$value": "{a63.category.green.subtle.foreground}"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"emerald": {
|
|
73
|
+
"accent": {
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"$value": "{a63.category.emerald}"
|
|
76
|
+
},
|
|
77
|
+
"foreground": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "{a63.category.emerald.subtle.foreground}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"teal": {
|
|
83
|
+
"accent": {
|
|
84
|
+
"$type": "color",
|
|
85
|
+
"$value": "{a63.category.teal}"
|
|
86
|
+
},
|
|
87
|
+
"foreground": {
|
|
88
|
+
"$type": "color",
|
|
89
|
+
"$value": "{a63.category.teal.subtle.foreground}"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"cyan": {
|
|
93
|
+
"accent": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{a63.category.cyan}"
|
|
96
|
+
},
|
|
97
|
+
"foreground": {
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"$value": "{a63.category.cyan.subtle.foreground}"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"sky": {
|
|
103
|
+
"accent": {
|
|
104
|
+
"$type": "color",
|
|
105
|
+
"$value": "{a63.category.sky}"
|
|
106
|
+
},
|
|
107
|
+
"foreground": {
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$value": "{a63.category.sky.subtle.foreground}"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"blue": {
|
|
113
|
+
"accent": {
|
|
114
|
+
"$type": "color",
|
|
115
|
+
"$value": "{a63.category.blue}"
|
|
116
|
+
},
|
|
117
|
+
"foreground": {
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$value": "{a63.category.blue.subtle.foreground}"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"indigo": {
|
|
123
|
+
"accent": {
|
|
124
|
+
"$type": "color",
|
|
125
|
+
"$value": "{a63.category.indigo}"
|
|
126
|
+
},
|
|
127
|
+
"foreground": {
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$value": "{a63.category.indigo.subtle.foreground}"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"violet": {
|
|
133
|
+
"accent": {
|
|
134
|
+
"$type": "color",
|
|
135
|
+
"$value": "{a63.category.violet}"
|
|
136
|
+
},
|
|
137
|
+
"foreground": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "{a63.category.violet.subtle.foreground}"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"purple": {
|
|
143
|
+
"accent": {
|
|
144
|
+
"$type": "color",
|
|
145
|
+
"$value": "{a63.category.purple}"
|
|
146
|
+
},
|
|
147
|
+
"foreground": {
|
|
148
|
+
"$type": "color",
|
|
149
|
+
"$value": "{a63.category.purple.subtle.foreground}"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"fuchsia": {
|
|
153
|
+
"accent": {
|
|
154
|
+
"$type": "color",
|
|
155
|
+
"$value": "{a63.category.fuchsia}"
|
|
156
|
+
},
|
|
157
|
+
"foreground": {
|
|
158
|
+
"$type": "color",
|
|
159
|
+
"$value": "{a63.category.fuchsia.subtle.foreground}"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"pink": {
|
|
163
|
+
"accent": {
|
|
164
|
+
"$type": "color",
|
|
165
|
+
"$value": "{a63.category.pink}"
|
|
166
|
+
},
|
|
167
|
+
"foreground": {
|
|
168
|
+
"$type": "color",
|
|
169
|
+
"$value": "{a63.category.pink.subtle.foreground}"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"rose": {
|
|
173
|
+
"accent": {
|
|
174
|
+
"$type": "color",
|
|
175
|
+
"$value": "{a63.category.rose}"
|
|
176
|
+
},
|
|
177
|
+
"foreground": {
|
|
178
|
+
"$type": "color",
|
|
179
|
+
"$value": "{a63.category.rose.subtle.foreground}"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"neutral": {
|
|
183
|
+
"accent": {
|
|
184
|
+
"$type": "color",
|
|
185
|
+
"$value": "{a63.category.neutral}"
|
|
186
|
+
},
|
|
187
|
+
"foreground": {
|
|
188
|
+
"$type": "color",
|
|
189
|
+
"$value": "{a63.category.neutral.subtle.foreground}"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"info": {
|
|
193
|
+
"foreground": {
|
|
194
|
+
"$type": "color",
|
|
195
|
+
"$value": "{a63.status.info.subtle.foreground}"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"success": {
|
|
199
|
+
"foreground": {
|
|
200
|
+
"$type": "color",
|
|
201
|
+
"$value": "{a63.status.success.subtle.foreground}"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"warning": {
|
|
205
|
+
"foreground": {
|
|
206
|
+
"$type": "color",
|
|
207
|
+
"$value": "{a63.status.warning.subtle.foreground}"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"error": {
|
|
211
|
+
"foreground": {
|
|
212
|
+
"$type": "color",
|
|
213
|
+
"$value": "{a63.action.danger.subtle.foreground}"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"dark": [
|
|
221
|
+
{
|
|
222
|
+
"a63": {
|
|
223
|
+
"badge": {
|
|
224
|
+
"red": {
|
|
225
|
+
"accent": {
|
|
226
|
+
"$type": "color",
|
|
227
|
+
"$value": "{a63.category.red}"
|
|
228
|
+
},
|
|
229
|
+
"foreground": {
|
|
230
|
+
"$type": "color",
|
|
231
|
+
"$value": "{a63.category.red.subtle.foreground}"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"orange": {
|
|
235
|
+
"accent": {
|
|
236
|
+
"$type": "color",
|
|
237
|
+
"$value": "{a63.category.orange}"
|
|
238
|
+
},
|
|
239
|
+
"foreground": {
|
|
240
|
+
"$type": "color",
|
|
241
|
+
"$value": "{a63.category.orange.subtle.foreground}"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"amber": {
|
|
245
|
+
"accent": {
|
|
246
|
+
"$type": "color",
|
|
247
|
+
"$value": "{a63.category.amber}"
|
|
248
|
+
},
|
|
249
|
+
"foreground": {
|
|
250
|
+
"$type": "color",
|
|
251
|
+
"$value": "{a63.category.amber.subtle.foreground}"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"yellow": {
|
|
255
|
+
"accent": {
|
|
256
|
+
"$type": "color",
|
|
257
|
+
"$value": "{a63.category.yellow}"
|
|
258
|
+
},
|
|
259
|
+
"foreground": {
|
|
260
|
+
"$type": "color",
|
|
261
|
+
"$value": "{a63.category.yellow.subtle.foreground}"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"lime": {
|
|
265
|
+
"accent": {
|
|
266
|
+
"$type": "color",
|
|
267
|
+
"$value": "{a63.category.lime}"
|
|
268
|
+
},
|
|
269
|
+
"foreground": {
|
|
270
|
+
"$type": "color",
|
|
271
|
+
"$value": "{a63.category.lime.subtle.foreground}"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"green": {
|
|
275
|
+
"accent": {
|
|
276
|
+
"$type": "color",
|
|
277
|
+
"$value": "{a63.category.green}"
|
|
278
|
+
},
|
|
279
|
+
"foreground": {
|
|
280
|
+
"$type": "color",
|
|
281
|
+
"$value": "{a63.category.green.subtle.foreground}"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"emerald": {
|
|
285
|
+
"accent": {
|
|
286
|
+
"$type": "color",
|
|
287
|
+
"$value": "{a63.category.emerald}"
|
|
288
|
+
},
|
|
289
|
+
"foreground": {
|
|
290
|
+
"$type": "color",
|
|
291
|
+
"$value": "{a63.category.emerald.subtle.foreground}"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"teal": {
|
|
295
|
+
"accent": {
|
|
296
|
+
"$type": "color",
|
|
297
|
+
"$value": "{a63.category.teal}"
|
|
298
|
+
},
|
|
299
|
+
"foreground": {
|
|
300
|
+
"$type": "color",
|
|
301
|
+
"$value": "{a63.category.teal.subtle.foreground}"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"cyan": {
|
|
305
|
+
"accent": {
|
|
306
|
+
"$type": "color",
|
|
307
|
+
"$value": "{a63.category.cyan}"
|
|
308
|
+
},
|
|
309
|
+
"foreground": {
|
|
310
|
+
"$type": "color",
|
|
311
|
+
"$value": "{a63.category.cyan.subtle.foreground}"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"sky": {
|
|
315
|
+
"accent": {
|
|
316
|
+
"$type": "color",
|
|
317
|
+
"$value": "{a63.category.sky}"
|
|
318
|
+
},
|
|
319
|
+
"foreground": {
|
|
320
|
+
"$type": "color",
|
|
321
|
+
"$value": "{a63.category.sky.subtle.foreground}"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"blue": {
|
|
325
|
+
"accent": {
|
|
326
|
+
"$type": "color",
|
|
327
|
+
"$value": "{a63.category.blue}"
|
|
328
|
+
},
|
|
329
|
+
"foreground": {
|
|
330
|
+
"$type": "color",
|
|
331
|
+
"$value": "{a63.category.blue.subtle.foreground}"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"indigo": {
|
|
335
|
+
"accent": {
|
|
336
|
+
"$type": "color",
|
|
337
|
+
"$value": "{a63.category.indigo}"
|
|
338
|
+
},
|
|
339
|
+
"foreground": {
|
|
340
|
+
"$type": "color",
|
|
341
|
+
"$value": "{a63.category.indigo.subtle.foreground}"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"violet": {
|
|
345
|
+
"accent": {
|
|
346
|
+
"$type": "color",
|
|
347
|
+
"$value": "{a63.category.violet}"
|
|
348
|
+
},
|
|
349
|
+
"foreground": {
|
|
350
|
+
"$type": "color",
|
|
351
|
+
"$value": "{a63.category.violet.subtle.foreground}"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"purple": {
|
|
355
|
+
"accent": {
|
|
356
|
+
"$type": "color",
|
|
357
|
+
"$value": "{a63.category.purple}"
|
|
358
|
+
},
|
|
359
|
+
"foreground": {
|
|
360
|
+
"$type": "color",
|
|
361
|
+
"$value": "{a63.category.purple.subtle.foreground}"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"fuchsia": {
|
|
365
|
+
"accent": {
|
|
366
|
+
"$type": "color",
|
|
367
|
+
"$value": "{a63.category.fuchsia}"
|
|
368
|
+
},
|
|
369
|
+
"foreground": {
|
|
370
|
+
"$type": "color",
|
|
371
|
+
"$value": "{a63.category.fuchsia.subtle.foreground}"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"pink": {
|
|
375
|
+
"accent": {
|
|
376
|
+
"$type": "color",
|
|
377
|
+
"$value": "{a63.category.pink}"
|
|
378
|
+
},
|
|
379
|
+
"foreground": {
|
|
380
|
+
"$type": "color",
|
|
381
|
+
"$value": "{a63.category.pink.subtle.foreground}"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"rose": {
|
|
385
|
+
"accent": {
|
|
386
|
+
"$type": "color",
|
|
387
|
+
"$value": "{a63.category.rose}"
|
|
388
|
+
},
|
|
389
|
+
"foreground": {
|
|
390
|
+
"$type": "color",
|
|
391
|
+
"$value": "{a63.category.rose.subtle.foreground}"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"neutral": {
|
|
395
|
+
"accent": {
|
|
396
|
+
"$type": "color",
|
|
397
|
+
"$value": "{a63.category.neutral}"
|
|
398
|
+
},
|
|
399
|
+
"foreground": {
|
|
400
|
+
"$type": "color",
|
|
401
|
+
"$value": "{a63.category.neutral.subtle.foreground}"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"info": {
|
|
405
|
+
"foreground": {
|
|
406
|
+
"$type": "color",
|
|
407
|
+
"$value": "{a63.status.info.subtle.foreground}"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"success": {
|
|
411
|
+
"foreground": {
|
|
412
|
+
"$type": "color",
|
|
413
|
+
"$value": "{a63.status.success.subtle.foreground}"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"warning": {
|
|
417
|
+
"foreground": {
|
|
418
|
+
"$type": "color",
|
|
419
|
+
"$value": "{a63.status.warning.subtle.foreground}"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"error": {
|
|
423
|
+
"foreground": {
|
|
424
|
+
"$type": "color",
|
|
425
|
+
"$value": "{a63.action.danger.subtle.foreground}"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"resolutionOrder": [
|
|
436
|
+
{
|
|
437
|
+
"$ref": "#/modifiers/mode"
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
"$extensions": {
|
|
441
|
+
"io.atom63.css": {
|
|
442
|
+
"attribute": "data-a63-mode",
|
|
443
|
+
"selectors": {
|
|
444
|
+
"light": ":root,\n.light,\n[data-a63-mode='light']",
|
|
445
|
+
"dark": ":is(.dark, [data-a63-mode='dark'])"
|
|
446
|
+
},
|
|
447
|
+
"rescope": {
|
|
448
|
+
"selector": "[data-a63-brand], [data-a63-surface]",
|
|
449
|
+
"light": "light",
|
|
450
|
+
"dark": "dark"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
package/src/contracts/choice.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/choice.tokens.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
|
* Choice contract — form controls that expose checked/selected value state.
|
|
3
6
|
*
|
|
4
7
|
* Covers Checkbox, Radio, and Switch. This is the visual home for indicators,
|
|
@@ -7,7 +10,7 @@
|
|
|
7
10
|
*
|
|
8
11
|
* Axis-dependent colour hooks are resolved at the recipe use-site:
|
|
9
12
|
* --a63-choice-accent -> var(--a63-action-primary)
|
|
10
|
-
* --a63-choice-border -> var(--a63-border-
|
|
13
|
+
* --a63-choice-border -> var(--a63-border-input)
|
|
11
14
|
* --a63-choice-track-off -> var(--a63-surface-control)
|
|
12
15
|
* --a63-choice-focus-ring -> var(--a63-focus-ring)
|
|
13
16
|
*
|
|
@@ -17,6 +20,7 @@
|
|
|
17
20
|
* gloss to its checked fill; Checkbox and Radio use the same hooks on their
|
|
18
21
|
* boxes and indicators.
|
|
19
22
|
*/
|
|
23
|
+
@import './choice.native.css';
|
|
20
24
|
|
|
21
25
|
:root {
|
|
22
26
|
--a63-choice-thumb: var(--a63-selection-thumb);
|
|
@@ -28,5 +32,4 @@
|
|
|
28
32
|
--a63-choice-feedback-ease: var(--a63-control-feedback-ease);
|
|
29
33
|
--a63-choice-box-shadow: none;
|
|
30
34
|
--a63-choice-box-shadow-checked: none;
|
|
31
|
-
--a63-choice-indicator-gloss: none;
|
|
32
35
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of the choice contract: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from choice.tokens.json. Each declaration here is listed
|
|
4
|
+
* in native-values.json; see docs/design-system/token-single-source.md.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--a63-choice-indicator-gloss: none;
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Choice contract — form controls that expose checked/selected value state.\n\nCovers Checkbox, Radio, and Switch. This is the visual home for indicators,\ndots, thumbs, and on/off tracks. It aliases the older `selection` namespace so\ncurrent recipes keep working while new recipes can use the clearer name.\n\nAxis-dependent colour hooks are resolved at the recipe use-site:\n --a63-choice-accent -> var(--a63-action-primary)\n --a63-choice-border -> var(--a63-border-input)\n --a63-choice-track-off -> var(--a63-surface-control)\n --a63-choice-focus-ring -> var(--a63-focus-ring)\n\nMaterial hooks are axis-independent defaults. Themes override them to express\nglass, bevel, or phosphor treatment without making choice controls inherit the\nfull Button chrome. Switch maps the box shadows to its track and the indicator\ngloss to its checked fill; Checkbox and Radio use the same hooks on their\nboxes and indicators.",
|
|
3
|
+
"a63": {
|
|
4
|
+
"choice": {
|
|
5
|
+
"thumb": {
|
|
6
|
+
"$root": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": "{a63.selection.thumb}"
|
|
9
|
+
},
|
|
10
|
+
"fg": {
|
|
11
|
+
"$type": "color",
|
|
12
|
+
"$value": "{a63.selection.thumb.fg}"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"switch": {
|
|
16
|
+
"thumb": {
|
|
17
|
+
"size": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "{a63.switch.thumb.size}"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"border": {
|
|
24
|
+
"width": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"$value": "{a63.control.border.width}"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"focus": {
|
|
30
|
+
"ring": {
|
|
31
|
+
"width": {
|
|
32
|
+
"$type": "dimension",
|
|
33
|
+
"$value": "{a63.control.focus.ring.width}"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"feedback": {
|
|
38
|
+
"duration": {
|
|
39
|
+
"$type": "duration",
|
|
40
|
+
"$value": "{a63.control.feedback.duration}"
|
|
41
|
+
},
|
|
42
|
+
"ease": {
|
|
43
|
+
"$type": "duration",
|
|
44
|
+
"$value": "{a63.control.feedback.ease}"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"box": {
|
|
48
|
+
"shadow": {
|
|
49
|
+
"$root": {
|
|
50
|
+
"$type": "shadow",
|
|
51
|
+
"$value": []
|
|
52
|
+
},
|
|
53
|
+
"checked": {
|
|
54
|
+
"$type": "shadow",
|
|
55
|
+
"$value": []
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$extensions": {
|
|
62
|
+
"io.atom63.css": {
|
|
63
|
+
"imports": ["./choice.native.css"]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|