@atom63/ui-react 0.2.0-beta.1 → 0.2.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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -50
  3. package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
  4. package/dist/calendar/index.d.ts +7 -0
  5. package/dist/calendar/index.js +116 -0
  6. package/dist/calendar/index.js.map +1 -0
  7. package/dist/chunk-GDUMA6FI.js +2678 -0
  8. package/dist/chunk-GDUMA6FI.js.map +1 -0
  9. package/dist/{chunk-STCXERLM.js → chunk-J77BAGTA.js} +8 -148
  10. package/dist/chunk-J77BAGTA.js.map +1 -0
  11. package/dist/chunk-NBHGMMQN.js +135 -0
  12. package/dist/chunk-NBHGMMQN.js.map +1 -0
  13. package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
  14. package/dist/chunk-R67OZVA2.js.map +1 -0
  15. package/dist/chunk-UPPHQLZ2.js +18 -0
  16. package/dist/chunk-UPPHQLZ2.js.map +1 -0
  17. package/dist/{chunk-MXNO63TC.js → chunk-X5L5DEUZ.js} +597 -290
  18. package/dist/chunk-X5L5DEUZ.js.map +1 -0
  19. package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
  20. package/dist/index-BDzW8upQ.d.ts +442 -0
  21. package/dist/index.d.ts +56 -458
  22. package/dist/index.js +344 -3038
  23. package/dist/index.js.map +1 -1
  24. package/dist/layout/index.d.ts +8 -6
  25. package/dist/layout/index.js +16 -14
  26. package/dist/layout/index.js.map +1 -1
  27. package/dist/media/index.d.ts +15 -4
  28. package/dist/media/index.js +213 -46
  29. package/dist/media/index.js.map +1 -1
  30. package/dist/media/media-lightbox/parts/index.d.ts +23 -15
  31. package/dist/media/media-lightbox/parts/index.js +3 -2
  32. package/dist/preview/index.d.ts +16 -0
  33. package/dist/preview/index.js +6 -0
  34. package/dist/preview/index.js.map +1 -0
  35. package/dist/theme/index.d.ts +2 -2
  36. package/dist/theme/index.js +82 -37
  37. package/dist/theme/index.js.map +1 -1
  38. package/package.json +36 -27
  39. package/src/components/accordion/accordion.css +2 -4
  40. package/src/components/alert-dialog/alert-dialog.css +1 -1
  41. package/src/components/autocomplete/autocomplete.css +3 -7
  42. package/src/components/badge/badge.css +48 -51
  43. package/src/components/breadcrumb/breadcrumb.css +1 -2
  44. package/src/components/button/button.css +8 -6
  45. package/src/components/button-group/button-group.css +17 -1
  46. package/src/components/calendar/calendar.css +6 -9
  47. package/src/components/card/card.css +2 -2
  48. package/src/components/carousel/carousel.css +4 -8
  49. package/src/components/checkbox/checkbox.css +1 -1
  50. package/src/components/command/command.css +8 -0
  51. package/src/components/connected-panel/connected-panel.css +3 -2
  52. package/src/components/dialog/dialog.css +1 -1
  53. package/src/components/drawer/drawer.css +1 -1
  54. package/src/components/empty/empty.css +2 -2
  55. package/src/components/feedback-state/feedback-state.css +1 -1
  56. package/src/components/field/field.css +4 -4
  57. package/src/components/form/form.css +2 -2
  58. package/src/components/input/input.css +2 -6
  59. package/src/components/input-otp/input-otp.css +4 -11
  60. package/src/components/item/item.css +3 -3
  61. package/src/components/menu/menu.css +5 -4
  62. package/src/components/menubar/menubar.css +4 -1
  63. package/src/components/navigation-menu/navigation-menu.css +5 -1
  64. package/src/components/panel-setting-button/panel-setting-button.css +1 -1
  65. package/src/components/radio/radio.css +1 -1
  66. package/src/components/resizable/resizable.css +1 -1
  67. package/src/components/scroll-area/scroll-area.css +1 -2
  68. package/src/components/scrollable-list/scrollable-list.css +4 -7
  69. package/src/components/segmented-control/segmented-control.css +8 -1
  70. package/src/components/select/select.css +2 -6
  71. package/src/components/sidebar/sidebar.css +12 -12
  72. package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +8 -8
  73. package/src/components/slider/slider.css +6 -6
  74. package/src/components/switch/switch.css +3 -3
  75. package/src/components/table/table.css +7 -1
  76. package/src/components/tabs/tabs.css +15 -1
  77. package/src/components/textarea/textarea.css +2 -6
  78. package/src/components/toggle/toggle.css +5 -4
  79. package/src/components/toggle-group/toggle-group.css +4 -4
  80. package/src/media/media-lightbox/media-lightbox.css +15 -5
  81. package/src/styles/index.css +1 -0
  82. package/src/styles/utilities.css +2234 -0
  83. package/dist/chunk-7VSPECOH.js.map +0 -1
  84. package/dist/chunk-MXNO63TC.js.map +0 -1
  85. package/dist/chunk-STCXERLM.js.map +0 -1
@@ -12,7 +12,7 @@
12
12
 
13
13
  /* FormLabel wraps Label (.a63-Label); flip to danger when the field errors. */
14
14
  .a63-FormLabel[data-error='true'] {
15
- color: var(--a63-action-danger);
15
+ color: var(--a63-text-danger);
16
16
  }
17
17
 
18
18
  .a63-FormDescription {
@@ -25,7 +25,7 @@
25
25
 
26
26
  .a63-FormMessage {
27
27
  margin: 0;
28
- color: var(--a63-action-danger);
28
+ color: var(--a63-text-danger);
29
29
  font-family: var(--a63-control-font-family);
30
30
  font-size: var(--a63-control-font-size-sm);
31
31
  line-height: var(--typography-sm-line-height);
@@ -57,9 +57,7 @@
57
57
  font-family: var(--a63-control-font-family);
58
58
  font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
59
59
  cursor: text;
60
- transition:
61
- border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
62
- box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
60
+ transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
63
61
  }
64
62
 
65
63
  /* Drop the recessed field shadow (shadow={false}) — for inputs on translucent
@@ -134,9 +132,7 @@
134
132
  .a63-Input:not([data-unstyled]):focus-within,
135
133
  .a63-InputGroup:focus-within {
136
134
  border-color: var(--field-focus-border);
137
- box-shadow:
138
- var(--field-shadow),
139
- 0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
135
+ outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
140
136
  }
141
137
 
142
138
  .a63-Input[data-invalid],
@@ -56,9 +56,7 @@
56
56
  font-family: var(--a63-control-font-family);
57
57
  font-size: max(var(--a63-control-font-size-md), var(--a63-editable-font-size-min, 0px));
58
58
  outline: none;
59
- transition:
60
- border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
61
- box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
59
+ transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
62
60
  }
63
61
 
64
62
  /* Rounded outer corners + the missing leading border on the first slot. */
@@ -76,10 +74,8 @@
76
74
  .a63-InputOTP-slot[data-active='true'] {
77
75
  z-index: 1;
78
76
  border-color: var(--otp-accent);
79
- box-shadow:
80
- var(--a63-field-shadow),
81
- 0 0 0 var(--a63-control-focus-ring-width)
82
- var(--a63-control-focus-ring-color, var(--a63-focus-ring));
77
+ outline: var(--a63-control-focus-ring-width) solid
78
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
83
79
  }
84
80
 
85
81
  /* Invalid state — recolor the border + active ring to danger. */
@@ -90,10 +86,7 @@
90
86
  .a63-InputOTP-slot[aria-invalid='true'][data-active='true'],
91
87
  .a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot[data-active='true'] {
92
88
  border-color: var(--a63-action-danger);
93
- box-shadow:
94
- var(--a63-field-shadow),
95
- 0 0 0 var(--a63-control-focus-ring-width)
96
- color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
89
+ outline-color: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
97
90
  }
98
91
 
99
92
  /* Fake caret — a blinking hairline centered in the active empty slot. */
@@ -43,7 +43,7 @@
43
43
  }
44
44
  .a63-Item:focus-visible {
45
45
  border-color: var(--a63-focus-ring);
46
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
46
+ outline: var(--a63-control-focus-ring-width) solid
47
47
  color-mix(in oklch, var(--a63-focus-ring) 50%, transparent);
48
48
  }
49
49
  /* Interaction belongs to the rendered semantic element, never to a static row. */
@@ -183,7 +183,7 @@
183
183
  font-size: var(--a63-control-font-size-sm);
184
184
  font-weight: 400;
185
185
  line-height: 1.5;
186
- text-align: left;
186
+ text-align: start;
187
187
  -webkit-line-clamp: 2;
188
188
  line-clamp: 2;
189
189
  -webkit-box-orient: vertical;
@@ -197,7 +197,7 @@
197
197
  text-underline-offset: 4px;
198
198
  }
199
199
  .a63-ItemDescription a:hover {
200
- color: var(--a63-action-primary);
200
+ color: var(--a63-text-accent);
201
201
  }
202
202
 
203
203
  /* ── Actions / Header / Footer ──────────────────────────────────────────── */
@@ -106,7 +106,8 @@
106
106
  background-color: var(--a63-menu-highlight-primary-background, var(--a63-action-primary));
107
107
  color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
108
108
  }
109
- .a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] svg {
109
+ .a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] svg,
110
+ .a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] .a63-Menu-shortcut {
110
111
  color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
111
112
  }
112
113
 
@@ -116,10 +117,10 @@
116
117
  }
117
118
 
118
119
  .a63-Menu-item[data-variant='destructive'] {
119
- color: var(--a63-menu-destructive-foreground, var(--a63-action-danger));
120
+ color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
120
121
  }
121
122
  .a63-Menu-item[data-variant='destructive'] svg {
122
- color: var(--a63-menu-destructive-foreground, var(--a63-action-danger));
123
+ color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
123
124
  }
124
125
  .a63-Menu-item[data-variant='destructive'] .a63-Menu-shortcut {
125
126
  color: currentColor;
@@ -129,7 +130,7 @@
129
130
  --a63-menu-destructive-highlight-background,
130
131
  color-mix(in oklch, var(--a63-action-danger) 10%, transparent)
131
132
  );
132
- color: var(--a63-menu-destructive-foreground, var(--a63-action-danger));
133
+ color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
133
134
  }
134
135
 
135
136
  /* ── Item indicator (checkbox / radio marker) ──────────────────────────── */
@@ -61,7 +61,10 @@
61
61
  }
62
62
  }
63
63
 
64
+ /* Drawn inside the trigger: the bar scrolls (overflow-x), which would clip an
65
+ outer ring at its edges. */
64
66
  .a63-Menubar-trigger:focus-visible {
65
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
67
+ outline: var(--a63-control-focus-ring-width) solid
66
68
  var(--a63-control-focus-ring-color, var(--a63-focus-ring));
69
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
67
70
  }
@@ -85,9 +85,12 @@
85
85
  }
86
86
  }
87
87
 
88
+ /* Drawn inside the trigger: the list scrolls (overflow-x), which would clip an
89
+ outer ring at its edges. */
88
90
  .a63-NavigationMenu-trigger:focus-visible {
89
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
91
+ outline: var(--a63-control-focus-ring-width) solid
90
92
  var(--a63-control-focus-ring-color, var(--a63-focus-ring));
93
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
91
94
  }
92
95
 
93
96
  .a63-NavigationMenu-trigger[data-disabled] {
@@ -258,6 +261,7 @@
258
261
  width: 0.5rem;
259
262
  height: 0.5rem;
260
263
  rotate: 45deg;
264
+ /* craft-allow: physical-properties — the corner that becomes the arrow tip after the rotation */
261
265
  border-top-left-radius: var(--radius-xs);
262
266
  background: var(--a63-border-subtle);
263
267
  }
@@ -29,7 +29,7 @@
29
29
  justify-content: space-between;
30
30
  gap: var(--a63-space-2);
31
31
  padding: var(--a63-space-3);
32
- text-align: left;
32
+ text-align: start;
33
33
  }
34
34
 
35
35
  .a63-PanelSettingButton > .a63-Button-label {
@@ -87,7 +87,7 @@
87
87
  }
88
88
 
89
89
  .a63-Radio:focus-visible {
90
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width) var(--radio-focus-ring);
90
+ outline: var(--a63-control-focus-ring-width) solid var(--radio-focus-ring);
91
91
  }
92
92
 
93
93
  .a63-Radio[data-disabled] {
@@ -56,7 +56,7 @@
56
56
 
57
57
  .a63-Resizable-handle:focus-visible {
58
58
  background-color: var(--a63-action-primary);
59
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
59
+ outline: var(--a63-control-focus-ring-width) solid
60
60
  var(--a63-control-focus-ring-color, var(--a63-focus-ring));
61
61
  }
62
62
 
@@ -25,7 +25,6 @@
25
25
  height: 100%;
26
26
  border-radius: inherit;
27
27
  outline: none;
28
- transition: box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
29
28
  }
30
29
 
31
30
  .a63-ScrollArea-viewport[data-has-overflow-x] {
@@ -33,7 +32,7 @@
33
32
  }
34
33
 
35
34
  .a63-ScrollArea-viewport:focus-visible {
36
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width, 2px) var(--a63-focus-ring);
35
+ outline: var(--a63-control-focus-ring-width, 2px) solid var(--a63-focus-ring);
37
36
  }
38
37
 
39
38
  /* ── Scroll fade mask ──────────────────────────────────────────────────── */
@@ -120,13 +120,10 @@
120
120
  --button-state-hover-border-color: var(--a63-border-subtle);
121
121
  /* Keep the ring crisp on the round edge rather than bleeding under it. */
122
122
  background-clip: padding-box;
123
- /* All-literal layers: a `none`-valued contract token (modern) as a shadow
124
- layer is invalid and would drop the whole shadow. The inset rim follows the
125
- border-radius, so it hugs the circle. */
126
- box-shadow:
127
- inset 0 1px 0 rgb(255 255 255 / 0.14),
128
- 0 1px 2px rgb(0 0 0 / 0.08),
129
- 0 6px 18px rgb(0 0 0 / 0.18);
123
+ /* The same shadow as the other floating surfaces (popover, dialog, tooltip),
124
+ so the chip follows the theme. The inset layers follow the border-radius,
125
+ so they hug the circle. */
126
+ box-shadow: var(--a63-overlay-inner-shadow, none), var(--a63-overlay-shadow);
130
127
  /* Literal blur + saturate for the frost (the --a63-overlay-backdrop handle
131
128
  defaults to none, which would drop the glass entirely). */
132
129
  backdrop-filter: blur(14px) saturate(1.6);
@@ -101,9 +101,12 @@
101
101
  color: var(--a63-segment-selected-foreground, var(--a63-text-primary));
102
102
  }
103
103
 
104
+ /* Drawn inside the segment: the track scrolls (overflow-x), or clips when
105
+ full-width, which would cut an outer ring at its edges. */
104
106
  .a63-SegmentedControl-item:focus-visible {
105
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
107
+ outline: var(--a63-control-focus-ring-width) solid
106
108
  var(--a63-control-focus-ring-color, var(--a63-focus-ring));
109
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
107
110
  }
108
111
 
109
112
  .a63-SegmentedControl-item[data-disabled] {
@@ -195,6 +198,10 @@
195
198
  .a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active] {
196
199
  color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
197
200
  }
201
+ /* The inset ring would vanish into the accent pill; it takes the label colour. */
202
+ .a63-SegmentedControl[data-tone='accent'] .a63-SegmentedControl-item[data-active]:focus-visible {
203
+ outline-color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
204
+ }
198
205
 
199
206
  /* ── Sizes (reuse the control ramp) ────────────────────────────────────── */
200
207
  /* Each block overrides --segment-inset; --segment-active-radius intentionally
@@ -54,9 +54,7 @@
54
54
  touch-action: manipulation;
55
55
  user-select: none;
56
56
  outline: none;
57
- transition:
58
- border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
59
- box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
57
+ transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
60
58
  }
61
59
 
62
60
  @media (hover: hover) and (pointer: fine) {
@@ -67,9 +65,7 @@
67
65
 
68
66
  .a63-Select-trigger:focus-visible {
69
67
  border-color: var(--select-focus-border);
70
- box-shadow:
71
- var(--select-shadow),
72
- 0 0 0 var(--a63-control-focus-ring-width) var(--select-focus-ring);
68
+ outline: var(--a63-control-focus-ring-width) solid var(--select-focus-ring);
73
69
  }
74
70
 
75
71
  .a63-Select-trigger[data-disabled] {
@@ -281,7 +281,7 @@
281
281
  @media (min-width: 768px) {
282
282
  .a63-Sidebar-wrapper:has([data-variant='inset']) .a63-Sidebar-inset {
283
283
  margin: var(--a63-space-2);
284
- margin-left: 0;
284
+ margin-inline-start: 0;
285
285
  border-radius: var(--a63-surface-radius, var(--radius-xl));
286
286
  background-image: var(--a63-surface-gloss), var(--a63-surface-texture-image);
287
287
  background-blend-mode: normal, var(--a63-surface-texture-blend);
@@ -289,7 +289,7 @@
289
289
  box-shadow: var(--a63-surface-inner-shadow, none), var(--a63-surface-shadow);
290
290
  }
291
291
  .a63-Sidebar-wrapper:has([data-variant='inset'][data-state='collapsed']) .a63-Sidebar-inset {
292
- margin-left: var(--a63-space-2);
292
+ margin-inline-start: var(--a63-space-2);
293
293
  }
294
294
  }
295
295
 
@@ -354,7 +354,7 @@
354
354
  align-items: center;
355
355
  border-radius: var(--radius-md);
356
356
  padding-inline: var(--a63-space-2);
357
- color: color-mix(in oklch, var(--sidebar-fg) 70%, transparent);
357
+ color: var(--a63-text-secondary);
358
358
  font-weight: 500;
359
359
  font-size: var(--a63-control-font-size-xs);
360
360
  outline: none;
@@ -363,7 +363,7 @@
363
363
  opacity 200ms linear;
364
364
  }
365
365
  .a63-Sidebar-group-label:focus-visible {
366
- box-shadow: 0 0 0 2px var(--sidebar-ring);
366
+ outline: 2px solid var(--sidebar-ring);
367
367
  }
368
368
  .a63-Sidebar-group-label > svg {
369
369
  width: 1rem;
@@ -378,7 +378,7 @@
378
378
  .a63-Sidebar-group-action {
379
379
  position: absolute;
380
380
  top: 50%;
381
- right: 0;
381
+ inset-inline-end: 0;
382
382
  display: flex;
383
383
  aspect-ratio: 1 / 1;
384
384
  width: var(--a63-control-min-target);
@@ -398,7 +398,7 @@
398
398
  }
399
399
  }
400
400
  .a63-Sidebar-group-action:focus-visible {
401
- box-shadow: 0 0 0 2px var(--sidebar-ring);
401
+ outline: 2px solid var(--sidebar-ring);
402
402
  }
403
403
  .a63-Sidebar-group-action > svg {
404
404
  width: 1rem;
@@ -436,7 +436,7 @@
436
436
  overflow: hidden;
437
437
  border-radius: var(--radius-md);
438
438
  padding: var(--a63-space-2);
439
- text-align: left;
439
+ text-align: start;
440
440
  font-size: var(--a63-control-font-size-sm);
441
441
  outline: none;
442
442
  transition:
@@ -455,7 +455,7 @@
455
455
  color: var(--sidebar-accent-fg);
456
456
  }
457
457
  .a63-Sidebar-menu-button:focus-visible {
458
- box-shadow: 0 0 0 2px var(--sidebar-ring);
458
+ outline: 2px solid var(--sidebar-ring);
459
459
  }
460
460
  .a63-Sidebar-menu-button:disabled,
461
461
  .a63-Sidebar-menu-button[aria-disabled='true'] {
@@ -478,7 +478,7 @@
478
478
  }
479
479
  /* reserve room for a menu-action */
480
480
  .a63-Sidebar-menu-item:has([data-sidebar='menu-action']) .a63-Sidebar-menu-button {
481
- padding-right: calc(var(--a63-control-min-target) + var(--a63-space-1));
481
+ padding-inline-end: calc(var(--a63-control-min-target) + var(--a63-space-1));
482
482
  }
483
483
  /* size ramp */
484
484
  .a63-Sidebar-menu-button[data-size='default'] {
@@ -560,7 +560,7 @@
560
560
  }
561
561
  }
562
562
  .a63-Sidebar-menu-action:focus-visible {
563
- box-shadow: 0 0 0 2px var(--sidebar-ring);
563
+ outline: 2px solid var(--sidebar-ring);
564
564
  }
565
565
  .a63-Sidebar-menu-action > svg {
566
566
  width: 1rem;
@@ -649,7 +649,7 @@
649
649
  gap: var(--a63-space-1);
650
650
  margin-inline: 0.875rem;
651
651
  translate: 1px;
652
- border-left: 1px solid var(--sidebar-border);
652
+ border-inline-start: 1px solid var(--sidebar-border);
653
653
  padding-inline: 0.625rem;
654
654
  padding-block: 0.125rem;
655
655
  }
@@ -684,7 +684,7 @@
684
684
  color: var(--sidebar-accent-fg);
685
685
  }
686
686
  .a63-Sidebar-menu-sub-button:focus-visible {
687
- box-shadow: 0 0 0 2px var(--sidebar-ring);
687
+ outline: 2px solid var(--sidebar-ring);
688
688
  }
689
689
  .a63-Sidebar-menu-sub-button:disabled,
690
690
  .a63-Sidebar-menu-sub-button[aria-disabled='true'] {
@@ -18,7 +18,7 @@
18
18
  min-width: 0;
19
19
  overflow: hidden;
20
20
  text-overflow: ellipsis;
21
- color: color-mix(in oklch, var(--sidebar-fg) 40%, transparent);
21
+ color: var(--a63-text-secondary);
22
22
  }
23
23
 
24
24
  .a63-SidebarNavTree-group-content {
@@ -54,11 +54,11 @@
54
54
  .a63-SidebarNavTree-item[data-active='true'] {
55
55
  background-color: transparent;
56
56
  font-weight: 500;
57
- color: var(--a63-action-primary);
57
+ color: var(--a63-text-accent);
58
58
  }
59
59
  .a63-SidebarNavTree-item[data-active='true']:hover {
60
60
  background-color: color-mix(in oklch, var(--sidebar-accent) 50%, transparent);
61
- color: var(--a63-action-primary);
61
+ color: var(--a63-text-accent);
62
62
  }
63
63
  .a63-SidebarNavTree-item > span {
64
64
  min-width: 0;
@@ -97,8 +97,8 @@
97
97
  .a63-SidebarNavTree-row-item {
98
98
  min-width: 0;
99
99
  flex: 1;
100
- border-top-right-radius: 0;
101
- border-bottom-right-radius: 0;
100
+ border-start-end-radius: 0;
101
+ border-end-end-radius: 0;
102
102
  }
103
103
  .a63-SidebarNavTree-row-item:hover {
104
104
  background-color: transparent;
@@ -110,7 +110,7 @@
110
110
  background-color: transparent;
111
111
  }
112
112
  .a63-SidebarNavTree-row:hover .a63-SidebarNavTree-row-item[data-active='true'] {
113
- color: var(--a63-action-primary);
113
+ color: var(--a63-text-accent);
114
114
  }
115
115
 
116
116
  /* Trigger-only row: the section has no page, so the whole row is one control. */
@@ -143,7 +143,7 @@
143
143
  }
144
144
  }
145
145
  .a63-SidebarNavTree-toggle:focus-visible {
146
- box-shadow: 0 0 0 2px var(--sidebar-ring);
146
+ outline: 2px solid var(--sidebar-ring);
147
147
  }
148
148
  /* Hide the expand toggle when the sidebar is collapsed to the icon rail. */
149
149
  .a63-Sidebar-root[data-collapsible='icon'] .a63-SidebarNavTree-toggle,
@@ -165,7 +165,7 @@
165
165
  .a63-SidebarNavTree-sub-list {
166
166
  gap: var(--a63-space-0_5);
167
167
  margin-inline: var(--a63-space-2) 0;
168
- border-left-color: color-mix(in oklch, var(--sidebar-border) 70%, transparent);
168
+ border-inline-start-color: color-mix(in oklch, var(--sidebar-border) 70%, transparent);
169
169
  padding-inline: var(--a63-space-2) 0;
170
170
  padding-block: var(--a63-space-0_5);
171
171
  }
@@ -57,9 +57,7 @@
57
57
  var(--a63-control-shadow),
58
58
  0 1px 2px color-mix(in oklch, black 20%, transparent);
59
59
  outline: none;
60
- transition:
61
- box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
62
- scale var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
60
+ transition: scale var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
63
61
  }
64
62
 
65
63
  /* Interaction floor, using the same pattern as Checkbox/Radio/Switch/Button.
@@ -76,13 +74,15 @@
76
74
  translate: -50% -50%;
77
75
  }
78
76
 
79
- .a63-Slider-thumb:focus-visible {
80
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width) var(--a63-focus-ring);
77
+ /* Keyboard focus lands on the thumb's visually hidden range input, so the thumb
78
+ rings while that input has it. */
79
+ .a63-Slider-thumb:has(:focus-visible),
80
+ .a63-Slider-thumb[data-dragging] {
81
+ outline: var(--a63-control-focus-ring-width) solid var(--a63-focus-ring);
81
82
  }
82
83
 
83
84
  .a63-Slider-thumb[data-dragging] {
84
85
  scale: 1.2;
85
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width) var(--a63-focus-ring);
86
86
  }
87
87
 
88
88
  .a63-Slider-value {
@@ -123,10 +123,10 @@
123
123
  --thumb-sx: 1.12;
124
124
  }
125
125
 
126
+ /* An outline, not an extra shadow layer: the theme shadow is `none` where a
127
+ theme has none, and `none` cannot join a shadow list, which dropped the ring. */
126
128
  .a63-Switch:focus-visible {
127
- box-shadow:
128
- var(--switch-current-shadow),
129
- 0 0 0 var(--a63-control-focus-ring-width) var(--switch-focus-ring);
129
+ outline: var(--a63-control-focus-ring-width) solid var(--switch-focus-ring);
130
130
  }
131
131
 
132
132
  .a63-Switch[data-disabled] {
@@ -51,7 +51,7 @@
51
51
  .a63-Table-head {
52
52
  height: 2.5rem;
53
53
  padding-inline: 0.625rem;
54
- text-align: left;
54
+ text-align: start;
55
55
  vertical-align: middle;
56
56
  font-weight: 500;
57
57
  line-height: 1;
@@ -137,6 +137,12 @@
137
137
  [data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] {
138
138
  background: transparent;
139
139
  }
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. */
143
+ [data-slot='frame'] .a63-Table-body .a63-Table-row[data-state='selected'] .a63-Table-cell {
144
+ background: var(--a63-action-primary);
145
+ }
140
146
  [data-slot='frame'] .a63-Table-body .a63-Table-cell {
141
147
  border-bottom: 1px solid var(--a63-border-subtle);
142
148
  background: var(--a63-surface-page);
@@ -191,9 +191,13 @@
191
191
  color: var(--a63-text-primary);
192
192
  }
193
193
 
194
+ /* An outline drawn inside the tab: the active tab's own shadow (attached) would
195
+ replace a box-shadow ring, and the list scrolls (overflow-x), which would
196
+ clip an outer ring. */
194
197
  .a63-Tabs-tab:focus-visible {
195
- box-shadow: 0 0 0 var(--a63-control-focus-ring-width)
198
+ outline: var(--a63-control-focus-ring-width) solid
196
199
  var(--a63-control-focus-ring-color, var(--a63-focus-ring));
200
+ outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
197
201
  }
198
202
 
199
203
  .a63-Tabs-tab[data-disabled] {
@@ -242,6 +246,10 @@
242
246
  color: var(--a63-action-primary-foreground);
243
247
  font-weight: 600;
244
248
  }
249
+ /* The inset ring would vanish into the primary fill; it takes the label colour. */
250
+ .a63-Tabs-list[data-variant='attached'] .a63-Tabs-tab[data-active]:focus-visible {
251
+ outline-color: var(--a63-action-primary-foreground);
252
+ }
245
253
 
246
254
  /* ── Sliding indicator ─────────────────────────────────────────────────── */
247
255
 
@@ -294,6 +302,12 @@
294
302
  outline: none;
295
303
  }
296
304
 
305
+ /* The panel is a tab stop, so it needs a ring too. */
306
+ .a63-Tabs-panel:focus-visible {
307
+ outline: var(--a63-control-focus-ring-width) solid
308
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
309
+ }
310
+
297
311
  /* attached: the panel is the folder BODY — a card surface bordered on all sides
298
312
  with rounded bottom corners; its flat top edge meets the tab row above, and
299
313
  the active tab merges into it. (Legacy --theme-tabs-attached-panel-* contract.)
@@ -36,9 +36,7 @@
36
36
  font-family: var(--a63-control-font-family);
37
37
  font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
38
38
  cursor: text;
39
- transition:
40
- border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
41
- box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
39
+ transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
42
40
  }
43
41
 
44
42
  /* Chrome-less field for nesting: the wrapper collapses so the inner <textarea>
@@ -77,9 +75,7 @@
77
75
 
78
76
  .a63-Textarea:not([data-unstyled]):focus-within {
79
77
  border-color: var(--field-focus-border);
80
- box-shadow:
81
- var(--field-shadow),
82
- 0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
78
+ outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
83
79
  }
84
80
 
85
81
  .a63-Textarea[data-invalid] {
@@ -126,11 +126,12 @@
126
126
  color: var(--a63-segment-hover-foreground, var(--a63-text-primary));
127
127
  }
128
128
 
129
+ /* An outline, not an extra shadow layer: a pressed toggle's theme shadow is
130
+ `none` where a theme has none, and `none` cannot join a shadow list, which
131
+ dropped the ring. */
129
132
  .a63-Toggle:focus-visible {
130
- box-shadow:
131
- var(--toggle-shadow),
132
- 0 0 0 var(--a63-control-focus-ring-width)
133
- var(--a63-control-focus-ring-color, var(--a63-focus-ring));
133
+ outline: var(--a63-control-focus-ring-width) solid
134
+ var(--a63-control-focus-ring-color, var(--a63-focus-ring));
134
135
  }
135
136
 
136
137
  .a63-Toggle[data-pressed][data-tone='neutral'] {
@@ -50,11 +50,11 @@
50
50
  color: var(--a63-segment-primary-foreground, var(--a63-action-primary-foreground));
51
51
  }
52
52
 
53
+ /* The standalone Toggle's outline ring stays: the cell keeps its own (pressed)
54
+ shadow, and the focused cell sits above its welded neighbours so they do not
55
+ cover the ring. */
53
56
  .a63-ToggleGroup .a63-Toggle:focus-visible {
54
- box-shadow:
55
- var(--a63-segment-selected-shadow, none),
56
- 0 0 0 var(--a63-control-focus-ring-width)
57
- var(--a63-control-focus-ring-color, var(--a63-focus-ring));
57
+ z-index: 1;
58
58
  }
59
59
 
60
60
  .a63-ToggleGroup[data-orientation='horizontal'] .a63-Toggle:first-child {
@@ -10,11 +10,11 @@
10
10
  * or photo, so contrast never depends on what they're floating over.
11
11
  */
12
12
  [data-slot='media-lightbox'] {
13
- --a63-lightbox-on-media-fg: #fff;
14
- --a63-lightbox-on-media-surface: rgb(0 0 0 / 0.55);
15
- --a63-lightbox-on-media-surface-hover: rgb(0 0 0 / 0.7);
16
- --a63-lightbox-on-media-border: rgb(255 255 255 / 0.16);
17
- --a63-lightbox-on-media-ring: rgb(255 255 255 / 0.85);
13
+ --a63-lightbox-on-media-fg: var(--a63-on-media-foreground);
14
+ --a63-lightbox-on-media-surface: var(--a63-on-media-surface);
15
+ --a63-lightbox-on-media-surface-hover: var(--a63-on-media-surface-strong);
16
+ --a63-lightbox-on-media-border: var(--a63-on-media-border);
17
+ --a63-lightbox-on-media-ring: var(--a63-on-media-ring);
18
18
  }
19
19
 
20
20
  /*
@@ -41,6 +41,16 @@
41
41
  background-color: var(--a63-lightbox-on-media-surface-hover);
42
42
  }
43
43
 
44
+ /*
45
+ * Nothing blurred sits over the track while it moves. A `backdrop-filter`
46
+ * has to re-sample the photo moving beneath it on every frame, and a blur over
47
+ * the moving photo is what made paging judder before. The controls keep their
48
+ * opaque-enough backplate, so they stay legible for the moment the blur is off.
49
+ */
50
+ [data-slot='media-lightbox'][data-paging] .a63-media-lightbox-on-media {
51
+ backdrop-filter: none;
52
+ }
53
+
44
54
  /*
45
55
  * MediaLightbox — view-transition morph.
46
56
  *
@@ -1,3 +1,4 @@
1
1
  @import '@atom63/styles';
2
2
  @import './reset.css';
3
3
  @import './recipes.css';
4
+ @import './utilities.css';