@atom63/styles 0.1.0-beta.7 → 0.1.0-beta.9

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.
Files changed (52) hide show
  1. package/README.md +6 -3
  2. package/generated/atom63.figma-sync.json +5506 -3844
  3. package/generated/atom63.tokens.json +7536 -4284
  4. package/package.json +6 -6
  5. package/src/compat/a63-from-shadcn.css +265 -1
  6. package/src/compat/shadcn.css +15 -1
  7. package/src/contracts/choice.css +1 -1
  8. package/src/contracts/choice.tokens.json +1 -1
  9. package/src/contracts/control.css +14 -8
  10. package/src/contracts/control.tokens.json +57 -8
  11. package/src/contracts/environment.css +134 -12
  12. package/src/contracts/environment.resolver.json +664 -23
  13. package/src/contracts/field.css +1 -1
  14. package/src/contracts/field.tokens.json +1 -1
  15. package/src/contracts/selection.css +2 -0
  16. package/src/contracts/selection.tokens.json +5 -0
  17. package/src/contracts/skeleton.css +7 -2
  18. package/src/contracts/skeleton.resolver.json +21 -30
  19. package/src/contracts/surface.css +4 -0
  20. package/src/contracts/surface.tokens.json +57 -0
  21. package/src/contracts/toggle.css +18 -3
  22. package/src/contracts/toggle.resolver.json +123 -0
  23. package/src/tailwind/roles.json +19 -2
  24. package/src/tailwind/theme.css +104 -2
  25. package/src/tailwind/utilities.css +17 -0
  26. package/src/themes/aqua.css +1 -0
  27. package/src/themes/aqua.resolver.json +6 -0
  28. package/src/themes/retro.css +1 -0
  29. package/src/themes/retro.resolver.json +6 -0
  30. package/src/themes/terminal.css +13 -0
  31. package/src/themes/terminal.resolver.json +62 -0
  32. package/src/tokens/brand-action.css +4 -0
  33. package/src/tokens/brand-action.resolver.json +18 -0
  34. package/src/tokens/contrast.browser.test.ts +92 -18
  35. package/src/tokens/density.browser.test.ts +167 -0
  36. package/src/tokens/form-factor.browser.test.ts +129 -0
  37. package/src/tokens/foundation/primitives.css +0 -30
  38. package/src/tokens/foundation/primitives.tokens.json +0 -212
  39. package/src/tokens/foundation/radius.css +5 -0
  40. package/src/tokens/foundation/radius.tokens.json +8 -0
  41. package/src/tokens/foundation/typography.css +24 -0
  42. package/src/tokens/foundation/typography.native.css +12 -2
  43. package/src/tokens/foundation/typography.resolver.json +72 -0
  44. package/src/tokens/index.css +1 -0
  45. package/src/tokens/personalization-axes.browser.test.ts +13 -0
  46. package/src/tokens/semantics.css +120 -6
  47. package/src/tokens/semantics.resolver.json +301 -12
  48. package/src/tokens/surface.css +8 -0
  49. package/src/tokens/surface.resolver.json +49 -0
  50. package/src/tokens/type-roles.css +75 -0
  51. package/src/tokens/type-roles.resolver.json +366 -0
  52. package/src/contracts/toggle.tokens.json +0 -49
@@ -14,7 +14,7 @@
14
14
  * mode-independent (static inset), so it's safe to declare at :root and let
15
15
  * themes override it on their shell. The OTHER hooks resolve at the recipe
16
16
  * use-site against mode/theme/brand-dependent semantics (--a63-surface-control,
17
- * --a63-border-control, --a63-control-radius, --a63-focus-ring,
17
+ * --a63-border-input, --a63-control-radius, --a63-focus-ring,
18
18
  * --a63-action-primary); declaring THOSE at :root would freeze their var()s to
19
19
  * the root's mode/theme and inherit the wrong value down — the
20
20
  * resolve-at-declaration trap. So they stay UNSET here and the recipe reads
@@ -1,5 +1,5 @@
1
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).",
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-input, --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
3
  "a63": {
4
4
  "field": {
5
5
  "shadow": {
@@ -20,4 +20,6 @@
20
20
  --a63-selection-thumb-fg: color-mix(in oklch, black 78%, transparent);
21
21
  /* Drives the switch track geometry; iOS enlarges it in environment.css. */
22
22
  --a63-switch-thumb-size: 1rem;
23
+ /* The thumb's width over its height: 1 is a round knob. The track is the thumb plus one thumb height of travel, so a wider thumb lengthens the track. The phone form factor widens it (environment.css). */
24
+ --a63-switch-thumb-aspect: 1;
23
25
  }
@@ -30,6 +30,11 @@
30
30
  "unit": "rem"
31
31
  },
32
32
  "$description": "Drives the switch track geometry; iOS enlarges it in environment.css."
33
+ },
34
+ "aspect": {
35
+ "$type": "number",
36
+ "$value": 1,
37
+ "$description": "The thumb's width over its height: 1 is a round knob. The track is the thumb plus one thumb height of travel, so a wider thumb lengthens the track. The phone form factor widens it (environment.css)."
33
38
  }
34
39
  }
35
40
  }
@@ -5,13 +5,18 @@
5
5
  * Skeleton appearance contract.
6
6
  *
7
7
  * Renderers may use different masking primitives, but the base surface and
8
- * highlight emphasis remain shared design semantics.
8
+ * highlight emphasis remain shared design semantics. Each mode block repeats
9
+ * the base alias so a nested light or dark scope resolves it against its own
10
+ * surface roles.
9
11
  */
10
- :root {
12
+ :root,
13
+ .light,
14
+ [data-a63-mode='light'] {
11
15
  --a63-skeleton-base: var(--a63-surface-muted);
12
16
  --a63-skeleton-highlight: var(--color-white-60);
13
17
  }
14
18
 
15
19
  :is(.dark, [data-a63-mode='dark']) {
20
+ --a63-skeleton-base: var(--a63-surface-muted);
16
21
  --a63-skeleton-highlight: var(--color-white-10);
17
22
  }
@@ -1,40 +1,34 @@
1
1
  {
2
2
  "version": "2025.10",
3
- "description": "Skeleton appearance contract.\n\nRenderers may use different masking primitives, but the base surface and\nhighlight emphasis remain shared design semantics.",
4
- "sets": {
5
- "base": {
6
- "sources": [
7
- {
8
- "a63": {
9
- "skeleton": {
10
- "base": {
11
- "$type": "color",
12
- "$value": "{a63.surface.muted}"
13
- },
14
- "highlight": {
15
- "$type": "color",
16
- "$value": "{color.white.60}"
17
- }
18
- }
19
- }
20
- }
21
- ],
22
- "$extensions": {
23
- "io.atom63.css": {
24
- "selector": ":root"
25
- }
26
- }
27
- }
28
- },
3
+ "description": "Skeleton appearance contract.\n\nRenderers may use different masking primitives, but the base surface and\nhighlight emphasis remain shared design semantics. Each mode block repeats\nthe base alias so a nested light or dark scope resolves it against its own\nsurface roles.",
29
4
  "modifiers": {
30
5
  "mode": {
31
6
  "default": "light",
32
7
  "contexts": {
33
- "light": [],
8
+ "light": [
9
+ {
10
+ "a63": {
11
+ "skeleton": {
12
+ "base": {
13
+ "$type": "color",
14
+ "$value": "{a63.surface.muted}"
15
+ },
16
+ "highlight": {
17
+ "$type": "color",
18
+ "$value": "{color.white.60}"
19
+ }
20
+ }
21
+ }
22
+ }
23
+ ],
34
24
  "dark": [
35
25
  {
36
26
  "a63": {
37
27
  "skeleton": {
28
+ "base": {
29
+ "$type": "color",
30
+ "$value": "{a63.surface.muted}"
31
+ },
38
32
  "highlight": {
39
33
  "$type": "color",
40
34
  "$value": "{color.white.10}"
@@ -47,9 +41,6 @@
47
41
  }
48
42
  },
49
43
  "resolutionOrder": [
50
- {
51
- "$ref": "#/sets/base"
52
- },
53
44
  {
54
45
  "$ref": "#/modifiers/mode"
55
46
  }
@@ -38,6 +38,10 @@
38
38
  is only legal as the sole value — it invalidates the whole declaration and
39
39
  silently drops the surface's elevation. */
40
40
  --a63-surface-inner-shadow: 0 0 #0000;
41
+ /* Soft lift for a borderless surface that sits above its ground: the elevated Card and the raised Button. Themes point it at their own surface treatment. */
42
+ --a63-surface-raised-shadow:
43
+ 0 1px 3px color-mix(in oklch, black 8%, transparent),
44
+ 0 4px 12px -2px color-mix(in oklch, black 10%, transparent);
41
45
  --a63-surface-highlight-opacity: 1;
42
46
  /* Bevel controls. */
43
47
  --a63-surface-border-style: solid;
@@ -67,6 +67,63 @@
67
67
  "$description": "Recessed/inset treatment (sunken well). `0 0 #0000` = flat.\n NOT `none`: this token is composed into comma-separated box-shadow lists\n (`var(--a63-surface-inner-shadow), var(--a63-surface-shadow)`), and `none`\n is only legal as the sole value — it invalidates the whole declaration and\n silently drops the surface's elevation."
68
68
  }
69
69
  },
70
+ "raised": {
71
+ "shadow": {
72
+ "$type": "shadow",
73
+ "$value": [
74
+ {
75
+ "color": {
76
+ "colorSpace": "srgb",
77
+ "components": [0, 0, 0],
78
+ "alpha": 0.08
79
+ },
80
+ "offsetX": {
81
+ "value": 0,
82
+ "unit": "px"
83
+ },
84
+ "offsetY": {
85
+ "value": 1,
86
+ "unit": "px"
87
+ },
88
+ "blur": {
89
+ "value": 3,
90
+ "unit": "px"
91
+ },
92
+ "spread": {
93
+ "value": 0,
94
+ "unit": "px"
95
+ }
96
+ },
97
+ {
98
+ "color": {
99
+ "colorSpace": "srgb",
100
+ "components": [0, 0, 0],
101
+ "alpha": 0.1
102
+ },
103
+ "offsetX": {
104
+ "value": 0,
105
+ "unit": "px"
106
+ },
107
+ "offsetY": {
108
+ "value": 4,
109
+ "unit": "px"
110
+ },
111
+ "blur": {
112
+ "value": 12,
113
+ "unit": "px"
114
+ },
115
+ "spread": {
116
+ "value": -2,
117
+ "unit": "px"
118
+ }
119
+ }
120
+ ],
121
+ "$extensions": {
122
+ "io.atom63.derive": "0 1px 3px color-mix(in oklch, black 8%, transparent), 0 4px 12px -2px color-mix(in oklch, black 10%, transparent)"
123
+ },
124
+ "$description": "Soft lift for a borderless surface that sits above its ground: the elevated Card and the raised Button. Themes point it at their own surface treatment."
125
+ }
126
+ },
70
127
  "highlight": {
71
128
  "opacity": {
72
129
  "$type": "number",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Generated from src/contracts/toggle.tokens.json by scripts/build-css-from-dtcg.mjs. Do not edit;
2
+ * Generated from src/contracts/toggle.resolver.json by scripts/build-css-from-dtcg.mjs. Do not edit;
3
3
  * change the DTCG source and run `pnpm --filter @atom63/styles generate:tokens`.
4
4
  *
5
5
  * Toggle contract — persistent on/off controls.
@@ -11,10 +11,13 @@
11
11
  * --a63-toggle-background -> transparent
12
12
  * --a63-toggle-foreground -> var(--a63-text-primary)
13
13
  * --a63-toggle-hover-background -> var(--a63-surface-control-hover)
14
- * --a63-toggle-on-background -> var(--a63-surface-muted)
15
- * --a63-toggle-on-foreground -> var(--a63-text-primary)
16
14
  * --a63-toggle-primary-background -> var(--a63-action-primary)
17
15
  * --a63-toggle-primary-foreground -> var(--a63-action-primary-foreground)
16
+ *
17
+ * The pressed neutral fill is a token, so a theme whose neutral solid sits
18
+ * close to its page (terminal) can give a pressed toggle its own fill. Each
19
+ * mode block repeats it so a nested light or dark scope resolves it against
20
+ * its own action roles.
18
21
  */
19
22
  :root {
20
23
  --a63-toggle-border-width: var(--a63-segment-border-width);
@@ -26,3 +29,15 @@
26
29
  --a63-toggle-text-shadow: none;
27
30
  --a63-toggle-disabled-opacity: 0.56;
28
31
  }
32
+
33
+ :root,
34
+ .light,
35
+ [data-a63-mode='light'] {
36
+ --a63-toggle-on-background: var(--a63-action-neutral);
37
+ --a63-toggle-on-foreground: var(--a63-action-neutral-foreground);
38
+ }
39
+
40
+ :is(.dark, [data-a63-mode='dark']) {
41
+ --a63-toggle-on-background: var(--a63-action-neutral);
42
+ --a63-toggle-on-foreground: var(--a63-action-neutral-foreground);
43
+ }
@@ -0,0 +1,123 @@
1
+ {
2
+ "version": "2025.10",
3
+ "description": "Toggle contract — persistent on/off controls.\n\nCovers standalone Toggle. ToggleGroup is always a joined segmented bar and\nreads the segment contract for cell chrome; it does not use a layout variant.\n\nColour hooks resolve at recipe use-sites:\n --a63-toggle-background -> transparent\n --a63-toggle-foreground -> var(--a63-text-primary)\n --a63-toggle-hover-background -> var(--a63-surface-control-hover)\n --a63-toggle-primary-background -> var(--a63-action-primary)\n --a63-toggle-primary-foreground -> var(--a63-action-primary-foreground)\n\nThe pressed neutral fill is a token, so a theme whose neutral solid sits\nclose to its page (terminal) can give a pressed toggle its own fill. Each\nmode block repeats it so a nested light or dark scope resolves it against\nits own action roles.",
4
+ "sets": {
5
+ "base": {
6
+ "sources": [
7
+ {
8
+ "a63": {
9
+ "toggle": {
10
+ "border": {
11
+ "width": {
12
+ "$type": "dimension",
13
+ "$value": "{a63.segment.border.width}"
14
+ }
15
+ },
16
+ "gap": {
17
+ "$type": "dimension",
18
+ "$value": "{a63.control.gap}"
19
+ },
20
+ "group": {
21
+ "gap": {
22
+ "$type": "dimension",
23
+ "$value": "{a63.segment.gap}"
24
+ }
25
+ },
26
+ "radius": {
27
+ "$type": "dimension",
28
+ "$value": "{a63.control.radius}"
29
+ },
30
+ "shadow": {
31
+ "$root": {
32
+ "$type": "shadow",
33
+ "$value": []
34
+ },
35
+ "active": {
36
+ "$type": "shadow",
37
+ "$value": []
38
+ }
39
+ },
40
+ "text": {
41
+ "shadow": {
42
+ "$type": "shadow",
43
+ "$value": []
44
+ }
45
+ },
46
+ "disabled": {
47
+ "opacity": {
48
+ "$type": "number",
49
+ "$value": 0.56
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ ],
56
+ "$extensions": {
57
+ "io.atom63.css": {
58
+ "selector": ":root"
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "modifiers": {
64
+ "mode": {
65
+ "default": "light",
66
+ "contexts": {
67
+ "light": [
68
+ {
69
+ "a63": {
70
+ "toggle": {
71
+ "on": {
72
+ "background": {
73
+ "$type": "color",
74
+ "$value": "{a63.action.neutral}"
75
+ },
76
+ "foreground": {
77
+ "$type": "color",
78
+ "$value": "{a63.action.neutral.foreground}"
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ ],
85
+ "dark": [
86
+ {
87
+ "a63": {
88
+ "toggle": {
89
+ "on": {
90
+ "background": {
91
+ "$type": "color",
92
+ "$value": "{a63.action.neutral}"
93
+ },
94
+ "foreground": {
95
+ "$type": "color",
96
+ "$value": "{a63.action.neutral.foreground}"
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ "resolutionOrder": [
107
+ {
108
+ "$ref": "#/sets/base"
109
+ },
110
+ {
111
+ "$ref": "#/modifiers/mode"
112
+ }
113
+ ],
114
+ "$extensions": {
115
+ "io.atom63.css": {
116
+ "attribute": "data-a63-mode",
117
+ "selectors": {
118
+ "light": ":root,\n.light,\n[data-a63-mode='light']",
119
+ "dark": ":is(.dark, [data-a63-mode='dark'])"
120
+ }
121
+ }
122
+ }
123
+ }
@@ -23,7 +23,7 @@
23
23
  "label": "Borders and focus",
24
24
  "roles": {
25
25
  "border": "--a63-border-subtle",
26
- "input": "--a63-border-control",
26
+ "input": "--a63-border-input",
27
27
  "ring": "--a63-focus-ring"
28
28
  }
29
29
  },
@@ -64,7 +64,9 @@
64
64
  "label": "Selection",
65
65
  "roles": {
66
66
  "selected": "--a63-selected-background",
67
- "selected-foreground": "--a63-selected-foreground"
67
+ "selected-foreground": "--a63-selected-foreground",
68
+ "selected-accent": "--a63-selected-accent-background",
69
+ "selected-accent-foreground": "--a63-selected-accent-foreground"
68
70
  }
69
71
  },
70
72
  {
@@ -148,6 +150,21 @@
148
150
  "category-stone-subtle-foreground": "--a63-category-stone-subtle-foreground"
149
151
  }
150
152
  },
153
+ {
154
+ "label": "Media",
155
+ "roles": {
156
+ "media-stage": "--a63-media-stage",
157
+ "media-surface": "--a63-media-surface",
158
+ "media-scrim": "--a63-media-scrim",
159
+ "on-media-foreground": "--a63-on-media-foreground",
160
+ "on-media-surface": "--a63-on-media-surface",
161
+ "on-media-surface-strong": "--a63-on-media-surface-strong",
162
+ "on-media-border": "--a63-on-media-border",
163
+ "on-media-ring": "--a63-on-media-ring",
164
+ "on-media-veil": "--a63-on-media-veil",
165
+ "on-media-veil-strong": "--a63-on-media-veil-strong"
166
+ }
167
+ },
151
168
  {
152
169
  "label": "Sidebar",
153
170
  "roles": {
@@ -356,7 +356,7 @@
356
356
  --color-accent-foreground: var(--a63-text-primary);
357
357
  --color-surface-sunken: var(--a63-surface-control);
358
358
  --color-border: var(--a63-border-subtle);
359
- --color-input: var(--a63-border-control);
359
+ --color-input: var(--a63-border-input);
360
360
  --color-ring: var(--a63-focus-ring);
361
361
  --color-primary: var(--a63-action-primary);
362
362
  --color-primary-foreground: var(--a63-action-primary-foreground);
@@ -378,6 +378,8 @@
378
378
  --color-warning-subtle-foreground: var(--a63-status-warning-subtle-foreground);
379
379
  --color-selected: var(--a63-selected-background);
380
380
  --color-selected-foreground: var(--a63-selected-foreground);
381
+ --color-selected-accent: var(--a63-selected-accent-background);
382
+ --color-selected-accent-foreground: var(--a63-selected-accent-foreground);
381
383
  --color-chart-1: var(--a63-chart-1);
382
384
  --color-chart-2: var(--a63-chart-2);
383
385
  --color-chart-3: var(--a63-chart-3);
@@ -449,6 +451,16 @@
449
451
  --color-category-stone: var(--a63-category-stone);
450
452
  --color-category-stone-subtle: var(--a63-category-stone-subtle);
451
453
  --color-category-stone-subtle-foreground: var(--a63-category-stone-subtle-foreground);
454
+ --color-media-stage: var(--a63-media-stage);
455
+ --color-media-surface: var(--a63-media-surface);
456
+ --color-media-scrim: var(--a63-media-scrim);
457
+ --color-on-media-foreground: var(--a63-on-media-foreground);
458
+ --color-on-media-surface: var(--a63-on-media-surface);
459
+ --color-on-media-surface-strong: var(--a63-on-media-surface-strong);
460
+ --color-on-media-border: var(--a63-on-media-border);
461
+ --color-on-media-ring: var(--a63-on-media-ring);
462
+ --color-on-media-veil: var(--a63-on-media-veil);
463
+ --color-on-media-veil-strong: var(--a63-on-media-veil-strong);
452
464
  --color-sidebar: var(--a63-surface-sidebar);
453
465
  --color-sidebar-foreground: var(--a63-text-primary);
454
466
  --color-sidebar-primary: var(--a63-action-primary);
@@ -498,7 +510,13 @@
498
510
  --radius-2xl: var(--radius-2xl);
499
511
  --radius-3xl: var(--radius-3xl);
500
512
  --radius-4xl: var(--radius-4xl);
501
- --radius-full: var(--radius-full);
513
+ --radius-pill: var(--radius-pill);
514
+ }
515
+
516
+ @theme inline reference {
517
+ /* `rounded-full` is a true circle: it draws --radius-pill. Reference-only, so
518
+ Tailwind does not redeclare --radius-full, which stays the soft 2× xl step. */
519
+ --radius-full: var(--radius-pill);
502
520
  }
503
521
 
504
522
  /* tokens/foundation/fonts.css */
@@ -514,6 +532,8 @@
514
532
 
515
533
  @theme inline {
516
534
  --typography-scale: 1;
535
+ --text-2xs: var(--typography-2xs-font-size);
536
+ --text-2xs--line-height: var(--typography-2xs-line-height);
517
537
  --text-xs: var(--typography-xs-font-size);
518
538
  --text-xs--line-height: var(--typography-xs-line-height);
519
539
  --text-sm: var(--typography-sm-font-size);
@@ -598,3 +618,85 @@
598
618
  }
599
619
  }
600
620
  }
621
+
622
+ /* Text roles — generated from src/tokens/type-roles.resolver.json by scripts/generate-role-bridges.mjs; do not edit. */
623
+ @theme inline {
624
+ --text-display-large: var(--a63-type-display-large-font-size);
625
+ --text-display-large--line-height: var(--a63-type-display-large-line-height);
626
+ --text-display-large--font-weight: var(--a63-type-display-large-font-weight);
627
+ --text-display-large-strong: var(--a63-type-display-large-font-size);
628
+ --text-display-large-strong--line-height: var(--a63-type-display-large-line-height);
629
+ --text-display-large-strong--font-weight: var(--a63-type-display-large-font-weight-strong);
630
+ --text-display: var(--a63-type-display-font-size);
631
+ --text-display--line-height: var(--a63-type-display-line-height);
632
+ --text-display--font-weight: var(--a63-type-display-font-weight);
633
+ --text-display-strong: var(--a63-type-display-font-size);
634
+ --text-display-strong--line-height: var(--a63-type-display-line-height);
635
+ --text-display-strong--font-weight: var(--a63-type-display-font-weight-strong);
636
+ --text-large-title: var(--a63-type-large-title-font-size);
637
+ --text-large-title--line-height: var(--a63-type-large-title-line-height);
638
+ --text-large-title--font-weight: var(--a63-type-large-title-font-weight);
639
+ --text-large-title-strong: var(--a63-type-large-title-font-size);
640
+ --text-large-title-strong--line-height: var(--a63-type-large-title-line-height);
641
+ --text-large-title-strong--font-weight: var(--a63-type-large-title-font-weight-strong);
642
+ --text-title-1: var(--a63-type-title-1-font-size);
643
+ --text-title-1--line-height: var(--a63-type-title-1-line-height);
644
+ --text-title-1--font-weight: var(--a63-type-title-1-font-weight);
645
+ --text-title-1-strong: var(--a63-type-title-1-font-size);
646
+ --text-title-1-strong--line-height: var(--a63-type-title-1-line-height);
647
+ --text-title-1-strong--font-weight: var(--a63-type-title-1-font-weight-strong);
648
+ --text-title-2: var(--a63-type-title-2-font-size);
649
+ --text-title-2--line-height: var(--a63-type-title-2-line-height);
650
+ --text-title-2--font-weight: var(--a63-type-title-2-font-weight);
651
+ --text-title-2-strong: var(--a63-type-title-2-font-size);
652
+ --text-title-2-strong--line-height: var(--a63-type-title-2-line-height);
653
+ --text-title-2-strong--font-weight: var(--a63-type-title-2-font-weight-strong);
654
+ --text-title-3: var(--a63-type-title-3-font-size);
655
+ --text-title-3--line-height: var(--a63-type-title-3-line-height);
656
+ --text-title-3--font-weight: var(--a63-type-title-3-font-weight);
657
+ --text-title-3-strong: var(--a63-type-title-3-font-size);
658
+ --text-title-3-strong--line-height: var(--a63-type-title-3-line-height);
659
+ --text-title-3-strong--font-weight: var(--a63-type-title-3-font-weight-strong);
660
+ --text-headline: var(--a63-type-headline-font-size);
661
+ --text-headline--line-height: var(--a63-type-headline-line-height);
662
+ --text-headline--font-weight: var(--a63-type-headline-font-weight);
663
+ --text-headline-strong: var(--a63-type-headline-font-size);
664
+ --text-headline-strong--line-height: var(--a63-type-headline-line-height);
665
+ --text-headline-strong--font-weight: var(--a63-type-headline-font-weight-strong);
666
+ --text-body: var(--a63-type-body-font-size);
667
+ --text-body--line-height: var(--a63-type-body-line-height);
668
+ --text-body--font-weight: var(--a63-type-body-font-weight);
669
+ --text-body-strong: var(--a63-type-body-font-size);
670
+ --text-body-strong--line-height: var(--a63-type-body-line-height);
671
+ --text-body-strong--font-weight: var(--a63-type-body-font-weight-strong);
672
+ --text-callout: var(--a63-type-callout-font-size);
673
+ --text-callout--line-height: var(--a63-type-callout-line-height);
674
+ --text-callout--font-weight: var(--a63-type-callout-font-weight);
675
+ --text-callout-strong: var(--a63-type-callout-font-size);
676
+ --text-callout-strong--line-height: var(--a63-type-callout-line-height);
677
+ --text-callout-strong--font-weight: var(--a63-type-callout-font-weight-strong);
678
+ --text-subhead: var(--a63-type-subhead-font-size);
679
+ --text-subhead--line-height: var(--a63-type-subhead-line-height);
680
+ --text-subhead--font-weight: var(--a63-type-subhead-font-weight);
681
+ --text-subhead-strong: var(--a63-type-subhead-font-size);
682
+ --text-subhead-strong--line-height: var(--a63-type-subhead-line-height);
683
+ --text-subhead-strong--font-weight: var(--a63-type-subhead-font-weight-strong);
684
+ --text-footnote: var(--a63-type-footnote-font-size);
685
+ --text-footnote--line-height: var(--a63-type-footnote-line-height);
686
+ --text-footnote--font-weight: var(--a63-type-footnote-font-weight);
687
+ --text-footnote-strong: var(--a63-type-footnote-font-size);
688
+ --text-footnote-strong--line-height: var(--a63-type-footnote-line-height);
689
+ --text-footnote-strong--font-weight: var(--a63-type-footnote-font-weight-strong);
690
+ --text-caption-1: var(--a63-type-caption-1-font-size);
691
+ --text-caption-1--line-height: var(--a63-type-caption-1-line-height);
692
+ --text-caption-1--font-weight: var(--a63-type-caption-1-font-weight);
693
+ --text-caption-1-strong: var(--a63-type-caption-1-font-size);
694
+ --text-caption-1-strong--line-height: var(--a63-type-caption-1-line-height);
695
+ --text-caption-1-strong--font-weight: var(--a63-type-caption-1-font-weight-strong);
696
+ --text-caption-2: var(--a63-type-caption-2-font-size);
697
+ --text-caption-2--line-height: var(--a63-type-caption-2-line-height);
698
+ --text-caption-2--font-weight: var(--a63-type-caption-2-font-weight);
699
+ --text-caption-2-strong: var(--a63-type-caption-2-font-size);
700
+ --text-caption-2-strong--line-height: var(--a63-type-caption-2-line-height);
701
+ --text-caption-2-strong--font-weight: var(--a63-type-caption-2-font-weight-strong);
702
+ }
@@ -39,3 +39,20 @@
39
39
  --scroll-mask-fade-from-r: --value(percentage);
40
40
  --scroll-mask-fade-from-r: --value([length], [percentage]);
41
41
  }
42
+
43
+ /* The fraction of a display amount ("$13.25" with ".25" small and raised), as
44
+ banking and pricing screens draw balances. Wrap the fraction in it and keep the
45
+ whole amount in one text-display span with tabular-nums. */
46
+ @utility amount-fraction {
47
+ font-size: 0.5em;
48
+ line-height: 0;
49
+ vertical-align: 0.8em;
50
+ }
51
+
52
+ /* The same fraction kept on the baseline of the integer digits ("$13.25" with
53
+ ".25" small and level with the bottom of "13"), as some banking apps draw a balance. */
54
+ @utility amount-fraction-baseline {
55
+ font-size: 0.5em;
56
+ line-height: 0;
57
+ vertical-align: baseline;
58
+ }
@@ -56,6 +56,7 @@
56
56
  --a63-surface-backdrop: saturate(1.4) blur(var(--blur-lg));
57
57
  --a63-surface-highlight: color-mix(in oklch, white 55%, transparent);
58
58
  --a63-surface-highlight-opacity: 0.75;
59
+ --a63-surface-raised-shadow: var(--a63-surface-shadow);
59
60
  /* Menus need a quieter, more even backplate than larger Aqua overlays so
60
61
  dense rows remain legible from top to bottom. */
61
62
  --a63-menu-popup-background: color-mix(in oklab, var(--a63-surface-overlay) 92%, white);
@@ -530,6 +530,12 @@
530
530
  "$type": "number",
531
531
  "$value": 0.75
532
532
  }
533
+ },
534
+ "raised": {
535
+ "shadow": {
536
+ "$type": "shadow",
537
+ "$value": "{a63.surface.shadow}"
538
+ }
533
539
  }
534
540
  },
535
541
  "menu": {
@@ -59,6 +59,7 @@
59
59
  square corners via the radius personalization axis (not hardcoded here). */
60
60
  --a63-surface-border-style: outset;
61
61
  --a63-surface-border-width: 2px;
62
+ --a63-surface-raised-shadow: var(--a63-surface-shadow);
62
63
  --a63-track-shadow:
63
64
  inset 1px 1px 0 color-mix(in oklch, black 22%, transparent),
64
65
  inset -1px -1px 0 color-mix(in oklch, white 40%, transparent);
@@ -372,6 +372,12 @@
372
372
  "unit": "px"
373
373
  }
374
374
  }
375
+ },
376
+ "raised": {
377
+ "shadow": {
378
+ "$type": "shadow",
379
+ "$value": "{a63.surface.shadow}"
380
+ }
375
381
  }
376
382
  },
377
383
  "track": {