@atom63/styles 0.1.0-beta.4 → 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 +3764 -1109
- package/generated/atom63.tokens.json +3811 -831
- package/package.json +14 -7
- 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 +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 -13
- package/src/tokens/foundation/primitives.tokens.json +3470 -0
- 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 +62 -34
- 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/surface.css +5 -19
- package/src/tokens/surface.resolver.json +657 -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 -28
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2025.10",
|
|
3
|
+
"description": "Environment dimensions.\n\nEach dimension owns a distinct slice (see packages/styles/README.md — the\ndimension-ownership table):\n - Design Language → component sizing/proportions + interaction feedback\n - Input → ergonomics (min touch target)\n - Density → proportional rhythm\n\nRadius, color, and shadow are NOT design-language concerns — they belong to\nthe semantic ramp + theme (personalization). Design language never sets radius.\n\nPrevent focus zoom in mobile Safari without inflating non-editable control\n labels. Editable recipes combine this floor with their normal type token.\n\nDensity — proportional rhythm\n\nAuto-detect coarse pointers. Without this, touch ergonomics only apply when an\n app explicitly passes `input` to UIProvider — an opt-in almost nothing does, so\n controls stay at their 24px floor on phones. Declared before the attribute\n rules below (equal specificity) so an explicit data-a63-input always wins.\n\nInput — ergonomics (touch target). Independent of design language.\n\nExplicit fine-pointer choices override coarse auto-detection (hybrid devices,\n or a user who picked \"pointer\" in the appearance panel on a touchscreen).\n\nDesign language — component sizing/proportions + interaction feedback only.\nThe base :root (control.css) is the web default; iOS overrides sizing + feel.\nNo radius, color, or touch-target here.",
|
|
4
|
+
"sets": {
|
|
5
|
+
"01-root": {
|
|
6
|
+
"sources": [
|
|
7
|
+
{
|
|
8
|
+
"a63": {
|
|
9
|
+
"density": {
|
|
10
|
+
"scale": {
|
|
11
|
+
"$type": "number",
|
|
12
|
+
"$value": 1
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"editable": {
|
|
16
|
+
"font": {
|
|
17
|
+
"size": {
|
|
18
|
+
"min": {
|
|
19
|
+
"$type": "dimension",
|
|
20
|
+
"$value": {
|
|
21
|
+
"value": 0,
|
|
22
|
+
"unit": "px"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"control": {
|
|
29
|
+
"min": {
|
|
30
|
+
"size": {
|
|
31
|
+
"$root": {
|
|
32
|
+
"$type": "dimension",
|
|
33
|
+
"$value": {
|
|
34
|
+
"value": 1.5,
|
|
35
|
+
"unit": "rem"
|
|
36
|
+
},
|
|
37
|
+
"$description": "Two different numbers, deliberately separate:\n - min-size = RENDERED geometry floor. WCAG 2.5.8 pointer minimum (24px).\n Touch raises it only to 32px — the smallest rendered control\n observed in shipping iOS apps (measured 30.6–31.5pt across two\n apps). Apple's Accessibility page publishes an iOS\nminimum control size* of 28x28pt, so a 32pt rendered floor\n sits above the documented minimum and below the 44pt default.\n https://developer.apple.com/design/human-interface-guidelines/accessibility\n - min-target = INTERACTION floor. Touch raises it to 44px per Apple HIG.\n Recipes must floor their height ramp with min-size and expand the touch\n region with min-target. Flooring rendered height with min-target is what\n collapses the xs/sm/md ramp to a single 44px rung on every phone.\n See docs/design-system/web-ios-token-parity.md."
|
|
38
|
+
},
|
|
39
|
+
"lg": {
|
|
40
|
+
"$type": "dimension",
|
|
41
|
+
"$value": "{a63.control.min.size}"
|
|
42
|
+
},
|
|
43
|
+
"xl": {
|
|
44
|
+
"$type": "dimension",
|
|
45
|
+
"$value": "{a63.control.min.size}"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"target": {
|
|
49
|
+
"$root": {
|
|
50
|
+
"$type": "dimension",
|
|
51
|
+
"$value": {
|
|
52
|
+
"value": 1.5,
|
|
53
|
+
"unit": "rem"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"lg": {
|
|
57
|
+
"$type": "dimension",
|
|
58
|
+
"$value": "{a63.control.min.target}"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"row": {
|
|
64
|
+
"min": {
|
|
65
|
+
"size": {
|
|
66
|
+
"$type": "dimension",
|
|
67
|
+
"$value": "{a63.control.min.size}",
|
|
68
|
+
"$description": "Rendered floor for a full-width ROW (a list/panel row whose whole width is\n the target), as opposed to a compact control sitting inside one. A row\n cannot borrow the pseudo-element trick: rows live in clipping containers\n (rounded panels, scroll areas) that cut an overhanging pseudo off, so the\n row's own height has to BE the target. 44px on touch — Apple's HIG default,\n and our own measurement of shipping iOS apps put primary rows and\n full-width controls at 42.4-44.1pt (docs/design-system/web-ios-token-parity.md).\n Equal to min-size on fine pointers, so desktop is unchanged."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"$extensions": {
|
|
76
|
+
"io.atom63.css": {
|
|
77
|
+
"selector": ":root"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"03-media-max-width-40rem-root": {
|
|
82
|
+
"sources": [
|
|
83
|
+
{
|
|
84
|
+
"a63": {
|
|
85
|
+
"editable": {
|
|
86
|
+
"font": {
|
|
87
|
+
"size": {
|
|
88
|
+
"min": {
|
|
89
|
+
"$type": "dimension",
|
|
90
|
+
"$value": {
|
|
91
|
+
"value": 1,
|
|
92
|
+
"unit": "rem"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"$extensions": {
|
|
102
|
+
"io.atom63.css": {
|
|
103
|
+
"selector": ":root",
|
|
104
|
+
"atRule": "@media (max-width: 40rem)"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"04-is-data-a63-density-compact-data-density-compact": {
|
|
109
|
+
"sources": [
|
|
110
|
+
{
|
|
111
|
+
"a63": {
|
|
112
|
+
"density": {
|
|
113
|
+
"scale": {
|
|
114
|
+
"$type": "number",
|
|
115
|
+
"$value": 0.9
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"space": {
|
|
119
|
+
"unit": {
|
|
120
|
+
"$type": "dimension",
|
|
121
|
+
"$value": "{spacing.1}",
|
|
122
|
+
"$extensions": {
|
|
123
|
+
"io.atom63.derive": "calc({spacing.1} * 0.875)"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"$extensions": {
|
|
131
|
+
"io.atom63.css": {
|
|
132
|
+
"selector": ":is([data-a63-density='compact'], [data-density='compact'])"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"05-is-data-a63-density-comfortable-data-density-com": {
|
|
137
|
+
"sources": [
|
|
138
|
+
{
|
|
139
|
+
"a63": {
|
|
140
|
+
"density": {
|
|
141
|
+
"scale": {
|
|
142
|
+
"$type": "number",
|
|
143
|
+
"$value": 1
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"space": {
|
|
147
|
+
"unit": {
|
|
148
|
+
"$type": "dimension",
|
|
149
|
+
"$value": "{spacing.1}"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"$extensions": {
|
|
156
|
+
"io.atom63.css": {
|
|
157
|
+
"selector": ":is([data-a63-density='comfortable'], [data-density='comfortable'])"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"06-media-pointer-coarse-root": {
|
|
162
|
+
"sources": [
|
|
163
|
+
{
|
|
164
|
+
"a63": {
|
|
165
|
+
"control": {
|
|
166
|
+
"min": {
|
|
167
|
+
"size": {
|
|
168
|
+
"$root": {
|
|
169
|
+
"$type": "dimension",
|
|
170
|
+
"$value": {
|
|
171
|
+
"value": 2,
|
|
172
|
+
"unit": "rem"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"lg": {
|
|
176
|
+
"$type": "dimension",
|
|
177
|
+
"$value": "{a63.control.min.size}"
|
|
178
|
+
},
|
|
179
|
+
"xl": {
|
|
180
|
+
"$type": "dimension",
|
|
181
|
+
"$value": "{a63.control.min.size}"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"target": {
|
|
185
|
+
"$root": {
|
|
186
|
+
"$type": "dimension",
|
|
187
|
+
"$value": {
|
|
188
|
+
"value": 2.75,
|
|
189
|
+
"unit": "rem"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"lg": {
|
|
193
|
+
"$type": "dimension",
|
|
194
|
+
"$value": {
|
|
195
|
+
"value": 3,
|
|
196
|
+
"unit": "rem"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"xl": {
|
|
200
|
+
"$type": "dimension",
|
|
201
|
+
"$value": {
|
|
202
|
+
"value": 3.25,
|
|
203
|
+
"unit": "rem"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"row": {
|
|
210
|
+
"min": {
|
|
211
|
+
"size": {
|
|
212
|
+
"$type": "dimension",
|
|
213
|
+
"$value": {
|
|
214
|
+
"value": 2.75,
|
|
215
|
+
"unit": "rem"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"$extensions": {
|
|
224
|
+
"io.atom63.css": {
|
|
225
|
+
"selector": ":root",
|
|
226
|
+
"atRule": "@media (pointer: coarse)"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"07-is-data-a63-input-touch-data-input-touch": {
|
|
231
|
+
"sources": [
|
|
232
|
+
{
|
|
233
|
+
"a63": {
|
|
234
|
+
"control": {
|
|
235
|
+
"min": {
|
|
236
|
+
"size": {
|
|
237
|
+
"$root": {
|
|
238
|
+
"$type": "dimension",
|
|
239
|
+
"$value": {
|
|
240
|
+
"value": 2,
|
|
241
|
+
"unit": "rem"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"lg": {
|
|
245
|
+
"$type": "dimension",
|
|
246
|
+
"$value": "{a63.control.min.size}"
|
|
247
|
+
},
|
|
248
|
+
"xl": {
|
|
249
|
+
"$type": "dimension",
|
|
250
|
+
"$value": "{a63.control.min.size}"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"target": {
|
|
254
|
+
"$root": {
|
|
255
|
+
"$type": "dimension",
|
|
256
|
+
"$value": {
|
|
257
|
+
"value": 2.75,
|
|
258
|
+
"unit": "rem"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"lg": {
|
|
262
|
+
"$type": "dimension",
|
|
263
|
+
"$value": {
|
|
264
|
+
"value": 3,
|
|
265
|
+
"unit": "rem"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"xl": {
|
|
269
|
+
"$type": "dimension",
|
|
270
|
+
"$value": {
|
|
271
|
+
"value": 3.25,
|
|
272
|
+
"unit": "rem"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"row": {
|
|
279
|
+
"min": {
|
|
280
|
+
"size": {
|
|
281
|
+
"$type": "dimension",
|
|
282
|
+
"$value": {
|
|
283
|
+
"value": 2.75,
|
|
284
|
+
"unit": "rem"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"$extensions": {
|
|
293
|
+
"io.atom63.css": {
|
|
294
|
+
"selector": ":is([data-a63-input='touch'], [data-input='touch'])"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"08-is-data-a63-input-pointer-data-input-pointer-dat": {
|
|
299
|
+
"sources": [
|
|
300
|
+
{
|
|
301
|
+
"a63": {
|
|
302
|
+
"control": {
|
|
303
|
+
"min": {
|
|
304
|
+
"size": {
|
|
305
|
+
"$root": {
|
|
306
|
+
"$type": "dimension",
|
|
307
|
+
"$value": {
|
|
308
|
+
"value": 1.5,
|
|
309
|
+
"unit": "rem"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"lg": {
|
|
313
|
+
"$type": "dimension",
|
|
314
|
+
"$value": "{a63.control.min.size}"
|
|
315
|
+
},
|
|
316
|
+
"xl": {
|
|
317
|
+
"$type": "dimension",
|
|
318
|
+
"$value": "{a63.control.min.size}"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"target": {
|
|
322
|
+
"$root": {
|
|
323
|
+
"$type": "dimension",
|
|
324
|
+
"$value": {
|
|
325
|
+
"value": 1.5,
|
|
326
|
+
"unit": "rem"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"lg": {
|
|
330
|
+
"$type": "dimension",
|
|
331
|
+
"$value": "{a63.control.min.target}"
|
|
332
|
+
},
|
|
333
|
+
"xl": {
|
|
334
|
+
"$type": "dimension",
|
|
335
|
+
"$value": "{a63.control.min.target}"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"row": {
|
|
341
|
+
"min": {
|
|
342
|
+
"size": {
|
|
343
|
+
"$type": "dimension",
|
|
344
|
+
"$value": "{a63.control.min.size}"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"$extensions": {
|
|
352
|
+
"io.atom63.css": {
|
|
353
|
+
"selector": ":is( [data-a63-input='pointer'], [data-input='pointer'], [data-a63-input='keyboard'], [data-input='keyboard'] )"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"09-is-data-a63-design-language-ios-data-design-lang": {
|
|
358
|
+
"sources": [
|
|
359
|
+
{
|
|
360
|
+
"a63": {
|
|
361
|
+
"control": {
|
|
362
|
+
"height": {
|
|
363
|
+
"xs": {
|
|
364
|
+
"$type": "dimension",
|
|
365
|
+
"$value": "{a63.space.unit}",
|
|
366
|
+
"$extensions": {
|
|
367
|
+
"io.atom63.derive": "calc({a63.space.unit} * 9)"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"sm": {
|
|
371
|
+
"$type": "dimension",
|
|
372
|
+
"$value": "{a63.space.unit}",
|
|
373
|
+
"$extensions": {
|
|
374
|
+
"io.atom63.derive": "calc({a63.space.unit} * 10)"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"md": {
|
|
378
|
+
"$type": "dimension",
|
|
379
|
+
"$value": "{a63.space.unit}",
|
|
380
|
+
"$extensions": {
|
|
381
|
+
"io.atom63.derive": "calc({a63.space.unit} * 11)"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"lg": {
|
|
385
|
+
"$type": "dimension",
|
|
386
|
+
"$value": "{a63.space.unit}",
|
|
387
|
+
"$extensions": {
|
|
388
|
+
"io.atom63.derive": "calc({a63.space.unit} * 12)"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"xl": {
|
|
392
|
+
"$type": "dimension",
|
|
393
|
+
"$value": "{a63.space.unit}",
|
|
394
|
+
"$extensions": {
|
|
395
|
+
"io.atom63.derive": "calc({a63.space.unit} * 13)"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"padding": {
|
|
400
|
+
"inline": {
|
|
401
|
+
"xs": {
|
|
402
|
+
"$type": "dimension",
|
|
403
|
+
"$value": "{a63.space.3}"
|
|
404
|
+
},
|
|
405
|
+
"sm": {
|
|
406
|
+
"$type": "dimension",
|
|
407
|
+
"$value": "{a63.space.3_5}"
|
|
408
|
+
},
|
|
409
|
+
"md": {
|
|
410
|
+
"$type": "dimension",
|
|
411
|
+
"$value": "{a63.space.4}"
|
|
412
|
+
},
|
|
413
|
+
"lg": {
|
|
414
|
+
"$type": "dimension",
|
|
415
|
+
"$value": "{a63.space.5}"
|
|
416
|
+
},
|
|
417
|
+
"xl": {
|
|
418
|
+
"$type": "dimension",
|
|
419
|
+
"$value": "{a63.space.6}"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"font": {
|
|
424
|
+
"weight": {
|
|
425
|
+
"$type": "number",
|
|
426
|
+
"$value": 600
|
|
427
|
+
},
|
|
428
|
+
"size": {
|
|
429
|
+
"xs": {
|
|
430
|
+
"$type": "dimension",
|
|
431
|
+
"$value": "{typography.xs.font.size}"
|
|
432
|
+
},
|
|
433
|
+
"sm": {
|
|
434
|
+
"$type": "dimension",
|
|
435
|
+
"$value": "{typography.sm.font.size}"
|
|
436
|
+
},
|
|
437
|
+
"md": {
|
|
438
|
+
"$type": "dimension",
|
|
439
|
+
"$value": "{typography.base.font.size}"
|
|
440
|
+
},
|
|
441
|
+
"lg": {
|
|
442
|
+
"$type": "dimension",
|
|
443
|
+
"$value": "{typography.lg.font.size}"
|
|
444
|
+
},
|
|
445
|
+
"xl": {
|
|
446
|
+
"$type": "dimension",
|
|
447
|
+
"$value": "{typography.lg.font.size}"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"icon": {
|
|
452
|
+
"size": {
|
|
453
|
+
"xs": {
|
|
454
|
+
"$type": "dimension",
|
|
455
|
+
"$value": {
|
|
456
|
+
"value": 0.875,
|
|
457
|
+
"unit": "rem"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"sm": {
|
|
461
|
+
"$type": "dimension",
|
|
462
|
+
"$value": {
|
|
463
|
+
"value": 1,
|
|
464
|
+
"unit": "rem"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"md": {
|
|
468
|
+
"$type": "dimension",
|
|
469
|
+
"$value": {
|
|
470
|
+
"value": 1.125,
|
|
471
|
+
"unit": "rem"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"lg": {
|
|
475
|
+
"$type": "dimension",
|
|
476
|
+
"$value": {
|
|
477
|
+
"value": 1.25,
|
|
478
|
+
"unit": "rem"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"xl": {
|
|
482
|
+
"$type": "dimension",
|
|
483
|
+
"$value": {
|
|
484
|
+
"value": 1.375,
|
|
485
|
+
"unit": "rem"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"feedback": {
|
|
491
|
+
"ease": {
|
|
492
|
+
"$type": "duration",
|
|
493
|
+
"$value": "{a63.motion.ease.emphasized}"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"row": {
|
|
498
|
+
"padding": {
|
|
499
|
+
"block": {
|
|
500
|
+
"xs": {
|
|
501
|
+
"$type": "dimension",
|
|
502
|
+
"$value": "{a63.space.1}",
|
|
503
|
+
"$description": "Rows stop padding their way to height and let the control ramp floor them,\n so a single-line row lands on 44pt and a two-line row on ~59pt, instead of\n 52pt and 75pt. Targets are from our measurement study, not a published\n Apple row height — there isn't one."
|
|
504
|
+
},
|
|
505
|
+
"sm": {
|
|
506
|
+
"$type": "dimension",
|
|
507
|
+
"$value": "{a63.space.1_5}"
|
|
508
|
+
},
|
|
509
|
+
"md": {
|
|
510
|
+
"$type": "dimension",
|
|
511
|
+
"$value": "{a63.space.2}"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"switch": {
|
|
517
|
+
"thumb": {
|
|
518
|
+
"size": {
|
|
519
|
+
"$type": "dimension",
|
|
520
|
+
"$value": {
|
|
521
|
+
"value": 1.375,
|
|
522
|
+
"unit": "rem"
|
|
523
|
+
},
|
|
524
|
+
"$description": "Larger, iconic iOS pill switch (web default is 1rem in selection.css)."
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"$extensions": {
|
|
532
|
+
"io.atom63.css": {
|
|
533
|
+
"selector": ":is([data-a63-design-language='ios'], [data-design-language='ios'])"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"resolutionOrder": [
|
|
539
|
+
{
|
|
540
|
+
"$ref": "#/sets/01-root"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"$ref": "#/sets/03-media-max-width-40rem-root"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"$ref": "#/sets/04-is-data-a63-density-compact-data-density-compact"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"$ref": "#/sets/05-is-data-a63-density-comfortable-data-density-com"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"$ref": "#/sets/06-media-pointer-coarse-root"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"$ref": "#/sets/07-is-data-a63-input-touch-data-input-touch"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"$ref": "#/sets/08-is-data-a63-input-pointer-data-input-pointer-dat"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"$ref": "#/sets/09-is-data-a63-design-language-ios-data-design-lang"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"$extensions": {
|
|
565
|
+
"io.atom63.css": {
|
|
566
|
+
"imports": ["./environment.native.css"]
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
package/src/contracts/field.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/field.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
|
* Field contract — the RECESSED control (text inputs), the inset counterpart to
|
|
3
6
|
* the raised control (buttons) in control.css.
|
|
4
7
|
*
|
|
@@ -19,7 +22,6 @@
|
|
|
19
22
|
* semantic resolves per the field's own scope. A theme sets --a63-field-shadow
|
|
20
23
|
* (all four) and, where it re-skins the fill, --a63-field-background (terminal).
|
|
21
24
|
*/
|
|
22
|
-
|
|
23
25
|
:root {
|
|
24
26
|
/* Recessed inset — mode-independent, so safe to default here. */
|
|
25
27
|
--a63-field-shadow: inset 0 1px 2px color-mix(in oklch, black 6%, transparent);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Field contract — the RECESSED control (text inputs), the inset counterpart to\nthe raised control (buttons) in control.css.\n\nA field is a control: it reuses the control SIZING ramp\n(--a63-control-height/padding-inline/font-size/radius), so it inherits\ndesign-language (iOS taller) sizing for free.\n\nTheme-overridable hooks: --a63-field-{background,border,radius,shadow,\nfocus-ring,focus-border}. Only --a63-field-shadow gets a default here — it is\nmode-independent (static inset), so it's safe to declare at :root and let\nthemes override it on their shell. The OTHER hooks resolve at the recipe\nuse-site against mode/theme/brand-dependent semantics (--a63-surface-control,\n--a63-border-control, --a63-control-radius, --a63-focus-ring,\n--a63-action-primary); declaring THOSE at :root would freeze their var()s to\nthe root's mode/theme and inherit the wrong value down — the\nresolve-at-declaration trap. So they stay UNSET here and the recipe reads\n`var(--a63-field-X, <semantic>)`: a theme override wins, else the live\nsemantic resolves per the field's own scope. A theme sets --a63-field-shadow\n(all four) and, where it re-skins the fill, --a63-field-background (terminal).",
|
|
3
|
+
"a63": {
|
|
4
|
+
"field": {
|
|
5
|
+
"shadow": {
|
|
6
|
+
"$type": "shadow",
|
|
7
|
+
"$value": [
|
|
8
|
+
{
|
|
9
|
+
"color": {
|
|
10
|
+
"colorSpace": "srgb",
|
|
11
|
+
"components": [0, 0, 0],
|
|
12
|
+
"alpha": 0.06
|
|
13
|
+
},
|
|
14
|
+
"offsetX": {
|
|
15
|
+
"value": 0,
|
|
16
|
+
"unit": "px"
|
|
17
|
+
},
|
|
18
|
+
"offsetY": {
|
|
19
|
+
"value": 1,
|
|
20
|
+
"unit": "px"
|
|
21
|
+
},
|
|
22
|
+
"blur": {
|
|
23
|
+
"value": 2,
|
|
24
|
+
"unit": "px"
|
|
25
|
+
},
|
|
26
|
+
"spread": {
|
|
27
|
+
"value": 0,
|
|
28
|
+
"unit": "px"
|
|
29
|
+
},
|
|
30
|
+
"inset": true
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"$extensions": {
|
|
34
|
+
"io.atom63.derive": "inset 0 1px 2px color-mix(in oklch, black 6%, transparent)"
|
|
35
|
+
},
|
|
36
|
+
"$description": "Recessed inset — mode-independent, so safe to default here."
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/contracts/marker.css
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/marker.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
|
* Marker contract — the tiny NON-interactive labeled chip (keycap, badge, chip,
|
|
3
6
|
* tag, inline code). Presentational; no state.
|
|
4
7
|
*
|
|
@@ -13,11 +16,10 @@
|
|
|
13
16
|
* to default at :root. Default is `none` — modern and terminal are flat pills
|
|
14
17
|
* (spec: "terminal none"); aqua and retro give it keycap character.
|
|
15
18
|
*/
|
|
16
|
-
|
|
17
19
|
:root {
|
|
18
20
|
/* `0 0 #0000` rather than `none`: recipes compose this into comma-separated
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
box-shadow lists (e.g. `var(--a63-marker-shadow), <focus ring>`), and `none`
|
|
22
|
+
is only legal as the sole value — it would invalidate the whole declaration
|
|
23
|
+
and silently drop the focus ring. This paints nothing. */
|
|
22
24
|
--a63-marker-shadow: 0 0 #0000;
|
|
23
25
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Marker contract — the tiny NON-interactive labeled chip (keycap, badge, chip,\ntag, inline code). Presentational; no state.\n\nLean by design (see the taxonomy spec): semantics carry the whole look — the\nrecipe reads --a63-surface-muted (bg), --a63-text-secondary (fg),\n--a63-border-subtle (border), --a63-control-radius (radius) and\n--a63-control-font-family (→ terminal-mono for free) at the use-site. The ONE\nthing themes vary distinctly for a keycap is its BEVEL, so that is the only\ncontract token here.\n\n--a63-marker-shadow is a static keycap shadow (mode-independent), so it's safe\nto default at :root. Default is `none` — modern and terminal are flat pills\n(spec: \"terminal none\"); aqua and retro give it keycap character.",
|
|
3
|
+
"a63": {
|
|
4
|
+
"marker": {
|
|
5
|
+
"shadow": {
|
|
6
|
+
"$type": "shadow",
|
|
7
|
+
"$value": [],
|
|
8
|
+
"$extensions": {
|
|
9
|
+
"io.atom63.derive": "0 0 #0000"
|
|
10
|
+
},
|
|
11
|
+
"$description": "`0 0 #0000` rather than `none`: recipes compose this into comma-separated\n box-shadow lists (e.g. `var(--a63-marker-shadow), <focus ring>`), and `none`\n is only legal as the sole value — it would invalidate the whole declaration\n and silently drop the focus ring. This paints nothing."
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|