@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
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Generated from src/contracts/environment.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
|
+
*
|
|
2
5
|
* Environment dimensions.
|
|
3
6
|
*
|
|
4
7
|
* Each dimension owns a distinct slice (see packages/styles/README.md — the
|
|
@@ -9,74 +12,119 @@
|
|
|
9
12
|
*
|
|
10
13
|
* Radius, color, and shadow are NOT design-language concerns — they belong to
|
|
11
14
|
* the semantic ramp + theme (personalization). Design language never sets radius.
|
|
15
|
+
*
|
|
16
|
+
* Prevent focus zoom in mobile Safari without inflating non-editable control
|
|
17
|
+
* labels. Editable recipes combine this floor with their normal type token.
|
|
18
|
+
*
|
|
19
|
+
* Density — proportional rhythm. A density scope sets --a63-space-unit, and every :root token
|
|
20
|
+
* built on it (the space steps, control heights and paddings, row padding, gaps) is declared
|
|
21
|
+
* again on [data-a63-density], so a nested scope recomputes them once, the same as the root.
|
|
22
|
+
* The design-language and phone scopes are also declared on a density scope inside them, so
|
|
23
|
+
* it keeps their sizes.
|
|
24
|
+
*
|
|
25
|
+
* Auto-detect coarse pointers. Without this, touch ergonomics only apply when an
|
|
26
|
+
* app explicitly passes `input` to UIProvider — an opt-in almost nothing does, so
|
|
27
|
+
* controls stay at their 24px floor on phones. Declared before the attribute
|
|
28
|
+
* rules below (equal specificity) so an explicit data-a63-input always wins.
|
|
29
|
+
*
|
|
30
|
+
* Input — ergonomics (touch target). Independent of design language.
|
|
31
|
+
*
|
|
32
|
+
* Explicit fine-pointer choices override coarse auto-detection (hybrid devices,
|
|
33
|
+
* or a user who picked "pointer" in the appearance panel on a touchscreen).
|
|
34
|
+
*
|
|
35
|
+
* Design language — component sizing/proportions + interaction feedback only.
|
|
36
|
+
* The base :root (control.css) is the web default; iOS overrides sizing + feel.
|
|
37
|
+
* No radius, color, or touch-target here.
|
|
38
|
+
*
|
|
39
|
+
* Form factor — a phone screen. [data-a63-form-factor='phone'] sets the type steps and the
|
|
40
|
+
* control sizing of a phone (iOS text sizes: body 17, subheadline 15, footnote 13). Viewport
|
|
41
|
+
* width does not apply it; a phone layout stamps it (AppView layout="phone"). The type roles
|
|
42
|
+
* are redeclared on the same scope (type-roles.css), so text-body and the other roles follow it.
|
|
12
43
|
*/
|
|
44
|
+
@import './environment.native.css';
|
|
13
45
|
|
|
14
46
|
:root {
|
|
47
|
+
/* An extra multiplier recipes apply to control heights. It stays 1 in every density: density reaches sizes through --a63-space-unit, which the control heights are built on, so scaling them again would shrink controls twice. */
|
|
15
48
|
--a63-density-scale: 1;
|
|
16
49
|
--a63-editable-font-size-min: 0px;
|
|
17
|
-
--a63-safe-area-top: env(safe-area-inset-top, 0px);
|
|
18
|
-
--a63-safe-area-right: env(safe-area-inset-right, 0px);
|
|
19
|
-
--a63-safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
20
|
-
--a63-safe-area-left: env(safe-area-inset-left, 0px);
|
|
21
|
-
--a63-viewport-height: 100vh;
|
|
22
50
|
/* Two different numbers, deliberately separate:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
51
|
+
- min-size = RENDERED geometry floor. WCAG 2.5.8 pointer minimum (24px).
|
|
52
|
+
Touch raises it only to 32px — the smallest rendered control
|
|
53
|
+
observed in shipping iOS apps (measured 30.6–31.5pt across two
|
|
54
|
+
apps). Apple's Accessibility page publishes an iOS
|
|
55
|
+
minimum control size* of 28x28pt, so a 32pt rendered floor
|
|
56
|
+
sits above the documented minimum and below the 44pt default.
|
|
57
|
+
https://developer.apple.com/design/human-interface-guidelines/accessibility
|
|
58
|
+
- min-target = INTERACTION floor. Touch raises it to 44px per Apple HIG.
|
|
59
|
+
Recipes must floor their height ramp with min-size and expand the touch
|
|
60
|
+
region with min-target. Flooring rendered height with min-target is what
|
|
61
|
+
collapses the xs/sm/md ramp to a single 44px rung on every phone.
|
|
62
|
+
See docs/design-system/web-ios-token-parity.md. */
|
|
35
63
|
--a63-control-min-size: 1.5rem;
|
|
36
64
|
--a63-control-min-size-lg: var(--a63-control-min-size);
|
|
37
65
|
--a63-control-min-size-xl: var(--a63-control-min-size);
|
|
38
66
|
--a63-control-min-target: 1.5rem;
|
|
39
67
|
--a63-control-min-target-lg: var(--a63-control-min-target);
|
|
40
68
|
/* Rendered floor for a full-width ROW (a list/panel row whose whole width is
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
69
|
+
the target), as opposed to a compact control sitting inside one. A row
|
|
70
|
+
cannot borrow the pseudo-element trick: rows live in clipping containers
|
|
71
|
+
(rounded panels, scroll areas) that cut an overhanging pseudo off, so the
|
|
72
|
+
row's own height has to BE the target. 44px on touch — Apple's HIG default,
|
|
73
|
+
and our own measurement of shipping iOS apps put primary rows and
|
|
74
|
+
full-width controls at 42.4-44.1pt (docs/design-system/web-ios-token-parity.md).
|
|
75
|
+
Equal to min-size on fine pointers, so desktop is unchanged. */
|
|
48
76
|
--a63-row-min-size: var(--a63-control-min-size);
|
|
49
77
|
}
|
|
50
78
|
|
|
51
|
-
@supports (height: 100dvh) {
|
|
52
|
-
:root {
|
|
53
|
-
--a63-viewport-height: 100dvh;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Prevent focus zoom in mobile Safari without inflating non-editable control
|
|
58
|
-
labels. Editable recipes combine this floor with their normal type token. */
|
|
59
79
|
@media (max-width: 40rem) {
|
|
60
80
|
:root {
|
|
61
81
|
--a63-editable-font-size-min: 1rem;
|
|
62
82
|
}
|
|
63
83
|
}
|
|
64
84
|
|
|
65
|
-
/* Density — proportional rhythm */
|
|
66
85
|
:is([data-a63-density='compact'], [data-density='compact']) {
|
|
67
|
-
--a63-density-scale: 0.9;
|
|
68
86
|
--a63-space-unit: calc(var(--spacing-1) * 0.875);
|
|
69
87
|
}
|
|
70
88
|
|
|
71
89
|
:is([data-a63-density='comfortable'], [data-density='comfortable']) {
|
|
72
|
-
--a63-density-scale: 1;
|
|
73
90
|
--a63-space-unit: var(--spacing-1);
|
|
74
91
|
}
|
|
75
92
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
:is([data-a63-density], [data-density]) {
|
|
94
|
+
--a63-space-1: var(--a63-space-unit);
|
|
95
|
+
--a63-space-2: calc(var(--a63-space-unit) * 2);
|
|
96
|
+
--a63-space-3: calc(var(--a63-space-unit) * 3);
|
|
97
|
+
--a63-space-4: calc(var(--a63-space-unit) * 4);
|
|
98
|
+
--a63-space-5: calc(var(--a63-space-unit) * 5);
|
|
99
|
+
--a63-space-6: calc(var(--a63-space-unit) * 6);
|
|
100
|
+
--a63-space-0_5: calc(var(--a63-space-unit) * 0.5);
|
|
101
|
+
--a63-space-1_5: calc(var(--a63-space-unit) * 1.5);
|
|
102
|
+
--a63-space-2_5: calc(var(--a63-space-unit) * 2.5);
|
|
103
|
+
--a63-space-3_5: calc(var(--a63-space-unit) * 3.5);
|
|
104
|
+
--a63-action-control-gap: var(--a63-control-gap);
|
|
105
|
+
--a63-control-height-xs: round(nearest, calc(var(--a63-space-unit) * 6), 1px);
|
|
106
|
+
--a63-control-height-sm: round(nearest, calc(var(--a63-space-unit) * 7), 1px);
|
|
107
|
+
--a63-control-height-md: round(nearest, calc(var(--a63-space-unit) * 8), 1px);
|
|
108
|
+
--a63-control-height-lg: round(nearest, calc(var(--a63-space-unit) * 9), 1px);
|
|
109
|
+
--a63-control-height-xl: round(nearest, calc(var(--a63-space-unit) * 10), 1px);
|
|
110
|
+
--a63-control-padding-inline-xs: var(--a63-space-2);
|
|
111
|
+
--a63-control-padding-inline-sm: var(--a63-space-2_5);
|
|
112
|
+
--a63-control-padding-inline-md: var(--a63-space-3);
|
|
113
|
+
--a63-control-padding-inline-lg: var(--a63-space-3_5);
|
|
114
|
+
--a63-control-padding-inline-xl: var(--a63-space-4);
|
|
115
|
+
--a63-control-gap: var(--a63-space-2);
|
|
116
|
+
--a63-row-padding-block-xs: round(nearest, var(--a63-space-2), 1px);
|
|
117
|
+
--a63-row-padding-block-sm: round(nearest, var(--a63-space-3), 1px);
|
|
118
|
+
--a63-row-padding-block-md: round(nearest, var(--a63-space-4), 1px);
|
|
119
|
+
--a63-menu-popup-padding: var(--a63-space-1);
|
|
120
|
+
--a63-menu-item-padding-block: var(--a63-space-1_5);
|
|
121
|
+
--a63-menu-item-padding-inline: var(--a63-space-2);
|
|
122
|
+
--a63-menu-item-gap: var(--a63-space-2);
|
|
123
|
+
--a63-menu-gap: var(--a63-space-0_5);
|
|
124
|
+
--a63-toggle-gap: var(--a63-control-gap);
|
|
125
|
+
--a63-trigger-gap: var(--a63-control-gap);
|
|
126
|
+
}
|
|
127
|
+
|
|
80
128
|
@media (pointer: coarse) {
|
|
81
129
|
:root {
|
|
82
130
|
--a63-control-min-size: 2rem;
|
|
@@ -89,7 +137,6 @@
|
|
|
89
137
|
}
|
|
90
138
|
}
|
|
91
139
|
|
|
92
|
-
/* Input — ergonomics (touch target). Independent of design language. */
|
|
93
140
|
:is([data-a63-input='touch'], [data-input='touch']) {
|
|
94
141
|
--a63-control-min-size: 2rem;
|
|
95
142
|
--a63-control-min-size-lg: var(--a63-control-min-size);
|
|
@@ -100,8 +147,6 @@
|
|
|
100
147
|
--a63-row-min-size: 2.75rem;
|
|
101
148
|
}
|
|
102
149
|
|
|
103
|
-
/* Explicit fine-pointer choices override coarse auto-detection (hybrid devices,
|
|
104
|
-
or a user who picked "pointer" in the appearance panel on a touchscreen). */
|
|
105
150
|
:is(
|
|
106
151
|
[data-a63-input='pointer'],
|
|
107
152
|
[data-input='pointer'],
|
|
@@ -117,17 +162,14 @@
|
|
|
117
162
|
--a63-row-min-size: var(--a63-control-min-size);
|
|
118
163
|
}
|
|
119
164
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
--a63-control-height-
|
|
127
|
-
--a63-control-height-
|
|
128
|
-
--a63-control-height-md: calc(var(--a63-space-unit) * 11);
|
|
129
|
-
--a63-control-height-lg: calc(var(--a63-space-unit) * 12);
|
|
130
|
-
--a63-control-height-xl: calc(var(--a63-space-unit) * 13);
|
|
165
|
+
:is([data-a63-design-language='ios'], [data-design-language='ios']),
|
|
166
|
+
:is([data-a63-design-language='ios'], [data-design-language='ios'])
|
|
167
|
+
:is([data-a63-density], [data-density]) {
|
|
168
|
+
--a63-control-height-xs: round(nearest, calc(var(--a63-space-unit) * 9), 1px);
|
|
169
|
+
--a63-control-height-sm: round(nearest, calc(var(--a63-space-unit) * 10), 1px);
|
|
170
|
+
--a63-control-height-md: round(nearest, calc(var(--a63-space-unit) * 11), 1px);
|
|
171
|
+
--a63-control-height-lg: round(nearest, calc(var(--a63-space-unit) * 12), 1px);
|
|
172
|
+
--a63-control-height-xl: round(nearest, calc(var(--a63-space-unit) * 13), 1px);
|
|
131
173
|
--a63-control-padding-inline-xs: var(--a63-space-3);
|
|
132
174
|
--a63-control-padding-inline-sm: var(--a63-space-3_5);
|
|
133
175
|
--a63-control-padding-inline-md: var(--a63-space-4);
|
|
@@ -144,15 +186,91 @@
|
|
|
144
186
|
--a63-control-icon-size-md: 1.125rem;
|
|
145
187
|
--a63-control-icon-size-lg: 1.25rem;
|
|
146
188
|
--a63-control-icon-size-xl: 1.375rem;
|
|
147
|
-
--a63-control-press-transform: scale(0.97);
|
|
148
189
|
--a63-control-feedback-ease: var(--a63-motion-ease-emphasized);
|
|
149
190
|
/* Rows stop padding their way to height and let the control ramp floor them,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
--a63-row-padding-block-xs: var(--a63-space-1);
|
|
154
|
-
--a63-row-padding-block-sm: var(--a63-space-1_5);
|
|
155
|
-
--a63-row-padding-block-md: var(--a63-space-2);
|
|
191
|
+
so a single-line row lands on 44pt and a two-line row on ~59pt, instead of
|
|
192
|
+
52pt and 75pt. Targets are from our measurement study, not a published
|
|
193
|
+
Apple row height — there isn't one. */
|
|
194
|
+
--a63-row-padding-block-xs: round(nearest, var(--a63-space-1), 1px);
|
|
195
|
+
--a63-row-padding-block-sm: round(nearest, var(--a63-space-1_5), 1px);
|
|
196
|
+
--a63-row-padding-block-md: round(nearest, var(--a63-space-2), 1px);
|
|
156
197
|
/* Larger, iconic iOS pill switch (web default is 1rem in selection.css). */
|
|
157
198
|
--a63-switch-thumb-size: 1.375rem;
|
|
158
199
|
}
|
|
200
|
+
|
|
201
|
+
[data-a63-form-factor='phone'],
|
|
202
|
+
[data-a63-form-factor='phone'] :is([data-a63-density], [data-density]) {
|
|
203
|
+
/* The type steps of a phone screen, after the iOS text styles at the default Dynamic Type size:
|
|
204
|
+
body 17 (base), subheadline 15 (sm), footnote 13 (xs), caption2 11 (2xs), title3 20 (2xl),
|
|
205
|
+
title2 22 (3xl), title1 28 (5xl), largeTitle 34 (6xl). Steps without an iOS style keep the
|
|
206
|
+
scale in order. Complete, so the phone scope wins over the viewport and window steps. */
|
|
207
|
+
--typography-2xs-font-size: calc(11px * var(--typography-scale, 1));
|
|
208
|
+
--typography-2xs-line-height: calc(13px * var(--typography-scale, 1));
|
|
209
|
+
--typography-xs-font-size: calc(13px * var(--typography-scale, 1));
|
|
210
|
+
--typography-xs-line-height: calc(18px * var(--typography-scale, 1));
|
|
211
|
+
--typography-sm-font-size: calc(15px * var(--typography-scale, 1));
|
|
212
|
+
--typography-sm-line-height: calc(20px * var(--typography-scale, 1));
|
|
213
|
+
--typography-base-font-size: calc(17px * var(--typography-scale, 1));
|
|
214
|
+
--typography-base-line-height: calc(22px * var(--typography-scale, 1));
|
|
215
|
+
--typography-lg-font-size: calc(18px * var(--typography-scale, 1));
|
|
216
|
+
--typography-lg-line-height: calc(24px * var(--typography-scale, 1));
|
|
217
|
+
--typography-xl-font-size: calc(19px * var(--typography-scale, 1));
|
|
218
|
+
--typography-xl-line-height: calc(24px * var(--typography-scale, 1));
|
|
219
|
+
--typography-2xl-font-size: calc(20px * var(--typography-scale, 1));
|
|
220
|
+
--typography-2xl-line-height: calc(25px * var(--typography-scale, 1));
|
|
221
|
+
--typography-3xl-font-size: calc(22px * var(--typography-scale, 1));
|
|
222
|
+
--typography-3xl-line-height: calc(28px * var(--typography-scale, 1));
|
|
223
|
+
--typography-4xl-font-size: calc(25px * var(--typography-scale, 1));
|
|
224
|
+
--typography-4xl-line-height: calc(31px * var(--typography-scale, 1));
|
|
225
|
+
--typography-5xl-font-size: calc(28px * var(--typography-scale, 1));
|
|
226
|
+
--typography-5xl-line-height: calc(34px * var(--typography-scale, 1));
|
|
227
|
+
--typography-6xl-font-size: calc(34px * var(--typography-scale, 1));
|
|
228
|
+
--typography-6xl-line-height: calc(41px * var(--typography-scale, 1));
|
|
229
|
+
--typography-7xl-font-size: calc(36px * var(--typography-scale, 1));
|
|
230
|
+
--typography-7xl-line-height: calc(44px * var(--typography-scale, 1));
|
|
231
|
+
--typography-8xl-font-size: calc(39px * var(--typography-scale, 1));
|
|
232
|
+
--typography-8xl-line-height: calc(49px * var(--typography-scale, 1));
|
|
233
|
+
--typography-9xl-font-size: calc(44px * var(--typography-scale, 1));
|
|
234
|
+
--typography-9xl-line-height: calc(55px * var(--typography-scale, 1));
|
|
235
|
+
--typography-10xl-font-size: calc(40px * var(--typography-scale, 1));
|
|
236
|
+
--typography-10xl-line-height: calc(44px * var(--typography-scale, 1));
|
|
237
|
+
--typography-11xl-font-size: calc(56px * var(--typography-scale, 1));
|
|
238
|
+
--typography-11xl-line-height: calc(60px * var(--typography-scale, 1));
|
|
239
|
+
/* Controls on a phone: the iOS height ramp (36/40/44/48/52), and every standard control label
|
|
240
|
+
at body size (17), as iOS sets buttons, rows, fields and menus. xs stays at footnote size
|
|
241
|
+
for badges, shortcuts and initials. Weight and press feedback stay with the design language. */
|
|
242
|
+
--a63-control-height-xs: round(nearest, calc(var(--a63-space-unit) * 9), 1px);
|
|
243
|
+
--a63-control-height-sm: round(nearest, calc(var(--a63-space-unit) * 10), 1px);
|
|
244
|
+
--a63-control-height-md: round(nearest, calc(var(--a63-space-unit) * 11), 1px);
|
|
245
|
+
--a63-control-height-lg: round(nearest, calc(var(--a63-space-unit) * 12), 1px);
|
|
246
|
+
--a63-control-height-xl: round(nearest, calc(var(--a63-space-unit) * 13), 1px);
|
|
247
|
+
--a63-control-padding-inline-xs: var(--a63-space-3);
|
|
248
|
+
--a63-control-padding-inline-sm: var(--a63-space-3_5);
|
|
249
|
+
--a63-control-padding-inline-md: var(--a63-space-4);
|
|
250
|
+
--a63-control-padding-inline-lg: var(--a63-space-5);
|
|
251
|
+
--a63-control-padding-inline-xl: var(--a63-space-6);
|
|
252
|
+
--a63-control-font-size-xs: var(--typography-xs-font-size);
|
|
253
|
+
--a63-control-font-size-sm: var(--typography-base-font-size);
|
|
254
|
+
--a63-control-font-size-md: var(--typography-base-font-size);
|
|
255
|
+
--a63-control-font-size-lg: var(--typography-base-font-size);
|
|
256
|
+
--a63-control-font-size-xl: var(--typography-lg-font-size);
|
|
257
|
+
/* The secondary line under a title or label (an Item, Field or Form description, a Frame or
|
|
258
|
+
ConnectedPanel description): subheadline size (15), so it stays below the 17px title. Declared
|
|
259
|
+
only here; recipes fall back to --a63-control-font-size-sm, so other scopes are unchanged. */
|
|
260
|
+
--a63-control-font-size-secondary: var(--typography-sm-font-size);
|
|
261
|
+
--a63-control-icon-size-xs: 0.875rem;
|
|
262
|
+
--a63-control-icon-size-sm: 1rem;
|
|
263
|
+
--a63-control-icon-size-md: 1.125rem;
|
|
264
|
+
--a63-control-icon-size-lg: 1.25rem;
|
|
265
|
+
--a63-control-icon-size-xl: 1.375rem;
|
|
266
|
+
--a63-row-padding-block-xs: round(nearest, var(--a63-space-1), 1px);
|
|
267
|
+
--a63-row-padding-block-sm: round(nearest, var(--a63-space-1_5), 1px);
|
|
268
|
+
--a63-row-padding-block-md: round(nearest, var(--a63-space-2), 1px);
|
|
269
|
+
/* The switch of a phone (iOS 26): a 22px-tall pill knob 1.6 times as wide, on a track of about 63 by 28, as measured on a 3x iPhone screenshot. The height matches the iOS design language; the wide thumb is the phone's own. */
|
|
270
|
+
--a63-switch-thumb-size: 1.375rem;
|
|
271
|
+
--a63-switch-thumb-aspect: 1.6;
|
|
272
|
+
/* The row of a phone's grouped list (ItemGroup variant="inset", default and sm rows): 52px tall, as iOS 26 Settings and a 3x reference capture both measure (51-52pt). Declared only here; the Item recipe falls back to its control-height floor elsewhere. */
|
|
273
|
+
--a63-inset-row-min-size: round(nearest, calc(var(--a63-space-unit) * 13), 1px);
|
|
274
|
+
/* The corner of a phone's grouped-list card (ItemGroup variant="inset"): the 2xl step (18px at defaults), after a 3x reference capture that fits a 19pt corner. Follows the radius axis. Declared only here; the Item recipe falls back to --radius-lg elsewhere. */
|
|
275
|
+
--a63-inset-group-radius: var(--radius-2xl);
|
|
276
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of the environment contract: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from environment.resolver.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-safe-area-top: env(safe-area-inset-top, 0px);
|
|
9
|
+
--a63-safe-area-right: env(safe-area-inset-right, 0px);
|
|
10
|
+
--a63-safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
11
|
+
--a63-safe-area-left: env(safe-area-inset-left, 0px);
|
|
12
|
+
--a63-viewport-height: 100vh;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@supports (height: 100dvh) {
|
|
16
|
+
:root {
|
|
17
|
+
--a63-viewport-height: 100dvh;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:is([data-a63-design-language='ios'], [data-design-language='ios']) {
|
|
22
|
+
--a63-control-press-transform: scale(0.97);
|
|
23
|
+
}
|