@atom63/styles 0.1.0-beta.6 → 0.1.0-beta.8
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 +7 -4
- package/generated/atom63.figma-sync.json +10559 -5138
- package/generated/atom63.tokens.json +13034 -7792
- package/package.json +6 -4
- package/src/compat/a63-from-shadcn.css +5 -1
- package/src/compat/shadcn.browser.test.ts +23 -0
- package/src/compat/shadcn.css +133 -17
- package/src/contracts/badge.css +81 -65
- package/src/contracts/badge.resolver.json +145 -62
- package/src/contracts/choice.css +1 -1
- package/src/contracts/choice.tokens.json +1 -1
- package/src/contracts/control.css +14 -8
- package/src/contracts/control.tokens.json +57 -8
- package/src/contracts/environment.css +134 -12
- package/src/contracts/environment.resolver.json +664 -23
- package/src/contracts/field.css +1 -1
- package/src/contracts/field.tokens.json +1 -1
- package/src/contracts/selection.css +2 -0
- package/src/contracts/selection.tokens.json +5 -0
- package/src/contracts/surface.css +4 -0
- package/src/contracts/surface.tokens.json +57 -0
- package/src/tailwind/roles.json +189 -0
- package/src/tailwind/theme.css +210 -22
- package/src/tailwind/utilities.css +17 -0
- package/src/themes/aqua.css +1 -0
- package/src/themes/aqua.resolver.json +6 -0
- package/src/themes/retro.css +1 -0
- package/src/themes/retro.resolver.json +6 -0
- package/src/themes/terminal.css +8 -0
- package/src/themes/terminal.resolver.json +37 -0
- package/src/tokens/brand-action.css +16 -1
- package/src/tokens/brand-action.resolver.json +42 -5
- package/src/tokens/contrast.browser.test.ts +59 -0
- package/src/tokens/density.browser.test.ts +167 -0
- package/src/tokens/figma-parity.browser.test.ts +27 -14
- package/src/tokens/form-factor.browser.test.ts +129 -0
- package/src/tokens/foundation/primitives.css +0 -30
- package/src/tokens/foundation/primitives.tokens.json +0 -212
- package/src/tokens/foundation/radius.css +5 -0
- package/src/tokens/foundation/radius.tokens.json +8 -0
- package/src/tokens/foundation/typography.css +24 -0
- package/src/tokens/foundation/typography.native.css +12 -2
- package/src/tokens/foundation/typography.resolver.json +72 -0
- package/src/tokens/index.css +1 -0
- package/src/tokens/personalization-axes.browser.test.ts +13 -0
- package/src/tokens/semantics.css +251 -4
- package/src/tokens/semantics.resolver.json +1148 -12
- package/src/tokens/surface.css +8 -0
- package/src/tokens/surface.resolver.json +49 -0
- package/src/tokens/swift-parity.browser.test.ts +4 -0
- package/src/tokens/type-roles.css +75 -0
- package/src/tokens/type-roles.resolver.json +366 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2025.10",
|
|
3
|
-
"description": "Badge palette contract
|
|
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
4
|
"modifiers": {
|
|
5
5
|
"mode": {
|
|
6
6
|
"default": "light",
|
|
@@ -12,200 +12,205 @@
|
|
|
12
12
|
"red": {
|
|
13
13
|
"accent": {
|
|
14
14
|
"$type": "color",
|
|
15
|
-
"$value": "{
|
|
15
|
+
"$value": "{a63.category.red}"
|
|
16
16
|
},
|
|
17
17
|
"foreground": {
|
|
18
18
|
"$type": "color",
|
|
19
|
-
"$value": "{
|
|
19
|
+
"$value": "{a63.category.red.subtle.foreground}"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"orange": {
|
|
23
23
|
"accent": {
|
|
24
24
|
"$type": "color",
|
|
25
|
-
"$value": "{
|
|
25
|
+
"$value": "{a63.category.orange}"
|
|
26
26
|
},
|
|
27
27
|
"foreground": {
|
|
28
28
|
"$type": "color",
|
|
29
|
-
"$value": "{
|
|
29
|
+
"$value": "{a63.category.orange.subtle.foreground}"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"amber": {
|
|
33
33
|
"accent": {
|
|
34
34
|
"$type": "color",
|
|
35
|
-
"$value": "{
|
|
35
|
+
"$value": "{a63.category.amber}"
|
|
36
36
|
},
|
|
37
37
|
"foreground": {
|
|
38
38
|
"$type": "color",
|
|
39
|
-
"$value": "{
|
|
39
|
+
"$value": "{a63.category.amber.subtle.foreground}"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"yellow": {
|
|
43
43
|
"accent": {
|
|
44
44
|
"$type": "color",
|
|
45
|
-
"$value": "{
|
|
45
|
+
"$value": "{a63.category.yellow}"
|
|
46
46
|
},
|
|
47
47
|
"foreground": {
|
|
48
48
|
"$type": "color",
|
|
49
|
-
"$value": "{
|
|
49
|
+
"$value": "{a63.category.yellow.subtle.foreground}"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"lime": {
|
|
53
53
|
"accent": {
|
|
54
54
|
"$type": "color",
|
|
55
|
-
"$value": "{
|
|
55
|
+
"$value": "{a63.category.lime}"
|
|
56
56
|
},
|
|
57
57
|
"foreground": {
|
|
58
58
|
"$type": "color",
|
|
59
|
-
"$value": "{
|
|
59
|
+
"$value": "{a63.category.lime.subtle.foreground}"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"green": {
|
|
63
63
|
"accent": {
|
|
64
64
|
"$type": "color",
|
|
65
|
-
"$value": "{
|
|
65
|
+
"$value": "{a63.category.green}"
|
|
66
66
|
},
|
|
67
67
|
"foreground": {
|
|
68
68
|
"$type": "color",
|
|
69
|
-
"$value": "{
|
|
69
|
+
"$value": "{a63.category.green.subtle.foreground}"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"emerald": {
|
|
73
73
|
"accent": {
|
|
74
74
|
"$type": "color",
|
|
75
|
-
"$value": "{
|
|
75
|
+
"$value": "{a63.category.emerald}"
|
|
76
76
|
},
|
|
77
77
|
"foreground": {
|
|
78
78
|
"$type": "color",
|
|
79
|
-
"$value": "{
|
|
79
|
+
"$value": "{a63.category.emerald.subtle.foreground}"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"teal": {
|
|
83
83
|
"accent": {
|
|
84
84
|
"$type": "color",
|
|
85
|
-
"$value": "{
|
|
85
|
+
"$value": "{a63.category.teal}"
|
|
86
86
|
},
|
|
87
87
|
"foreground": {
|
|
88
88
|
"$type": "color",
|
|
89
|
-
"$value": "{
|
|
89
|
+
"$value": "{a63.category.teal.subtle.foreground}"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"cyan": {
|
|
93
93
|
"accent": {
|
|
94
94
|
"$type": "color",
|
|
95
|
-
"$value": "{
|
|
95
|
+
"$value": "{a63.category.cyan}"
|
|
96
96
|
},
|
|
97
97
|
"foreground": {
|
|
98
98
|
"$type": "color",
|
|
99
|
-
"$value": "{
|
|
99
|
+
"$value": "{a63.category.cyan.subtle.foreground}"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"sky": {
|
|
103
103
|
"accent": {
|
|
104
104
|
"$type": "color",
|
|
105
|
-
"$value": "{
|
|
105
|
+
"$value": "{a63.category.sky}"
|
|
106
106
|
},
|
|
107
107
|
"foreground": {
|
|
108
108
|
"$type": "color",
|
|
109
|
-
"$value": "{
|
|
109
|
+
"$value": "{a63.category.sky.subtle.foreground}"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"blue": {
|
|
113
113
|
"accent": {
|
|
114
114
|
"$type": "color",
|
|
115
|
-
"$value": "{
|
|
115
|
+
"$value": "{a63.category.blue}"
|
|
116
116
|
},
|
|
117
117
|
"foreground": {
|
|
118
118
|
"$type": "color",
|
|
119
|
-
"$value": "{
|
|
119
|
+
"$value": "{a63.category.blue.subtle.foreground}"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"indigo": {
|
|
123
123
|
"accent": {
|
|
124
124
|
"$type": "color",
|
|
125
|
-
"$value": "{
|
|
125
|
+
"$value": "{a63.category.indigo}"
|
|
126
126
|
},
|
|
127
127
|
"foreground": {
|
|
128
128
|
"$type": "color",
|
|
129
|
-
"$value": "{
|
|
129
|
+
"$value": "{a63.category.indigo.subtle.foreground}"
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"violet": {
|
|
133
133
|
"accent": {
|
|
134
134
|
"$type": "color",
|
|
135
|
-
"$value": "{
|
|
135
|
+
"$value": "{a63.category.violet}"
|
|
136
136
|
},
|
|
137
137
|
"foreground": {
|
|
138
138
|
"$type": "color",
|
|
139
|
-
"$value": "{
|
|
139
|
+
"$value": "{a63.category.violet.subtle.foreground}"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
"purple": {
|
|
143
143
|
"accent": {
|
|
144
144
|
"$type": "color",
|
|
145
|
-
"$value": "{
|
|
145
|
+
"$value": "{a63.category.purple}"
|
|
146
146
|
},
|
|
147
147
|
"foreground": {
|
|
148
148
|
"$type": "color",
|
|
149
|
-
"$value": "{
|
|
149
|
+
"$value": "{a63.category.purple.subtle.foreground}"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"fuchsia": {
|
|
153
153
|
"accent": {
|
|
154
154
|
"$type": "color",
|
|
155
|
-
"$value": "{
|
|
155
|
+
"$value": "{a63.category.fuchsia}"
|
|
156
156
|
},
|
|
157
157
|
"foreground": {
|
|
158
158
|
"$type": "color",
|
|
159
|
-
"$value": "{
|
|
159
|
+
"$value": "{a63.category.fuchsia.subtle.foreground}"
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"pink": {
|
|
163
163
|
"accent": {
|
|
164
164
|
"$type": "color",
|
|
165
|
-
"$value": "{
|
|
165
|
+
"$value": "{a63.category.pink}"
|
|
166
166
|
},
|
|
167
167
|
"foreground": {
|
|
168
168
|
"$type": "color",
|
|
169
|
-
"$value": "{
|
|
169
|
+
"$value": "{a63.category.pink.subtle.foreground}"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
"rose": {
|
|
173
173
|
"accent": {
|
|
174
174
|
"$type": "color",
|
|
175
|
-
"$value": "{
|
|
175
|
+
"$value": "{a63.category.rose}"
|
|
176
176
|
},
|
|
177
177
|
"foreground": {
|
|
178
178
|
"$type": "color",
|
|
179
|
-
"$value": "{
|
|
179
|
+
"$value": "{a63.category.rose.subtle.foreground}"
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
"neutral": {
|
|
183
183
|
"accent": {
|
|
184
184
|
"$type": "color",
|
|
185
|
-
"$value": "{
|
|
185
|
+
"$value": "{a63.category.neutral}"
|
|
186
186
|
},
|
|
187
187
|
"foreground": {
|
|
188
188
|
"$type": "color",
|
|
189
|
-
"$value": "{
|
|
189
|
+
"$value": "{a63.category.neutral.subtle.foreground}"
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
"info": {
|
|
193
193
|
"foreground": {
|
|
194
194
|
"$type": "color",
|
|
195
|
-
"$value": "{
|
|
196
|
-
"$description": "Status chips: the status color itself is too light for text on its tint."
|
|
195
|
+
"$value": "{a63.status.info.subtle.foreground}"
|
|
197
196
|
}
|
|
198
197
|
},
|
|
199
198
|
"success": {
|
|
200
199
|
"foreground": {
|
|
201
200
|
"$type": "color",
|
|
202
|
-
"$value": "{
|
|
201
|
+
"$value": "{a63.status.success.subtle.foreground}"
|
|
203
202
|
}
|
|
204
203
|
},
|
|
205
204
|
"warning": {
|
|
206
205
|
"foreground": {
|
|
207
206
|
"$type": "color",
|
|
208
|
-
"$value": "{
|
|
207
|
+
"$value": "{a63.status.warning.subtle.foreground}"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"error": {
|
|
211
|
+
"foreground": {
|
|
212
|
+
"$type": "color",
|
|
213
|
+
"$value": "{a63.action.danger.subtle.foreground}"
|
|
209
214
|
}
|
|
210
215
|
}
|
|
211
216
|
}
|
|
@@ -217,129 +222,207 @@
|
|
|
217
222
|
"a63": {
|
|
218
223
|
"badge": {
|
|
219
224
|
"red": {
|
|
225
|
+
"accent": {
|
|
226
|
+
"$type": "color",
|
|
227
|
+
"$value": "{a63.category.red}"
|
|
228
|
+
},
|
|
220
229
|
"foreground": {
|
|
221
230
|
"$type": "color",
|
|
222
|
-
"$value": "{
|
|
231
|
+
"$value": "{a63.category.red.subtle.foreground}"
|
|
223
232
|
}
|
|
224
233
|
},
|
|
225
234
|
"orange": {
|
|
235
|
+
"accent": {
|
|
236
|
+
"$type": "color",
|
|
237
|
+
"$value": "{a63.category.orange}"
|
|
238
|
+
},
|
|
226
239
|
"foreground": {
|
|
227
240
|
"$type": "color",
|
|
228
|
-
"$value": "{
|
|
241
|
+
"$value": "{a63.category.orange.subtle.foreground}"
|
|
229
242
|
}
|
|
230
243
|
},
|
|
231
244
|
"amber": {
|
|
245
|
+
"accent": {
|
|
246
|
+
"$type": "color",
|
|
247
|
+
"$value": "{a63.category.amber}"
|
|
248
|
+
},
|
|
232
249
|
"foreground": {
|
|
233
250
|
"$type": "color",
|
|
234
|
-
"$value": "{
|
|
251
|
+
"$value": "{a63.category.amber.subtle.foreground}"
|
|
235
252
|
}
|
|
236
253
|
},
|
|
237
254
|
"yellow": {
|
|
255
|
+
"accent": {
|
|
256
|
+
"$type": "color",
|
|
257
|
+
"$value": "{a63.category.yellow}"
|
|
258
|
+
},
|
|
238
259
|
"foreground": {
|
|
239
260
|
"$type": "color",
|
|
240
|
-
"$value": "{
|
|
261
|
+
"$value": "{a63.category.yellow.subtle.foreground}"
|
|
241
262
|
}
|
|
242
263
|
},
|
|
243
264
|
"lime": {
|
|
265
|
+
"accent": {
|
|
266
|
+
"$type": "color",
|
|
267
|
+
"$value": "{a63.category.lime}"
|
|
268
|
+
},
|
|
244
269
|
"foreground": {
|
|
245
270
|
"$type": "color",
|
|
246
|
-
"$value": "{
|
|
271
|
+
"$value": "{a63.category.lime.subtle.foreground}"
|
|
247
272
|
}
|
|
248
273
|
},
|
|
249
274
|
"green": {
|
|
275
|
+
"accent": {
|
|
276
|
+
"$type": "color",
|
|
277
|
+
"$value": "{a63.category.green}"
|
|
278
|
+
},
|
|
250
279
|
"foreground": {
|
|
251
280
|
"$type": "color",
|
|
252
|
-
"$value": "{
|
|
281
|
+
"$value": "{a63.category.green.subtle.foreground}"
|
|
253
282
|
}
|
|
254
283
|
},
|
|
255
284
|
"emerald": {
|
|
285
|
+
"accent": {
|
|
286
|
+
"$type": "color",
|
|
287
|
+
"$value": "{a63.category.emerald}"
|
|
288
|
+
},
|
|
256
289
|
"foreground": {
|
|
257
290
|
"$type": "color",
|
|
258
|
-
"$value": "{
|
|
291
|
+
"$value": "{a63.category.emerald.subtle.foreground}"
|
|
259
292
|
}
|
|
260
293
|
},
|
|
261
294
|
"teal": {
|
|
295
|
+
"accent": {
|
|
296
|
+
"$type": "color",
|
|
297
|
+
"$value": "{a63.category.teal}"
|
|
298
|
+
},
|
|
262
299
|
"foreground": {
|
|
263
300
|
"$type": "color",
|
|
264
|
-
"$value": "{
|
|
301
|
+
"$value": "{a63.category.teal.subtle.foreground}"
|
|
265
302
|
}
|
|
266
303
|
},
|
|
267
304
|
"cyan": {
|
|
305
|
+
"accent": {
|
|
306
|
+
"$type": "color",
|
|
307
|
+
"$value": "{a63.category.cyan}"
|
|
308
|
+
},
|
|
268
309
|
"foreground": {
|
|
269
310
|
"$type": "color",
|
|
270
|
-
"$value": "{
|
|
311
|
+
"$value": "{a63.category.cyan.subtle.foreground}"
|
|
271
312
|
}
|
|
272
313
|
},
|
|
273
314
|
"sky": {
|
|
315
|
+
"accent": {
|
|
316
|
+
"$type": "color",
|
|
317
|
+
"$value": "{a63.category.sky}"
|
|
318
|
+
},
|
|
274
319
|
"foreground": {
|
|
275
320
|
"$type": "color",
|
|
276
|
-
"$value": "{
|
|
321
|
+
"$value": "{a63.category.sky.subtle.foreground}"
|
|
277
322
|
}
|
|
278
323
|
},
|
|
279
324
|
"blue": {
|
|
325
|
+
"accent": {
|
|
326
|
+
"$type": "color",
|
|
327
|
+
"$value": "{a63.category.blue}"
|
|
328
|
+
},
|
|
280
329
|
"foreground": {
|
|
281
330
|
"$type": "color",
|
|
282
|
-
"$value": "{
|
|
331
|
+
"$value": "{a63.category.blue.subtle.foreground}"
|
|
283
332
|
}
|
|
284
333
|
},
|
|
285
334
|
"indigo": {
|
|
335
|
+
"accent": {
|
|
336
|
+
"$type": "color",
|
|
337
|
+
"$value": "{a63.category.indigo}"
|
|
338
|
+
},
|
|
286
339
|
"foreground": {
|
|
287
340
|
"$type": "color",
|
|
288
|
-
"$value": "{
|
|
341
|
+
"$value": "{a63.category.indigo.subtle.foreground}"
|
|
289
342
|
}
|
|
290
343
|
},
|
|
291
344
|
"violet": {
|
|
345
|
+
"accent": {
|
|
346
|
+
"$type": "color",
|
|
347
|
+
"$value": "{a63.category.violet}"
|
|
348
|
+
},
|
|
292
349
|
"foreground": {
|
|
293
350
|
"$type": "color",
|
|
294
|
-
"$value": "{
|
|
351
|
+
"$value": "{a63.category.violet.subtle.foreground}"
|
|
295
352
|
}
|
|
296
353
|
},
|
|
297
354
|
"purple": {
|
|
355
|
+
"accent": {
|
|
356
|
+
"$type": "color",
|
|
357
|
+
"$value": "{a63.category.purple}"
|
|
358
|
+
},
|
|
298
359
|
"foreground": {
|
|
299
360
|
"$type": "color",
|
|
300
|
-
"$value": "{
|
|
361
|
+
"$value": "{a63.category.purple.subtle.foreground}"
|
|
301
362
|
}
|
|
302
363
|
},
|
|
303
364
|
"fuchsia": {
|
|
365
|
+
"accent": {
|
|
366
|
+
"$type": "color",
|
|
367
|
+
"$value": "{a63.category.fuchsia}"
|
|
368
|
+
},
|
|
304
369
|
"foreground": {
|
|
305
370
|
"$type": "color",
|
|
306
|
-
"$value": "{
|
|
371
|
+
"$value": "{a63.category.fuchsia.subtle.foreground}"
|
|
307
372
|
}
|
|
308
373
|
},
|
|
309
374
|
"pink": {
|
|
375
|
+
"accent": {
|
|
376
|
+
"$type": "color",
|
|
377
|
+
"$value": "{a63.category.pink}"
|
|
378
|
+
},
|
|
310
379
|
"foreground": {
|
|
311
380
|
"$type": "color",
|
|
312
|
-
"$value": "{
|
|
381
|
+
"$value": "{a63.category.pink.subtle.foreground}"
|
|
313
382
|
}
|
|
314
383
|
},
|
|
315
384
|
"rose": {
|
|
385
|
+
"accent": {
|
|
386
|
+
"$type": "color",
|
|
387
|
+
"$value": "{a63.category.rose}"
|
|
388
|
+
},
|
|
316
389
|
"foreground": {
|
|
317
390
|
"$type": "color",
|
|
318
|
-
"$value": "{
|
|
391
|
+
"$value": "{a63.category.rose.subtle.foreground}"
|
|
319
392
|
}
|
|
320
393
|
},
|
|
321
394
|
"neutral": {
|
|
395
|
+
"accent": {
|
|
396
|
+
"$type": "color",
|
|
397
|
+
"$value": "{a63.category.neutral}"
|
|
398
|
+
},
|
|
322
399
|
"foreground": {
|
|
323
400
|
"$type": "color",
|
|
324
|
-
"$value": "{
|
|
401
|
+
"$value": "{a63.category.neutral.subtle.foreground}"
|
|
325
402
|
}
|
|
326
403
|
},
|
|
327
404
|
"info": {
|
|
328
405
|
"foreground": {
|
|
329
406
|
"$type": "color",
|
|
330
|
-
"$value": "{
|
|
407
|
+
"$value": "{a63.status.info.subtle.foreground}"
|
|
331
408
|
}
|
|
332
409
|
},
|
|
333
410
|
"success": {
|
|
334
411
|
"foreground": {
|
|
335
412
|
"$type": "color",
|
|
336
|
-
"$value": "{
|
|
413
|
+
"$value": "{a63.status.success.subtle.foreground}"
|
|
337
414
|
}
|
|
338
415
|
},
|
|
339
416
|
"warning": {
|
|
340
417
|
"foreground": {
|
|
341
418
|
"$type": "color",
|
|
342
|
-
"$value": "{
|
|
419
|
+
"$value": "{a63.status.warning.subtle.foreground}"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"error": {
|
|
423
|
+
"foreground": {
|
|
424
|
+
"$type": "color",
|
|
425
|
+
"$value": "{a63.action.danger.subtle.foreground}"
|
|
343
426
|
}
|
|
344
427
|
}
|
|
345
428
|
}
|
package/src/contracts/choice.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Axis-dependent colour hooks are resolved at the recipe use-site:
|
|
12
12
|
* --a63-choice-accent -> var(--a63-action-primary)
|
|
13
|
-
* --a63-choice-border -> var(--a63-border-
|
|
13
|
+
* --a63-choice-border -> var(--a63-border-input)
|
|
14
14
|
* --a63-choice-track-off -> var(--a63-surface-control)
|
|
15
15
|
* --a63-choice-focus-ring -> var(--a63-focus-ring)
|
|
16
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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
3
|
"a63": {
|
|
4
4
|
"choice": {
|
|
5
5
|
"thumb": {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
/* Height ramp (xs..xl) — web defaults (desktop density: 24/28/32/36/40, to
|
|
16
16
|
match production @atom63/ui). iOS overrides in environment.css. */
|
|
17
|
-
--a63-control-height-xs: calc(var(--a63-space-unit) * 6);
|
|
18
|
-
--a63-control-height-sm: calc(var(--a63-space-unit) * 7);
|
|
19
|
-
--a63-control-height-md: calc(var(--a63-space-unit) * 8);
|
|
20
|
-
--a63-control-height-lg: calc(var(--a63-space-unit) * 9);
|
|
21
|
-
--a63-control-height-xl: calc(var(--a63-space-unit) * 10);
|
|
17
|
+
--a63-control-height-xs: round(nearest, calc(var(--a63-space-unit) * 6), 1px);
|
|
18
|
+
--a63-control-height-sm: round(nearest, calc(var(--a63-space-unit) * 7), 1px);
|
|
19
|
+
--a63-control-height-md: round(nearest, calc(var(--a63-space-unit) * 8), 1px);
|
|
20
|
+
--a63-control-height-lg: round(nearest, calc(var(--a63-space-unit) * 9), 1px);
|
|
21
|
+
--a63-control-height-xl: round(nearest, calc(var(--a63-space-unit) * 10), 1px);
|
|
22
22
|
/* Recipes resolve rendered size at their own use-site:
|
|
23
23
|
max(calc(height * density), size-appropriate min-SIZE)
|
|
24
24
|
Do not cache that formula in a :root custom property. Input, density, and
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
--a63-control-icon-size-md: 1rem;
|
|
60
60
|
--a63-control-icon-size-lg: 1.125rem;
|
|
61
61
|
--a63-control-icon-size-xl: 1.25rem;
|
|
62
|
+
/* The glyph of an icon-only control (24/14, 28/16, 32/18, 36/20, 40/22): about 0.56 of the box, where an icon beside a label keeps the size ramp above. The iOS design language and the phone form factor already draw that ramp at these values on their taller boxes, so they need no override. */
|
|
63
|
+
--a63-control-icon-only-size-xs: 0.875rem;
|
|
64
|
+
--a63-control-icon-only-size-sm: 1rem;
|
|
65
|
+
--a63-control-icon-only-size-md: 1.125rem;
|
|
66
|
+
--a63-control-icon-only-size-lg: 1.25rem;
|
|
67
|
+
--a63-control-icon-only-size-xl: 1.375rem;
|
|
62
68
|
--a63-control-gap: var(--a63-space-2);
|
|
63
69
|
--a63-control-radius: var(--a63-radius-control);
|
|
64
70
|
--a63-control-border-width: 1px;
|
|
@@ -87,7 +93,7 @@
|
|
|
87
93
|
than in the recipe
|
|
88
94
|
because the design-language axis has to retune it (contracts/environment.css)
|
|
89
95
|
and axes own tokens; recipes only read them. */
|
|
90
|
-
--a63-row-padding-block-xs: var(--a63-space-2);
|
|
91
|
-
--a63-row-padding-block-sm: var(--a63-space-3);
|
|
92
|
-
--a63-row-padding-block-md: var(--a63-space-4);
|
|
96
|
+
--a63-row-padding-block-xs: round(nearest, var(--a63-space-2), 1px);
|
|
97
|
+
--a63-row-padding-block-sm: round(nearest, var(--a63-space-3), 1px);
|
|
98
|
+
--a63-row-padding-block-md: round(nearest, var(--a63-space-4), 1px);
|
|
93
99
|
}
|