@filipgutica/design-system 1.0.39 → 1.0.40

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.
@@ -351,41 +351,58 @@
351
351
  .figure figcaption { max-width: var(--measure); color: var(--color-muted); font-size: var(--text-sm); }
352
352
  .figure figcaption b { color: var(--color-text); font-weight: var(--weight-medium); }
353
353
 
354
- /* Dialog and drawer. The catalogue shows them in place; real ones are native dialogs opened with showModal(). */
354
+ /* Dialog, drawer, and slideout. The catalogue shows them in place; real ones are native dialogs opened with showModal(). */
355
355
  .dialog { display: grid; width: min(512px, 100%); max-height: min(672px, calc(100dvh - var(--space-8))); overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-dialog); }
356
356
  /* The component sets display, so a closed native dialog needs its hidden state back. */
357
357
  dialog:not([open]) { display: none; }
358
358
  dialog.dialog { margin: auto; }
359
359
  dialog.dialog::backdrop { background: var(--color-overlay); }
360
- .dialog-head, .dialog-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); }
360
+ .dialog-head, .dialog-foot, .slideout-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); }
361
361
  .dialog-head { border-bottom: 1px solid var(--color-border-subtle); }
362
362
  .dialog-head h4 { font-size: 1.125rem; font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
363
363
  .dialog-head p { margin-top: var(--space-1); color: var(--color-muted); }
364
364
  .dialog-body { min-height: 0; overflow: auto; padding: var(--space-4); }
365
- .dialog-foot { justify-content: flex-end; gap: var(--space-2); border-top: 1px solid var(--color-border-subtle); background: var(--color-surface); }
365
+ :is(.dialog-foot, .slideout-foot) { justify-content: flex-end; gap: var(--space-2); border-top: 1px solid var(--color-border-subtle); background: var(--color-surface); }
366
366
  /* The close button is a quiet action; this sets its size only. */
367
367
  .close { flex: none; width: var(--control-md); min-height: var(--control-md); padding: 0; color: var(--color-muted); }
368
368
  .drawer { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(calc(var(--sidebar-width) + var(--space-12)), 100%); height: 260px; overflow: hidden; padding: 0; border: 1px solid transparent; background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-dialog); }
369
369
  dialog.drawer { position: fixed; inset: 0 auto 0 0; height: 100dvh; max-height: none; margin: 0; }
370
- dialog.drawer::backdrop { background: var(--color-overlay); }
371
- /* The page behind an open drawer does not scroll, through the slide out too. Hiding the root's overflow keeps the
370
+ dialog:is(.drawer, .slideout)::backdrop { background: var(--color-overlay); }
371
+ /* Slideout: the drawer's layer from the edge the page names, the trailing edge by default, or the top or bottom.
372
+ --slide-from is where it slides from and back to. */
373
+ .slideout { --slide-from: translateX(100%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(75%, 384px); height: 300px; overflow: hidden; padding: 0; border: 1px solid transparent; background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-dialog); }
374
+ .slideout:dir(rtl) { --slide-from: translateX(-100%); }
375
+ dialog.slideout { position: fixed; inset-block: 0; inset-inline: auto 0; height: 100dvh; max-height: none; margin: 0; }
376
+ dialog.slideout:is([data-edge="top"], [data-edge="bottom"]) { inset-inline: 0; width: auto; max-width: none; height: auto; max-height: 75dvh; }
377
+ dialog.slideout[data-edge="top"] { --slide-from: translateY(-100%); inset-block: 0 auto; }
378
+ dialog.slideout[data-edge="bottom"] { --slide-from: translateY(100%); inset-block: auto 0; }
379
+ /* The page behind an open drawer or slideout does not scroll, through the slide out too. Hiding the root's overflow keeps the
372
380
  reader's position. The gutter is reserved all the time, so a classic scrollbar that hides does not reflow the page. */
373
381
  :root { scrollbar-gutter: stable; }
374
- :root:has(dialog.drawer[open]) { overflow: hidden; }
382
+ :root:has(dialog:is(.drawer, .slideout)[open]) { overflow: hidden; }
375
383
  @media (prefers-reduced-motion: no-preference) {
376
384
  dialog.drawer[open] { animation: drawer-in var(--duration) var(--ease-out); }
377
385
  dialog.drawer[open]::backdrop { animation: fade-in var(--duration) var(--ease-out); }
378
386
  /* The script sets data-closing, waits for the slide out, then closes the dialog. */
379
387
  dialog.drawer[data-closing] { animation: drawer-out var(--duration-fast) var(--ease-out) forwards; }
380
388
  dialog.drawer[data-closing]::backdrop { animation: fade-out var(--duration-fast) var(--ease-out) forwards; }
389
+ dialog.slideout[open] { animation: slideout-in var(--duration) var(--ease-out); }
390
+ dialog.slideout[open]::backdrop { animation: fade-in var(--duration) var(--ease-out); }
391
+ dialog.slideout[data-closing] { animation: slideout-out var(--duration-fast) var(--ease-out) forwards; }
392
+ dialog.slideout[data-closing]::backdrop { animation: fade-out var(--duration-fast) var(--ease-out) forwards; }
381
393
  }
382
394
  @keyframes drawer-in { from { transform: translateX(-100%); } }
383
395
  @keyframes drawer-out { to { transform: translateX(-100%); } }
396
+ @keyframes slideout-in { from { transform: var(--slide-from); } }
397
+ @keyframes slideout-out { to { transform: var(--slide-from); } }
398
+ /* The specimen's filter group: checkboxes under a field label. */
399
+ .filters { display: grid; gap: var(--space-1); margin: 0; padding: 0; border: 0; }
400
+ .filters legend { margin-bottom: var(--space-1); padding: 0; }
384
401
  @keyframes fade-in { from { opacity: 0; } }
385
402
  @keyframes fade-out { to { opacity: 0; } }
386
- .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border-subtle); }
387
- .drawer-head h4 { font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: 0; }
388
- .drawer-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--space-4); }
403
+ :is(.drawer-head, .slideout-head) { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border-subtle); }
404
+ :is(.drawer-head, .slideout-head) h4 { font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: 0; }
405
+ :is(.drawer-body, .slideout-body) { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--space-4); }
389
406
 
390
407
  /* Navigation list */
391
408
  .navlist { display: grid; gap: 0.125rem; width: min(100%, 240px); }
@@ -753,7 +770,7 @@
753
770
  .projects > summary { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-md); padding-inline: var(--space-3); border-radius: var(--radius-field); font-family: var(--font-mono); font-weight: var(--weight-semibold); list-style: none; user-select: none; }
754
771
  .projects > summary::-webkit-details-marker { display: none; }
755
772
  /* The ~/ mark is decorative: the empty alternative text keeps it out of the name. */
756
- .projects > summary::before { content: "~/" / ""; color: var(--color-project); }
773
+ .projects > summary::before { content: "~/" / ""; color: var(--color-accent); }
757
774
  /* The open menu keeps the hover tint. :where keeps it below the quiet action's press. */
758
775
  :where(.projects[open]) > summary { background: color-mix(in srgb, currentColor 6%, transparent); }
759
776
  .projects .icon { transition: transform var(--duration-fast) var(--ease-out); }
@@ -800,7 +817,7 @@
800
817
  glow, over the control's own raise or sink. The tokens.css base draws it on links; these rules pin
801
818
  it and move it to the visible part of composite controls. */
802
819
  :is(.btn, .quiet-action, .check input, .segmented button, .toggle, .crumbs a, .chip, .tool > summary):is(:focus-visible, .is-focus),
803
- :is(.dialog, .drawer):focus-visible,
820
+ :is(.dialog, .drawer, .slideout):focus-visible,
804
821
  .switch:is(:focus-visible, .is-focus) .switch-track,
805
822
  .radio-card:has(input:is(:focus-visible, .is-focus)) { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
806
823
  /* Inside a segmented control, the ring hugs the thumb instead of crossing into the next option. */
@@ -983,6 +1000,9 @@
983
1000
  .row { grid-template-columns: minmax(0, 1fr); }
984
1001
  /* Touch: controls of every size grow to --control-touch, the inert state examples included. Only the size
985
1002
  specimens (data-specimen="size") keep their sizes. */
1003
+ /* tokens.css sets --control-sm, --control-md, and --control-lg to --control-touch here; a size specimen keeps the
1004
+ desktop values, 28px, 32px, and 36px. */
1005
+ [data-specimen="size"] { --control-sm: 1.75rem; --control-md: 2rem; --control-lg: 2.25rem; }
986
1006
  .btn:not([data-specimen="size"] *), .navlist a, .rows [role="option"], .tab:not([data-specimen="size"] *) { min-height: var(--control-touch); }
987
1007
  /* An icon-only button grows on both sides, so it stays a circle. */
988
1008
  .btn[data-icon-only]:not([data-specimen="size"] *) { --size: var(--control-touch); }
@@ -1017,6 +1037,8 @@
1017
1037
  @media (max-width: 640px) {
1018
1038
  /* Phones: a dialog becomes a bottom sheet with rounded top corners. */
1019
1039
  dialog.dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
1040
+ /* The slideout's actions stack in source order, so the primary action, last, sits nearest the thumb. */
1041
+ .slideout-foot { flex-direction: column; align-items: stretch; }
1020
1042
  dialog.viewer { max-height: calc(100dvh - var(--space-4)); }
1021
1043
  /* A trail of three or more crumbs shows only the parent, as a back link; a two-crumb trail fits in full. */
1022
1044
  .crumbs ol:has(> li:nth-child(3)) > li:not(:nth-last-child(2)) { display: none; }
@@ -1109,7 +1131,7 @@
1109
1131
  </div>
1110
1132
  <div class="navlist" role="group" aria-labelledby="rail-containers">
1111
1133
  <span class="group-label" id="rail-containers">Containers and overlays</span>
1112
- <a href="#surface-and-card" data-terms="surface and card containers and overlays panels and cards for parallel, comparable content. panel box tile">Surface and card</a><a href="#figure" data-terms="figure containers and overlays an image or diagram with a caption. image screenshot caption">Figure</a><a href="#dialog" data-terms="dialog containers and overlays a modal task that needs an answer before the page continues. modal popup sheet confirm">Dialog</a><a href="#drawer" data-terms="drawer containers and overlays a side panel, such as phone navigation. sheet off-canvas sidebar menu">Drawer</a>
1134
+ <a href="#surface-and-card" data-terms="surface and card containers and overlays panels and cards for parallel, comparable content. panel box tile">Surface and card</a><a href="#figure" data-terms="figure containers and overlays an image or diagram with a caption. image screenshot caption">Figure</a><a href="#dialog" data-terms="dialog containers and overlays a modal task that needs an answer before the page continues. modal popup sheet confirm">Dialog</a><a href="#drawer" data-terms="drawer containers and overlays navigation in a panel from the leading edge, such as phone navigation. off-canvas sidebar menu">Drawer</a><a href="#slideout" data-terms="slideout containers and overlays a modal panel from an edge for filters and secondary detail. sheet side panel flyout filters">Slideout</a>
1113
1135
  </div>
1114
1136
  <div class="navlist" role="group" aria-labelledby="rail-navigation">
1115
1137
  <span class="group-label" id="rail-navigation">Navigation</span>
@@ -1152,7 +1174,7 @@
1152
1174
  <div><h3><a href="#group-selection">Selection</a></h3><ul><li><a href="#checkbox-and-radio">Checkbox and radio</a><span>Pick several options, or one from a short list.</span></li><li><a href="#radio-card-group">Radio card group</a><span>Pick one option that needs a description.</span></li><li><a href="#switch">Switch</a><span>Turn a setting on or off at once.</span></li><li><a href="#toggle-button">Toggle button</a><span>A labelled card that latches on, with a switch inside.</span></li><li><a href="#segmented-control">Segmented control</a><span>Two to five short options that apply at once.</span></li></ul></div>
1153
1175
  <div><h3><a href="#group-inputs">Inputs</a></h3><ul><li><a href="#text-input-and-textarea">Text input and textarea</a><span>Type a short value or a longer note.</span></li><li><a href="#select">Select</a><span>Choose from a longer list.</span></li><li><a href="#field-wrapper">Field wrapper</a><span>Label, description, and error text around a field.</span></li><li><a href="#slider">Slider</a><span>Set a value in a range.</span></li></ul></div>
1154
1176
  <div><h3><a href="#group-feedback">Feedback and status</a></h3><ul><li><a href="#progress">Progress</a><span>Show how far a task has got.</span></li><li><a href="#score">Score</a><span>Show a value out of a maximum.</span></li><li><a href="#badge">Badge</a><span>A short status label.</span></li><li><a href="#alert">Alert</a><span>A real caveat or status message in the page.</span></li></ul></div>
1155
- <div><h3><a href="#group-containers">Containers and overlays</a></h3><ul><li><a href="#surface-and-card">Surface and card</a><span>Panels and cards for parallel, comparable content.</span></li><li><a href="#figure">Figure</a><span>An image or diagram with a caption.</span></li><li><a href="#dialog">Dialog</a><span>A modal task that needs an answer before the page continues.</span></li><li><a href="#drawer">Drawer</a><span>A side panel, such as phone navigation.</span></li></ul></div>
1177
+ <div><h3><a href="#group-containers">Containers and overlays</a></h3><ul><li><a href="#surface-and-card">Surface and card</a><span>Panels and cards for parallel, comparable content.</span></li><li><a href="#figure">Figure</a><span>An image or diagram with a caption.</span></li><li><a href="#dialog">Dialog</a><span>A modal task that needs an answer before the page continues.</span></li><li><a href="#drawer">Drawer</a><span>Navigation in a panel from the leading edge, such as phone navigation.</span></li><li><a href="#slideout">Slideout</a><span>A modal panel from an edge for filters and secondary detail.</span></li></ul></div>
1156
1178
  <div><h3><a href="#group-navigation">Navigation</a></h3><ul><li><a href="#navigation-list">Navigation list</a><span>Rows of links with current page and current location.</span></li><li><a href="#section-rail">Section rail</a><span>A sticky list of sections that moves into a drawer on phones.</span></li><li><a href="#find-field">Find field</a><span>Filter a navigation list as you type.</span></li><li><a href="#breadcrumbs">Breadcrumbs</a><span>The path from the site to this page.</span></li><li><a href="#pager">Pager</a><span>Previous and next pages in a sequence.</span></li><li><a href="#tabs">Tabs</a><span>Switch panels about one object, without leaving the page.</span></li><li><a href="#skip-link">Skip link</a><span>Jump past the header to the content.</span></li><li><a href="#keyboard-key">Keyboard key</a><span>Show a key or shortcut in text.</span></li></ul></div>
1157
1179
  <div><h3><a href="#group-conversation">Conversation</a></h3><ul><li><a href="#message-row">Message row</a><span>One message: avatar, author, time, and body, with no bubble.</span></li><li><a href="#message-group">Message group</a><span>Consecutive messages by one author under one avatar.</span></li><li><a href="#hover-toolbar">Hover toolbar</a><span>Quick actions on a message, shown on hover or focus.</span></li><li><a href="#thread-panel">Thread panel</a><span>A resizable side pane with a message and its replies.</span></li><li><a href="#composer">Composer</a><span>One growing field with an inline send button.</span></li><li><a href="#tool-call-disclosure">Tool-call disclosure</a><span>A collapsed one-line summary of tool output or a handoff note.</span></li><li><a href="#mention">Mention</a><span>An inline @name in a message.</span></li></ul></div>
1158
1180
  <div><h3><a href="#group-code">Code and examples</a></h3><ul><li><a href="#code-block">Code block</a><span>Source code with an optional header and Copy, and a live example above it.</span></li></ul></div>
@@ -1553,8 +1575,8 @@
1553
1575
 
1554
1576
  <section class="component" id="drawer" data-layer="Core" aria-labelledby="drawer-title">
1555
1577
  <header><h3 id="drawer-title">Drawer</h3><span class="badge">Core</span><a href="components.md#drawer">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="drawer" aria-label="Copy link to Drawer" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1556
- <p class="purpose">A side panel, such as phone navigation.</p>
1557
- <dl class="guidance"><dt>Do</dt><dd>Use a drawer for navigation or supporting detail that slides in from the side its trigger sits on, such as phone navigation, and open it from a named button.</dd><dt>Don’t</dt><dd>The page’s main task inside a drawer. The drawer holds navigation or detail; the task stays on the page.</dd></dl>
1578
+ <p class="purpose">Navigation in a panel from the leading edge, such as phone navigation.</p>
1579
+ <dl class="guidance"><dt>Do</dt><dd>Use a drawer for navigation that does not fit on the page, such as phone navigation or a section rail at tablet width, and open it from a named button.</dd><dt>Don’t</dt><dd>Filters, settings, or detail in a drawer: they go in a slideout. The page’s main task stays on the page.</dd></dl>
1558
1580
  <div class="row"><h4>Live</h4><div class="states">
1559
1581
  <div class="state"><button class="btn secondary menu-glyph" type="button" data-size="lg" data-open="live-drawer">Contents</button><span class="caption">Rest, live: a page’s contents trigger opens a side drawer</span></div>
1560
1582
  </div></div>
@@ -1563,6 +1585,18 @@
1563
1585
  </div></div>
1564
1586
  </section>
1565
1587
 
1588
+ <section class="component" id="slideout" data-layer="Core" aria-labelledby="slideout-title">
1589
+ <header><h3 id="slideout-title">Slideout</h3><span class="badge">Core</span><a href="components.md#slideout">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="slideout" aria-label="Copy link to Slideout" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
1590
+ <p class="purpose">A modal panel from an edge for filters and secondary detail.</p>
1591
+ <dl class="guidance"><dt>Do</dt><dd>Use a slideout for filters, settings, or the detail of a selected item that the reader opens beside the page and closes to go on, and open it from a named button, such as Filters.</dd><dt>Don’t</dt><dd>Navigation in a slideout: that is the drawer’s job. The page’s main task stays on the page, and a short task that needs an answer is a dialog.</dd></dl>
1592
+ <div class="row"><h4>Live</h4><div class="states">
1593
+ <div class="state"><button class="btn secondary" type="button" data-open="live-slideout">Filters</button><span class="caption">Opens from the trailing edge</span></div>
1594
+ </div></div>
1595
+ <div class="row"><h4>In place</h4><div class="states">
1596
+ <div class="state wide" inert><div class="slideout" role="dialog" aria-labelledby="so-static-title"><div class="slideout-head"><h4 id="so-static-title">Filters</h4><button class="quiet-action close" type="button" aria-label="Close filters"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button></div><div class="slideout-body"><fieldset class="filters"><legend class="field-label">Status</legend><label class="check"><input type="checkbox" checked>Alerting</label><label class="check"><input type="checkbox" checked>Warning</label><label class="check"><input type="checkbox">Healthy</label></fieldset></div><div class="slideout-foot"><button class="btn secondary" type="button">Reset</button><button class="btn" type="button">Apply</button></div></div><span class="caption">Open, pinned: header, body, and footer</span></div>
1597
+ </div></div>
1598
+ </section>
1599
+
1566
1600
  <section class="layer-head" id="group-navigation" aria-labelledby="group-navigation-title">
1567
1601
  <h2 id="group-navigation-title">Navigation</h2>
1568
1602
  <p>Move between pages and sections, and find things.</p>
@@ -1922,6 +1956,11 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
1922
1956
  <div class="drawer-head"><h4 id="live-drawer-title">Contents</h4><form method="dialog"><button class="quiet-action close" type="submit" aria-label="Close drawer"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button></form></div>
1923
1957
  <div class="drawer-body"><nav class="navlist" aria-label="Contents"><a href="#button">Button</a><a href="#segmented-control">Segmented control</a><a href="#navigation-list" aria-current="location">Navigation list</a></nav></div>
1924
1958
  </dialog>
1959
+ <dialog class="slideout" id="live-slideout" aria-labelledby="live-slideout-title">
1960
+ <div class="slideout-head"><h4 id="live-slideout-title">Filters</h4><form method="dialog"><button class="quiet-action close" type="submit" aria-label="Close filters"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button></form></div>
1961
+ <form class="slideout-body" id="live-filters"><fieldset class="filters"><legend class="field-label">Status</legend><label class="check"><input type="checkbox" checked>Alerting</label><label class="check"><input type="checkbox" checked>Warning</label><label class="check"><input type="checkbox">Healthy</label></fieldset></form>
1962
+ <form class="slideout-foot" method="dialog"><button class="btn secondary" type="reset" form="live-filters">Reset</button><button class="btn" type="submit">Apply</button></form>
1963
+ </dialog>
1925
1964
  <dialog class="drawer" id="nav-drawer" aria-labelledby="nav-drawer-title">
1926
1965
  <div class="drawer-head"><h4 id="nav-drawer-title">Components</h4><form method="dialog"><button class="quiet-action close" type="submit" aria-label="Close drawer"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button></form></div>
1927
1966
  <div class="drawer-body" id="nav-drawer-body"></div>
@@ -2158,17 +2197,19 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2158
2197
  dialog.addEventListener('click', (e) => { if (pressedOutside && e.target === dialog && outside(e)) close(); });
2159
2198
  };
2160
2199
  document.querySelectorAll('dialog.dialog').forEach((dialog) => closeOnBackdrop(dialog, () => dialog.close()));
2161
- // Following an in-page link closes the drawer, then focus moves to the destination instead of the trigger.
2162
- // Every close path slides the drawer out first. Under reduced motion there is no animation, so it closes at once.
2163
- // A slide that is cancelled, such as by turning on reduced motion mid-slide, still closes the drawer.
2164
- document.querySelectorAll('dialog.drawer').forEach((drawer) => {
2200
+ // Every close path slides a drawer or slideout out first. Under reduced motion there is no animation, so it closes
2201
+ // at once. A slide that is cancelled, such as by turning on reduced motion mid-slide, still closes it.
2202
+ // Following an in-page link closes a drawer, then focus moves to the destination instead of the trigger; a
2203
+ // slideout always returns focus to its trigger.
2204
+ document.querySelectorAll('dialog.drawer, dialog.slideout').forEach((drawer) => {
2205
+ const slide = drawer.classList.contains('drawer') ? 'drawer-out' : 'slideout-out';
2165
2206
  let destination = null;
2166
2207
  const slideOut = () => {
2167
2208
  if ('closing' in drawer.dataset) return;
2168
2209
  drawer.dataset.closing = '';
2169
- if (getComputedStyle(drawer).animationName !== 'drawer-out') { drawer.close(); return; }
2210
+ if (getComputedStyle(drawer).animationName !== slide) { drawer.close(); return; }
2170
2211
  const finish = (e) => {
2171
- if (e.target !== drawer || e.pseudoElement || e.animationName !== 'drawer-out') return;
2212
+ if (e.target !== drawer || e.pseudoElement || e.animationName !== slide) return;
2172
2213
  drawer.removeEventListener('animationend', finish);
2173
2214
  drawer.removeEventListener('animationcancel', finish);
2174
2215
  drawer.close();
@@ -2177,9 +2218,9 @@ I’ll open a ticket for it.</textarea><button class="btn" type="button" data-si
2177
2218
  drawer.addEventListener('animationcancel', finish);
2178
2219
  };
2179
2220
  drawer.addEventListener('cancel', (e) => { e.preventDefault(); slideOut(); });
2180
- drawer.querySelector('form[method="dialog"]')?.addEventListener('submit', (e) => { e.preventDefault(); slideOut(); });
2221
+ drawer.querySelectorAll('form[method="dialog"]').forEach((form) => form.addEventListener('submit', (e) => { e.preventDefault(); slideOut(); }));
2181
2222
  closeOnBackdrop(drawer, slideOut);
2182
- drawer.addEventListener('click', (e) => {
2223
+ if (slide === 'drawer-out') drawer.addEventListener('click', (e) => {
2183
2224
  const link = e.target.closest('a[href^="#"]');
2184
2225
  if (!link || e.button !== 0 || e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
2185
2226
  destination = document.getElementById(link.hash.slice(1));
@@ -23,7 +23,7 @@ The sections follow the catalogue's purpose groups, in this order. Each componen
23
23
  | Selection | Checkbox and radio, radio card group, switch, toggle button, segmented control |
24
24
  | Inputs | Text input and textarea, select, field wrapper, slider |
25
25
  | Feedback and status | Progress, score, badge, alert |
26
- | Containers and overlays | Surface and card, figure, dialog, drawer |
26
+ | Containers and overlays | Surface and card, figure, dialog, drawer, slideout |
27
27
  | Navigation | Navigation list, section rail, find field, breadcrumbs, pager, tabs, skip link, keyboard key |
28
28
  | Conversation | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention |
29
29
  | Code and examples | Code block |
@@ -33,13 +33,14 @@ A control's **States** line names each interactive state it has. In `components.
33
33
 
34
34
  ## Rules for every control
35
35
 
36
- - **Sizes.** `sm`, `md`, and `lg` use `--control-sm`, `--control-md`, and `--control-lg` for height (28px, 32px, and 36px, Astryx's scale), with `--text-sm`, `--text-md`, and `--text-lg`. A control with no size is `md`. An application screen sets every control at `sm`, its main action included ([density](DESIGN.md#layout-and-spacing)). At tablet width (`max-width: 800px`) controls of every size grow to `--control-touch` (44px); only the catalogue's size specimens keep their sizes.
36
+ - **Sizes.** `sm`, `md`, and `lg` use `--control-sm`, `--control-md`, and `--control-lg` for height (28px, 32px, and 36px, Astryx's scale), with `--text-sm`, `--text-md`, and `--text-lg`. A control with no size is `md`. An application screen sets every control at `sm`, its main action included ([density](DESIGN.md#layout-and-spacing)). At tablet width (`max-width: 800px`) controls of every size grow to `--control-touch` (44px): `tokens.css` sets `--control-sm`, `--control-md`, and `--control-lg` to it there, so a control sized from them needs no touch rule. Only the catalogue's size specimens keep their sizes; each sets the three back on itself.
37
37
  - **Borders.** Every control keeps a 1px border, transparent unless its section says otherwise, so forced colors can draw an edge.
38
38
  - **Depth.** Each control takes its shadow from the [depth tiers](DESIGN.md#depth).
39
39
  - **Hover.** Hover fills apply only where the pointer can hover. Put every `:hover` rule that sets a background, shadow, border colour, or text colour in `@media (hover: hover)`, because a touch screen keeps `:hover` on the last element tapped. The pressed tint stays outside the query: it shows only while a finger is down.
40
40
  - **Press.** Only a button has a pressed state; see [Button](#button). A [quiet action](#quiet-action) tints on press without sinking. Other controls have no `:active` treatment: they show their latched state as their section says.
41
41
  - **Focus.** One ring for every role but fields: `outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset)` (2px, 3px), with no halo or glow. `--color-focus` is the accent (`--color-accent`), which reaches 3:1 on `--color-bg`, `--color-surface`, and `--color-surface-raised` in both themes. It sits around primary, danger, and selected controls too. Do not give a role its own ring colour; where a variant must recolour the ring, set only `outline-color`. The ring is drawn over the control's own raise or sink shadow, which does not change. It goes on the visible part of a composite control: the switch track, the radio card, and the slider thumb. A terminal capture sets `--color-focus: var(--color-project-dark)`, the dark-theme accent, which reaches 3:1 on the capture in both page themes. In forced colors, a control that opts out of adjustment (a checked box, the switch track) sets `outline-color: CanvasText`; a pressed segmented option, whose inset ring sits on its own `Highlight` fill, sets `HighlightText`. Inside a scrolling or clipping parent, the ring is inset (`outline-offset: calc(var(--focus-width) * -1)`), and a comment names the reason. Only `:focus-visible` shows a ring; pointer hover never does.
42
42
  - **Field focus.** Fields (input, select, textarea, and the search wrapper) draw no ring. On `:focus-visible` (the search wrapper uses `:has(input:focus-visible)`) the 1px edge turns `--color-accent`, and `--shadow-field-focus` (`inset 0 0 0 2px`, the accent at 18% over transparent) draws a muted accent line inside it, with `outline: none`. The fill does not change in either theme. An invalid field keeps its `--color-error` edge while focused, and its inset line is `--shadow-field-focus-invalid` (`--color-error` at 18%). Forced colors drop the inset line, so a focused field there draws `outline: var(--focus-width) solid Highlight; outline-offset: -1px`.
43
+ - **Cursor.** An enabled control shows `cursor: pointer`, and so does a label that wraps or follows an enabled checkbox, radio, or switch. The `tokens.css` base sets it with no specificity, so a component's own cursor, such as a busy button's `wait` or a slider's `grabbing`, wins. A label right after an enabled choice counts as that choice's label, so write a choice's label after it or around it. An editable combobox (an `input`, `textarea`, or `contenteditable` one) keeps the text cursor.
43
44
  - **Disabled.** Opacity 0.58, `cursor: not-allowed`, and no hover or press. Buttons drop their shadow. Fields drop theirs and fill with the `--color-well` well (the grey well in light; the same as rest in dark). Other controls keep theirs. Use the native `disabled` attribute. A link styled as a button has no disabled state: use `<button disabled>`.
44
45
  - **Invalid.** Fields only: `aria-invalid="true"` and a `--color-error` border (not in forced colors; see [field focus](#rules-for-every-control)). Other controls show an invalid state through the [field wrapper](#field-wrapper)'s error text. Link the error text with `aria-describedby` or `aria-errormessage`.
45
46
  - **Motion.** Hover and press transitions use `--duration-fast` with `--ease-out`. State changes such as a switch knob use `--duration`. Under `prefers-reduced-motion: reduce`, transitions are instant.
@@ -308,7 +309,7 @@ Layer: Core.
308
309
  - **Don't.** A dialog that opens without the reader asking, such as on page load, or one that holds a long form. A long form gets its own page.
309
310
  - **Keyboard and screen reader.** `role="dialog"`, `aria-modal="true"`, named by its title. Focus moves in on open and is trapped. Escape closes it, and focus returns to the trigger. A native `<dialog>` opened with `showModal()` provides most of this.
310
311
  - **Backdrop.** A tap or click on the backdrop, outside the dialog, closes it, the same way Escape does, and focus returns to the trigger. Only a press that starts outside counts: a drag that starts inside the dialog and ends outside leaves it open. Safari does not support `closedby="any"`, so a script closes it.
311
- - **Motion.** None: it opens and closes at once. Only the drawer slides, because it enters from an edge.
312
+ - **Motion.** None: it opens and closes at once. Only the drawer and the slideout slide, because they enter from an edge.
312
313
  - **Forced colors.** The shadow drops and the transparent border draws as the system edge, so the dialog keeps its outline over the page.
313
314
 
314
315
  ### Viewer
@@ -326,17 +327,34 @@ Layer: Core.
326
327
 
327
328
  Layer: Core.
328
329
 
329
- - **Anatomy.** A dialog fixed to the edge its trigger sits on, full height, `min(--sidebar-width + 48px, 100vw - 48px)` wide, with a header (title and close button) and a body that scrolls on its own. It is a floating layer with square corners: `--color-surface-raised`, a transparent 1px border, and `--shadow-dialog`. The close button is a [quiet action](#quiet-action). The family's navigation triggers sit at the start, so navigation drawers open from the left.
330
- - **Navigation drawer.** A drawer that holds navigation opens on the current row, scrolled to the centre of the body. A keyboard open moves focus to that row; a tap moves focus to the body, so no ring shows and no on-screen keyboard opens. An open with the `/` shortcut moves focus to the [find field](#find-field), which stays pinned at the top of the body while the list scrolls under it.
330
+ - **Anatomy.** Navigation in a dialog fixed to the leading edge (the left in a left-to-right page), full height, `min(--sidebar-width + 48px, 100vw - 48px)` wide, with a header (title and close button) and a body that scrolls on its own. It is a floating layer with square corners: `--color-surface-raised`, a transparent 1px border, and `--shadow-dialog`. The close button is a [quiet action](#quiet-action). The family's navigation triggers sit at the start, so the drawer opens from the start too.
331
+ - **Current row.** The drawer opens on the current row, scrolled to the centre of the body. A keyboard open moves focus to that row; a tap moves focus to the body, so no ring shows and no on-screen keyboard opens. An open with the `/` shortcut moves focus to the [find field](#find-field), which stays pinned at the top of the body while the list scrolls under it.
331
332
  - **States.** Closed, open, and closing: `data-closing` keeps it open while it slides out.
332
- - **Do.** Use a drawer for navigation or supporting detail that slides in from the side its trigger sits on, such as phone navigation, and open it from a named button.
333
- - **Don't.** The page's main task inside a drawer. The drawer holds navigation or detail; the task stays on the page.
333
+ - **Do.** Use a drawer for navigation that does not fit on the page, such as phone navigation or a section rail at tablet width, and open it from a named button.
334
+ - **Don't.** Filters, settings, or detail in a drawer: they go in a slideout. The page's main task stays on the page.
334
335
  - **Keyboard and screen reader.** As for the dialog. Following an in-page link inside the drawer closes it and moves focus to the link's destination (given `tabindex="-1"` if it is not focusable), not back to the trigger. Modified clicks (a new tab or window) leave it open.
335
336
  - **Backdrop.** A tap or click on the backdrop, outside the drawer, closes it, the same way Escape does, and focus returns to the trigger. Only a press that starts outside counts: a drag that starts inside the drawer and ends outside leaves it open. Safari does not support `closedby="any"`, so a script closes it.
336
337
  - **Page behind.** While the drawer is open, until it has slid out, the page behind it does not scroll: the root takes `overflow: hidden`, which keeps the reader's position. The page reserves the scrollbar gutter all the time (`scrollbar-gutter: stable` on the root), so hiding a classic scrollbar does not reflow it.
337
338
  - **Motion.** It slides in over `--duration` and out over `--duration-fast`, with `--ease-out`, while the overlay fades. Reduced motion shows and hides it at once.
338
339
  - **Forced colors.** As for the dialog: the shadow drops and the edge draws in the system colour.
339
340
 
341
+ ## Slideout
342
+
343
+ Layer: Core.
344
+
345
+ - **Anatomy.** A modal panel that slides in from an edge and holds filters or secondary detail. It is the [drawer](#drawer)'s floating layer, with square corners, on the `--color-overlay` backdrop. It has a header (the drawer's title type and a close button, a [quiet action](#quiet-action)), a body that scrolls on its own, and an optional footer on `--color-surface` with its actions at the end, as the [dialog](#dialog)'s footer. Rules between the parts are `--color-border-subtle`.
346
+ - **Edge.** The page names the edge. The default is the trailing edge (the right in a left-to-right page); the top and the bottom are allowed. The leading edge belongs to the navigation drawer. A side slideout is full height and `min(75%, 384px)` wide; a top or bottom slideout is full width and as tall as its content, up to 75% of the dynamic viewport height.
347
+ - **States.** Closed, open, and closing: `data-closing` keeps it open while it slides out.
348
+ - **Do.** Use a slideout for filters, settings, or the detail of a selected item that the reader opens beside the page and closes to go on, and open it from a named button, such as Filters.
349
+ - **Don't.** Navigation in a slideout: that is the drawer's job. The page's main task stays on the page, and a short task that needs an answer is a dialog.
350
+ - **Keyboard and screen reader.** As for the dialog. Every close returns focus to the trigger; a link inside it is not the drawer's in-page exception.
351
+ - **Backdrop.** As for the drawer: a tap or click on the backdrop closes it, the same way Escape does, and a drag that starts inside and ends outside leaves it open.
352
+ - **Page behind.** As for the drawer: the page behind it does not scroll until it has slid out.
353
+ - **Phones.** At `max-width: 640px` the footer's actions stack at full width in source order, so the primary action, last, sits nearest the thumb. A side slideout keeps its 75% width, so the page still shows beside it.
354
+ - **Touch.** At tablet width (`max-width: 800px`) the close button and the footer's actions grow to `--control-touch`, as every control does.
355
+ - **Motion.** As for the drawer, from its own edge: it slides in over `--duration` and out over `--duration-fast`, with `--ease-out`, while the overlay fades. Reduced motion shows and hides it at once.
356
+ - **Forced colors.** As for the dialog: the shadow drops and the edge draws in the system colour.
357
+
340
358
  ## Navigation list
341
359
 
342
360
  Layer: Core. The mono font on rail rows is identity.
@@ -596,7 +614,7 @@ Layer: Identity.
596
614
 
597
615
  Layer: Identity.
598
616
 
599
- - **Anatomy.** A static header at least 64px tall on `--color-bg` with a solid 1px `--color-text` rule below it. At the start is the project switcher: a `<details>` whose summary, a [quiet action](#quiet-action), shows the mono, semibold project name after a `~/` mark in `--color-project` (drawn by CSS, so it is not read), then a chevron. It keeps the quiet-action tint, but it opens a menu and does not act, so it takes the 8px field corner (`--radius-field`), as a select does. Its menu is a floating layer, with the dialog's tokens, listing the shared project registry in the order it defines, as navigation rows with concentric 8px corners (`calc(var(--radius-panel) - var(--space-1))`), with the current project marked `aria-current="page"`. At the end are the site links and the appearance picker: an icon-only segmented control at `lg`. The site links are a [navigation strip](#navigation-list) of rows `--control-md` tall (32px), and `--control-touch` at tablet width. A link to a page inside the site takes `aria-current="page"` on that page, with the current-page recipe.
617
+ - **Anatomy.** A static header at least 64px tall on `--color-bg` with a solid 1px `--color-text` rule below it. At the start is the project switcher: a `<details>` whose summary, a [quiet action](#quiet-action), shows the mono, semibold project name after a `~/` mark in `--color-accent` (drawn by CSS, so it is not read), then a chevron. It keeps the quiet-action tint, but it opens a menu and does not act, so it takes the 8px field corner (`--radius-field`), as a select does. Its menu is a floating layer, with the dialog's tokens, listing the shared project registry in the order it defines, as navigation rows with concentric 8px corners (`calc(var(--radius-panel) - var(--space-1))`), with the current project marked `aria-current="page"`. At the end are the site links and the appearance picker: an icon-only segmented control at `lg`. The site links are a [navigation strip](#navigation-list) of rows `--control-md` tall (32px), and `--control-touch` at tablet width. A link to a page inside the site takes `aria-current="page"` on that page, with the current-page recipe.
600
618
  - **Position.** Every family site, this design system's site included, starts its header with the project switcher. It is the same on every page: never a breadcrumb or a page title, which go above the page's h1 as [breadcrumbs](#breadcrumbs), and the first breadcrumb is the way back to the site's home page. The links sit at the same x on every page, and the current link is as wide as it is on other pages (see the [horizontal strip](#navigation-list)). A header that puts its links right after the switcher, as this design system's site does, is a grid at `min-width: 801px` (`auto minmax(0, 1fr) auto`), so where the links start never depends on the page.
601
619
  - **States.** The project menu is closed or open; while open, its summary keeps the quiet action's hover tint. Site links take the navigation row states.
602
620
  - **Do.** Keep the same header and site links, six at most and in one order, on every page of a personal product site.
@@ -43,6 +43,8 @@ Each entry records a choice this language made, the options it rejected, and why
43
43
  | Segmented touch size | Core | At tablet width a segmented control of any size sets `--item` to `--control-touch` (unsized only until 2026-11-23). | Growing only the buttons' `min-height`: `--item` stayed at `--control-md`, so icon-only options were 36×44 ovals (found at Gate M). | No test yet |
44
44
  | Compact controls | Core | `--control-sm` is 28px (`1.75rem`), Astryx's small element height (`--size-element-sm`). Buttons pad `--space-2` (8px) at `sm` with a 6px icon gap, 10px at `md`, and `--space-3` at `lg`. Badges pad 2px by 6px with a 4px dot gap. A new [chip](components.md#chip) is 24px tall with `--space-2` padding. The owner chose this on 2026-11-22 from a rendered comparison of today's controls, the proposal, and Astryx, after finding the board busy. | Astryx's 12px button padding at every size: the owner asked for narrower controls, and the height cut alone left `sm` buttons as wide as before. Astryx's 12px `sm` label: personal work keeps the shared type family at `--text-sm` (13px). Astryx's solid status badges: status surfaces are soft tints (DESIGN.md, Theme and color), and solid fills are louder than a busy screen can take. Astryx's semibold pressed option: the thumb and accent text already mark it, and a weight change needs a hidden copy of each label to stop the width from shifting. Astryx's 0.98 press scale: the 1px sink is part of quiet depth. | token value: `tests/token-values.test.mjs` "tokens.css preserves DS-1 values except …"; recipes: `tests/catalogue/catalogue.spec.ts` and the ui-sdk parity test `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" |
45
45
  | Control size scale | Core | `--control-sm`, `--control-md`, and `--control-lg` are 28px, 32px, and 36px (`1.75rem`, `2rem`, `2.25rem`), Astryx's element sizes (`--size-element-sm`, `-md`, `-lg`). A control with no size is `md`. A separate `--control-touch`, 44px (`2.75rem`), is what controls of every size grow to at tablet width; only the catalogue's inert size specimens and the phone header samples keep their sizes there. On desktop, docs-site header links and quiet actions (Copy, close, Full size, the project trigger) are `--control-md`, and terminal-capture tabs take the tab box. The owner chose this on 2026-11-23: 36px `md` felt big beside 28px `sm`. On 2026-11-24 the owner found the 44px desktop links, tabs, and quiet actions too thick. | The 28 / 36 / 44px scale (until 2026-11-23): `md` sat 8px above `sm`, so a medium control stood out in a dense screen, and `lg` doubled as the touch size. Astryx's 32px `md` and 36px `lg` were first rejected on 2026-11-22 because `md` would move every form and `lg` served touch; the owner's feedback on `md`, and a separate touch token, removed both reasons. Making `sm` the default: documentation and product pages would need `md` on every control, and the gap to `md` is now 4px. Growing only unsized controls at tablet width (the rule before): an application screen sets every control at `sm`, so its touch targets would stay 28px, and an explicit `lg` would drop from 44px to 36px. `--control-touch` for docs-site links and icon actions at every width (2026-11-23 to 2026-11-24): on desktop they stood 12px taller than every 32px control beside them. | token values: `tests/token-values.test.mjs` "tokens.css preserves DS-1 values except …"; rendered sizes and touch growth at 1280, 800, and 375px: `tests/catalogue/catalogue.spec.ts` "<page> renders control sizes at <width>px", `tests/site/site.spec.ts` "links and icon actions keep their sizes and hit areas", and `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue at 375px" |
46
+ | Touch sizes in tokens.css | Core | Owner decision, 2026-11-25: `tokens.css` ships the tablet touch rule. At `max-width: 800px` it sets `--control-sm`, `--control-md`, and `--control-lg` to `--control-touch`, so every control sized from them grows with no rule of its own. A size specimen sets the three back on itself. | The rule in each page and library: `DESIGN.md` stated it but no CSS shipped it, so each consumer wrote its own list of touch selectors and missed some. | `tests/catalogue/base.spec.ts` "at 800px, controls of every size are 44, 44, 44px tall"; specimens: `tests/catalogue/catalogue.spec.ts` "components.html renders control sizes at 375px" |
47
+ | Pointer cursor in the base | Core | Owner decision, 2026-11-25: the `tokens.css` base gives enabled buttons, selects, summaries, choice inputs, ranges, file and colour inputs, and the ARIA button, tab, menu item, option, switch, checkbox, radio, and non-editable combobox roles `cursor: pointer`, and so the labels that wrap or follow an enabled choice. It sits in `@layer base` inside `:where()`, so any component cursor wins; disabled controls keep the `not-allowed` their component sets. | A separate opt-in stylesheet: a second import and load order for one rule, while `tokens.css` already ships the base element rules. A rule with specificity: it would outrank a busy button's `wait`. | `tests/catalogue/base.spec.ts` "enabled controls and the labels of enabled choices show the pointer" |
46
48
  | Segmented track inset | Core | The track is the control height and insets its options 2px from its outer edge (its 1px border and 1px of padding), with 2px between options, as Astryx's segmented control does (`SegmentedControl.tsx`: 2px padding and gap; `SegmentedControlItem.tsx`: item height the element height minus 4px, 8px padding at `sm`, 12px at `md` and `lg`). Each option is its own thumb, with `calc(var(--radius-control) - var(--inset))`, 6px, measured from the outer edge because the border is part of the track's visible curve: the one control corner below 8px, a named exception to the row corner. The owner asked for it on 2026-11-22 after the 28px `sm` filter's thumb looked off centre in its 30px track. Options set `line-height: normal` after the font shorthand, so the label's line box is its content area and sits centred: the inherited 1.6 put IBM Plex 1.8px above centre in a 24px `sm` option, and `line-height: 1` put Inter 0.5px above centre at `sm` and `md` (Chromium), because its ascent and descent round to an odd total. | A thumb inset 2px inside each full-height option (the rule until 2026-11-22): the track was 2px taller than the control (34px beside a 32px button at `sm`, then 30px beside 28px), and the thumbs sat 4px apart. The mockups' nested 12px track around 8px rows: at 28px tall, a 4px inset leaves a 20px option, which is cramped. Measuring from the padding edge (7px): the visible curve is the border's, so 7px reads as a corner that does not follow the track. | thumb centred and track height equals the same-size button: `tests/catalogue/catalogue.spec.ts`; ui-sdk parity: `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" |
47
49
  | Application density | Core | In an application screen, buttons, fields, and segmented controls are `sm` (28px), the main action included, and chips stay 24px. The main action stands out by its primary fill. The owner dropped the `md` main action on 2026-11-23: `md` felt big beside `sm`. Rows are `--row` tall, with `--text-sm` body text and `--text-xs` metadata. Documentation and product pages keep `md`. At tablet width every touch target grows to `--control-touch`, at every size. The owner chose this on 2026-11-22 from the board mockups. | Toolbar controls alone at `sm`, the rule before: forms and actions inside a pane stayed `md`, so one screen mixed two heights. `md` everywhere: the board read as busy. One `md` main action per screen (the first version of this rule): it felt big next to `sm` controls. | No test yet |
48
50
  | Tab density | Core | A tab has the button's box: at least `--control-md` (32px) tall, 10px inline padding, no block padding, and line height 1; `data-size="sm"` tabs, for app screens, are 28px with 8px padding. Tabs grow to `--control-touch` at tablet width. The list keeps its 4px padding, which keeps the selected tab's shadow whole where the list clips. The owner asked for narrower tabs with less dead space on 2026-11-24. | The tab before: `--space-2` `--space-3` padding with line height 1.6 made a 38px tab, taller than every control beside it, and 84px wide for "Overview". 2px list padding: it clips the selected tab's `--shadow-nav-current`, which reaches 4px below the tab. | heights: `tests/catalogue/catalogue.spec.ts` "renders control sizes" (tabs at their exact control height) |
@@ -51,6 +53,7 @@ Each entry records a choice this language made, the options it rejected, and why
51
53
  | Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one tag style, `--color-nav-current-text` semibold, only on a message that needs the reader. A mention is static text, not a link. | Bubbles or cards around messages: the board read as busy, and Slack, T3 Code, and ChatGPT use flat rows. A row of buttons on every message: it repeats the same actions down the stream. A toolbar as a `role="group"`: three Tab stops for each message in a long stream. A thread in a dialog: it hides the channel the reader is replying about. Building the components in the board app first: the app's code would become the only definition. | rendered corners by role and the conversation keyboard paths: `tests/catalogue/catalogue.spec.ts`; parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
52
54
  | Phone header | Core | The family shell, option A, which the owner chose on 2026-11-11: the site's header matches the other family sites. At tablet width the static header has two rows, the project switcher and the appearance control, then the Pages strip. Where both do not fit, as at 320px, the appearance control wraps to its own row at the start, as UiSiteHeader does on PluginBench and Filip Stack, and the project name never truncates. The rule below the header is the family's solid `--color-text` line. Just below it, at the start, the labelled trigger ("Components: By purpose") opens the drawer from the left, the side it sits on. The drawer is titled with the rail's name and holds Find and the rail's groups. `/` opens it with Find focused. Without JavaScript nothing moves. | The Gate M single sticky row with the site name, then icon-only Find and Menu buttons, with the pages and appearance in the Menu drawer: the site had no way to the other family sites, and the Menu button sat at the right while the drawer slid in from the left. Option B, keeping that row and sliding the drawer in from the right: it kept the site apart from the other seven family sites. Truncating the project name at 320px so both controls shared row 1: the family wraps the picker instead, and the name should never truncate. | `tests/site/site.spec.ts` "the switcher and appearance share the first row, then the pages, then the trigger", "the switcher and appearance take a row each, then the pages, then the trigger", "every clipped strip link shows at least 16px", "the trigger opens the drawer from the left edge, titled with the rail and holding Find and the rail only", "the trigger label follows the current section as the page scrolls"; `tests/catalogue/catalogue.spec.ts` "the trigger opens the drawer on the current row, and a link closes it and focuses the target" |
53
55
  | Drawer instead of a long strip | Core | A horizontal strip holds 6 links or fewer; a longer list moves into the drawer at tablet width. | The catalogue's 26-link strip on phones: most links sat off screen, and the page broke its own drawer spec. | rail moves into the drawer: `tests/catalogue/catalogue.spec.ts` "resizing moves the rail between the page and the drawer, and the pages and appearance stay in the header"; six-link strip limit: no test yet |
56
+ | Drawer and slideout | Core | Owner decision, 2026-11-25: two components for two jobs. A drawer holds navigation and opens from the leading edge; a slideout holds filters or secondary detail, opens from the trailing edge by default (the top or bottom when the page names it), is `min(75%, 384px)` wide, and may have a footer whose actions stack on phones. Both share the floating layer, backdrop, page-scroll lock, and slide, and every slideout close returns focus to its trigger. | One drawer for navigation and detail: the owner reads "drawer" as a navigation menu, so a filter panel called a drawer read as the wrong component, and the one spec could not say which edge or width a panel takes. | spec parts: `tests/component-parts.test.mjs` "every component section has every part, or says None with a reason"; edge, width, close, scroll lock, and footer: `tests/catalogue/catalogue.spec.ts` "slideout" |
54
57
  | Purpose groups | Core | The catalogue and `components.md` group components by purpose (Actions, Selection, Inputs, Feedback and status, Containers and overlays, Navigation, Code and examples, then Identity). Each section keeps its Core or Identity badge, and the heading ids stay unchanged, so old deep links still work. | Core, then Identity, in build order: a reader had to know a component's layer to find it. Splitting the catalogue into pages: agents copy from and grep one file, and the hosts serve a fixed list of files. | No test yet |
55
58
  | Find and its shortcut | Core | A find field filters the rail; `/` focuses it. A saved switch in the rail footer turns single-key shortcuts off (WCAG 2.1.4), and the shortcut is ignored in editable elements and while a modal dialog is open. | No shortcut: Find is a long Tab away. A shortcut with no off switch: it fails WCAG 2.1.4 for speech and switch users. | shortcut and its switch: `tests/catalogue/catalogue.spec.ts` "/ focuses Find, types normally in a field, and does nothing once shortcuts are off" |
56
59
  | No command palette | Core | Find, which filters the rail, and no command palette. Revisit when a site has more than one searchable index. | A command palette: Find already covers a single-page catalogue and a site of about 25 skills. | No test yet |
@@ -77,9 +80,11 @@ Each entry records a choice this language made, the options it rejected, and why
77
80
  | Live example stage | Core | The stage sits on the page background (`--color-bg`), not in a well or a panel. It is the named exception to the container depth tier. | A raised or inset stage changes the surface under the preview, so raised controls do not look as they do on a page. | No test yet |
78
81
  | Live example source | Core | Inside the frame, the code block drops its own radius, border, and shadow, and spans the frame's width. The frame draws the one edge. | A rounded well with its own edge and shadow inside the frame is a frame inside a frame. | No test yet |
79
82
  | Token names | Core | One set of names, the design system's own: `--color-*` for colours, `--shadow-*` for shadows, and `--text-*`, `--radius-*`, and `--font-*` for type sizes, radii, and fonts. See [Token names](#token-names). | Two sets, the [1.x short names](#token-names) here and `--color-*` names in ui: every site and agent translated between them through `ui:` comments, and the 1.x control radius used Tailwind's `-md` name for a 999px pill where Tailwind's is 0.375rem. Short names everywhere: about 920 references in 27 files across six repositories, a ui major release, and 18 new names. | no 1.x names: `tests/token-names.test.mjs` "no payload file uses a 1.x token name" |
80
- | Default fonts | Core | Owner decision, 2026-11-24: Inter for `--font-ui` and JetBrains Mono for `--font-mono`, the industry-standard pairing. Both are self-hosted from `fonts.css` (latin, 400, 500, and 600, under the OFL), so every operating system renders the same faces. A theme may still set its own two stacks. | IBM Plex Sans and Mono, the faces before: the owner chose the standard pairing. The system font stack: it renders a different face on each operating system, so text metrics and the look differ per reader. Figtree: considered and not chosen. | faces load: `tests/react-smoke/smoke.spec.ts` "the Inter and JetBrains Mono faces load from fonts.css" |
81
- | Subtree themes | Core | Owner decision, 2026-11-24: `data-theme="dark"` or `"light"` on any element below `<html>`, or a `.dark` class on `<html>` or below it, themes that subtree. The token build generates one block per mode (`.dark` or `[data-theme="dark"]`, and `[data-theme="light"]`, each under `:root`; `data-theme="light"` wins over `.dark` on one element) that redeclares every token that differs between the modes or follows one that does, since a custom property resolves where it is declared. Each theme file adds blocks for what it changes there, such as its light hue and its neutrals. The selectors carry `:root`, so they outrank a bare `:root` input, as the root dark rules do. The subtree takes its mode's text colour from the base layer. On `<html>`, `data-theme` and the system preference work as before; `class="dark"` there is new and forces dark unless `data-theme="light"` is also set. | Changed-value blocks only: the derived tokens (accent mixes, wells, shadows) keep the page's mode. A component library's own `.dark` copy of every dark value: it drifts from the build. Moving the dark switch from `--color-project` to `--color-accent`, so a light subtree needs no hue of its own: it changes what `var(--color-project)` reads in dark on `<html>`. | nested subtrees in every theme: `tests/catalogue/subtree-themes.spec.ts` |
83
+ | Default fonts | Core | Owner decision, 2026-11-24: Inter for `--font-ui` and JetBrains Mono for `--font-mono`, the industry-standard pairing. Both are self-hosted from `fonts.css` (latin and latin-ext, 400, 500, and 600, under the OFL; latin-ext since 2026-11-25, so names such as Łódź or Dvořák keep the face, and a browser fetches it only for a page that uses those characters), so every operating system renders the same faces. A theme may still set its own two stacks. | IBM Plex Sans and Mono, the faces before: the owner chose the standard pairing. The system font stack: it renders a different face on each operating system, so text metrics and the look differ per reader. Figtree: considered and not chosen. | faces load: `tests/react-smoke/smoke.spec.ts` "the Inter and JetBrains Mono faces load from fonts.css" |
84
+ | Subtree themes | Core | Owner decision, 2026-11-24: `data-theme="dark"` or `"light"` on any element below `<html>`, or a `.dark` class on `<html>` or below it, themes that subtree. The token build generates one block per mode (`.dark` or `[data-theme="dark"]`, and `[data-theme="light"]`, each under `:root`; `data-theme="light"` wins over `.dark` on one element) that redeclares every token that differs between the modes or follows one that does, since a custom property resolves where it is declared. Each theme file adds blocks for what it changes there, such as its neutrals. The selectors carry `:root`, so they outrank a bare `:root` input, as the root dark rules do. The subtree takes its mode's text colour from the base layer. On `<html>`, `data-theme` and the system preference work as before; `class="dark"` there is new and forces dark unless `data-theme="light"` is also set. | Changed-value blocks only: the derived tokens (accent mixes, wells, shadows) keep the page's mode. A component library's own `.dark` copy of every dark value: it drifts from the build. Moving the dark switch from `--color-project` to `--color-accent`, so a light subtree needs no hue of its own: it changes what `var(--color-project)` reads in dark on `<html>`. | nested subtrees in every theme: `tests/catalogue/subtree-themes.spec.ts` |
85
+ | Accent switches by mode | Core | Owner decision, 2026-11-25: the theme inputs never change with the mode. `--color-project` is the light hue and `--color-project-dark` the dark hue in every mode, and `tokens.css`'s dark and light blocks switch `--color-accent` between them, so every token that follows the accent computes as before. A hue-only theme is one `:root` rule that works after `tokens.css`, in its cascade layer or a later one. Breaking: `var(--color-project)` in dark, the dark `color-project` in `tokens.json`, and the `--color-project` that `themeVariables()` returns for a dark theme are now the light hue; read `--color-accent` for the hue of the current mode. | The dark blocks reassigning `--color-project` to `var(--color-project-dark)`, and the light subtree block repeating the default literal hue: a theme had to sit in `tokens.css`'s own layer and repeat its hue per mode, or its `:root` rule beat the dark blocks from a later layer and showed the light hue in dark. | every colour token in each placement, mode, and subtree: `tests/catalogue/theme-placement.spec.ts` |
82
86
  | Theme inputs list | Core | Owner decision, 2026-11-24: the token build publishes `dist/theme-inputs.json` (`./theme-inputs.json`), the names a theme may set by kind: the hue pair, the text on the hue's fills, the two fonts, the base radius, the neutrals, and the syntax colours. It comes from the engine, so it follows the build. A component library's own test reads it and fails when one of its themes sets any other token, so "theme inputs only, never overrides" is checked here, not by convention. `./theme-mapper` also exports `checkTheme(inputs)`, the shipped themes' contrast checks, for themes this package does not ship. | A hand-kept list in the README: it drifts from the engine. A list in each component library: each copy drifts, and none follows a new input. | list and shipped themes: `tests/theme-inputs.test.mjs` "every shipped theme file sets only theme inputs", "the theme mapper sets only theme inputs" |
87
+ | Theme builder entry | Core | Owner decision, 2026-11-25: `./theme-builder` exports `themeCss(file)` and `parseTheme(file)`, the code the token build writes `themes/*.css` with, so a consumer turns its own theme file into CSS without copying `tokens.css`'s selectors. A theme file may also set the text on the hue (`color-accent-text`, `color-nav-current-text`, `color-segmented-current-text`) per mode, and the README documents the format, `radius-base` included. | Each consumer generating its theme CSS from the selectors in `tokens.css`: every copy drifts when the build changes them, as the subtree blocks did. A builder in `scripts/` only: it reads the file system and is not in the package. | `tests/theme-files.test.mjs` "the theme-builder entry writes each shipped theme file as the build does", "a theme file may set the text on the hue per mode, as srgb colours" |
83
88
  | Sidebar width name | Core | Owner decision, 2026-11-24: the sidebar width is `--sidebar-width` (224px). A breaking rename of `--sidebar`. | `--sidebar`: shadcn-based apps define `--sidebar` as a colour, so a page that loads both breaks one of them. | DS-1 parity under the rename: `tests/token-values.test.mjs` "tokens.css keeps the DS-1 declarations except the inherited command aliases" |
84
89
  | Versioning | Core | Releases are 1.0.x patches while the system has no outside users, tagged `ds-v*` from the `ds-v1.0.0` seed. Every release, a breaking one included, is a patch; the release notes name a breaking change written as `!` or a `BREAKING CHANGE:` footer in the commit message. npm already holds 1.1.0 through 2.4.0 from the earlier `v*` series, so leaving 1.0.x means 2.5.0 or 3.0.0. | Semver majors and minors (2.x): the numbers signalled a maturity the system does not have yet. 0.0.x: npm already holds 1.0.0, and a `^0.0.1` range matches only 0.0.1. | patch cap: `tests/release.test.mjs` "the release analyzer caps feat, fix, and breaking changes, from a commit or a PR body, at a patch", "the release analyzer releases nothing for chore-only commits"; tag series: `tests/release.test.mjs` "the site version comes from the latest ds-v tag and ignores the earlier v tags" |
85
90
  | Agent delivery | Core | A Claude and Codex plugin whose root is this repository. Its `design-system` skill reads `language/` in place, and each release stamps its version into the plugin manifests and commits them back, since both hosts cache a plugin by version. A `docs` commit releases a patch, because agents read `language/` as instructions. | filip-stack host config copying the pinned package to `~/design-system`: it tied the design system to filip-stack and needed its own installer. A plugin folder holding a copy of `language/`: plugin caches cannot reach outside the plugin folder, so the copy would need a build step and a staleness check. | skill path: `tests/plugin.test.mjs` "the design-system skill names a DESIGN.md that exists in the plugin"; version stamp: `tests/plugin.test.mjs` "a release stamps its version into every plugin manifest and keeps the other fields"; docs release: `tests/release.test.mjs` "the release analyzer releases a patch for a docs commit, since agents read language/ through the plugin" |
@@ -638,8 +638,8 @@
638
638
 
639
639
  <h4>Identity, links, and focus</h4>
640
640
  <ul class="swatches">
641
- <li class="swatch" data-token="--color-project" data-on="--color-bg" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project</code><span class="value"></span><span class="ratio"></span><span class="use">The project hue; <code>--color-accent</code> follows it</span></li>
642
- <li class="swatch" data-token="--color-project-dark" data-on="--color-terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The dark-theme hue and the terminal capture accent</span></li>
641
+ <li class="swatch" data-token="--color-project"><i class="chip" aria-hidden="true"></i><code>--color-project</code><span class="value"></span><span class="use">The light-theme hue; <code>--color-accent</code> takes it in light</span></li>
642
+ <li class="swatch" data-token="--color-project-dark" data-on="--color-terminal" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-project-dark</code><span class="value"></span><span class="ratio"></span><span class="use">The dark-theme hue, which <code>--color-accent</code> takes in dark, and the terminal capture accent</span></li>
643
643
  <li class="swatch" data-token="--color-accent" data-on="--color-bg --color-surface-raised --color-code" data-min="3"><i class="chip" aria-hidden="true"></i><code>--color-accent</code><span class="value"></span><span class="ratio"></span><span class="use">Primary action fill, marks, current items, checked controls; 4.5:1 where it colors text</span></li>
644
644
  <li class="swatch" data-token="--color-accent-text" data-on="--color-accent --color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-accent-text</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button label</span></li>
645
645
  <li class="swatch" data-token="--color-button-hover" data-fg="var(--color-accent-text)" data-on="--color-button-hover" data-min="4.5"><i class="chip" aria-hidden="true"></i><code>--color-button-hover</code><span class="value"></span><span class="ratio"></span><span class="use">Primary button hover</span></li>
@@ -8,8 +8,9 @@
8
8
  * pair, fonts, and base radius. This file carries the default theme. Another theme keeps this file
9
9
  * unchanged and loads its themes/<id>.css after it, on :root; that file may also set
10
10
  * the theme's neutrals. A new project can set the identity lines on :root in its own
11
- * stylesheet the same way. The dark blocks switch --color-project to
12
- * --color-project-dark, so the override needs no dark rule. Check --color-accent-text,
11
+ * stylesheet the same way. The dark blocks switch --color-accent to
12
+ * --color-project-dark, so the hue pair needs no dark rule: one :root rule works after this file,
13
+ * in its cascade layer or in a later one. Check --color-accent-text,
13
14
  * --color-nav-current-text, and --color-segmented-current-text at 4.5:1 on the new hue
14
15
  * and override them when they fall short. A theme file sets the last two for you; its
15
16
  * hue must carry --color-accent-text itself, which the contrast tests check.
@@ -25,16 +26,17 @@
25
26
  * "light" on any element below <html>, or a .dark class on <html> or below it,
26
27
  * themes that subtree; the subtree blocks at the end redeclare what each mode
27
28
  * changes, and the subtree takes its mode's text colour. data-theme="light" wins over
28
- * .dark on one element. A theme written by hand repeats its light values on
29
- * :root [data-theme="light"] and its dark values on the dark subtree block's selectors,
30
- * so they hold in a subtree too. A theme file does this for you.
29
+ * .dark on one element. A theme written by hand that sets neutrals or text on the hue repeats
30
+ * those light values on :root [data-theme="light"] and the dark ones on the dark subtree block's
31
+ * selectors, so they hold in a subtree too; the hue pair needs no repeat. A theme file does this for you.
31
32
  */
32
33
 
33
34
  :root {
34
35
  color-scheme: light;
35
36
 
36
37
  /* Identity layer: a project swaps these five lines. --color-project is the light-theme hue;
37
- --color-project-dark is the dark-theme hue, also used on terminal captures in both themes.
38
+ --color-project-dark is the dark-theme hue, also used on terminal captures in both themes. Neither changes
39
+ with the mode: --color-accent takes one or the other.
38
40
  --radius-base sets every corner but the pill and the circle. */
39
41
  --color-project: #4b45d1;
40
42
  --color-project-dark: #a5a1ff;
@@ -210,7 +212,6 @@
210
212
  @media (prefers-color-scheme: dark) {
211
213
  :root:not([data-theme="light"]) {
212
214
  color-scheme: dark;
213
- --color-project: var(--color-project-dark);
214
215
  --color-bg: #0d1012;
215
216
  --color-surface: #13171a;
216
217
  --color-surface-raised: #181d21;
@@ -226,6 +227,7 @@
226
227
  --color-text: #e6e9eb;
227
228
  --color-muted: #9aa3ab;
228
229
  --color-overlay: rgb(0 0 0 / 62%);
230
+ --color-accent: var(--color-project-dark);
229
231
  --color-link: #67c1df;
230
232
  --color-success: #4cc38a;
231
233
  --color-warning: #e2a54b;
@@ -250,7 +252,6 @@
250
252
 
251
253
  :root[data-theme="dark"] {
252
254
  color-scheme: dark;
253
- --color-project: var(--color-project-dark);
254
255
  --color-bg: #0d1012;
255
256
  --color-surface: #13171a;
256
257
  --color-surface-raised: #181d21;
@@ -266,6 +267,7 @@
266
267
  --color-text: #e6e9eb;
267
268
  --color-muted: #9aa3ab;
268
269
  --color-overlay: rgb(0 0 0 / 62%);
270
+ --color-accent: var(--color-project-dark);
269
271
  --color-link: #67c1df;
270
272
  --color-success: #4cc38a;
271
273
  --color-warning: #e2a54b;
@@ -294,7 +296,6 @@
294
296
 
295
297
  :root.dark:not(:where([data-theme="light"])), :root [data-theme="dark"], :root .dark:not(:where([data-theme="light"])) {
296
298
  color-scheme: dark;
297
- --color-project: var(--color-project-dark);
298
299
  --color-bg: #0d1012;
299
300
  --color-surface: #13171a;
300
301
  --color-surface-raised: #181d21;
@@ -314,7 +315,7 @@
314
315
  --color-text: #e6e9eb;
315
316
  --color-muted: #9aa3ab;
316
317
  --color-overlay: rgb(0 0 0 / 62%);
317
- --color-accent: var(--color-project);
318
+ --color-accent: var(--color-project-dark);
318
319
  --color-accent-text: var(--color-bg);
319
320
  --color-accent-hover: var(--color-text);
320
321
  --color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
@@ -355,7 +356,6 @@
355
356
 
356
357
  :root [data-theme="light"] {
357
358
  color-scheme: light;
358
- --color-project: #4b45d1;
359
359
  --color-bg: #f4f5f6;
360
360
  --color-surface: #e9ebed;
361
361
  --color-surface-raised: #fbfbfc;
@@ -414,6 +414,13 @@
414
414
  --shadow-field-focus-invalid: inset 0 0 0 2px color-mix(in srgb, var(--color-error) 18%, transparent);
415
415
  }
416
416
 
417
+ /* Touch: at tablet width, controls of every size grow to --control-touch (components.md, Rules for every
418
+ control), so a component sized from --control-sm, --control-md, or --control-lg needs no touch rule of its own.
419
+ A size specimen that must keep its size sets the three back on itself. */
420
+ @media (max-width: 800px) {
421
+ :root { --control-sm: var(--control-touch); --control-md: var(--control-touch); --control-lg: var(--control-touch); }
422
+ }
423
+
417
424
  /* Minimal base. Component styles live in components.html. The base sits in a layer, so any
418
425
  page or component rule outranks it whatever its specificity. A layered !important outranks an
419
426
  unlayered one, so reduced-motion exceptions belong here too. */
@@ -439,6 +446,14 @@ body { background: var(--color-bg); color: var(--color-text); }
439
446
  a:hover { text-decoration: underline; }
440
447
  p a, dd a { text-decoration: underline; text-underline-offset: 0.18em; }
441
448
  :focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
449
+ /* Enabled controls, and a label that wraps or follows an enabled choice, show the pointer. :where() keeps it
450
+ weightless, so a component's cursor, such as a busy button's wait, wins. Disabled controls keep the
451
+ not-allowed cursor their component sets (components.md, Disabled). An editable combobox keeps the text cursor. */
452
+ :where(button, select, summary, [role="button"], [role="tab"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"], [role="switch"], [role="checkbox"], [role="radio"], [role="combobox"]:read-only:not(input, textarea), input:is([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])):where(:not(:disabled, [aria-disabled="true"], [data-disabled])),
453
+ :where(label:has(:is(input:is([type="checkbox"], [type="radio"]), [role="switch"], [role="checkbox"], [role="radio"]):not(:disabled, [aria-disabled="true"], [data-disabled]))),
454
+ :where(:is(input:is([type="checkbox"], [type="radio"]), [role="switch"], [role="checkbox"], [role="radio"]):not(:disabled, [aria-disabled="true"], [data-disabled]) + label) { cursor: pointer; }
455
+ /* The file input's chooser button is its own box, so it takes the input's cursor. */
456
+ :where(input[type="file"]:not(:disabled, [aria-disabled="true"], [data-disabled]))::file-selector-button { cursor: inherit; }
442
457
  @media (prefers-reduced-motion: reduce) {
443
458
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
444
459
  /* A busy spinner slows instead of stopping, so the busy state stays visible. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipgutica/design-system",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Filip's design language, tokens, and component catalogue for any framework",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -21,6 +21,10 @@
21
21
  "types": "./theme-mapper/index.d.ts",
22
22
  "default": "./theme-mapper/index.js"
23
23
  },
24
+ "./theme-builder": {
25
+ "types": "./theme-mapper/theme-builder.d.ts",
26
+ "default": "./theme-mapper/theme-builder.js"
27
+ },
24
28
  "./open-vsx": {
25
29
  "types": "./open-vsx/index.d.ts",
26
30
  "default": "./open-vsx/index.js"
@@ -1,2 +1,4 @@
1
1
  /** The core tokens: every theme's base. @type {import('./engine.js').TokenSource} */
2
2
  export const core: import("./engine.js").TokenSource;
3
+ /** The default theme's inputs, which tokens.css carries. @type {import('./engine.js').ThemeInputs} */
4
+ export const defaultTheme: import("./engine.js").ThemeInputs;