@atom63/ui-react 0.2.0-beta.11 → 0.2.0-beta.13

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 (96) hide show
  1. package/README.md +12 -0
  2. package/dist/button-DMnQeAEL.d.ts +22 -0
  3. package/dist/calendar/index.d.ts +2 -1
  4. package/dist/calendar/index.js +16 -1
  5. package/dist/calendar/index.js.map +1 -1
  6. package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
  7. package/dist/chunk-IFBF2IA3.js.map +1 -0
  8. package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
  9. package/dist/chunk-R7IQ3IL5.js.map +1 -0
  10. package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
  11. package/dist/chunk-RLF45GBS.js.map +1 -0
  12. package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
  13. package/dist/chunk-WL27K6MO.js.map +1 -0
  14. package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
  15. package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
  16. package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
  17. package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
  18. package/dist/index.d.ts +513 -141
  19. package/dist/index.js +1126 -235
  20. package/dist/index.js.map +1 -1
  21. package/dist/layout/index.d.ts +73 -1
  22. package/dist/layout/index.js +78 -2
  23. package/dist/layout/index.js.map +1 -1
  24. package/dist/media/index.d.ts +5 -4
  25. package/dist/media/index.js +35 -7
  26. package/dist/media/index.js.map +1 -1
  27. package/dist/media/media-lightbox/parts/index.d.ts +5 -4
  28. package/dist/media/media-lightbox/parts/index.js +2 -2
  29. package/dist/preview/index.d.ts +2 -3
  30. package/dist/preview/index.js +2 -2
  31. package/dist/theme/index.d.ts +3 -2
  32. package/dist/theme/index.js +2 -2
  33. package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
  34. package/package.json +36 -26
  35. package/src/components/alert/alert.css +21 -18
  36. package/src/components/amount/amount.css +60 -0
  37. package/src/components/app-view/app-view.css +232 -0
  38. package/src/components/autocomplete/autocomplete.css +21 -5
  39. package/src/components/avatar/avatar.css +64 -8
  40. package/src/components/badge/badge.css +65 -0
  41. package/src/components/button/button.css +160 -31
  42. package/src/components/calendar/calendar.css +7 -3
  43. package/src/components/card/card.css +26 -10
  44. package/src/components/carousel/carousel.css +90 -5
  45. package/src/components/chat-composer/chat-composer.css +69 -0
  46. package/src/components/chat-message/chat-message.css +93 -0
  47. package/src/components/chat-steps/chat-steps.css +132 -0
  48. package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
  49. package/src/components/checkbox/checkbox.css +14 -1
  50. package/src/components/command/command.css +35 -5
  51. package/src/components/connected-panel/connected-panel.css +4 -19
  52. package/src/components/destination-link/destination-link.css +28 -0
  53. package/src/components/dialog/dialog.css +2 -2
  54. package/src/components/drawer/drawer.css +15 -2
  55. package/src/components/empty/empty.css +2 -4
  56. package/src/components/field/field.css +14 -9
  57. package/src/components/form/form.css +1 -1
  58. package/src/components/frame/frame.css +1 -1
  59. package/src/components/input/input.css +72 -4
  60. package/src/components/input-otp/input-otp.css +2 -2
  61. package/src/components/item/item.css +72 -2
  62. package/src/components/load-more-trigger/load-more-trigger.css +17 -0
  63. package/src/components/marquee/marquee.css +25 -3
  64. package/src/components/menu/menu.css +36 -1
  65. package/src/components/message/message.css +170 -0
  66. package/src/components/navigation-menu/navigation-menu.css +22 -4
  67. package/src/components/panel-setting-button/panel-setting-button.css +14 -0
  68. package/src/components/progress/progress.css +31 -1
  69. package/src/components/radio/radio.css +32 -5
  70. package/src/components/rating/rating.css +120 -0
  71. package/src/components/resizable/resizable.css +1 -1
  72. package/src/components/scroll-area/scroll-area.css +1 -1
  73. package/src/components/scrollable-list/scrollable-list.css +10 -5
  74. package/src/components/segmented-control/segmented-control.css +14 -0
  75. package/src/components/select/select.css +11 -3
  76. package/src/components/separator/separator.css +3 -1
  77. package/src/components/sheet/sheet.css +8 -4
  78. package/src/components/sidebar/sidebar.css +54 -24
  79. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
  80. package/src/components/slider/slider.css +11 -6
  81. package/src/components/switch/switch.css +30 -11
  82. package/src/components/table/table.css +118 -10
  83. package/src/components/tabs/tabs.css +10 -0
  84. package/src/components/textarea/textarea.css +3 -3
  85. package/src/components/toaster/toaster.css +32 -0
  86. package/src/components/toggle/toggle.css +20 -8
  87. package/src/components/toggle-group/toggle-group.css +79 -1
  88. package/src/media/media-lightbox/media-lightbox.css +32 -2
  89. package/src/styles/recipes.css +10 -0
  90. package/src/styles/reset.css +13 -2
  91. package/src/styles/utilities.css +41 -28
  92. package/dist/button-CfLIHg-R.d.ts +0 -13
  93. package/dist/chunk-GDUMA6FI.js.map +0 -1
  94. package/dist/chunk-J77BAGTA.js.map +0 -1
  95. package/dist/chunk-NBHGMMQN.js.map +0 -1
  96. package/dist/chunk-R67OZVA2.js.map +0 -1
@@ -21,6 +21,22 @@
21
21
  color: var(--a63-text-secondary);
22
22
  }
23
23
 
24
+ /* Collapsible group: the label is a full-width disclosure button. */
25
+ .a63-SidebarNavTree-group-trigger {
26
+ width: 100%;
27
+ gap: var(--a63-space-1);
28
+ border: 0;
29
+ background: transparent;
30
+ cursor: pointer;
31
+ text-align: start;
32
+ }
33
+ .a63-SidebarNavTree-group-trigger:hover {
34
+ color: var(--sidebar-fg);
35
+ }
36
+ .a63-SidebarNavTree-group-trigger[data-panel-open] .a63-SidebarNavTree-chevron {
37
+ rotate: 180deg;
38
+ }
39
+
24
40
  .a63-SidebarNavTree-group-content {
25
41
  margin-block-start: var(--a63-space-0_5);
26
42
  }
@@ -29,7 +45,9 @@
29
45
  gap: var(--a63-space-0_5);
30
46
  }
31
47
 
32
- /* Nav rows: transparent by default, tinted accent on hover, primary when active. */
48
+ /* Nav rows: transparent by default, a half hover plate on hover. The active row
49
+ is a full neutral plate with primary text (tone="neutral", the default), or
50
+ accent text on a clear row (tone="accent"). */
33
51
  .a63-SidebarNavTree-item {
34
52
  /* Content floor — see button.css. */
35
53
  --nav-row-content-floor: calc(var(--typography-xs-line-height) + 2 * var(--a63-space-0_5));
@@ -51,12 +69,17 @@
51
69
  background-color: color-mix(in oklch, var(--sidebar-accent) 50%, transparent);
52
70
  color: var(--sidebar-fg);
53
71
  }
54
- .a63-SidebarNavTree-item[data-active='true'] {
55
- background-color: transparent;
72
+ .a63-SidebarNavTree-item[data-active='true'],
73
+ .a63-SidebarNavTree-item[data-active='true']:hover {
74
+ background-color: var(--sidebar-accent);
56
75
  font-weight: 500;
76
+ color: var(--sidebar-fg);
77
+ }
78
+ .a63-SidebarNavTree-item[data-active='true'][data-tone='accent'] {
79
+ background-color: transparent;
57
80
  color: var(--a63-text-accent);
58
81
  }
59
- .a63-SidebarNavTree-item[data-active='true']:hover {
82
+ .a63-SidebarNavTree-item[data-active='true'][data-tone='accent']:hover {
60
83
  background-color: color-mix(in oklch, var(--sidebar-accent) 50%, transparent);
61
84
  color: var(--a63-text-accent);
62
85
  }
@@ -106,10 +129,20 @@
106
129
  .a63-SidebarNavTree-row:hover .a63-SidebarNavTree-row-item {
107
130
  color: var(--sidebar-fg);
108
131
  }
109
- .a63-SidebarNavTree-row-item[data-active='true'] {
132
+ .a63-SidebarNavTree-row-item[data-active='true'],
133
+ .a63-SidebarNavTree-row-item[data-active='true']:hover {
110
134
  background-color: transparent;
111
135
  }
136
+ /* A neutral active section paints the plate on the whole row (link + toggle). */
137
+ .a63-SidebarNavTree-row:has(
138
+ > .a63-SidebarNavTree-row-item[data-active='true']:not([data-tone='accent'])
139
+ ) {
140
+ background-color: var(--sidebar-accent);
141
+ }
112
142
  .a63-SidebarNavTree-row:hover .a63-SidebarNavTree-row-item[data-active='true'] {
143
+ color: var(--sidebar-fg);
144
+ }
145
+ .a63-SidebarNavTree-row:hover .a63-SidebarNavTree-row-item[data-active='true'][data-tone='accent'] {
113
146
  color: var(--a63-text-accent);
114
147
  }
115
148
 
@@ -1,7 +1,8 @@
1
1
  /*
2
2
  * Slider recipe — a single-thumb value control. The rail is a recessed track
3
3
  * (track archetype: --a63-track-shadow inset well over --a63-surface-muted); the
4
- * filled portion is the brand accent; the thumb is a raised control that reads the
4
+ * filled portion is the brand accent (or the primary text colour with
5
+ * tone="neutral"); the thumb is a raised control that reads the
5
6
  * CONTROL archetype shadow. Geometry via local --slider-* constants.
6
7
  */
7
8
 
@@ -33,7 +34,7 @@
33
34
  position: relative;
34
35
  width: 100%;
35
36
  height: var(--slider-rail);
36
- border-radius: var(--radius-full);
37
+ border-radius: var(--radius-pill);
37
38
  background-color: var(--a63-surface-muted);
38
39
  box-shadow: var(--a63-track-shadow);
39
40
  }
@@ -41,21 +42,25 @@
41
42
  .a63-Slider-indicator {
42
43
  position: absolute;
43
44
  height: 100%;
44
- border-radius: var(--radius-full);
45
+ border-radius: var(--radius-pill);
45
46
  background-color: var(--a63-action-primary);
46
47
  }
48
+ /* tone="neutral": the primary text colour on the muted track. */
49
+ .a63-Slider[data-tone='neutral'] .a63-Slider-indicator {
50
+ background-color: var(--a63-text-primary);
51
+ }
47
52
 
48
53
  .a63-Slider-thumb {
49
54
  position: relative;
50
55
  box-sizing: border-box;
51
56
  width: var(--slider-thumb);
52
57
  height: var(--slider-thumb);
53
- border: 1px solid var(--a63-border-control);
54
- border-radius: var(--radius-full);
58
+ border: 1px solid var(--a63-border-input);
59
+ border-radius: var(--radius-pill);
55
60
  background-color: var(--a63-surface-overlay);
56
61
  box-shadow:
57
62
  var(--a63-control-shadow),
58
- 0 1px 2px color-mix(in oklch, black 20%, transparent);
63
+ 0 1px 2px color-mix(in oklch, var(--a63-shadow-color) 20%, transparent);
59
64
  outline: none;
60
65
  transition: scale var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
61
66
  }
@@ -4,9 +4,11 @@
4
4
  * --a63-selection-* tokens) + the thumb slides right; a press squishes the thumb.
5
5
  *
6
6
  * Geometry is driven by --a63-switch-thumb-size, so design language reshapes it for
7
- * free (iOS enlarges the token → a bigger pill). With border-box + 1px border + 2px
8
- * padding, the content box is exactly thumb·2 wide and thumb tall, so the checked
9
- * travel is a clean translateX(thumb).
7
+ * free (iOS enlarges the token → a bigger pill), and --a63-switch-thumb-aspect, the
8
+ * knob's width over its height (1 = round; the phone form factor widens it to an
9
+ * iOS 26 pill). With border-box + 1px border + 2px padding, the content box is the
10
+ * knob plus one thumb height of travel wide and thumb tall, so the checked travel is
11
+ * a clean translateX(thumb).
10
12
  *
11
13
  * Axis-dependent selection tokens resolve HERE (the use-site) via
12
14
  * var(--a63-selection-X, <live semantic>), so mode/theme/brand read from the
@@ -20,11 +22,13 @@
20
22
 
21
23
  .a63-Switch {
22
24
  --switch-thumb: var(--a63-switch-thumb-size);
25
+ --switch-thumb-aspect: var(--a63-switch-thumb-aspect, 1);
23
26
  --switch-track: var(--a63-selection-track-off, var(--a63-surface-muted));
24
- --switch-border: var(--a63-selection-border, var(--a63-border-control));
27
+ --switch-border: var(--a63-selection-border, var(--a63-border-input));
25
28
  --switch-accent: var(--a63-selection-accent, var(--a63-action-primary));
26
29
  --switch-focus-ring: var(--a63-selection-focus-ring, var(--a63-focus-ring));
27
30
  --switch-thumb-bg: var(--a63-selection-thumb);
31
+ /* craft-allow: raw-color — the selection contract's own default, for hosts that skip the contracts */
28
32
  --switch-thumb-fg: var(--a63-selection-thumb-fg, color-mix(in oklch, black 78%, transparent));
29
33
  --switch-shadow: var(--a63-choice-box-shadow, none);
30
34
  --switch-shadow-checked: var(--a63-choice-box-shadow-checked, var(--switch-shadow));
@@ -36,11 +40,11 @@
36
40
  display: inline-flex;
37
41
  flex: none;
38
42
  align-items: center;
39
- width: calc(var(--switch-thumb) * 2 + 6px);
43
+ width: calc(var(--switch-thumb) * (1 + var(--switch-thumb-aspect)) + 6px);
40
44
  height: calc(var(--switch-thumb) + 6px);
41
45
  padding: 2px;
42
46
  border: 1px solid var(--switch-border);
43
- border-radius: var(--radius-full);
47
+ border-radius: var(--radius-pill);
44
48
  background-color: var(--switch-track);
45
49
  background-image: none;
46
50
  box-shadow: var(--switch-current-shadow);
@@ -70,18 +74,21 @@
70
74
  .a63-Switch-thumb {
71
75
  --thumb-x: 0;
72
76
  --thumb-sx: 1;
77
+ /* 1 slides the checked thumb right; -1 under dir="rtl", where the track starts
78
+ on the right. */
79
+ --thumb-dir: 1;
73
80
 
74
81
  box-sizing: border-box;
75
82
  display: grid;
76
83
  place-items: center;
77
84
  height: 100%;
78
- aspect-ratio: 1;
79
- border: 1px solid color-mix(in oklch, black 8%, transparent);
80
- border-radius: var(--radius-full);
85
+ aspect-ratio: var(--switch-thumb-aspect);
86
+ border: 1px solid color-mix(in oklch, var(--a63-shadow-color) 8%, transparent);
87
+ border-radius: var(--radius-pill);
81
88
  background: var(--switch-thumb-bg);
82
89
  color: var(--switch-thumb-fg);
83
- box-shadow: 0 1px 2px color-mix(in oklch, black 20%, transparent);
84
- transform: translateX(var(--thumb-x)) scaleX(var(--thumb-sx));
90
+ box-shadow: 0 1px 2px color-mix(in oklch, var(--a63-shadow-color) 20%, transparent);
91
+ transform: translateX(calc(var(--thumb-x) * var(--thumb-dir))) scaleX(var(--thumb-sx));
85
92
  transform-origin: left center;
86
93
  transition:
87
94
  transform var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
@@ -115,6 +122,18 @@
115
122
  transform-origin: right center;
116
123
  }
117
124
 
125
+ /* Right-to-left: the thumb starts on the right and slides left, and the press
126
+ squash grows away from whichever edge it rests on. */
127
+ .a63-Switch-thumb:dir(rtl) {
128
+ --thumb-dir: -1;
129
+
130
+ transform-origin: right center;
131
+ }
132
+
133
+ .a63-Switch[data-checked] .a63-Switch-thumb:dir(rtl) {
134
+ transform-origin: left center;
135
+ }
136
+
118
137
  .a63-Switch:hover:not([data-disabled]):not([data-checked]) {
119
138
  border-color: color-mix(in oklch, var(--switch-border), var(--a63-text-primary) 20%);
120
139
  }
@@ -7,14 +7,21 @@
7
7
  * corners, and a hairline body outline.
8
8
  *
9
9
  * Token notes: prod's app-level --theme-row-hover/selected-background /
10
- * -foreground vars map to canonical DS semantics — row hover to
11
- * --a63-surface-control-hover, selected row to the brand accent
12
- * (--a63-action-primary + -foreground). text-muted-foreground ->
10
+ * -foreground vars map to canonical DS semantics — row hover to half of
11
+ * --a63-selected-background, selected row to the shared selection tint
12
+ * (--a63-selected-background + -foreground, as Item uses; tone="accent" swaps in
13
+ * --a63-selected-accent-*). text-muted-foreground ->
13
14
  * --a63-text-secondary, bg-background -> --a63-surface-page, borders ->
14
15
  * --a63-border-subtle.
15
16
  */
16
17
 
17
18
  .a63-Table-container {
19
+ --table-selected-background: var(--a63-selected-background);
20
+ --table-selected-foreground: var(--a63-selected-foreground);
21
+ /* Row hover is half the neutral selected fill, so a selected row stays
22
+ visibly stronger than a hovered one in either tone. */
23
+ --table-row-hover: color-mix(in oklch, var(--a63-selected-background) 50%, transparent);
24
+
18
25
  position: relative;
19
26
  width: 100%;
20
27
  overflow-x: auto;
@@ -84,11 +91,110 @@
84
91
  transition: background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
85
92
  }
86
93
  .a63-Table-row:hover {
87
- background: var(--a63-surface-control-hover);
94
+ background: var(--table-row-hover);
88
95
  }
89
96
  .a63-Table-row[data-state='selected'] {
90
- background: var(--a63-action-primary);
91
- color: var(--a63-action-primary-foreground);
97
+ background: var(--table-selected-background);
98
+ color: var(--table-selected-foreground);
99
+ }
100
+ /* tone="accent" opts selected rows into the primary wash; the default neutral
101
+ tone keeps the muted fill above. Sticky cells and framed cells read the same
102
+ local wash. */
103
+ .a63-Table-container[data-tone='accent'] {
104
+ --table-selected-background: var(--a63-selected-accent-background);
105
+ --table-selected-foreground: var(--a63-selected-accent-foreground);
106
+ }
107
+
108
+ /* ── Sizes ─────────────────────────────────────────────────────────────
109
+ `sm` takes its block padding from the row contract, so the density axis
110
+ tightens it further. `default` keeps the cells above. */
111
+ .a63-Table-container[data-size='sm'] .a63-Table-head {
112
+ height: 2rem;
113
+ }
114
+ .a63-Table-container[data-size='sm'] .a63-Table-cell {
115
+ padding-block: var(--a63-row-padding-block-xs);
116
+ }
117
+ /* A checkbox or radio keeps its hit area through its ::after overlay, so in a
118
+ dense table it drops the layout margin that would set the row height. */
119
+ .a63-Table-container[data-size='sm']
120
+ :is(.a63-Table-head, .a63-Table-cell)
121
+ :is(.a63-Checkbox, .a63-Radio) {
122
+ margin: 0;
123
+ }
124
+ /* Outside a phone, a row's checkbox, radio or button (a row menu, an inline
125
+ action) keeps its own size and hit area but counts as 1rem in the row's
126
+ layout, centred on the text, so a dense row stays 8 + 16 + 8 + 1 = 33px
127
+ whatever controls it holds. A phone keeps its controls in the row: they are
128
+ taller there than its 4px row padding could absorb. */
129
+ .a63-Table-container[data-size='sm']:not([data-a63-form-factor='phone'] *)
130
+ :is(.a63-Table-head, .a63-Table-cell)
131
+ :is(.a63-Checkbox, .a63-Radio, .a63-Button) {
132
+ vertical-align: middle;
133
+ }
134
+ .a63-Table-container[data-size='sm']:not([data-a63-form-factor='phone'] *)
135
+ :is(.a63-Table-head, .a63-Table-cell)
136
+ .a63-Checkbox {
137
+ margin-block: calc((1rem - var(--checkbox-size)) / 2);
138
+ }
139
+ .a63-Table-container[data-size='sm']:not([data-a63-form-factor='phone'] *)
140
+ :is(.a63-Table-head, .a63-Table-cell)
141
+ .a63-Radio {
142
+ margin-block: calc((1rem - var(--radio-size)) / 2);
143
+ }
144
+ .a63-Table-container[data-size='sm']:not([data-a63-form-factor='phone'] *)
145
+ :is(.a63-Table-head, .a63-Table-cell)
146
+ .a63-Button {
147
+ margin-block: calc((1rem - var(--button-height)) / 2);
148
+ }
149
+
150
+ /* ── Plain variant: no dividers between body rows ─────────────────────── */
151
+ .a63-Table-container[data-variant='plain'] .a63-Table-body .a63-Table-row {
152
+ border-bottom: 0;
153
+ }
154
+
155
+ /* ── Sticky cells ──────────────────────────────────────────────────────────
156
+ A pinned cell paints the row's surface itself, so content scrolling under
157
+ it stays hidden. Set --table-sticky-background on the container when the
158
+ table sits on a surface other than the page. The hairline is a pseudo-element
159
+ because collapsed borders do not travel with a sticky cell. */
160
+ .a63-Table-head[data-sticky],
161
+ .a63-Table-cell[data-sticky] {
162
+ position: sticky;
163
+ z-index: 1;
164
+ background-color: var(--table-sticky-background, var(--a63-surface-page));
165
+ }
166
+ .a63-Table-head[data-sticky='start'],
167
+ .a63-Table-cell[data-sticky='start'] {
168
+ inset-inline-start: 0;
169
+ }
170
+ .a63-Table-head[data-sticky='end'],
171
+ .a63-Table-cell[data-sticky='end'] {
172
+ inset-inline-end: 0;
173
+ }
174
+ .a63-Table-head[data-sticky]::after,
175
+ .a63-Table-cell[data-sticky]::after {
176
+ position: absolute;
177
+ inset-block: 0;
178
+ width: 1px;
179
+ background: var(--a63-border-subtle);
180
+ content: '';
181
+ }
182
+ .a63-Table-head[data-sticky='start']::after,
183
+ .a63-Table-cell[data-sticky='start']::after {
184
+ inset-inline-end: 0;
185
+ }
186
+ .a63-Table-head[data-sticky='end']::after,
187
+ .a63-Table-cell[data-sticky='end']::after {
188
+ inset-inline-start: 0;
189
+ }
190
+ .a63-Table-row:hover > [data-sticky] {
191
+ background-image: linear-gradient(var(--table-row-hover), var(--table-row-hover));
192
+ }
193
+ .a63-Table-row[data-state='selected'] > [data-sticky] {
194
+ background-image: linear-gradient(
195
+ var(--table-selected-background),
196
+ var(--table-selected-background)
197
+ );
92
198
  }
93
199
 
94
200
  /* ── Footer ────────────────────────────────────────────────────────────── */
@@ -137,11 +243,13 @@
137
243
  [data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] {
138
244
  background: transparent;
139
245
  }
140
- /* Cells paint the frame's page surface, so a selected row fills its cells with
141
- the selection color that its foreground (--a63-action-primary-foreground) is
142
- meant for. */
246
+ /* Cells paint the frame's page surface, so a selected row lays the translucent
247
+ selection tint over that surface in each cell. */
143
248
  [data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] .a63-Table-cell {
144
- background: var(--a63-action-primary);
249
+ background-image: linear-gradient(
250
+ var(--table-selected-background),
251
+ var(--table-selected-background)
252
+ );
145
253
  }
146
254
  [data-slot='frame'] .a63-Table-body .a63-Table-cell {
147
255
  border-bottom: 1px solid var(--a63-border-subtle);
@@ -295,6 +295,16 @@
295
295
  transform: translateY(var(--active-tab-top));
296
296
  }
297
297
 
298
+ /* Forced colors drop the indicator's plate, bar and shadow and flatten both
299
+ text colours, so the selected tab of every variant takes the system
300
+ selection colours. */
301
+ @media (forced-colors: active) {
302
+ .a63-Tabs-list[data-variant] .a63-Tabs-tab[data-active] {
303
+ background-color: Highlight;
304
+ color: HighlightText;
305
+ }
306
+ }
307
+
298
308
  /* ── Panel ─────────────────────────────────────────────────────────────── */
299
309
 
300
310
  .a63-Tabs-panel {
@@ -11,13 +11,13 @@
11
11
  var()s pick up the field's own mode/theme/brand (the resolve-at-declaration
12
12
  trap). Mirrors .a63-Input. */
13
13
  --field-background: var(--a63-field-background, var(--a63-surface-control));
14
- --field-border: var(--a63-field-border, var(--a63-border-control));
14
+ --field-border: var(--a63-field-border, var(--a63-border-input));
15
15
  --field-radius: var(--a63-field-radius, var(--a63-control-radius));
16
16
  --field-shadow: var(--a63-field-shadow);
17
17
  --field-focus-ring: var(--a63-field-focus-ring, var(--a63-focus-ring));
18
18
  --field-focus-border: var(
19
19
  --a63-field-focus-border,
20
- color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-control))
20
+ color-mix(in oklch, var(--a63-action-primary) 62%, var(--a63-border-input))
21
21
  );
22
22
  --field-padding-inline: var(--a63-control-padding-inline-md);
23
23
  --field-padding-block: var(--a63-space-2, 0.5rem);
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .a63-Textarea-field::placeholder {
66
- color: var(--a63-text-secondary);
66
+ color: var(--a63-text-tertiary);
67
67
  opacity: 1;
68
68
  }
69
69
 
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Toaster recipe — the inverse variant's compact pill. Sonner positions each
3
+ * toast and draws its fill, text and corner from the host's --normal-* and
4
+ * --border-radius (set by Toaster). Its own sheet is unlayered, so this file only
5
+ * sets what that sheet leaves alone, and custom properties it reads on the toast.
6
+ */
7
+
8
+ .a63-Toast--inverse {
9
+ /* Sonner sizes a toast by --width (356px on the host); the pill hugs its text. */
10
+ --width: fit-content;
11
+ --toast-icon-margin-start: 0;
12
+ --toast-icon-margin-end: 0;
13
+ --toast-svg-margin-start: 0;
14
+ --toast-svg-margin-end: 0;
15
+
16
+ max-width: 100%;
17
+ inset-inline: 0;
18
+ margin-inline: auto;
19
+ }
20
+
21
+ .a63-Toast--inverse[data-x-position='left'] {
22
+ margin-inline: 0 auto;
23
+ }
24
+
25
+ .a63-Toast--inverse[data-x-position='right'] {
26
+ margin-inline: auto 0;
27
+ }
28
+
29
+ /* The status icon (a spinner, a check) follows the message. */
30
+ .a63-Toast--inverse [data-icon] {
31
+ order: 1;
32
+ }
@@ -22,14 +22,11 @@
22
22
  --a63-toggle-hover-background,
23
23
  var(--a63-segment-hover-background, var(--a63-surface-control-hover))
24
24
  );
25
- --toggle-on-background: var(
26
- --a63-toggle-on-background,
27
- var(--a63-segment-selected-background, var(--a63-surface-muted))
28
- );
29
- --toggle-on-foreground: var(
30
- --a63-toggle-on-foreground,
31
- var(--a63-segment-selected-foreground, var(--a63-text-primary))
32
- );
25
+ /* A standalone pressed toggle sits on the page, not on a segment track, so it
26
+ takes the high-emphasis neutral solid (Button `default`, the pressed pill)
27
+ rather than the segment plate, which matches the page in several themes. */
28
+ --toggle-on-background: var(--a63-toggle-on-background, var(--a63-action-neutral));
29
+ --toggle-on-foreground: var(--a63-toggle-on-foreground, var(--a63-action-neutral-foreground));
33
30
  --toggle-primary-background: var(
34
31
  --a63-toggle-primary-background,
35
32
  var(--a63-segment-primary-background, var(--a63-selection-accent, var(--a63-action-primary)))
@@ -146,6 +143,12 @@
146
143
  color: var(--toggle-primary-foreground);
147
144
  }
148
145
 
146
+ /* Subtle: a pressed icon toggle in a toolbar or player bar shows its state in
147
+ the accent color alone, with no fill. */
148
+ .a63-Toggle[data-pressed][data-tone='subtle'] {
149
+ color: var(--a63-text-accent);
150
+ }
151
+
149
152
  .a63-Toggle[data-disabled] {
150
153
  cursor: not-allowed;
151
154
  opacity: var(--a63-toggle-disabled-opacity, var(--a63-segment-disabled-opacity, 0.56));
@@ -178,6 +181,15 @@
178
181
  font-size: var(--a63-control-font-size-lg);
179
182
  }
180
183
 
184
+ /* Forced colors replace fills and text colours with the same system colours,
185
+ so a pressed toggle of any tone takes the system selection colours. */
186
+ @media (forced-colors: active) {
187
+ .a63-Toggle[data-pressed][data-tone] {
188
+ background-color: Highlight;
189
+ color: HighlightText;
190
+ }
191
+ }
192
+
181
193
  @media (prefers-reduced-motion: reduce) {
182
194
  .a63-Toggle,
183
195
  .a63-Toggle-content {
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  .a63-ToggleGroup .a63-Toggle-content {
31
- filter: drop-shadow(0 1px 0 color-mix(in oklch, black 5%, transparent));
31
+ filter: drop-shadow(0 1px 0 color-mix(in oklch, var(--a63-shadow-color) 5%, transparent));
32
32
  }
33
33
 
34
34
  .a63-ToggleGroup .a63-Toggle:hover:not([data-pressed]):not([data-disabled]) {
@@ -85,6 +85,75 @@
85
85
  border-block-start-width: 0;
86
86
  }
87
87
 
88
+ /* ── Pills variant ─────────────────────────────────────────────────────
89
+ Separate capsules with a gap, for filter rows. Undoes the welded chrome
90
+ above (seams, shared radii, segment gel) at the same or higher
91
+ specificity, so it must stay after those rules. A pill is drawn by its fill
92
+ alone: the muted surface, with a transparent border that keeps every pill
93
+ the same size; the pressed pill is the neutral solid. */
94
+ .a63-ToggleGroup[data-variant='pills'] {
95
+ flex-wrap: wrap;
96
+ gap: var(--a63-space-2);
97
+ border-radius: 0;
98
+ }
99
+ .a63-ToggleGroup[data-variant='pills'] .a63-Toggle.a63-Toggle {
100
+ border-width: var(--a63-control-border-width);
101
+ border-radius: var(--radius-pill);
102
+ border-color: transparent;
103
+ background-color: var(--a63-surface-muted);
104
+ background-image: none;
105
+ color: var(--a63-text-primary);
106
+ }
107
+ .a63-ToggleGroup[data-variant='pills'] .a63-Toggle:hover:not([data-pressed]):not([data-disabled]) {
108
+ background-color: var(--a63-surface-control-hover);
109
+ }
110
+ .a63-ToggleGroup[data-variant='pills'] .a63-Toggle[data-pressed][data-tone='neutral'] {
111
+ border-color: transparent;
112
+ background-color: var(--a63-action-neutral);
113
+ color: var(--a63-action-neutral-foreground);
114
+ }
115
+ .a63-ToggleGroup[data-variant='pills'] .a63-Toggle[data-pressed][data-tone='accent'] {
116
+ border-color: transparent;
117
+ background-color: var(--a63-action-primary);
118
+ color: var(--a63-action-primary-foreground);
119
+ }
120
+ .a63-ToggleGroup[data-variant='pills'] .a63-Toggle[data-pressed][data-tone='subtle'] {
121
+ color: var(--a63-text-accent);
122
+ }
123
+
124
+ /* ── Ghost variant ─────────────────────────────────────────────────────
125
+ Quiet toolbar filters (All / Read / Unread): the items are plain text with a
126
+ small gap, and only the selected one gets a fill — the soft selection fill,
127
+ not a solid. Like pills it undoes the welded chrome above, so it must stay
128
+ after those rules. */
129
+ .a63-ToggleGroup[data-variant='ghost'] {
130
+ flex-wrap: wrap;
131
+ gap: var(--a63-space-1);
132
+ border-radius: 0;
133
+ }
134
+ .a63-ToggleGroup[data-variant='ghost'] .a63-Toggle.a63-Toggle {
135
+ border-width: var(--a63-control-border-width);
136
+ border-radius: var(--toggle-radius);
137
+ border-color: transparent;
138
+ background-color: transparent;
139
+ background-image: none;
140
+ box-shadow: none;
141
+ color: var(--a63-text-secondary);
142
+ }
143
+ .a63-ToggleGroup[data-variant='ghost'] .a63-Toggle:hover:not([data-pressed]):not([data-disabled]) {
144
+ background-color: var(--a63-surface-control-hover);
145
+ color: var(--a63-text-primary);
146
+ }
147
+ .a63-ToggleGroup[data-variant='ghost'] .a63-Toggle[data-pressed][data-tone='neutral'],
148
+ .a63-ToggleGroup[data-variant='ghost'] .a63-Toggle[data-pressed][data-tone='subtle'] {
149
+ background-color: var(--a63-selected-background);
150
+ color: var(--a63-selected-foreground);
151
+ }
152
+ .a63-ToggleGroup[data-variant='ghost'] .a63-Toggle[data-pressed][data-tone='accent'] {
153
+ background-color: var(--a63-selected-accent-background);
154
+ color: var(--a63-selected-accent-foreground);
155
+ }
156
+
88
157
  /* ── Separator ─────────────────────────────────────────────────────────── */
89
158
 
90
159
  .a63-ToggleGroup-separator {
@@ -100,3 +169,12 @@
100
169
  .a63-ToggleGroup-separator[data-orientation='horizontal'] {
101
170
  height: var(--a63-toggle-border-width, var(--a63-control-border-width));
102
171
  }
172
+
173
+ /* Forced colors drop the cell fill, gloss and shadow, so the pressed cell of
174
+ every variant takes the system selection colours. */
175
+ @media (forced-colors: active) {
176
+ .a63-ToggleGroup[data-variant] .a63-Toggle.a63-Toggle[data-pressed] {
177
+ background-color: Highlight;
178
+ color: HighlightText;
179
+ }
180
+ }
@@ -41,13 +41,43 @@
41
41
  background-color: var(--a63-lightbox-on-media-surface-hover);
42
42
  }
43
43
 
44
+ /*
45
+ * Icon buttons the caller puts in the toolbar slot match the built-in ones
46
+ * beside them (`size-11`). Button's largest icon step is 40px, and a 4px
47
+ * smaller circle in the same row reads as a mistake rather than a choice.
48
+ */
49
+ [data-slot='media-lightbox-toolbar'] .a63-Button:is([data-size^='icon']) {
50
+ --button-height: 2.75rem;
51
+ }
52
+
53
+ /*
54
+ * An overlay Button in the toolbar takes the same glass as the built-in
55
+ * controls beside it (`.a63-media-lightbox-on-media`): Button's own overlay is
56
+ * a lighter, more translucent fill, which read as a different control in the
57
+ * same row.
58
+ */
59
+ [data-slot='media-lightbox-toolbar']
60
+ .a63-Button:is([data-variant='overlay'], [data-variant='glass']) {
61
+ --button-background: var(--a63-lightbox-on-media-surface);
62
+ --button-border-color: var(--a63-lightbox-on-media-border);
63
+ --button-foreground: var(--a63-lightbox-on-media-fg);
64
+ --button-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
65
+ --button-state-hover-background: var(--a63-lightbox-on-media-surface-hover);
66
+ --button-state-hover-border-color: var(--a63-lightbox-on-media-border);
67
+
68
+ background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
69
+ background-blend-mode: normal, var(--a63-overlay-texture-blend);
70
+ backdrop-filter: var(--a63-overlay-backdrop);
71
+ }
72
+
44
73
  /*
45
74
  * Nothing blurred sits over the track while it moves. A `backdrop-filter`
46
75
  * has to re-sample the photo moving beneath it on every frame, and a blur over
47
76
  * the moving photo is what made paging judder before. The controls keep their
48
77
  * opaque-enough backplate, so they stay legible for the moment the blur is off.
49
78
  */
50
- [data-slot='media-lightbox'][data-paging] .a63-media-lightbox-on-media {
79
+ [data-slot='media-lightbox'][data-paging] .a63-media-lightbox-on-media,
80
+ [data-slot='media-lightbox'][data-paging] [data-slot='media-lightbox-toolbar'] .a63-Button {
51
81
  backdrop-filter: none;
52
82
  }
53
83
 
@@ -171,7 +201,7 @@
171
201
  align-items: center;
172
202
  justify-content: center;
173
203
  border: var(--a63-overlay-border-width) var(--a63-overlay-border-style) var(--a63-border-subtle);
174
- border-radius: var(--a63-overlay-radius, var(--radius-full, 9999px));
204
+ border-radius: var(--a63-overlay-radius, var(--radius-pill, 9999px));
175
205
  background-color: var(--a63-surface-overlay);
176
206
  background-image: var(--a63-overlay-gloss), var(--a63-overlay-texture-image);
177
207
  background-blend-mode: normal, var(--a63-overlay-texture-blend);