@atom63/styles 0.1.0-beta.0 → 0.1.0-beta.10
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 +33 -36
- package/generated/atom63.figma-sync.json +23201 -0
- package/generated/atom63.tokens.json +19649 -8416
- package/generated/z-layers.d.ts +33 -0
- package/generated/z-layers.js +31 -0
- package/package.json +35 -21
- package/src/compat/a63-from-shadcn.css +275 -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 +151 -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/color-mix-space.browser.test.ts +101 -0
- package/src/tokens/contrast.browser.test.ts +257 -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 +13 -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 +20 -4
- 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 +656 -39
- package/src/tokens/semantics.resolver.json +1606 -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 -21650
- 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/control.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
|
* Shared control contracts.
|
|
3
6
|
*
|
|
4
7
|
* Component recipes consume these first and introduce component-specific
|
|
@@ -6,97 +9,91 @@
|
|
|
6
9
|
* sizing/feedback tokens (see contracts/environment.css); recipes never hardcode
|
|
7
10
|
* sizes. Radius comes from the semantic ramp (theme/personalization), not here.
|
|
8
11
|
*/
|
|
12
|
+
@import './control.native.css';
|
|
9
13
|
|
|
10
14
|
:root {
|
|
11
15
|
/* Height ramp (xs..xl) — web defaults (desktop density: 24/28/32/36/40, to
|
|
12
|
-
|
|
13
|
-
--a63-control-height-xs: calc(var(--a63-space-unit) * 6);
|
|
14
|
-
--a63-control-height-sm: calc(var(--a63-space-unit) * 7);
|
|
15
|
-
--a63-control-height-md: calc(var(--a63-space-unit) * 8);
|
|
16
|
-
--a63-control-height-lg: calc(var(--a63-space-unit) * 9);
|
|
17
|
-
--a63-control-height-xl: calc(var(--a63-space-unit) * 10);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* breaks either the visual or the touch target.
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/* Inline padding ramp */
|
|
16
|
+
match production @atom63/ui). iOS overrides in environment.css. */
|
|
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
|
+
/* Recipes resolve rendered size at their own use-site:
|
|
23
|
+
max(calc(height * density), size-appropriate min-SIZE)
|
|
24
|
+
Do not cache that formula in a :root custom property. Input, density, and
|
|
25
|
+
design-language axes can be scoped to nested providers; deriving at :root
|
|
26
|
+
would freeze the root values and ignore those local overrides.
|
|
27
|
+
|
|
28
|
+
Floor with --a63-control-min-size (rendered geometry), NOT
|
|
29
|
+
--a63-control-min-target (interaction). The two are separate on purpose —
|
|
30
|
+
see contracts/environment.css. Touch therefore keeps the xs/sm/md ramp
|
|
31
|
+
intact and satisfies the 44px target by expanding the interaction area:
|
|
32
|
+
compact markers (checkbox, radio, switch, slider, badge) via a positioned
|
|
33
|
+
pseudo-element, button-class controls the same way. Square icon buttons are
|
|
34
|
+
NOT an exception — they sit on the rendered ramp like everything else, so a
|
|
35
|
+
32px icon button and a 32px text button line up in the same toolbar row.
|
|
36
|
+
|
|
37
|
+
The button recipe delivers that interaction floor on `::before`. Consumer
|
|
38
|
+
CSS must not paint on, resize, or hide `.a63-Button::before`: it wins the
|
|
39
|
+
cascade at higher specificity than a single consumer class, and silently
|
|
40
|
+
breaks either the visual or the touch target.
|
|
41
|
+
Inline padding ramp */
|
|
42
42
|
--a63-control-padding-inline-xs: var(--a63-space-2);
|
|
43
43
|
--a63-control-padding-inline-sm: var(--a63-space-2_5);
|
|
44
44
|
--a63-control-padding-inline-md: var(--a63-space-3);
|
|
45
45
|
--a63-control-padding-inline-lg: var(--a63-space-3_5);
|
|
46
46
|
--a63-control-padding-inline-xl: var(--a63-space-4);
|
|
47
|
-
|
|
48
47
|
/* Text ramp */
|
|
49
48
|
--a63-control-font-weight: var(--font-weight-medium, 500);
|
|
50
49
|
--a63-control-font-family: var(--font-family-sans);
|
|
51
|
-
--a63-control-text-shadow: none;
|
|
52
50
|
--a63-control-font-size-xs: var(--typography-xs-font-size);
|
|
53
51
|
--a63-control-font-size-sm: var(--typography-xs-font-size);
|
|
54
52
|
--a63-control-font-size-md: var(--typography-sm-font-size);
|
|
55
53
|
--a63-control-font-size-lg: var(--typography-base-font-size);
|
|
56
54
|
--a63-control-font-size-xl: var(--typography-lg-font-size);
|
|
57
|
-
|
|
55
|
+
--a63-control-text-shadow: none;
|
|
58
56
|
/* Icon geometry follows control size, not the compressed text ramp. */
|
|
59
57
|
--a63-control-icon-size-xs: 0.75rem;
|
|
60
58
|
--a63-control-icon-size-sm: 0.875rem;
|
|
61
59
|
--a63-control-icon-size-md: 1rem;
|
|
62
60
|
--a63-control-icon-size-lg: 1.125rem;
|
|
63
61
|
--a63-control-icon-size-xl: 1.25rem;
|
|
64
|
-
|
|
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;
|
|
65
68
|
--a63-control-gap: var(--a63-space-2);
|
|
66
69
|
--a63-control-radius: var(--a63-radius-control);
|
|
67
|
-
|
|
68
|
-
/* Row block padding. Rows (Item today; Menu/Command rows are the intended
|
|
69
|
-
next tenants) take their height from content + this padding, floored by the
|
|
70
|
-
control ramp, so a single-line row lands on ~44pt and a two-line row on
|
|
71
|
-
~59pt. Those targets come from our own measurement of shipping iOS apps
|
|
72
|
-
(docs/design-system/web-ios-token-parity.md) — Apple publishes no iOS row
|
|
73
|
-
height, so do not cite UIKit cell metrics for them. It lives here rather
|
|
74
|
-
than in the recipe
|
|
75
|
-
because the design-language axis has to retune it (contracts/environment.css)
|
|
76
|
-
and axes own tokens; recipes only read them. */
|
|
77
|
-
--a63-row-padding-block-xs: var(--a63-space-2);
|
|
78
|
-
--a63-row-padding-block-sm: var(--a63-space-3);
|
|
79
|
-
--a63-row-padding-block-md: var(--a63-space-4);
|
|
80
70
|
--a63-control-border-width: 1px;
|
|
81
71
|
/* `0 0 #0000` not `none` — composed into comma-separated box-shadow lists
|
|
82
|
-
|
|
72
|
+
alongside the focus ring, where `none` invalidates the declaration. */
|
|
83
73
|
--a63-control-shadow: 0 0 #0000;
|
|
84
74
|
--a63-control-shadow-active: var(--a63-control-shadow);
|
|
85
75
|
/* Shadow for flat/bordered variants (outline, destructive-outline). Defaults to
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
the regular shadow; a theme can soften it — e.g. aqua drops the bright top rim
|
|
77
|
+
that's too strong on a light fill while keeping a gentle lift. */
|
|
88
78
|
--a63-control-shadow-flat: var(--a63-control-shadow);
|
|
89
79
|
/* How strongly a control's drop shadow is tinted by its own fill colour (0% =
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
neutral shadow). The recipe composes the tinted layer at the button so it
|
|
81
|
+
follows each button's colour; a theme just sets the strength. */
|
|
92
82
|
--a63-control-shadow-tint: 0%;
|
|
93
|
-
--a63-control-gloss: none;
|
|
94
|
-
/* A gloss reflection panel painted in the top of the control (recipe ::after);
|
|
95
|
-
none = no reflection. Themes set a gradient (e.g. aqua's glass highlight). */
|
|
96
|
-
--a63-control-highlight: none;
|
|
97
83
|
--a63-control-focus-ring-width: 3px;
|
|
98
84
|
--a63-control-focus-ring-color: var(--a63-focus-ring);
|
|
99
85
|
--a63-control-feedback-duration: var(--a63-motion-control-feedback-duration);
|
|
100
86
|
--a63-control-feedback-ease: var(--a63-motion-ease-standard);
|
|
101
|
-
|
|
87
|
+
/* Row block padding. Rows (Item today; Menu/Command rows are the intended
|
|
88
|
+
next tenants) take their height from content + this padding, floored by the
|
|
89
|
+
control ramp, so a single-line row lands on ~44pt and a two-line row on
|
|
90
|
+
~59pt. Those targets come from our own measurement of shipping iOS apps
|
|
91
|
+
(docs/design-system/web-ios-token-parity.md) — Apple publishes no iOS row
|
|
92
|
+
height, so do not cite UIKit cell metrics for them. It lives here rather
|
|
93
|
+
than in the recipe
|
|
94
|
+
because the design-language axis has to retune it (contracts/environment.css)
|
|
95
|
+
and axes own tokens; recipes only read them. */
|
|
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);
|
|
102
99
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CSS-native values of the control contract: values with no DTCG type. The rest of
|
|
3
|
+
* the contract is generated from control.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-control-gloss: none;
|
|
9
|
+
/* A gloss reflection panel painted in the top of the control (recipe ::after);
|
|
10
|
+
none = no reflection. Themes set a gradient (e.g. aqua's glass highlight). */
|
|
11
|
+
--a63-control-highlight: none;
|
|
12
|
+
--a63-control-press-transform: translateY(1px);
|
|
13
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Shared control contracts.\n\nComponent recipes consume these first and introduce component-specific\nvariables only for genuinely unique needs. Design language overrides the\nsizing/feedback tokens (see contracts/environment.css); recipes never hardcode\nsizes. Radius comes from the semantic ramp (theme/personalization), not here.",
|
|
3
|
+
"a63": {
|
|
4
|
+
"control": {
|
|
5
|
+
"height": {
|
|
6
|
+
"xs": {
|
|
7
|
+
"$type": "dimension",
|
|
8
|
+
"$value": "{a63.space.unit}",
|
|
9
|
+
"$extensions": {
|
|
10
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 6), 1px)"
|
|
11
|
+
},
|
|
12
|
+
"$description": "Height ramp (xs..xl) — web defaults (desktop density: 24/28/32/36/40, to\n match production @atom63/ui). iOS overrides in environment.css."
|
|
13
|
+
},
|
|
14
|
+
"sm": {
|
|
15
|
+
"$type": "dimension",
|
|
16
|
+
"$value": "{a63.space.unit}",
|
|
17
|
+
"$extensions": {
|
|
18
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 7), 1px)"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"md": {
|
|
22
|
+
"$type": "dimension",
|
|
23
|
+
"$value": "{a63.space.unit}",
|
|
24
|
+
"$extensions": {
|
|
25
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 8), 1px)"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"lg": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": "{a63.space.unit}",
|
|
31
|
+
"$extensions": {
|
|
32
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 9), 1px)"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"xl": {
|
|
36
|
+
"$type": "dimension",
|
|
37
|
+
"$value": "{a63.space.unit}",
|
|
38
|
+
"$extensions": {
|
|
39
|
+
"io.atom63.derive": "round(nearest, calc({a63.space.unit} * 10), 1px)"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"padding": {
|
|
44
|
+
"inline": {
|
|
45
|
+
"xs": {
|
|
46
|
+
"$type": "dimension",
|
|
47
|
+
"$value": "{a63.space.2}",
|
|
48
|
+
"$description": "Recipes resolve rendered size at their own use-site:\n max(calc(height * density), size-appropriate min-SIZE)\nDo not cache that formula in a :root custom property. Input, density, and\ndesign-language axes can be scoped to nested providers; deriving at :root\nwould freeze the root values and ignore those local overrides.\n\nFloor with --a63-control-min-size (rendered geometry), NOT\n--a63-control-min-target (interaction). The two are separate on purpose —\nsee contracts/environment.css. Touch therefore keeps the xs/sm/md ramp\nintact and satisfies the 44px target by expanding the interaction area:\ncompact markers (checkbox, radio, switch, slider, badge) via a positioned\npseudo-element, button-class controls the same way. Square icon buttons are\nNOT an exception — they sit on the rendered ramp like everything else, so a\n32px icon button and a 32px text button line up in the same toolbar row.\n\nThe button recipe delivers that interaction floor on `::before`. Consumer\nCSS must not paint on, resize, or hide `.a63-Button::before`: it wins the\ncascade at higher specificity than a single consumer class, and silently\nbreaks either the visual or the touch target.\nInline padding ramp"
|
|
49
|
+
},
|
|
50
|
+
"sm": {
|
|
51
|
+
"$type": "dimension",
|
|
52
|
+
"$value": "{a63.space.2_5}"
|
|
53
|
+
},
|
|
54
|
+
"md": {
|
|
55
|
+
"$type": "dimension",
|
|
56
|
+
"$value": "{a63.space.3}"
|
|
57
|
+
},
|
|
58
|
+
"lg": {
|
|
59
|
+
"$type": "dimension",
|
|
60
|
+
"$value": "{a63.space.3_5}"
|
|
61
|
+
},
|
|
62
|
+
"xl": {
|
|
63
|
+
"$type": "dimension",
|
|
64
|
+
"$value": "{a63.space.4}"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"font": {
|
|
69
|
+
"weight": {
|
|
70
|
+
"$type": "dimension",
|
|
71
|
+
"$value": "{font.weight.medium}",
|
|
72
|
+
"$extensions": {
|
|
73
|
+
"io.atom63.derive": "var(--font-weight-medium, 500)"
|
|
74
|
+
},
|
|
75
|
+
"$description": "Text ramp"
|
|
76
|
+
},
|
|
77
|
+
"family": {
|
|
78
|
+
"$type": "dimension",
|
|
79
|
+
"$value": "{font.family.sans}"
|
|
80
|
+
},
|
|
81
|
+
"size": {
|
|
82
|
+
"xs": {
|
|
83
|
+
"$type": "dimension",
|
|
84
|
+
"$value": "{typography.xs.font.size}"
|
|
85
|
+
},
|
|
86
|
+
"sm": {
|
|
87
|
+
"$type": "dimension",
|
|
88
|
+
"$value": "{typography.xs.font.size}"
|
|
89
|
+
},
|
|
90
|
+
"md": {
|
|
91
|
+
"$type": "dimension",
|
|
92
|
+
"$value": "{typography.sm.font.size}"
|
|
93
|
+
},
|
|
94
|
+
"lg": {
|
|
95
|
+
"$type": "dimension",
|
|
96
|
+
"$value": "{typography.base.font.size}"
|
|
97
|
+
},
|
|
98
|
+
"xl": {
|
|
99
|
+
"$type": "dimension",
|
|
100
|
+
"$value": "{typography.lg.font.size}"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"text": {
|
|
105
|
+
"shadow": {
|
|
106
|
+
"$type": "shadow",
|
|
107
|
+
"$value": []
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"icon": {
|
|
111
|
+
"size": {
|
|
112
|
+
"xs": {
|
|
113
|
+
"$type": "dimension",
|
|
114
|
+
"$value": {
|
|
115
|
+
"value": 0.75,
|
|
116
|
+
"unit": "rem"
|
|
117
|
+
},
|
|
118
|
+
"$description": "Icon geometry follows control size, not the compressed text ramp."
|
|
119
|
+
},
|
|
120
|
+
"sm": {
|
|
121
|
+
"$type": "dimension",
|
|
122
|
+
"$value": {
|
|
123
|
+
"value": 0.875,
|
|
124
|
+
"unit": "rem"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"md": {
|
|
128
|
+
"$type": "dimension",
|
|
129
|
+
"$value": {
|
|
130
|
+
"value": 1,
|
|
131
|
+
"unit": "rem"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"lg": {
|
|
135
|
+
"$type": "dimension",
|
|
136
|
+
"$value": {
|
|
137
|
+
"value": 1.125,
|
|
138
|
+
"unit": "rem"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"xl": {
|
|
142
|
+
"$type": "dimension",
|
|
143
|
+
"$value": {
|
|
144
|
+
"value": 1.25,
|
|
145
|
+
"unit": "rem"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"only": {
|
|
150
|
+
"size": {
|
|
151
|
+
"xs": {
|
|
152
|
+
"$type": "dimension",
|
|
153
|
+
"$value": {
|
|
154
|
+
"value": 0.875,
|
|
155
|
+
"unit": "rem"
|
|
156
|
+
},
|
|
157
|
+
"$description": "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."
|
|
158
|
+
},
|
|
159
|
+
"sm": {
|
|
160
|
+
"$type": "dimension",
|
|
161
|
+
"$value": {
|
|
162
|
+
"value": 1,
|
|
163
|
+
"unit": "rem"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"md": {
|
|
167
|
+
"$type": "dimension",
|
|
168
|
+
"$value": {
|
|
169
|
+
"value": 1.125,
|
|
170
|
+
"unit": "rem"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"lg": {
|
|
174
|
+
"$type": "dimension",
|
|
175
|
+
"$value": {
|
|
176
|
+
"value": 1.25,
|
|
177
|
+
"unit": "rem"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"xl": {
|
|
181
|
+
"$type": "dimension",
|
|
182
|
+
"$value": {
|
|
183
|
+
"value": 1.375,
|
|
184
|
+
"unit": "rem"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"gap": {
|
|
191
|
+
"$type": "dimension",
|
|
192
|
+
"$value": "{a63.space.2}"
|
|
193
|
+
},
|
|
194
|
+
"radius": {
|
|
195
|
+
"$type": "dimension",
|
|
196
|
+
"$value": "{a63.radius.control}"
|
|
197
|
+
},
|
|
198
|
+
"border": {
|
|
199
|
+
"width": {
|
|
200
|
+
"$type": "dimension",
|
|
201
|
+
"$value": {
|
|
202
|
+
"value": 1,
|
|
203
|
+
"unit": "px"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"shadow": {
|
|
208
|
+
"$root": {
|
|
209
|
+
"$type": "shadow",
|
|
210
|
+
"$value": [],
|
|
211
|
+
"$extensions": {
|
|
212
|
+
"io.atom63.derive": "0 0 #0000"
|
|
213
|
+
},
|
|
214
|
+
"$description": "`0 0 #0000` not `none` — composed into comma-separated box-shadow lists\n alongside the focus ring, where `none` invalidates the declaration."
|
|
215
|
+
},
|
|
216
|
+
"active": {
|
|
217
|
+
"$type": "shadow",
|
|
218
|
+
"$value": "{a63.control.shadow}"
|
|
219
|
+
},
|
|
220
|
+
"flat": {
|
|
221
|
+
"$type": "shadow",
|
|
222
|
+
"$value": "{a63.control.shadow}",
|
|
223
|
+
"$description": "Shadow for flat/bordered variants (outline, destructive-outline). Defaults to\n the regular shadow; a theme can soften it — e.g. aqua drops the bright top rim\n that's too strong on a light fill while keeping a gentle lift."
|
|
224
|
+
},
|
|
225
|
+
"tint": {
|
|
226
|
+
"$type": "number",
|
|
227
|
+
"$value": 0,
|
|
228
|
+
"$extensions": {
|
|
229
|
+
"io.atom63.derive": "0%"
|
|
230
|
+
},
|
|
231
|
+
"$description": "How strongly a control's drop shadow is tinted by its own fill colour (0% =\n neutral shadow). The recipe composes the tinted layer at the button so it\n follows each button's colour; a theme just sets the strength."
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"focus": {
|
|
235
|
+
"ring": {
|
|
236
|
+
"width": {
|
|
237
|
+
"$type": "dimension",
|
|
238
|
+
"$value": {
|
|
239
|
+
"value": 3,
|
|
240
|
+
"unit": "px"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"color": {
|
|
244
|
+
"$type": "color",
|
|
245
|
+
"$value": "{a63.focus.ring}"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"feedback": {
|
|
250
|
+
"duration": {
|
|
251
|
+
"$type": "duration",
|
|
252
|
+
"$value": "{a63.motion.control.feedback.duration}"
|
|
253
|
+
},
|
|
254
|
+
"ease": {
|
|
255
|
+
"$type": "duration",
|
|
256
|
+
"$value": "{a63.motion.ease.standard}"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"row": {
|
|
261
|
+
"padding": {
|
|
262
|
+
"block": {
|
|
263
|
+
"xs": {
|
|
264
|
+
"$type": "dimension",
|
|
265
|
+
"$value": "{a63.space.2}",
|
|
266
|
+
"$description": "Row block padding. Rows (Item today; Menu/Command rows are the intended\n next tenants) take their height from content + this padding, floored by the\n control ramp, so a single-line row lands on ~44pt and a two-line row on\n ~59pt. Those targets come from our own measurement of shipping iOS apps\n (docs/design-system/web-ios-token-parity.md) — Apple publishes no iOS row\n height, so do not cite UIKit cell metrics for them. It lives here rather\n than in the recipe\n because the design-language axis has to retune it (contracts/environment.css)\n and axes own tokens; recipes only read them.",
|
|
267
|
+
"$extensions": {
|
|
268
|
+
"io.atom63.derive": "round(nearest, {a63.space.2}, 1px)"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"sm": {
|
|
272
|
+
"$type": "dimension",
|
|
273
|
+
"$value": "{a63.space.3}",
|
|
274
|
+
"$extensions": {
|
|
275
|
+
"io.atom63.derive": "round(nearest, {a63.space.3}, 1px)"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"md": {
|
|
279
|
+
"$type": "dimension",
|
|
280
|
+
"$value": "{a63.space.4}",
|
|
281
|
+
"$extensions": {
|
|
282
|
+
"io.atom63.derive": "round(nearest, {a63.space.4}, 1px)"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"$extensions": {
|
|
290
|
+
"io.atom63.css": {
|
|
291
|
+
"imports": ["./control.native.css"]
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|