@filipgutica/design-system 1.0.31 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tokens.js CHANGED
@@ -118,7 +118,7 @@ export const tokens = {
118
118
  "page-wide": "1120px",
119
119
  "sidebar": "224px",
120
120
  "radius-inline": "6px",
121
- "radius-control": "999px",
121
+ "radius-control": "10px",
122
122
  "radius-panel": "16px",
123
123
  "radius-field": "10px",
124
124
  "radius-pill": "999px",
@@ -249,7 +249,7 @@ export const tokens = {
249
249
  "page-wide": "1120px",
250
250
  "sidebar": "224px",
251
251
  "radius-inline": "6px",
252
- "radius-control": "999px",
252
+ "radius-control": "10px",
253
253
  "radius-panel": "16px",
254
254
  "radius-field": "10px",
255
255
  "radius-pill": "999px",
@@ -382,7 +382,7 @@ export const tokens = {
382
382
  "page-wide": "1120px",
383
383
  "sidebar": "224px",
384
384
  "radius-inline": "6px",
385
- "radius-control": "999px",
385
+ "radius-control": "10px",
386
386
  "radius-panel": "16px",
387
387
  "radius-field": "10px",
388
388
  "radius-pill": "999px",
@@ -513,7 +513,7 @@ export const tokens = {
513
513
  "page-wide": "1120px",
514
514
  "sidebar": "224px",
515
515
  "radius-inline": "6px",
516
- "radius-control": "999px",
516
+ "radius-control": "10px",
517
517
  "radius-panel": "16px",
518
518
  "radius-field": "10px",
519
519
  "radius-pill": "999px",
@@ -646,7 +646,7 @@ export const tokens = {
646
646
  "page-wide": "1120px",
647
647
  "sidebar": "224px",
648
648
  "radius-inline": "6px",
649
- "radius-control": "999px",
649
+ "radius-control": "10px",
650
650
  "radius-panel": "16px",
651
651
  "radius-field": "10px",
652
652
  "radius-pill": "999px",
@@ -777,7 +777,7 @@ export const tokens = {
777
777
  "page-wide": "1120px",
778
778
  "sidebar": "224px",
779
779
  "radius-inline": "6px",
780
- "radius-control": "999px",
780
+ "radius-control": "10px",
781
781
  "radius-panel": "16px",
782
782
  "radius-field": "10px",
783
783
  "radius-pill": "999px",
@@ -910,7 +910,7 @@ export const tokens = {
910
910
  "page-wide": "1120px",
911
911
  "sidebar": "224px",
912
912
  "radius-inline": "6px",
913
- "radius-control": "999px",
913
+ "radius-control": "10px",
914
914
  "radius-panel": "16px",
915
915
  "radius-field": "10px",
916
916
  "radius-pill": "999px",
@@ -1041,7 +1041,7 @@ export const tokens = {
1041
1041
  "page-wide": "1120px",
1042
1042
  "sidebar": "224px",
1043
1043
  "radius-inline": "6px",
1044
- "radius-control": "999px",
1044
+ "radius-control": "10px",
1045
1045
  "radius-panel": "16px",
1046
1046
  "radius-field": "10px",
1047
1047
  "radius-pill": "999px",
@@ -1174,7 +1174,7 @@ export const tokens = {
1174
1174
  "page-wide": "1120px",
1175
1175
  "sidebar": "224px",
1176
1176
  "radius-inline": "6px",
1177
- "radius-control": "999px",
1177
+ "radius-control": "10px",
1178
1178
  "radius-panel": "16px",
1179
1179
  "radius-field": "10px",
1180
1180
  "radius-pill": "999px",
@@ -1305,7 +1305,7 @@ export const tokens = {
1305
1305
  "page-wide": "1120px",
1306
1306
  "sidebar": "224px",
1307
1307
  "radius-inline": "6px",
1308
- "radius-control": "999px",
1308
+ "radius-control": "10px",
1309
1309
  "radius-panel": "16px",
1310
1310
  "radius-field": "10px",
1311
1311
  "radius-pill": "999px",
@@ -1438,7 +1438,7 @@ export const tokens = {
1438
1438
  "page-wide": "1120px",
1439
1439
  "sidebar": "224px",
1440
1440
  "radius-inline": "6px",
1441
- "radius-control": "999px",
1441
+ "radius-control": "10px",
1442
1442
  "radius-panel": "16px",
1443
1443
  "radius-field": "10px",
1444
1444
  "radius-pill": "999px",
@@ -1569,7 +1569,7 @@ export const tokens = {
1569
1569
  "page-wide": "1120px",
1570
1570
  "sidebar": "224px",
1571
1571
  "radius-inline": "6px",
1572
- "radius-control": "999px",
1572
+ "radius-control": "10px",
1573
1573
  "radius-panel": "16px",
1574
1574
  "radius-field": "10px",
1575
1575
  "radius-pill": "999px",
@@ -1702,7 +1702,7 @@ export const tokens = {
1702
1702
  "page-wide": "1120px",
1703
1703
  "sidebar": "224px",
1704
1704
  "radius-inline": "6px",
1705
- "radius-control": "999px",
1705
+ "radius-control": "10px",
1706
1706
  "radius-panel": "16px",
1707
1707
  "radius-field": "10px",
1708
1708
  "radius-pill": "999px",
@@ -1833,7 +1833,7 @@ export const tokens = {
1833
1833
  "page-wide": "1120px",
1834
1834
  "sidebar": "224px",
1835
1835
  "radius-inline": "6px",
1836
- "radius-control": "999px",
1836
+ "radius-control": "10px",
1837
1837
  "radius-panel": "16px",
1838
1838
  "radius-field": "10px",
1839
1839
  "radius-pill": "999px",
@@ -1966,7 +1966,7 @@ export const tokens = {
1966
1966
  "page-wide": "1120px",
1967
1967
  "sidebar": "224px",
1968
1968
  "radius-inline": "6px",
1969
- "radius-control": "999px",
1969
+ "radius-control": "10px",
1970
1970
  "radius-panel": "16px",
1971
1971
  "radius-field": "10px",
1972
1972
  "radius-pill": "999px",
@@ -2097,7 +2097,7 @@ export const tokens = {
2097
2097
  "page-wide": "1120px",
2098
2098
  "sidebar": "224px",
2099
2099
  "radius-inline": "6px",
2100
- "radius-control": "999px",
2100
+ "radius-control": "10px",
2101
2101
  "radius-panel": "16px",
2102
2102
  "radius-field": "10px",
2103
2103
  "radius-pill": "999px",
package/dist/tokens.json CHANGED
@@ -117,7 +117,7 @@
117
117
  "page-wide": "1120px",
118
118
  "sidebar": "224px",
119
119
  "radius-inline": "6px",
120
- "radius-control": "999px",
120
+ "radius-control": "10px",
121
121
  "radius-panel": "16px",
122
122
  "radius-field": "10px",
123
123
  "radius-pill": "999px",
@@ -248,7 +248,7 @@
248
248
  "page-wide": "1120px",
249
249
  "sidebar": "224px",
250
250
  "radius-inline": "6px",
251
- "radius-control": "999px",
251
+ "radius-control": "10px",
252
252
  "radius-panel": "16px",
253
253
  "radius-field": "10px",
254
254
  "radius-pill": "999px",
@@ -381,7 +381,7 @@
381
381
  "page-wide": "1120px",
382
382
  "sidebar": "224px",
383
383
  "radius-inline": "6px",
384
- "radius-control": "999px",
384
+ "radius-control": "10px",
385
385
  "radius-panel": "16px",
386
386
  "radius-field": "10px",
387
387
  "radius-pill": "999px",
@@ -512,7 +512,7 @@
512
512
  "page-wide": "1120px",
513
513
  "sidebar": "224px",
514
514
  "radius-inline": "6px",
515
- "radius-control": "999px",
515
+ "radius-control": "10px",
516
516
  "radius-panel": "16px",
517
517
  "radius-field": "10px",
518
518
  "radius-pill": "999px",
@@ -645,7 +645,7 @@
645
645
  "page-wide": "1120px",
646
646
  "sidebar": "224px",
647
647
  "radius-inline": "6px",
648
- "radius-control": "999px",
648
+ "radius-control": "10px",
649
649
  "radius-panel": "16px",
650
650
  "radius-field": "10px",
651
651
  "radius-pill": "999px",
@@ -776,7 +776,7 @@
776
776
  "page-wide": "1120px",
777
777
  "sidebar": "224px",
778
778
  "radius-inline": "6px",
779
- "radius-control": "999px",
779
+ "radius-control": "10px",
780
780
  "radius-panel": "16px",
781
781
  "radius-field": "10px",
782
782
  "radius-pill": "999px",
@@ -909,7 +909,7 @@
909
909
  "page-wide": "1120px",
910
910
  "sidebar": "224px",
911
911
  "radius-inline": "6px",
912
- "radius-control": "999px",
912
+ "radius-control": "10px",
913
913
  "radius-panel": "16px",
914
914
  "radius-field": "10px",
915
915
  "radius-pill": "999px",
@@ -1040,7 +1040,7 @@
1040
1040
  "page-wide": "1120px",
1041
1041
  "sidebar": "224px",
1042
1042
  "radius-inline": "6px",
1043
- "radius-control": "999px",
1043
+ "radius-control": "10px",
1044
1044
  "radius-panel": "16px",
1045
1045
  "radius-field": "10px",
1046
1046
  "radius-pill": "999px",
@@ -1173,7 +1173,7 @@
1173
1173
  "page-wide": "1120px",
1174
1174
  "sidebar": "224px",
1175
1175
  "radius-inline": "6px",
1176
- "radius-control": "999px",
1176
+ "radius-control": "10px",
1177
1177
  "radius-panel": "16px",
1178
1178
  "radius-field": "10px",
1179
1179
  "radius-pill": "999px",
@@ -1304,7 +1304,7 @@
1304
1304
  "page-wide": "1120px",
1305
1305
  "sidebar": "224px",
1306
1306
  "radius-inline": "6px",
1307
- "radius-control": "999px",
1307
+ "radius-control": "10px",
1308
1308
  "radius-panel": "16px",
1309
1309
  "radius-field": "10px",
1310
1310
  "radius-pill": "999px",
@@ -1437,7 +1437,7 @@
1437
1437
  "page-wide": "1120px",
1438
1438
  "sidebar": "224px",
1439
1439
  "radius-inline": "6px",
1440
- "radius-control": "999px",
1440
+ "radius-control": "10px",
1441
1441
  "radius-panel": "16px",
1442
1442
  "radius-field": "10px",
1443
1443
  "radius-pill": "999px",
@@ -1568,7 +1568,7 @@
1568
1568
  "page-wide": "1120px",
1569
1569
  "sidebar": "224px",
1570
1570
  "radius-inline": "6px",
1571
- "radius-control": "999px",
1571
+ "radius-control": "10px",
1572
1572
  "radius-panel": "16px",
1573
1573
  "radius-field": "10px",
1574
1574
  "radius-pill": "999px",
@@ -1701,7 +1701,7 @@
1701
1701
  "page-wide": "1120px",
1702
1702
  "sidebar": "224px",
1703
1703
  "radius-inline": "6px",
1704
- "radius-control": "999px",
1704
+ "radius-control": "10px",
1705
1705
  "radius-panel": "16px",
1706
1706
  "radius-field": "10px",
1707
1707
  "radius-pill": "999px",
@@ -1832,7 +1832,7 @@
1832
1832
  "page-wide": "1120px",
1833
1833
  "sidebar": "224px",
1834
1834
  "radius-inline": "6px",
1835
- "radius-control": "999px",
1835
+ "radius-control": "10px",
1836
1836
  "radius-panel": "16px",
1837
1837
  "radius-field": "10px",
1838
1838
  "radius-pill": "999px",
@@ -1965,7 +1965,7 @@
1965
1965
  "page-wide": "1120px",
1966
1966
  "sidebar": "224px",
1967
1967
  "radius-inline": "6px",
1968
- "radius-control": "999px",
1968
+ "radius-control": "10px",
1969
1969
  "radius-panel": "16px",
1970
1970
  "radius-field": "10px",
1971
1971
  "radius-pill": "999px",
@@ -2096,7 +2096,7 @@
2096
2096
  "page-wide": "1120px",
2097
2097
  "sidebar": "224px",
2098
2098
  "radius-inline": "6px",
2099
- "radius-control": "999px",
2099
+ "radius-control": "10px",
2100
2100
  "radius-panel": "16px",
2101
2101
  "radius-field": "10px",
2102
2102
  "radius-pill": "999px",
@@ -127,18 +127,18 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
127
127
  | Floating layer | Menus, popovers, pickers, and dialogs | `--color-surface-raised` | Transparent 1px; the shadow's ring draws the edge | `--radius-panel` | `--shadow-dialog` |
128
128
 
129
129
  - Borders stay 1px and transparent on buttons, quiet actions, tracks, panels, and radio cards, so forced colors can draw them. Fields keep `--color-field-edge`. `--color-border` keeps unchecked checkbox and radio edges visible. The toggle card is a named exception: a visible `--color-border-subtle` edge and no rest raise. Invalid fields show a `--color-error` edge, except in forced colors, where the system edge wins. Figures, example frames, code block frames, and dividers use `--color-border-subtle`.
130
- - Shape follows role. A pill acts, or sets a value in place; a rectangle is a place, or holds content. Pick a new component's radius from its role in this table, not from the component it looks like.
130
+ - Shape follows role. Actions and fields share the 10px corner, so an input and its button line up; the border, not the shape, tells them apart: a field draws its `--color-field-edge` border, and an action's border is transparent, with its fill, raise, or tint marking it. A pill is a small state mark, a 6px rectangle is a place, and a 16px rectangle holds content. Pick a new component's radius from its role in this table, not from the component it looks like.
131
131
 
132
132
  | Role | Shape | Token | Members |
133
133
  | --- | --- | --- | --- |
134
- | Acts, or sets a value in place with every option shown, on one line | Pill | `--radius-control` | Buttons other than the labelled contents trigger and its no-JavaScript summary, quiet actions other than the project-menu trigger, and segmented controls with their thumbs |
134
+ | Acts, or sets a value in place with every option shown, on one line | 10px | `--radius-control` | Buttons other than the labelled contents trigger and its no-JavaScript summary, quiet actions other than the project-menu trigger, and segmented controls. A segmented thumb is concentric with its track |
135
135
  | Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, and the in-page location pip |
136
136
  | A place, or a row you pick | 6px | `--radius-inline` | Navigation rows outside a floating menu, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, checkboxes, and keyboard keys |
137
137
  | Something you type in, a control whose label wraps, or a one-line control that is not an action | 10px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
138
138
  | Holds other things | 16px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, and floating layers |
139
139
 
140
- - A pill never holds text that can wrap. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
141
- - Nested rectangles are concentric: a rectangle that sits closer to a rounded container's edge than the container's radius takes that radius minus the gap. Option rows in a select picker, the rows of a floating menu, such as the project menu, and a code block's source panel, each `--space-1` inside a 16px container, take `calc(var(--radius-panel) - var(--space-1))`, 12px. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
140
+ - A pill never holds text that can wrap: a status badge is the only pill with text, and it stays on one line. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
141
+ - Nested rectangles are concentric: a rectangle that sits closer to a rounded container's edge than the container's radius takes that radius minus the gap. Option rows in a select picker, the rows of a floating menu, such as the project menu, and a code block's source panel, each `--space-1` inside a 16px container, take `calc(var(--radius-panel) - var(--space-1))`, 12px. A segmented control's thumb, inset 2px (`--inset`) inside its track, takes `calc(var(--radius-control) - var(--inset))`, 8px. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
142
142
  - Round marks (radios, slider thumbs, badge dots, and the busy spinner) take `50%`, a fill inside a shape inherits its corners, and an edge that meets another shape takes `0`. A page writes no other literal radius.
143
143
  - Avoid nesting panels. Cards are for a few parallel self-contained options that a reader compares. Running prose belongs in open sections. Product screenshots need one frame, not a frame around a frame.
144
144
  - [Depth](#depth) gives each role its shadow. Stable hover states keep normal content quiet.
@@ -207,15 +207,16 @@
207
207
  .toggle-text { display: grid; }
208
208
  .toggle-text small { color: var(--color-muted); font-size: var(--text-xs); }
209
209
 
210
- /* Segmented control: a raised pill thumb on a sunk, undivided track. */
211
- .segmented { --item: var(--control-md); --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
210
+ /* Segmented control: a raised thumb on a sunk, undivided track. */
211
+ .segmented { --item: var(--control-md); --inset: 2px; --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
212
212
  /* The fill alone marks the track. The transparent border keeps its size, and forced colors draw it. */
213
213
  .segmented[data-size="sm"] { --item: var(--control-sm); font-size: var(--text-sm); }
214
214
  .segmented[data-size="lg"] { --item: var(--control-lg); font-size: var(--text-lg); }
215
215
  .segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--item); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--color-muted); font: inherit; cursor: pointer; }
216
216
  .segmented[data-icon-only] button { width: var(--item); padding: 0; }
217
- /* The thumb is inset inside each full-size button, so it floats on the track and the hit area keeps its size. */
218
- .segmented button::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-control); pointer-events: none; }
217
+ /* The thumb is inset inside each full-size button, so it floats on the track and the hit area keeps its size.
218
+ Its corner is concentric with the track: the track radius minus the inset. */
219
+ .segmented button::before { content: ""; position: absolute; inset: var(--inset); z-index: -2; border-radius: calc(var(--radius-control) - var(--inset)); pointer-events: none; }
219
220
  .segmented button.is-hover:not(:disabled, [aria-pressed="true"]) { color: var(--color-text); }
220
221
  @media (hover: hover) { .segmented button:hover:not(:disabled, [aria-pressed="true"]) { color: var(--color-text); } }
221
222
  .segmented button.is-hover:not(:disabled, [aria-pressed="true"])::before { background: color-mix(in srgb, var(--color-control-thumb) 45%, transparent); }
@@ -476,7 +477,7 @@
476
477
 
477
478
  /* Pager: previous at the start, next always at the end. */
478
479
  .pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); width: 100%; padding-top: var(--space-6); border-top: 1px solid var(--color-border-subtle); }
479
- .pager a { display: grid; align-content: start; gap: 0.125rem; padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-field); color: var(--color-text); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out); }
480
+ .pager a { display: grid; align-content: start; gap: 0.125rem; overflow-wrap: anywhere; padding: var(--space-3) var(--space-4); border: 1px solid transparent; border-radius: var(--radius-field); color: var(--color-text); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out); }
480
481
  .pager a.is-hover { background: var(--color-row-hover); }
481
482
  @media (hover: hover) { .pager a:hover { background: var(--color-row-hover); } }
482
483
  .pager a[rel="next"] { grid-column: 2; justify-items: end; text-align: end; }
@@ -869,8 +870,6 @@
869
870
  .crumbs ol:has(> li:nth-child(3)) > li::before { content: none; }
870
871
  .crumbs ol:has(> li:nth-child(3)) > li:nth-last-child(2) a { position: relative; padding-inline-start: 0.875rem; }
871
872
  .crumbs ol:has(> li:nth-child(3)) > li:nth-last-child(2) a::before { content: ""; position: absolute; inset-inline-start: 0.25rem; top: 50%; transform: translateY(-50%) rotate(-135deg); }
872
- .pager { grid-template-columns: minmax(0, 1fr); }
873
- .pager a[rel="next"] { grid-column: 1; }
874
873
  .definitions { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
875
874
  .definitions dd + dt { margin-top: var(--space-3); }
876
875
  .frame { width: calc(100% - var(--space-8)); }
@@ -47,7 +47,7 @@ A control's **States** line names each interactive state it has. In `components.
47
47
 
48
48
  Layer: Core.
49
49
 
50
- - **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline. Medium weight, `-0.01em` tracking, line height 1.25, `--radius-control` (pill). Horizontal padding is 10px at `sm`, `--space-3` at `md`, and `--space-4` at `lg`.
50
+ - **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline. Medium weight, `-0.01em` tracking, line height 1.25, `--radius-control` (a 10px rounded rectangle, the field corner). Horizontal padding is 10px at `sm`, `--space-3` at `md`, and `--space-4` at `lg`.
51
51
  - **Variants.**
52
52
 
53
53
  | Variant | Rest | Hover | Pressed |
@@ -146,7 +146,7 @@ Layer: Core.
146
146
 
147
147
  Layer: Core.
148
148
 
149
- - **Anatomy.** A `role="group"` with an accessible name, containing one `<button aria-pressed>` for each option. The track is undivided: `--color-well` fill, `--shadow-sink`, a transparent 1px border, and `--radius-control`. Each button is the full control height (`--item`) with `--space-3` padding, and square when icon-only. At tablet width an unsized control sets `--item` to `--control-lg`, so its buttons grow to the touch size and icon-only options stay square. Its thumb is a `::before` layer inset 2px inside the button, behind the label.
149
+ - **Anatomy.** A `role="group"` with an accessible name, containing one `<button aria-pressed>` for each option. The track is undivided: `--color-well` fill, `--shadow-sink`, a transparent 1px border, and `--radius-control`. Each button is the full control height (`--item`) with `--space-3` padding, and square when icon-only. At tablet width an unsized control sets `--item` to `--control-lg`, so its buttons grow to the touch size and icon-only options stay square. Its thumb is a `::before` layer inset 2px (`--inset`) inside the button, behind the label, with corners concentric with the track: `calc(var(--radius-control) - var(--inset))`.
150
150
  - **Tokens.** Labels are `--color-muted`. The pressed option's thumb is `--color-control-thumb` with `--shadow-raise` and no ring. Its label is `--color-segmented-current-text`: `--color-accent` where it reaches 4.5:1 on the thumb, on the page and on a surface, and otherwise the first of `--color-text`, black, and white that does. An icon-only option needs 3:1. Hover on an unpressed option shows the thumb at 45% and turns the label `--color-text`.
151
151
  - **States.** Rest, hover, pressed, focus-visible (an inset ring, so it hugs the thumb instead of crossing into the next option), and disabled.
152
152
  - **Do.** Use it for two to five short options that apply at once and change how the same content shows, such as a view mode or the System, Light, and Dark choice.
@@ -387,7 +387,7 @@ Layer: Core.
387
387
  - **States.** Hover: `--color-row-hover` fill. Focus-visible: the focus ring. There is no current state.
388
388
  - **Do.** Use a pager for pages a reader goes through in order, such as a guide's chapters or the skills in one group.
389
389
  - **Don't.** A pager on pages with no reading order, or one per section on a page with a section rail.
390
- - **Phone.** At `max-width: 640px`, one column in source order.
390
+ - **Phone.** No change: the two columns stay, so Previous and Next share one row, and a long title wraps inside its column, breaking inside a word when it must.
391
391
  - **Keyboard and screen reader.** The direction and the title are both inside the link, so it reads as one name, such as "Next Application example".
392
392
  - **Motion.** The fill changes over `--duration-fast` with `--ease-out`.
393
393
  - **Forced colors.** Each link's transparent border draws in the system link colour, so both links read as boxes, and the hover fill drops.
@@ -29,13 +29,13 @@ Each entry records a choice this language made, the options it rejected, and why
29
29
  | Segmented control | Core | One thumb glides between options: the leading edge takes 260ms and the trailing edge 300ms, with CSS `ease`, so the thumb stretches a little on the way. This was matched frame by frame to a reference. There is no motion on load, on a restored value, or on a theme change. Reduced motion makes the change instant. | The earlier 180ms ease-out looked like a jump. | No test yet |
30
30
  | Segmented label | Core | The selected label reads at 4.5:1 on its thumb, and an icon at 3:1 (`--color-segmented-current-text`): `--color-accent`, or the first of `--color-text`, black, and white that reads. | Accent at 3:1 for labels too, which let some hues' text fall below 4.5:1. | label contrast: `tests/catalogue/catalogue.spec.ts` "contrast: every selected segmented label on its thumb reaches 4.5:1"; icon at 3:1: no test yet |
31
31
  | Phone drawer trigger | Core | A page-level contents drawer opens from a soft secondary button with a three-line menu glyph and a label. The no-JavaScript fallback keeps a chevron, because it opens in place. The site shell uses the same trigger below its header (see Phone header). | A down chevron promised a dropdown, but the trigger opens a side drawer. | No test yet |
32
- | Shape follows role | Core | A pill acts, or sets a value in place with every option shown, on one line (`--radius-control`); a select, which opens a list, is a one-line non-action control. Small state marks are pills (`--radius-pill`). Places and picked rows are 6px (`--radius-inline`). Typed fields, controls whose label wraps, and one-line controls that are not actions are 10px (`--radius-field`). Containers are 16px (`--radius-panel`). A pill never holds text that can wrap, and nested rectangles are concentric. The token names predate the rule: they say inline, control, and field, where the uses are rows, pills, and typed fields. The names stay, because a rename breaks every page that uses them. | One shape for every control. All pills put wrapping labels in pills, which the toggle card, fields, and the raised pill row already rejected; all rectangles lose the shape that marks an action. A list of components for each token with no reason: a new component had no rule to pick from, and a reader took a 6px row beside a pill for an error. | rendered corners by role: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one", "the DESIGN.md shape table names each role token with its value"; slider track and thumb, and select picker: `tests/design-foundations.test.mjs` "the slider track, slider thumb, and select picker take their role’s corners"; no literal radius: `tests/design-foundations.test.mjs` "no page or the report stylesheet writes a literal corner radius" |
33
- | Themes | Core | A theme sets only its inputs: a hue for light and for dark, and optionally its two fonts, its neutrals (page, surfaces, hover, edges, and text, as a whole set for both modes), and, for a theme imported at runtime through the mapper, any of its 11 syntax colours (`--color-syntax-*`); theme files do not take syntax colours. Shape, spacing, states, and status colours stay core, so actions are pills in every theme. Neutrals are an input so an open palette keeps its own surfaces: Catppuccin and GitHub's Primer ship as themes, each mapped by its palette's own roles and unaltered. Where a hue cannot carry the text on a selected fill at 4.5:1, the build takes the first of the theme's text colour, black, and white that can, as the token roles say. Every theme passes the contrast guards in both modes. Theme files use the W3C Design Tokens format (2025.10) and ship beside the CSS, so design-token tools can read and write them: one file per theme, with a `light` and a `dark` group of sRGB colour tokens. Tools read the two groups as separate tokens (`light.color-bg`, `dark.color-bg`), not as one token with two modes; the Design Tokens Resolver module expresses modes, and it can replace the groups once tools support it. Graphite Indigo is the default. The family sites' own hues ship as themes named for their colour, so a site can load its theme file in place of an inline hue pair: Lagoon (annoterm), Copper (devps), Iris (filip-stack), Lapis (Workbench), and Fern (wtree). Each theme's note names its site. Where a site's light hue falls just short of 4.5:1 as selected-row text, its theme takes the smallest OKLCH lightness step that passes and keeps the hue and chroma, so the selection keeps the hue; the site can adopt the theme's value. A third-party palette is never altered. The theme mapper (`./theme-mapper`, experimental) turns a VS Code colour theme into these inputs for its one mode by selection: each input takes the first of its keys whose colour passes that input's contrast gate, and no colour is changed. What still fails is reported, as a `theme` problem in the theme's colours or a `core` problem in a core link, status, or syntax colour on its fills. Command text and prompts follow the theme’s code text and accent, so their failures belong to the theme’s text and focus checks. The checks are data: every ink on every fill the catalogue draws, hover and pressed states included, so a state axe never renders is still measured. The mapper keeps an imported theme's syntax colours too, from its `tokenColors`: each role takes the rule nearest its scope family. A role the theme leaves out takes its core colour; keyword, string, number, and comment have core colours, and the other 7 follow one of them or the code text. The owner chose this on 2026-11-14 to support open themes as their authors made them: the person who installs a theme owns its contrast, so a failing syntax colour is reported as a `theme` problem, never blocked or replaced. Most imports report one: comments in 5 of 8 popular themes measure 2.4–3.7:1 on their own background. The checks stay at 4.5:1, the WCAG AA minimum for text of this size; 3:1 would clear only 2 of those 5. The build and the mapper share one engine for applying a theme, resolving it, and checking it. | The action shape as a theme input (a pill, the 10px field corner, or the 6px row corner): each rounded choice gives actions another role's shape, a select's at 10px and a tab's or row's at 6px, so shape stops telling an action from a field. Radix Themes and shadcn scale every corner together, and Primer, Carbon, Polaris, and Spectrum keep shape core; revisit it as a whole radius scale when a theme needs one. Linear and OpenAI themes: neither publishes an open palette, and their colours are brand identity. Pine and Mauve, the earlier invented themes: no product used them, and they read as unrelated to the family's sites. A grey-blue quiet theme (Slate): it sat beside the muted text and the info blue, so its selection read as metadata and its primary button looked disabled. Adjusting an imported colour until it passes: the result is no longer the theme, and nothing tells the reader it changed. Syntax colours kept core for imports: an import lost its author's code colours to stay clear of reports. A looser bar for syntax, such as 3:1: it is below AA for code text, and it clears few imports. | Per-theme contrast guards (`tests/design-foundations.test.mjs`), the catalogue's rendered recipes in every theme, the Themes page tests, and the theme mapper's tests (`tests/theme-mapper.test.mjs`, the React smoke test with the mode locked opposite the system's, and the catalogue test that every axe contrast failure is a reported problem) |
32
+ | Shape follows role | Core | A control that acts, or sets a value in place with every option shown, on one line, is a 10px rounded rectangle (`--radius-control`): buttons, quiet actions, and segmented controls, whose thumb is concentric with its track. That is the field corner, so an input and its button line up; a field's `--color-field-edge` border, not its shape, tells it from an action, whose border is transparent. The owner chose this on 2026-11-22. A select, which opens a list, is a one-line non-action control. Small state marks are pills (`--radius-pill`). Places and picked rows are 6px (`--radius-inline`). Typed fields, controls whose label wraps, and one-line controls that are not actions are 10px (`--radius-field`). Containers are 16px (`--radius-panel`). A pill never holds text that can wrap, and nested rectangles are concentric. The token names predate the rule: they say inline, control, and field, where the uses are rows, actions, and typed fields. The names stay, because a rename breaks every page that uses them. | Pill actions (`--radius-control` at 999px), the shape until 2026-11-22: the owner found pill buttons ugly. One radius for every role: small state marks lose the pill that sets them apart, and rows and containers lose the corners that tell a place from a holder; all pills also put wrapping labels in pills, which the toggle card, fields, and the raised pill row already rejected. A list of components for each token with no reason: a new component had no rule to pick from, and a reader took a 6px row beside a pill for an error. | rendered corners by role: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one", "the DESIGN.md shape table names each role token with its value"; slider track and thumb, and select picker: `tests/design-foundations.test.mjs` "the slider track, slider thumb, and select picker take their role’s corners"; no literal radius: `tests/design-foundations.test.mjs` "no page or the report stylesheet writes a literal corner radius" |
33
+ | Themes | Core | A theme sets only its inputs: a hue for light and for dark, and optionally its two fonts, its neutrals (page, surfaces, hover, edges, and text, as a whole set for both modes), and, for a theme imported at runtime through the mapper, any of its 11 syntax colours (`--color-syntax-*`); theme files do not take syntax colours. Shape, spacing, states, and status colours stay core, so actions keep their 10px corner in every theme. Neutrals are an input so an open palette keeps its own surfaces: Catppuccin and GitHub's Primer ship as themes, each mapped by its palette's own roles and unaltered. Where a hue cannot carry the text on a selected fill at 4.5:1, the build takes the first of the theme's text colour, black, and white that can, as the token roles say. Every theme passes the contrast guards in both modes. Theme files use the W3C Design Tokens format (2025.10) and ship beside the CSS, so design-token tools can read and write them: one file per theme, with a `light` and a `dark` group of sRGB colour tokens. Tools read the two groups as separate tokens (`light.color-bg`, `dark.color-bg`), not as one token with two modes; the Design Tokens Resolver module expresses modes, and it can replace the groups once tools support it. Graphite Indigo is the default. The family sites' own hues ship as themes named for their colour, so a site can load its theme file in place of an inline hue pair: Lagoon (annoterm), Copper (devps), Iris (filip-stack), Lapis (Workbench), and Fern (wtree). Each theme's note names its site. Where a site's light hue falls just short of 4.5:1 as selected-row text, its theme takes the smallest OKLCH lightness step that passes and keeps the hue and chroma, so the selection keeps the hue; the site can adopt the theme's value. A third-party palette is never altered. The theme mapper (`./theme-mapper`, experimental) turns a VS Code colour theme into these inputs for its one mode by selection: each input takes the first of its keys whose colour passes that input's contrast gate, and no colour is changed. What still fails is reported, as a `theme` problem in the theme's colours or a `core` problem in a core link, status, or syntax colour on its fills. Command text and prompts follow the theme’s code text and accent, so their failures belong to the theme’s text and focus checks. The checks are data: every ink on every fill the catalogue draws, hover and pressed states included, so a state axe never renders is still measured. The mapper keeps an imported theme's syntax colours too, from its `tokenColors`: each role takes the rule nearest its scope family. A role the theme leaves out takes its core colour; keyword, string, number, and comment have core colours, and the other 7 follow one of them or the code text. The owner chose this on 2026-11-14 to support open themes as their authors made them: the person who installs a theme owns its contrast, so a failing syntax colour is reported as a `theme` problem, never blocked or replaced. Most imports report one: comments in 5 of 8 popular themes measure 2.4–3.7:1 on their own background. The checks stay at 4.5:1, the WCAG AA minimum for text of this size; 3:1 would clear only 2 of those 5. The build and the mapper share one engine for applying a theme, resolving it, and checking it. | The action shape as a theme input (a pill or the 6px row corner): a pill brings back the action shape the owner rejected (see Shape follows role), and 6px gives actions a tab's or row's shape, so a button reads as a place. Radix Themes and shadcn scale every corner together, and Primer, Carbon, Polaris, and Spectrum keep shape core; revisit it as a whole radius scale when a theme needs one. Linear and OpenAI themes: neither publishes an open palette, and their colours are brand identity. Pine and Mauve, the earlier invented themes: no product used them, and they read as unrelated to the family's sites. A grey-blue quiet theme (Slate): it sat beside the muted text and the info blue, so its selection read as metadata and its primary button looked disabled. Adjusting an imported colour until it passes: the result is no longer the theme, and nothing tells the reader it changed. Syntax colours kept core for imports: an import lost its author's code colours to stay clear of reports. A looser bar for syntax, such as 3:1: it is below AA for code text, and it clears few imports. | Per-theme contrast guards (`tests/design-foundations.test.mjs`), the catalogue's rendered recipes in every theme, the Themes page tests, and the theme mapper's tests (`tests/theme-mapper.test.mjs`, the React smoke test with the mode locked opposite the system's, and the catalogue test that every axe contrast failure is a reported problem) |
34
34
  | Open VSX theme imports | Core | `./open-vsx` is an experimental, framework-agnostic export for JSONC theme-file parsing and the Open VSX client. It returns VS Code theme data for `./theme-mapper`, with colours unchanged. Includes overlay colours child last and concatenate syntax rules base first, so later rules win. The client keeps the source client’s response, archive, path, checksum, include-depth, and timeout limits. The client reads ZIP headers and caps output from native `DecompressionStream('deflate-raw')`. `jsonc-parser` 3.3.1 reads comments and trailing commas and reports parse locations. It is the only runtime dependency and is pinned, used only by this export; `./theme-mapper` keeps no runtime dependencies. Component libraries own picker UI, persistence, and applying a theme. | Keeping parsing and fetching in a component library: each framework would need its own implementation and safety checks. JSZip at runtime: its synchronous inflation cannot enforce the output cap within a chunk. Handwritten JSONC parsing: more code to maintain for an established format. Making the mapper depend on the client: mapping an already parsed theme would load unused dependencies. | `tests/open-vsx.test.mjs`: offline client imports, JSONC validation, name normalisation, include merging and safety limits; generated declarations checked by `pnpm tokens:check`; package exports checked by `pnpm verify` |
35
35
  | ui-sdk components | Core | Owner decision, 2026-11-16: the design system draws [ui-sdk](https://ui-sdk.dev)'s headless components itself. `ui-sdk.css` styles their `data-slot` and state attributes in `@layer components`, with the values of the `components.html` recipes, for the components DESIGN.md lists; any other ui-sdk component is unsupported until it has a spec and rules. It is experimental and checked against one exact ui-sdk version, because ui-sdk is in beta and renames parts between betas. The design system takes no runtime dependency on ui-sdk; component libraries keep their own components. | ui-sdk's optional `web.css` themed through its `--ui-*` variables: one radius, one spacing unit, and one ring could not draw shape by role, control sizes, depth, or field focus, and its link and focus rules replaced the base's. Shared `:is(.class, [data-slot])` rules: the parts differ in structure from the native recipes, such as a checkbox that is a button with an indicator. | Parity: `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" compares each part with its `components.html` specimen, state by state, in light and dark; rendered parts: "every part ui-sdk.css draws renders from the installed ui-sdk"; pins and tokens: `tests/ui-sdk-css.test.mjs` |
36
36
  | Navigation row corners | Core | Navigation rows, header and strip rows, list-selection rows, collapsible group labels, and tabs take 6px corners (`--radius-inline`), except rows inside a floating menu (see Floating-menu rows). The owner chose the more rectangular rows from the Gate M mockup (2026-11-09). | 10px (`--radius-field`), the previous corners, shared with fields. | 6px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; Foundations swatch: `tests/design-foundations.test.mjs` "the Foundations current-row swatch and radius list follow the navigation row radius" |
37
37
  | Floating-menu rows | Core | Rows inside a floating menu, such as the project menu, are concentric with the 16px menu: `calc(var(--radius-panel) - var(--space-1))`, 12px, as select picker rows are. The owner approved it from the DS-3b comparison. | 6px like rail rows: a 6px row inside a 16px panel looks pinched. | 12px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
38
- | One-line non-action controls | Core | A one-line control that is not an action takes the 10px field corner (`--radius-field`), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. | The pill (`--radius-control`): a pill means an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | 10px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one" |
38
+ | One-line non-action controls | Core | A one-line control that is not an action takes the 10px field corner (`--radius-field`), as a select does: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary ("On this page"), and the skip link. The project trigger keeps the quiet-action tint. The owner chose it on 2026-11-10. Since 2026-11-22 actions take a 10px corner too (see Shape follows role), so both tokens render the same; these controls keep the field token, so a later change to the action corner leaves them alone. | The action corner (`--radius-control`), a pill until 2026-11-22: a pill meant an action, and these controls open a menu or list, pick a value, or move focus. 16px (`--radius-panel`), like the menu and other floating layers: on a one-line control 40 to 44px tall it reads almost as a pill. | 10px corners: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one"; the field token rather than the action token: no test, because both render 10px |
39
39
  | Optical label centring | Core | A text-only navigation row and the breadcrumb centre their label on the cap height with `text-box: trim-both cap alphabetic`, inside `@supports`; a row becomes a block with `align-content: center` for it, and `--space-2` block padding keeps a wrapped label clear of its fill's edges. Browsers without `text-box` keep the flex centring of the line box. Buttons, tabs, and segmented options already centre their ink within 0.5px, so they are unchanged; Chromium does not trim a button's label in any case. | Centring the line box alone: it keeps descender room, so a label without descenders, such as "Overview", sat 1.25px above centre in the 44px header row (15.75px above the ink, 18.25px below). `text-box` on the flex row itself: Chromium trims only block containers, and the label's anonymous flex item does not inherit the trim. A fixed nudge in em: it depends on the font's metrics, which an identity can change. | label inside the fill, and centred: `tests/site/site.spec.ts` "a wrapped navigation row or crumb keeps its label inside the fill and focus ring in ${colorScheme}", "the breadcrumb centres its link's ink in ${colorScheme}" |
40
40
  | Rail current section | Core | In a section rail the current section takes the current-page look: `--color-nav-current` fill, `--shadow-nav-current`, and `--color-nav-current-text`, with no pip. It keeps `aria-current="location"`. Strips and contents lists keep the pip. In forced colors it takes the current page's 2px `Highlight` leading border. The owner chose it at Gate M, so the rail's place reads like the live site's current page. | The pip in the rail too, as in strips and contents lists: the owner preferred the rail to match the site's current-page look. | rule present on pages: `tests/design-foundations.test.mjs` "example pages copy the state rules of every component variant their markup uses"; recipe: no test yet |
41
41
  | Tab glide | Core | The selected tab's fill is a `::before` layer that glides between tabs like the segmented thumb: `glide-left` and `glide-right`, 260ms leading and 300ms trailing, with CSS `ease`. No glide on first render or under reduced motion, and no layer in forced colors. The owner chose it at Gate M. | The fill jumping from tab to tab, unlike the segmented control beside it. | glide and reduced motion: `tests/catalogue/catalogue.spec.ts` "the tab fill glides to the new tab", "the tab fill moves at once" |
@@ -120,15 +120,16 @@
120
120
 
121
121
  /* Segmented control: components.html#segmented-control, unchanged. The theme picker and the
122
122
  monitor filters use it. */
123
- /* Segmented control: a raised pill thumb on a sunk, undivided track. */
124
- .segmented { --item: var(--control-md); --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
123
+ /* Segmented control: a raised thumb on a sunk, undivided track. */
124
+ .segmented { --item: var(--control-md); --inset: 2px; --glide-lead: 260ms; --glide-trail: 300ms; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
125
125
  /* The fill alone marks the track. The transparent border keeps its size, and forced colors draw it. */
126
126
  .segmented[data-size="sm"] { --item: var(--control-sm); font-size: var(--text-sm); }
127
127
  .segmented[data-size="lg"] { --item: var(--control-lg); font-size: var(--text-lg); }
128
128
  .segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--item); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--color-muted); font: inherit; cursor: pointer; }
129
129
  .segmented[data-icon-only] button { width: var(--item); padding: 0; }
130
- /* The thumb is inset inside each full-size button, so it floats on the track and the hit area keeps its size. */
131
- .segmented button::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-control); pointer-events: none; }
130
+ /* The thumb is inset inside each full-size button, so it floats on the track and the hit area keeps its size.
131
+ Its corner is concentric with the track: the track radius minus the inset. */
132
+ .segmented button::before { content: ""; position: absolute; inset: var(--inset); z-index: -2; border-radius: calc(var(--radius-control) - var(--inset)); pointer-events: none; }
132
133
  .segmented button.is-hover:not(:disabled, [aria-pressed="true"]) { color: var(--color-text); }
133
134
  @media (hover: hover) { .segmented button:hover:not(:disabled, [aria-pressed="true"]) { color: var(--color-text); } }
134
135
  .segmented button.is-hover:not(:disabled, [aria-pressed="true"])::before { background: color-mix(in srgb, var(--color-control-thumb) 45%, transparent); }
@@ -375,7 +376,7 @@
375
376
  .swatch { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: repeat(4, min-content) 1fr; gap: 0.125rem var(--space-3); align-items: start; font-size: var(--text-xs); }
376
377
  .swatch > :not(.chip) { grid-column: 2; }
377
378
  .swatch code { color: var(--color-text); }
378
- .chip { grid-row: 1 / -1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-control); font: var(--weight-semibold) var(--text-md) / 1 var(--font-ui); font-style: normal; }
379
+ .chip { grid-row: 1 / -1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border-subtle); border-radius: 50%; font: var(--weight-semibold) var(--text-md) / 1 var(--font-ui); font-style: normal; }
379
380
  .chip b { width: 16px; height: 16px; border-radius: var(--radius-inline); background: currentColor; }
380
381
  .ratio { color: var(--color-muted); }
381
382
 
@@ -713,11 +714,11 @@
713
714
 
714
715
  <section class="foundation" id="shape" aria-labelledby="shape-title">
715
716
  <h3 id="shape-title">Shape</h3>
716
- <p class="note">Pill buttons, rounded fields and toggle cards, large-radius panels, and inline corners. Cards never take a pill.</p>
717
+ <p class="note">Rounded-rectangle buttons, fields, and toggle cards, pill state marks, large-radius panels, and inline corners. Cards never take a pill.</p>
717
718
  <ul class="specs">
718
719
  <li class="spec" data-token="--radius-inline"><div class="spec-meta"><code>--radius-inline</code><span class="value"></span><span class="use">Places and picked rows: navigation rows, tabs, list rows, breadcrumb links, checkboxes, and keyboard keys</span></div><i class="shape-box" style="border-radius:var(--radius-inline)"></i></li>
719
720
  <li class="spec" data-token="--radius-field"><div class="spec-meta"><code>--radius-field</code><span class="value"></span><span class="use">Typed fields, controls whose label wraps, and one-line controls that are not actions: inputs, selects, textareas, toggle cards, pager links, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link</span></div><i class="shape-box" style="border-radius:var(--radius-field)"></i></li>
720
- <li class="spec" data-token="--radius-control"><div class="spec-meta"><code>--radius-control</code><span class="value"></span><span class="use">Pills that act, or set a value in place with every option shown: buttons other than the labelled contents trigger, quiet actions other than the project-menu trigger, segmented controls, and their thumbs</span></div><i class="shape-box" style="border-radius:var(--radius-control)"></i></li>
721
+ <li class="spec" data-token="--radius-control"><div class="spec-meta"><code>--radius-control</code><span class="value"></span><span class="use">Rounded rectangles that act, or set a value in place with every option shown: buttons other than the labelled contents trigger, quiet actions other than the project-menu trigger, and segmented controls; a segmented thumb takes this radius minus its inset</span></div><i class="shape-box" style="border-radius:var(--radius-control)"></i></li>
721
722
  <li class="spec" data-token="--radius-panel"><div class="spec-meta"><code>--radius-panel</code><span class="value"></span><span class="use">Containers: wells, plates, panels, radio cards, alerts, and floating layers</span></div><i class="shape-box" style="border-radius:var(--radius-panel)"></i></li>
722
723
  <li class="spec" data-token="--radius-pill"><div class="spec-meta"><code>--radius-pill</code><span class="value"></span><span class="use">Small state marks: status badges, switch tracks, slider and progress tracks, and score pips</span></div><i class="shape-box" style="border-radius:var(--radius-pill)"></i></li>
723
724
  </ul>
@@ -173,7 +173,7 @@
173
173
 
174
174
  /* Shape */
175
175
  --radius-inline: 6px;
176
- --radius-control: 999px;
176
+ --radius-control: 10px;
177
177
  --radius-panel: 16px;
178
178
  --radius-field: 10px;
179
179
  --radius-pill: 999px;
@@ -185,15 +185,16 @@
185
185
  }
186
186
 
187
187
  /* ---------- Segmented control ---------- */
188
- /* An undivided sunk track; the indicator is the raised thumb, inset 2px inside the checked item, from the
189
- position ui-sdk measures. Horizontal only. */
190
- [data-slot="segmented-control"][data-orientation="horizontal"] { --item: var(--control-md); position: relative; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
188
+ /* An undivided sunk track; the indicator is the raised thumb, inset 2px (--inset) inside the checked item, from
189
+ the position ui-sdk measures. Its corner is concentric with the track: the track radius minus the inset.
190
+ Horizontal only. */
191
+ [data-slot="segmented-control"][data-orientation="horizontal"] { --item: var(--control-md); --inset: 2px; position: relative; display: inline-flex; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-well); box-shadow: var(--shadow-sink); isolation: isolate; }
191
192
  [data-slot="segmented-control"][data-orientation="horizontal"][data-size="sm"] { --item: var(--control-sm); font-size: var(--text-sm); }
192
193
  [data-slot="segmented-control"][data-orientation="horizontal"][data-size="lg"] { --item: var(--control-lg); font-size: var(--text-lg); }
193
194
  [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"] { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--item); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--color-muted); font: inherit; cursor: pointer; }
194
195
  [data-slot="segmented-control"][data-orientation="horizontal"][data-icon-only] > [data-slot="segmented-control-item"] { width: var(--item); padding: 0; }
195
196
  /* The hover thumb sits behind the label and under the indicator, inside the control's stacking context. */
196
- [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"]::before { content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: var(--radius-control); pointer-events: none; }
197
+ [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"]::before { content: ""; position: absolute; inset: var(--inset); z-index: -2; border-radius: calc(var(--radius-control) - var(--inset)); pointer-events: none; }
197
198
  @media (hover: hover) {
198
199
  [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"]:hover:not([data-disabled], [data-checked]) { color: var(--color-text); }
199
200
  [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"]:hover:not([data-disabled], [data-checked])::before { background: color-mix(in srgb, var(--color-control-thumb) 45%, transparent); }
@@ -203,7 +204,7 @@
203
204
  [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"][data-disabled] { opacity: 0.58; cursor: not-allowed; }
204
205
  /* The thumb is the option's sibling, so a disabled checked option dims it too. */
205
206
  [data-slot="segmented-control"][data-orientation="horizontal"]:has(> [data-slot="segmented-control-item"][data-checked][data-disabled]) > [data-slot="segmented-control-indicator"] { opacity: 0.58; }
206
- [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-indicator"] { position: absolute; z-index: -1; top: calc(var(--segmented-control-indicator-top) + 2px); left: calc(var(--segmented-control-indicator-left) + 2px); width: calc(var(--segmented-control-indicator-width) - 4px); height: calc(var(--segmented-control-indicator-height) - 4px); border-radius: var(--radius-control); background: var(--color-control-thumb); box-shadow: var(--shadow-raise); pointer-events: none; }
207
+ [data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-indicator"] { position: absolute; z-index: -1; top: calc(var(--segmented-control-indicator-top) + var(--inset)); left: calc(var(--segmented-control-indicator-left) + var(--inset)); width: calc(var(--segmented-control-indicator-width) - 2 * var(--inset)); height: calc(var(--segmented-control-indicator-height) - 2 * var(--inset)); border-radius: calc(var(--radius-control) - var(--inset)); background: var(--color-control-thumb); box-shadow: var(--shadow-raise); pointer-events: none; }
207
208
 
208
209
  /* ---------- Tabs ---------- */
209
210
  /* The list scrolls, so it clips on every side: the padding keeps the selected tab's shadow whole. The indicator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -243,7 +243,7 @@ export const core = {
243
243
  {
244
244
  "tokens": {
245
245
  "radius-inline": "6px",
246
- "radius-control": "999px",
246
+ "radius-control": "10px",
247
247
  "radius-panel": "16px",
248
248
  "radius-field": "10px",
249
249
  "radius-pill": "999px"