Design system

Sondalab UI kitv0.45.0

75 entries (components, effects and patterns; a component with several demos counts once) and 112tokens, drawn by the kit's own CSS. This page is generated from the package installed at build time, so it is always the version this site runs.

Tokens

Click a row to copy var(--token). Colour tokens show their value in both themes; a theme that leaves one undefined says so.

font

space

radius

text

line

z

motion

shadow

focus

viz

bg

border

status

accent

code

spectrum

Contrast

Measured in your browser from the live tokens, in each theme, against WCAG 2: 4.5:1 for text (AA), 7:1 for AAA, 3:1 for non-text.

Ink on groundLightDark

Primitives

Eyebrow sl-eyebrow#

The micro label above a heading: mono, uppercase, --sl-text-micro (10.5px), weight 500, tracked 0.06em, muted (L1). The single strongest family signal, spent on structure only. Substrate: R on App/Page/IDE. Consumes: --slc-text-muted, --sl-font-mono, --sl-text-micro. Don't: sentence-case it, use a sans face, or put it on anything you operate — controls speak in sentence case (L1).

System status

Markup
<p class="sl-eyebrow">System status</p>

Tag / tier marker sl-tag#

Accent-tinted mono mark with a leading dot, in sentence case, tracked 0.02em; classification/status. Since 0.36 it is Lumen's: 11.5px at r6 (it was a 12px pill), 8px in and 4px above and below, 22px tall as before. Substrate: R App/Page. Consumes: --slc-accent, --slc-accent-subtle (--plain: --slc-text-muted, --slc-border). Don't: introduce a second accent hue for tags, or write the label in capitals — the class no longer upper-cases it (0.30).

Delivered Draft
Markup
<span class="sl-tag">Delivered</span>
<span class="sl-tag sl-tag--plain">Draft</span>

Filter chip sl-chip sl-chips#

A toggleable filter; a row of them is a multi-select where any number may be on. A control, so sentence case, untracked; since 0.36 it is Lumen's composer chip, in the mono at 12.5px (it was the sans at 12), because what it names is a reference or a value, as a tag's is (L1). It is r6 (it was a pill), 8px in and 4px above and below on a 14px line, so it is 24px tall, the small button's row (it was 22), and its dot is a rounded square (r2). Off: outlined in the one control edge, in the muted ink, with a hollow dot. On: the tag's accent ink and wash, dot filled — so the state reads by colour, fill and glyph. The filled dot is what says "on" at 3:1 (0.36.2: ≥ 4.6:1 on the wash, ≥ 5.2 where the hollow dot showed the ground); the edge stays the one control edge, on or off (until 0.36.1 the wash in shade, 1.36:1). Substrate: R App/IDE, A Page. Consumes: --slc-text-muted, --slc-text, --slc-border, --slc-border-strong, --slc-accent, --slc-accent-subtle, --slc-focus, --slc-edge-hairline, --slc-edge-control-hover. Do: drive it with aria-pressed and label the group. Don't: use chips for one-of-N (that is sl-segmented), or for a label that does nothing (that is sl-tag).

Markup
<div class="sl-chips" role="group" aria-label="Event kinds">
  <button class="sl-chip" aria-pressed="true">Tool <span class="sl-chip__count">42</span></button>
  <button class="sl-chip" aria-pressed="false">Spawn <span class="sl-chip__count">3</span></button>
  <button class="sl-chip" aria-pressed="true">Result</button>
</div>

Button sl-btn#

Three Lumen keys (0.32, L2). The primary is a flat key on a foot: its accent fill (--slc-accent-fill where the product sets one, at any scope), edged in the fill in shade, with one more pixel of that edge along the bottom as a background layer, so its box is a plain button's and the row stays 32px (24px small) whatever padding a product gives .sl-btn; pressed, the foot moves to the top and the key sinks a pixel. Since 0.36 every button is Lumen's: 13.5px type (12.5px small) on a fixed 14px line, so the rows hold at a product's own type size too; 8px between an icon, the label and a key; 12px in (8px small); the small button at r7. Held, a button sinks to 97% about its centre (Lumen's press) and springs back, except inside sl-btn-group, whose members do not move (a sunk member would open the 1px rules between them), or under any ancestor that sets --slfx-pane-swell: 1, which every press path reads, bare, sl-fx-press or glass; icon buttons, chips, segments and pagination items keep the squash. The secondary (--ghost) is a raised key: the raised rung in the one control edge, lit inside its top, on a short cast; hover lifts it to the tile rung. A plain sl-btn is text. Substrate: R App/IDE, A Page. Consumes: --slc-accent, --slc-accent-fill, --slc-accent-fill-hover, --slc-accent-fill-active, --slc-on-accent-fill, --slc-accent-subtle, --slc-edge-accent, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-edge-pressed, --slc-seam, --slc-raised, --slc-tile, --slc-lit, --slc-shadow-sm, --slc-text, --slc-danger, --slc-on-danger, --slc-focus. A non-primary text button rests on --slc-edge-hairline, a translucent hairline (owner exception, 2026-10-26); hover restores the 3:1 control edge. Do: state the effect in the label (L5 voice). Don't: use a default-blue CTA or hover:opacity as the only state. Don't: re-bind --slc-accent on the primary to deepen its fill — set --slc-accent-fill once on the root (README, Tier B), and every labelled fill follows. A background shorthand of your own on a primary strips its foot with its fill (as stripping it to text should).

Markup
<button class="sl-btn sl-btn--primary">Save changes</button>
<button class="sl-btn sl-btn--ghost">Cancel</button>
<button class="sl-btn">Skip</button>
<button class="sl-btn sl-btn--primary sl-btn--sm">Add</button>
Markup
<button class="sl-btn sl-btn--primary sl-btn--danger">Delete workspace</button>
<button class="sl-btn sl-btn--ghost sl-btn--danger">Drop cache</button>
<button class="sl-btn sl-btn--danger sl-btn--sm">Archive</button>
Markup
<button class="sl-btn sl-btn--primary" aria-keyshortcuts="Meta+S">Save changes <kbd class="sl-kbd" aria-hidden="true">⌘S</kbd></button>
<button class="sl-btn sl-btn--ghost sl-btn--sm" aria-keyshortcuts="R">Re-run <kbd class="sl-kbd" aria-hidden="true">R</kbd></button>
Markup
<button class="sl-btn sl-btn--ghost sl-btn--sm" aria-pressed="true">Pause</button>
<button class="sl-btn sl-btn--ghost sl-btn--sm" aria-pressed="false">Follow</button>
Usage, tokens and rules

Hover dither (Tier 1, mount(); pixel direction D, replacing ink). Under the effects layer a button's hover is a Bayer dither wipe: the fill grows in 3px cells from where the pointer crossed the edge and drains toward where it left, over the glass frost and tint (under the shine and the label) and over the host's own background where there is no glass; the label flips to its on-fill pole once half the button is covered. The fill is --slfx-dither-fill (the inverse neutral on a primary, the accent on every other button, the danger on a danger tone) and the label --slfx-dither-on; both are role-vars a product may rebind. The edge stays the control's own, so a round icon button keeps a smooth circle. Reduced motion, high contrast, forced colours and data-sl-fx="off" get the declared CSS hover alone. The layer is a span injected on the first hover, so :empty, :first-child and :only-child selectors on a button change then.

Danger tone (--danger, 0.32). A tone on any button, not a variant. On a primary it swaps the fill for the danger, labelled in --slc-on-danger, edged and footed in the danger in shade; on a secondary or a plain button it is the danger ink on a 12% wash of itself with a danger edge, filling with the danger on hover. Its focus ring and halo are the danger's. sl-icon-btn--danger is the same tone on an icon button. Do: keep one destructive action per view and say in the label what goes. Don't: use the tone for an error state or a warning — that is a badge or a callout; the tone marks an action that destroys something.

Shortcut in a button (0.31). A shortcut rides in the label as a child keycap, never as ::after (glass owns a button's pseudo-elements). Name the shortcut on the button with aria-keyshortcuts and hide the cap from its accessible name. The cap is 18px (16px in --sm) and gives its extra height back in negative margin, so the button stays on the 32px (24px) row; its text is the label's colour on a fill that steps away from the label, so it never reads weaker than the label on the button: on a neutral button (plain, ghost, a pressed toggle, in a band too) a half wash of the pole opposite the ink; on a primary its fill (the accent, the product's accent fill or the danger) one step further from its label's pole; on a glass pane primary, whose label is re-picked from the composited pane, that composite one step further from the pane's label. High contrast rings it in its label's colour.

Toggle button. An on/off button is a plain or ghost sl-btn carrying aria-pressed; "on" takes the accent text, an accent wash and a seam (0.36.2): the segment's short line of the accent, 40% wide, 3px above the bottom edge (1px on a small button). The seam is what says "on" at 3:1 against the button at rest (the wash and the ink read 1.0–2.6:1); the edge stays the one control edge in both states (until 0.36.1 the wash in shade, 1.01–1.41:1), stepping to its hover edge under the pointer. The CSS reads the attribute, so flip aria-pressed and nothing else — no .on/.active class. Do: keep the label constant and let the state show it (a label that flips between "Pause" and "Resume" is a plain button, not a toggle). Don't: put aria-pressed on sl-btn--primary — its fill already reads as "on", so there is nothing to switch to. On glass the pressed wash is carried as the pane's fill and the seam is drawn again on the pane's specular layer (effects.css), so the state survives the material. Not in an inversion band: glass tints a band with the page's canvas, and there neither a pressed label (1.4–2.7:1, unchanged since 0.36.1) nor the seam reaches its floor (a known gap). Keep a band's toggles bare.

Link sl-link#

Underlined, accent on hover. Substrate: R App/Page. Consumes: --slc-accent. Don't: remove the underline (leave the affordance).

Markup
<a class="sl-link" href="/specs">read the spec</a>

Badge sl-badge#

Semantic status mark, in sentence case in the sans (L1). Semantic colour is independent of the accent hue and shared. Since 0.36 it is Lumen's shape: r6 (it was a pill), 8px in and 4px above and below (it was 12px in), 22px tall as before. Substrate: R App/IDE. One modifier per status: --success, --warning, --danger, --info — never a bare sl-badge. Add --live when the thing it labels is working right now: its dot breathes (not under reduced motion). The words still carry the state ("Running"). Consumes: --slc-text, --slc-success, --slc-warning, --slc-danger, --slc-info. Don't: recolour a badge to the accent — status ≠ accent.

Passing Failed
Markup
<span class="sl-badge sl-badge--success">Passing</span>
<span class="sl-badge sl-badge--danger">Failed</span>

Card sl-card#

Surface panel. Substrate: R App. Consumes: --slc-surface, --slc-border-subtle, --slc-text, --slc-text-secondary. Don't: make a rounded-lg card grid the primary layout — prefer the hairline grid (below).

Migration report
2 R-violations resolved, 1 blessed.
Markup
<article class="sl-card">
  <h3 class="sl-card__title">Migration report</h3>
  <div class="sl-card__body">2 R-violations resolved, 1 blessed.</div>
</article>

Field sl-field#

Label + input/textarea/select, with an optional hint or error line under it. The label is read with the control, so it is sentence case in the sans, in the secondary ink (L1; it was a mono uppercase micro label before 0.30). Substrate: R App. With a hint or an error line, the host is a <div> and the label names the input by for; the line is a sibling the input points at with aria-describedby: Do: wrap consecutive fields in sl-field-stack (a column with --sl-space-4 between fields). Don't: put sl-field__hint or sl-field__error inside a wrapping <label class="sl-field">. Everything inside a label becomes the input's accessible name, so the line is read as part of the name and then again as its description.

Markup
<label class="sl-field">
  <span class="sl-field__label">Product</span>
  <input class="sl-field__input" type="text" placeholder="introspect">
</label>

The registry name, lower case.

Six hex digits, e.g. a registry value.

Markup
<div class="sl-field">
  <label class="sl-field__label" for="product">Product</label>
  <input class="sl-field__input" id="product" type="text" placeholder="introspect" aria-describedby="product-hint">
  <p class="sl-field__hint" id="product-hint">The registry name, lower case.</p>
</div>
<div class="sl-field">
  <label class="sl-field__label" for="accent">Accent</label>
  <input class="sl-field__input" id="accent" type="text" value="#12" aria-invalid="true" aria-describedby="accent-error">
  <p class="sl-field__error" id="accent-error">Six hex digits, e.g. a registry value.</p>
</div>
Usage, tokens and rules

Consumes: --slc-sunken, --slc-depth-sunk, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-text, --slc-text-muted, --slc-danger, --slc-focus. The input is a well (0.32): the sunken rung and the sunk inset cast inside the one control edge; focused (on any focus, a pointer's included), the border takes the ring's colour and the halo rings it. Do: keep the shared focus ring. sl-field__control is the wrapper an effect binds to — see Glass and Aurora below; without an effect the field needs no wrapper.

aria-invalid="true" on the input is the invalid state — no extra class. The edge, the focus ring and the focus halo all take the danger ink together (never a red edge inside an accent ring). Do: point aria-describedby at a sl-field__error line, which leads with a drawn mark so the state never rests on colour alone; remove both the attribute and the line once the value is valid. Don't: mark a field invalid before the user has had a chance to fill it.

Checkbox sl-check#

A <label> host, a visually-hidden but focusable <input>, a <span> that paints the box, and a <span> that carries the text. Substrate: R IDE/App, A Page. Mixed (a parent box over a partly-checked set): set input.indeterminate = true from script — there is no attribute for it; the box fills and shows a dash instead of the tick. Don't: put aria-checked on the native checkbox (ARIA in HTML forbids it, and a screen reader announces the native state anyway).

Markup
<label class="sl-check">
  <input class="sl-check__input" type="checkbox">
  <span class="sl-check__box"></span>
  <span class="sl-check__label">Run the audit on save</span>
</label>
Usage, tokens and rules

Consumes: --slc-canvas, --slc-sunken, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-accent, --slc-accent-fill, --slc-on-accent-fill, --slc-edge-accent, --slc-glow, --slc-text, --slc-focus. The box is a small well at r5 on the canvas (0.36, Lumen's; it was r6 on the sunken rung), 16px of padding box (18px outside, as before), its tick a 6 x 6 mark on 2px cells centred in it (0.39, pixel direction D), its tick a crisp pixel shape drawn by CSS alone (the mixed dash too), so it looks the same under reduced motion or with no mount(); with mount(), checking dithers the fill in from the centre and plots the tick cell by cell, and unchecking reverses it (Tier 1, --sl-motion-check), the radio's well too, and in an inversion band, where the canvas is the band's ink, on the band's sunken wash; checked or mixed, it is the accent fill on an inset foot of its own shade, with a soft glow of the fill as strong as --slc-glow. Do: keep the four parts in that order — sl-check__box is styled by an adjacent-sibling selector, so an element between it and sl-check__input breaks every checked state. Don't: hide the input with display:none or visibility:hidden; both remove it from the focus order and the control stops being reachable by keyboard.

Radio sl-radio#

The checkbox's shape with a round box and a dot. Substrate: R IDE/App, A Page. Consumes: --slc-canvas, --slc-sunken, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-accent, --slc-accent-fill, --slc-on-accent-fill, --slc-edge-accent, --slc-glow, --slc-text, --slc-focus. The box is the checkbox's well on the canvas (0.36; the sunken rung before), and the band's sunken wash inside an inversion band. Its dot is 12 3px cells, a 2 x 2 core with a one-cell arm on each side, which reads round at this size (0.39, pixel direction D), drawn by CSS; with mount() it steps from the core to the full dot on checking, and the radio it replaces steps back down (Tier 1, --sl-motion-radio). Checked, like a checkbox: the accent fill on its foot, with its glow. Do: give every radio in a set the same name. Don't: use a radio where only one option exists — that is a checkbox.

Markup
<label class="sl-radio">
  <input class="sl-radio__input" type="radio" name="tier">
  <span class="sl-radio__box"></span>
  <span class="sl-radio__label">Tier A — full theme selector</span>
</label>

Switch sl-switch#

A checkbox that reads as a state rather than a choice: use it where the change takes effect immediately, and a checkbox where it takes effect on submit. Substrate: R IDE/App, A Page. Consumes: --slc-sunken, --slc-depth-sunk, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-accent, --slc-accent-fill, --slc-on-accent-fill, --slc-edge-accent, --slc-glow, --slc-text, --slc-focus. The track is sunk (0.32) and on the 3px lattice since 0.39 (pixel direction D): 35 × 20px border-box, a 33 × 18px padding box of 11 × 6 cells, a 12px knob one cell in from either end, travelling 15px in five 3px steps (steps(5) on --sl-motion-switch, only under no-preference); with mount() the fill dithers in from the knob and drains back to it, and an off track carries no texture; on, it is the accent fill on its foot with its glow, the knob in the fill's label. Do: carry role="switch" on the input, so the state reaches a screen reader as on/off rather than as checked. Don't: put ON/OFF text inside the track — the knob's position is the state, and a label that repeats it goes stale in translation.

Markup
<label class="sl-switch">
  <input class="sl-switch__input" type="checkbox" role="switch">
  <span class="sl-switch__track"></span>
  <span class="sl-switch__label">Tier 2 GPU effects</span>
</label>

Select sl-select#

The chevron a <select> cannot draw for itself. Composes onto sl-field__control, the wrapper the effects layer already binds to, so a field and a select take an effect the same way. Substrate: R IDE/App, A Page. Consumes: --slc-text-muted, --slc-edge-hairline, --slc-edge-control-hover. Do: keep sl-field__input on the <select> itself — the border, the ground and the focus ring all come from there. Don't: reach for a mask-image to draw the arrow; a mask on a <select> masks its text along with the arrow. Don't: put the glass/aurora effect classes on .sl-select itself — it is a wrapper, but its ::after is the chevron, and both families paint their ring there too, so the chevron is replaced in silence. Nest .sl-select inside .sl-field__control and dress that instead.

Markup
<label class="sl-field">
  <span class="sl-field__label">Substrate</span>
  <span class="sl-field__control sl-select">
    <select class="sl-field__input">
      <option>App</option>
      <option>IDE</option>
      <option>Page</option>
    </select>
  </span>
</label>

Callout sl-callout#

Banner / admonition. The panel is a light wash of its status; the accent is a short "measure tick" on the top edge (not a left stripe). Substrate: A App/Page. One modifier per status: --success, --warning, --danger, --info colours the tick. Consumes: --slc-surface, --slc-accent, --slc-success, --slc-warning, --slc-danger, --slc-info. Don't: reinstate a full left border stripe.

Tier B

Every colour must resolve to a Sondalab value.
Markup
<div class="sl-callout sl-callout--info">
  <p class="sl-callout__title">Tier B</p>
  <div class="sl-callout__body">Every colour must resolve to a Sondalab value.</div>
</div>

Rule sl-rule#

Hairline divider; --labeled centres a micro-label caption (mono, uppercase, --sl-text-micro) over the line. Substrate: R App/Page. Consumes: --slc-border. Weight is always 1px — never thicken a separator.


since 0.2.0
Markup
<hr class="sl-rule">
<div class="sl-rule sl-rule--labeled">since 0.2.0</div>

Table sl-table#

Data table shell. Wrap in an overflow-x:auto container so wide tables never scroll the page. Substrate: R App. Consumes: --slc-border-subtle, --slc-text, --slc-text-secondary, --slc-surface, --slc-tile, --slc-depth-tile. Do: --numeric for tabular figures. A selected row is <tr aria-selected="true"> (0.31): a raised tile — the tile fill and --slc-depth-tile on the row, so the ring and the lit line run unbroken across its cells, and the rules above and below it give way. A row has no corners, so the tile is square. The ring and the cast are what find it: on the light theme the tile is the table's own white, so the fill alone measures 1.00:1, and an engine that does not paint a row's shadow shows nothing. Under forced colours the rules around it are drawn in Highlight. aria-selected on a <tr> is announced only in a role="grid" (or treegrid): give an interactive table that role, or carry the state in the row itself — a checkbox cell, or a visually hidden "selected".

ProductR-violations
daos2
Markup
<div style="overflow-x:auto">
  <table class="sl-table sl-table--numeric">
    <thead><tr><th>Product</th><th>R-violations</th></tr></thead>
    <tbody><tr><td>daos</td><td>2</td></tr></tbody>
  </table>
</div>
q-8f2aDeterministic resolve
q-77c1Evidence replay
Markup
<table class="sl-table" role="grid" aria-label="Probes" aria-multiselectable="true">
  <tbody>
    <tr aria-selected="true"><td>q-8f2a</td><td>Deterministic resolve</td></tr>
    <tr aria-selected="false"><td>q-77c1</td><td>Evidence replay</td></tr>
  </tbody>
</table>

Tabs sl-tabs#

Visual-only tabs (consumer wires ARIA + panel switching). Active tab uses a 2px accent underline — an emphasis accent, not a separator. Substrate: R App. Consumes: --slc-accent, --slc-text, --slc-text-secondary, --slc-text-muted, --slc-border, --slc-tile, --slc-depth-flat, --slc-seam. On the underline tabs the active state is the accent (never a neutral). On the tile tabs below it is a neutral tile with the kit's seam, a short line 3px above its bottom edge (the wrapper sl-tabs__item carries it in the second pattern), and the accent is otherwise only its icon.

Markup
<div class="sl-tabs">
  <div class="sl-tabs__list" role="tablist">
    <button class="sl-tabs__tab" aria-selected="true">Tokens</button>
    <button class="sl-tabs__tab">Components</button>
  </div>
</div>
Markup
<div class="sl-tabs__list sl-tabs--tile" role="tablist" aria-label="Open files">
  <button class="sl-tabs__tab" role="tab" aria-selected="true" aria-keyshortcuts="Delete">
    <span>resolve.ts</span><span class="sl-tabs__dot" aria-hidden="true"></span><span class="sl-tabs__close" aria-hidden="true">×</span>
  </button>
  <button class="sl-tabs__tab" role="tab" aria-selected="false" aria-keyshortcuts="Delete"><span>cache.ts</span></button>
</div>
<div class="sl-tabs__list sl-tabs--tile" role="tablist" aria-label="Open files">
  <div class="sl-tabs__item" role="none">
    <button class="sl-tabs__tab" role="tab" aria-selected="true" aria-keyshortcuts="Delete"><span>evidence.ts</span></button>
    <button class="sl-tabs__close" type="button" tabindex="-1" aria-label="Close evidence.ts">×</button>
  </div>
</div>
Usage, tokens and rules

Tile tabs — sl-tabs--tile (0.31, Lumen): the editor's tab strip. A modifier on the same tablist: no rule under the strip, no underline; the active tab is a flat tile (--slc-tile with --slc-depth-flat: lit and ringed, no cast) in the primary ink, its icon in the accent; hover is a flat wash that lifts the ink to the secondary. Since 0.34 a tab is Lumen's: 28px at r7, 13px at weight 500, 12px in (Lumen's 11.2, on the kit's 4px grid). The tile tab lives in components.css, so the change reaches every product at its upgrade. Inside a tab, in order: an icon, the name, sl-tabs__dot (unsaved work) and sl-tabs__close. The dot is a dot, so it is aria-hidden and the tab's name says the state in words. The close glyph is borderless chrome — the one documented exception to the one control edge (design-language L3). A <button> may not sit inside role="tab", so there are two patterns, and the consumer wires the closing in both: an aria-hidden span inside the tab for the pointer, with Delete on the focused tab (announced with aria-keyshortcuts); or, so assistive tech reaches the close by name, the tab and a sibling <button class="sl-tabs__close" tabindex="-1" aria-label="Close …"> in a role="none" wrapper, sl-tabs__item, which then carries the tile. Substrate: R IDE, A App. Don't: pair it with sl-fx-aurora--linear — that rides the underline, which a tile tab does not have. Don't: put a real <button> inside the tab.

Tooltip sl-tooltip#

A CSS-only label above its host, in the inverted ink. The text lives in data-sl-tooltip; a host that is not already focusable takes tabindex="0" so the keyboard reveals it too. Substrate: R App/IDE, A Page. Consumes: --slc-text, --slc-raised. It rises 4px into place as it fades in, on --sl-motion-mid and the arrival curve --sl-motion-enter (still under reduced motion). Do: keep it to one short line (it never wraps). Don't: put anything a user must read to act in a tooltip — it is a hint, invisible on touch; and on an icon button repeat the text in aria-label, since the pseudo-element is not its accessible name.

4.89:1
Markup
<span class="sl-tooltip" data-sl-tooltip="Measured on the canvas ground" tabindex="0">4.89:1</span>
<button class="sl-icon-btn sl-tooltip" data-sl-tooltip="Re-run the audit" aria-label="Re-run the audit">↻</button>

Kbd / inline code sl-kbd sl-code#

A keycap (0.31, Lumen) and inline monospace code. The keycap is a small physical key: Geist Mono 500, at least 20px square, 4px in (5 before 0.36), radius 5, a fill that steps from raised to surface, a ring in the default line, a lit top line and a base that is its own fill in shade (--slc-depth-key; since 0.36 a full step on paper and a quarter of one on ink, Lumen's, where a full step read as a black line). One cap per key. High contrast rings it in white; under forced colours, which drop the depth, it gets a drawn CanvasText edge. Inside a button it is the in-button key (see Button). Substrate: A. Consumes: --slc-raised, --slc-surface, --slc-text-secondary, --slc-depth-key, --slc-accent-text, --slc-accent-subtle, --sl-font-mono.

Press ⌘K, then run sl-audit.
Markup
Press <kbd class="sl-kbd">⌘</kbd><kbd class="sl-kbd">K</kbd>, then run <code class="sl-code">sl-audit</code>.

Dialog sl-dialog#

Visual shell for the native <dialog> (consumer wires open/close). Substrate: R App. Consumes: --slc-raised, --slc-border, --slc-overlay, --slc-text, --slc-text-secondary, --slc-depth-float. It floats on the overlay cast (--slc-depth-float, three layers under its own border in shade, which is the ring) at --sl-radius-lg (14px since 0.31). Opened with showModal(), it rises 6px and fades in with its backdrop, and falls back as it closes where overlay is supported (@starting-style and transitions on --sl-motion-mid with the arrival curve --sl-motion-enter; no keyframes). Reduced motion, or a browser without @starting-style, opens it at once. Don't: put a display of your own on a closed sl-dialog to show it — a closed dialog is transparent; set open instead.

Discard changes?
This cannot be undone.
Markup
<dialog class="sl-dialog">
  <h2 class="sl-dialog__title">Discard changes?</h2>
  <div class="sl-dialog__body">This cannot be undone.</div>
  <div class="sl-dialog__actions">
    <button class="sl-btn sl-btn--ghost">Keep</button>
    <button class="sl-btn sl-btn--primary">Discard</button>
  </div>
</dialog>

Toast sl-toast-stack sl-toast#

A message that arrives (0.33, Lumen), in a stack fixed to the bottom right, newest last, nearest the corner. Since 0.34 it is Lumen's toast: the raised rung at r12 on Lumen's cast (--slc-depth-cast), whose ring is its only edge, so it keeps no border (under forced colours, which drop the cast, it gets a CanvasText outline inside its box); padding 12 / 12 / 16 / 16px, top, end, bottom, start (Lumen's 12.8 / 12.8 / 14.4 / 16, on the 4px grid). The tone is a 1px line of light on its top edge, from 16px in to the middle, fading, glowing at 50% wherever --slc-glow is not 0 (not in high contrast; drawn in CanvasText under forced colours), and the 16% wash under its 24px mark. It lives in components.css, so the change reaches every product at its upgrade. The words stay neutral. It arrives as the dialog does: a 6px rise and a fade from @starting-style, on --sl-motion-mid and the arrival curve, with transitions only, so reduced motion shows it at once. In components.css. Substrate: R App/IDE, A Page. Consumes: --slc-raised, --slc-depth-cast, --slc-text, --slc-text-secondary, --slc-text-muted, --slc-glow, --slc-info, --slc-success, --slc-warning, --slc-danger. A bare sl-toast is neutral: its tick and mark use the muted ink. The dismiss is the icon button's own 32px (24 before 0.34), and it keeps the one control edge. A toast that dismisses itself shows its time left as sl-toast__timer on an sl-progress: no track, a 2px bar of the tone at 70% along the flat of the bottom edge, 16px in from either end, still a 2px bar in high contrast and under forced colours; say the time in its aria-valuenow.

Probe saved

q-8f2a re-runs in 14 days

Markup
<div class="sl-toast-stack">
  <div class="sl-toast-stack__live" aria-live="polite"><div class="sl-toast sl-toast--success">
      <span class="sl-toast__mark" aria-hidden="true"><svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor"><path d="m3.5 8.5 3 3 6-7"/></svg></span>
      <div class="sl-toast__content">
        <p class="sl-toast__title">Probe saved</p>
        <p class="sl-toast__body">q-8f2a re-runs in 14 days</p>
      </div>
      <button class="sl-btn sl-btn--sm">Undo</button>
      <button class="sl-icon-btn sl-toast__dismiss" aria-label="Dismiss">×</button>
      <div class="sl-progress sl-toast__timer" role="progressbar" aria-label="Time left" aria-valuemin="0" aria-valuemax="100" aria-valuenow="62" style="--sl-progress: 62%"><span class="sl-progress__bar"></span></div>
    </div></div>
  <div class="sl-toast-stack__live" role="alert"></div>
</div>
Usage, tokens and rules

Live regions. The stack itself has no role, so it is not a landmark. It holds two regions side by side, never one inside the other: a polite one (aria-live="polite") for every toast, and an alert one (role="alert") for a toast that must interrupt. The toasts carry no role, so nothing is read twice. Keep both regions in the DOM, empty, from page load, because a region that is inserted together with its content is not announced. Never hide an empty region with display: none or display: contents: it would drop out of the accessibility tree.

Above a modal dialog (opt-in). A showModal() dialog sits in the top layer, above any z-index. A stack that must show over one is a manual popover: add popover="manual" to the stack and call showPopover() once. Without that call the popover stack stays hidden, and its regions with it. A closed popover's regions are hidden live regions, which announce nothing. After a dialog opens, call hidePopover() and then showPopover() again, so the stack is the later of the two in the top layer. Add the toast a frame later (requestAnimationFrame): the regions have only just come back into the accessibility tree, and an addition in the same frame may not be heard. The stack undoes the browser's popover box (inset, margin, padding, border, background, overflow), and a closed one stays hidden.

Do: mount the stack as a child of <body>, never inside an sl-invert band, whose roles are washes of the band's own ground. Do: pause any auto-dismiss while the toast is hovered or focused, and never auto-dismiss a toast that offers an action. Don't: move focus to a toast, or put the only path to an action in one. Don't: put glass, press or glitch on a toast. Its tick is its ::before, which those three need; ::after is left free for the aurora.

App structure

Sidebar nav sl-nav#

A vertical list of destinations under micro-label group titles (mono, uppercase, --sl-text-micro). The current one is aria-current="page" and is a raised tile (0.31, Lumen): the tile fill, a lit top line, a ring and a short cast, in the primary ink, with a seam — a 2px line, half the item's height, 3px inside its leading edge (owner, 2026-10-02: the tile alone reads ~1.0–1.3:1 against its ground; the seam ≥ 3:1 against the tile on every ground). Since 0.33 the seam is the kit's one state cue for every selected or current tile, and it says where the focus is: the accent (--slc-seam) while the nav holds the focus, the muted ink while it does not. An icon in it takes the accent. Hover is a flat wash; only the current item lifts. (Until 0.31 it took a 2px accent edge on the leading side over the accent wash.) Substrate: R App/IDE, N/A Page. Consumes: --slc-text-muted, --slc-text-secondary, --slc-text, --slc-accent-text, --slc-tile, --slc-depth-tile, --slc-seam, --slc-focus. The seam is a layer of the item's own background, not a pseudo-element, so an effect family on the item keeps its ::before; a background shorthand of yours on the current item wipes it (set background-color). Do: mark the current destination with aria-current (aria-current="false" is not current), not a class. Give the nav a little inset (its pane's padding) so the tile's ring and cast have room. Don't: use it as the page's only navigation on a marketing page — that is the header's job.

Markup
<nav class="sl-nav" aria-label="Sections">
  <div class="sl-nav__group">Observe</div>
  <a class="sl-nav__item" href="/live" aria-current="page">Live <span class="sl-nav__count">12</span></a>
  <a class="sl-nav__item" href="/sessions">Sessions <span class="sl-nav__count">340</span></a>
</nav>

List sl-list#

Selectable rows for a master-detail pane or a feed. A row is a <button>/<a>, or role="option" inside role="listbox"; the selected one is aria-selected="true" (or aria-current on a link). --dense is the IDE register: mono, tighter. Substrate: R App/IDE, A Page. Consumes: --slc-text, --slc-text-muted, --slc-text-secondary, --slc-accent-text, --slc-tile, --slc-depth-tile, --slc-seam, --slc-focus. The selected row is a raised tile (0.31; the accent wash with a pressed edge before) with the kit's seam on its leading edge (0.33: the accent while the list holds the focus, the muted ink while it does not), its meta in the secondary ink and an icon in it in the accent; hover is a flat wash. An icon's colour on a selected row (> svg, weighing (0,3,1) and more) outranks a single-class colour of yours on the icon: colour your file icons at that weight, or not on a selected row. Rows are borderless, the old 1px border is padding, so a row is the size it was. Do: let the row's own markup carry its columns (a grid inside the row is fine). Don't: use it for tabular data with comparable columns — that is sl-table.

Markup
<div class="sl-list" role="listbox" aria-label="Sessions">
  <button class="sl-list__row" role="option" aria-selected="true">Refactor the audit<span class="sl-list__meta">2m ago · 14 tools</span></button>
  <button class="sl-list__row" role="option" aria-selected="false">Prism light theme<span class="sl-list__meta">1h ago · 212 tools</span></button>
</div>

Disclosure sl-disclosure#

The expand/collapse control: a <button aria-expanded> whose chevron points right when closed and down when open. The panel is the consumer's (aria-controls + hidden). Substrate: R App/IDE, A Page. Consumes: --slc-text-secondary, --slc-text, --slc-focus. Do: flip aria-expanded and hidden together. Don't: animate the panel's height — the chevron is the motion.

Markup
<button class="sl-disclosure" aria-expanded="false" aria-controls="raw-1">Raw payload</button>
<pre id="raw-1" hidden>…</pre>

Key-value list sl-kv#

A <dl> of labelled facts on a two-column grid; labels in the muted ink, values in the text ink, long values wrap under themselves. Substrate: R App/IDE, A Page. Consumes: --slc-text-muted, --slc-text. Don't: nest a table in a value; a fact that needs columns is not a fact.

Model
claude-opus-5-5
Started
2026-09-30 17:52
Markup
<dl class="sl-kv">
  <dt>Model</dt><dd>claude-opus-5-5</dd>
  <dt>Started</dt><dd>2026-09-30 17:52</dd>
</dl>

Resizer sl-resizer#

The drag handle between two panes: a 9px hit area around a 1px rule, turning to a 2px accent line on hover, drag and keyboard focus. Vertical (a column split) by default, --horizontal for a row split. The dragging is the consumer's. Substrate: R App/IDE, N/A Page. Consumes: --slc-border-subtle, --slc-accent, --slc-focus. Do: make it keyboard-operable (tabindex="0", arrow keys move it, aria-valuenow tracks it). Don't: draw a second line beside it; the handle is the rule between the panes.

Markup
<div class="sl-resizer" role="separator" aria-orientation="vertical" aria-label="Resize the list" aria-valuenow="320" aria-valuemin="200" aria-valuemax="640" tabindex="0"></div>

Workbench

Workbench components are desktop chrome: they keep their width and scroll sideways on a narrow screen instead of collapsing.

Title bar sl-titlebar#

The workbench's top frame (0.34), on the canvas as Lumen draws it: a 44px grid of three tracks, 1fr minmax(0, 32rem) 1fr, so the command field holds a centre track of up to 512px. On the left (__l, 12px apart): a slot for a compact menu button (__menu, an app whose menus are not the system's: Windows, Linux), the product's mark (__mark: the display face, 700 at 15px, tracked -0.04em, with __dot, a 5px dot of the accent, a child sitting 1px up) and a crumb (__crumb: 13px in the secondary ink, its __sep separators muted, an ellipsis where it runs out). In the centre the command field (__cmd): the one control height, 32px (Lumen's 30), at r8 in the one control edge, the surface rung lit along its top, the muted ink at 13px, the raised rung and the edge's hover step under the pointer, the shared flush ring and halo on focus; __cmd-text takes the room, __keys holds the keycaps. On the right (__r, 8px apart) the title-bar icon buttons (__btn on an sl-icon-btn), which rest on the surface rung in the icon button's own edge (a pressed toggle keeps the kit's pressed tint); __btn--dot draws Lumen's 6px unread dot on the corner, ringed in the surface, in the product's labelled fill (--slc-accent-fill) or the accent as a mark. Substrate: R IDE, A App, N/A Page. Consumes: --slc-text, --slc-text-secondary, --slc-text-muted, --slc-accent, --slc-accent-fill, --slc-accent-text, --slc-surface, --slc-raised, --slc-lit, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-focus. The bar drags the window: it is -webkit-app-region: drag (Electron) and app-region: drag (a web app's window-controls overlay), and every button, link, field, summary, label, editable, role="button" and tab stop in it is no-drag, so the pointer reaches them. A control of yours that is none of those (a <div> with a click handler) needs no-drag of its own, and so does a popup from elsewhere in the page that overlaps the bar (a menu, a palette dropped from it): the region is hit-tested as a rectangle. A product that draws the system's window buttons (macOS traffic lights) gives the bar their room as its own padding-inline-start, and drops it in full screen. The mark is the product's name, not the Sondalab wordmark, which is the brand face's (sl-wordmark). The dot on the bell is a layer of the button's background (its --_sl-layer since 0.36.2, so a bell that also toggles draws its seam over the dot), so its pseudo-elements stay an effect's; forced colours drop it with every image and give the button a 2px Highlight edge instead, and the button's name says the state ("Notifications, 3 unread"). Do: put the product's real Quick Open shortcut in __keys, from its keybinding registry, and name it in aria-keyshortcuts. Don't: nest a second drag region, or put the title bar in an sl-invert band.

spexr probe-enginesrc
Markup
<header class="sl-titlebar">
  <div class="sl-titlebar__l">
    <button class="sl-icon-btn sl-titlebar__btn sl-titlebar__menu" aria-label="Menu">…</button>
    <span class="sl-titlebar__mark">spexr<span class="sl-titlebar__dot" aria-hidden="true"></span></span>
    <span class="sl-titlebar__crumb">probe-engine<span class="sl-titlebar__sep" aria-hidden="true">/</span>src</span>
  </div>
  <button class="sl-titlebar__cmd" type="button" aria-keyshortcuts="Meta+P">
    <span class="sl-titlebar__cmd-text">Search files, run a command</span>
    <span class="sl-titlebar__keys" aria-hidden="true"><kbd class="sl-kbd">⌘</kbd><kbd class="sl-kbd">P</kbd></span>
  </button>
  <div class="sl-titlebar__r">
    <button class="sl-icon-btn sl-titlebar__btn" aria-label="Toggle the right panel">…</button>
    <button class="sl-icon-btn sl-titlebar__btn sl-titlebar__btn--dot" aria-label="Notifications, 3 unread">…</button>
  </div>
</header>

Pane sl-pane [data-lit]#

An island: the surface rung on the canvas, drawn with the island recipe (a lit top hairline and the quieter ring) at --sl-radius-pane (10px), with no border of its own. data-lit marks the pane that holds the focus. That pane is the raised rung. A seam of the accent runs along its top edge as a line of light (--slc-seam), 12px in: it fades in from the leading edge and out before the far one, mirrored right to left. It is the pane's ::before, at z-index: 1, so a header or a tab strip with a ground of its own does not cover it; an overlay with a z-index of its own still paints over it. The seam's light falls below the pane (--slc-lit-drop, 0.34; it fell round the pane before) as strongly as --slc-glow allows. Substrate: R IDE, A App, N/A Page. Consumes: --slc-surface, --slc-raised, --slc-depth-island, --slc-seam, --slc-glow, --slc-lit-drop.

Explorer

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Editor

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Markup
<div style="display: flex; gap: var(--sl-space-2); padding: var(--sl-space-2); background: var(--slc-canvas)">
  <aside class="sl-pane" aria-label="Explorer">…</aside>
  <main class="sl-pane" data-lit aria-label="Editor">…</main>
</div>
Usage, tokens and rules

The lit pane's light, as Lumen renders it (0.34; owner: no accent rim round the pane). Three roles, declared with the depth recipes in components.css and re-derived on every pane from its own seam, carry it, so a product paints it on its own chrome without a literal. Each reads --slc-glow and is nothing in high contrast and under forced colours. - Wash (the role --slc-lit-wash) — an image for the tab strip or the head along the lit pane's top edge: a radial wash of the seam at 80% of Lumen's strength (20.8% at its peak on ink, 14.6% on paper) in the seam capped at oklch L 0.65, peaking toward the seam's leading end and gone by 78%, sized by the box it is painted on. At its peak a muted label reads at least 4.60:1 for every product, wherever the label sits in the strip (Lumen's own wash took one to 3.84–4.01:1 at the strip's top edge). - Tint (--slc-lit-tint) — an image for the row under it (breadcrumbs): the seam at 7% (3.5% on ink, 2.45% on paper) fading down the row, over the row's own fill. - Drop (--slc-lit-drop) — one shadow, the glow below the lit pane, which the pane wears. A product whose layout clips the pane's own shadow (Lumino's contain: strict) wears it inward on the element right under the pane, box-shadow: inset var(--slc-lit-drop): the same falloff from the same line, inside a box the clip cannot cut. High contrast draws the island as a ring in the theme's line and the seam in its yellow. Under forced colours the pane gets a CanvasText outline inside its box, and the lit pane a 2px Highlight one, with its seam in Highlight. Lit and focused are two things. data-lit is where the focus is in the workbench: you set it, and it stays while a palette or a menu holds the focus over the pane. The selections inside the pane follow the actual focus. So while a palette is open, the editor stays lit and a tree in it reads as unfocused (its seam muted). Do: set data-lit on one pane per workbench. Do: put a gap between panes (Lumen's 6px) and give the frame a little padding, so the rings and the drop have room. Don't: give a pane a border (a recipe host has none: the lit line sits flush under the ring), or put glass, press or glitch on it: its seam is its ::before.

Status bar sl-statusbar#

The workbench's meta line, on the canvas, as Lumen draws it. Facts are in the sans at the small step (--sl-text-xs, 12px), in sentence case, in the muted ink, each a 20px pill at r6 (0.34), 4px from the bar's edges; an item that does something (a <button>, a link, role="button") brings the surface rung up under the pointer, with a pointer cursor, and a link is not underlined; a fact does not answer the pointer. A value read as data (a branch, a model, a count) is __value, in the mono at the primary ink, as written: a branch is case-sensitive, so nothing is upper-cased. Hairlines between groups of facts are off, as Lumen draws none: sl-statusbar--separators on the bar turns the __sep hairlines on (they were on by default before 0.34). An accent dot marks a live state, while the words carry that state; it breathes, a ring of itself swelling and fading every 2.4s (--sl-motion-fast × 20 on the arrival curve), only under prefers-reduced-motion: no-preference; it stops under forced colours and in a data-sl-fx="off" region, and pauses under data-sl-fx-still. The bar's height is its own (28px, Lumen's 30 on the 4px grid), 4px in at the start and 8 at the end, so an item with an icon or a dot cannot move it, and a fact that does not fit ends in an ellipsis. Substrate: R IDE, A App, N/A Page. Consumes: --slc-text-muted, --slc-text, --slc-border, --slc-accent-text, --slc-surface, --slc-focus. The dot is the accent as text, a thin mark: on paper the accent itself is a fill (the default's amber reads 1.6:1 on the canvas). The separator is a border, not a fill, so it survives forced colours. The dot is drawn in CanvasText there. Don't: put role="status" on the bar. Every fact in it would be read out each time the caret moves. Give a fact that must be heard when it changes a role="status" of its own. A <footer> that is a direct child of <body> is the page's contentinfo landmark; inside an application shell, make the bar a <div role="group" aria-label="Status"> instead. Do: make an item that opens something a <button> (or a link) with the same class: its chrome is reset, it takes the shared flush ring and halo, and the bar clips only horizontally, so the halo still shows.

feat/K6-workbench ↑2 2 agents running Ln 42, Col 18 UTF-8 Opus · 1.2k tok/s
Markup
<footer class="sl-statusbar" aria-label="Status">
  <span class="sl-statusbar__item"><span class="sl-statusbar__value">feat/K6-workbench</span> ↑2</span>
  <span class="sl-statusbar__sep" aria-hidden="true"></span>
  <span class="sl-statusbar__item"><span class="sl-statusbar__dot" aria-hidden="true"></span>2 agents running</span>
  <span class="sl-statusbar__spacer"></span>
  <span class="sl-statusbar__item">Ln 42, Col 18</span>
  <span class="sl-statusbar__item">UTF-8</span>
  <span class="sl-statusbar__item">Opus · <span class="sl-statusbar__value">1.2k</span> tok/s</span>
</footer>

Activity bar sl-activitybar#

The column of views on the frame, on the canvas. Its items are chrome glyphs and borderless: together with the tab's close glyph, they are the owner-approved exception to the one control edge (L3). A strip of glyphs, each in its own edge, would put an edge beside every edge. A glyph is in the muted ink (≥ 3:1 as a graphical object), and hover is a flat wash. The current view is a flat tile on the surface rung (0.34; the tile rung before) with the kit's seam on its leading edge, and its glyph is in the accent. Since 0.34 the bar keeps Lumen's 52px column and 44px pitch on the 4px grid: 36px items at r9, 8px apart, 4px from the top; a count is a child of the item, sl-activitybar__badge, a badge 4px in from its corner: the mono at 9px on the accent fill that carries a label (--slc-accent-fill, or the accent), its label picked on that fill, ringed 2px in the canvas, a 16px pill at least 20px wide. Substrate: R IDE, N/A App/Page. Consumes: --slc-text-muted, --slc-text, --slc-surface, --slc-depth-flat, --slc-seam, --slc-accent-text, --slc-accent-fill, --slc-accent, --slc-canvas, --slc-focus. The badge is a child, never a pseudo-element (the item is an effect host, and the aurora owns its ::after); it is aria-hidden, so the item's name says the count ("Source control, 3 changes"); under forced colours it is drawn in system colours. The state is aria-current (a view, a link; aria-current="false" is not current) or aria-selected="true" (a role="tab" in a role="tablist", as an IDE's activity bar often is). Focus is the shared flush ring and halo. Do: name each view in aria-label, because the glyph is not a name. Don't: give an item a border or a fill at rest. Don't: use the borderlessness outside a strip of chrome glyphs. A lone icon button keeps its edge (sl-icon-btn).

Markup
<nav class="sl-activitybar" aria-label="Views">
  <button class="sl-activitybar__item" aria-label="Explorer" aria-current="true"><svg viewBox="0 0 16 16" width="18" height="18" fill="none" stroke="currentColor" aria-hidden="true"><path d="M4 1.75h5l3.25 3.25v9H4Z"/></svg></button>
  <button class="sl-activitybar__item" aria-label="Search"><svg viewBox="0 0 16 16" width="18" height="18" fill="none" stroke="currentColor" aria-hidden="true"><circle cx="7" cy="7" r="4.25"/></svg></button>
  <button class="sl-activitybar__item" aria-label="Source control, 3 changes"><svg viewBox="0 0 16 16" width="18" height="18" fill="none" stroke="currentColor" aria-hidden="true"><circle cx="4.5" cy="3.5" r="1.5"/></svg><span class="sl-activitybar__badge" aria-hidden="true">3</span></button>
</nav>

Tree sl-tree#

A file tree, as Lumen draws it (0.34). Rows are 24px (Lumen's 26 on the 4px grid) at 13px (14px before), and each is indented by its level. Hairline guides under every ancestor's twisty are opt-in, sl-tree--guides on the tree (Lumen draws none; they were on by default before 0.34). The twisty is a 16px box holding a chevron the size of Lumen's 12px chevron glyph (6px tall, 3px deep), drawn from two borders rather than a glyph: it needs no markup and no icon, and it turns between the two states, pointing at the hidden children and turning down with aria-expanded (a rotation, on the motion tokens). Selection is a tile (the K4 recipe) with the kit's seam. While the tree has the focus, the selected row is the raised tile with its cast, and its seam and its icon are in the accent. While the focus is elsewhere, it is a flat tile (lit and ringed, no cast), and its seam and its icon are in the muted ink. Substrate: R IDE, A App, N/A Page. Consumes: --slc-text-secondary, --slc-text, --slc-text-muted, --slc-accent-text, --slc-tile, --slc-depth-tile, --slc-depth-flat, --slc-border-subtle, --slc-seam, --slc-focus. The rows are a flat list of treeitems, so each says its own place in the hierarchy: aria-level, aria-setsize and aria-posinset, or a screen reader counts every row as a sibling. The indent reads aria-level up to 8, and a deeper row holds at 8. A deeper tree that wants its full indent writes the level again as --sl-tree-level (inline), because CSS cannot read a number out of an attribute; the kit's levels weigh nothing, so your value always wins. There is one tab stop, a roving tabindex: the arrow keys move it, and Right and Left open and close. The consumer wires those keys. An icon goes in as a direct <svg> child of the row. Its colour on a selected row (> svg, (0,4,1) while the tree is focused) outranks a single-class colour of yours on the icon. Do: keep a leaf's empty twisty, so its name lines up with its siblings'. Don't: draw selection with the accent fill. The accent is the focused selection's seam and icon only.

  • src
  • resolve.ts
  • cache.ts
Markup
<ul class="sl-tree sl-tree--guides" role="tree" aria-label="Files">
  <li class="sl-tree__row" role="treeitem" aria-level="1" aria-setsize="1" aria-posinset="1" aria-expanded="true" aria-selected="false" tabindex="-1">
    <span class="sl-tree__twisty" aria-hidden="true"></span><span class="sl-tree__label">src</span></li>
  <li class="sl-tree__row" role="treeitem" aria-level="2" aria-setsize="2" aria-posinset="1" aria-selected="true" tabindex="0">
    <span class="sl-tree__twisty" aria-hidden="true"></span><span class="sl-tree__label">resolve.ts</span></li>
  <li class="sl-tree__row" role="treeitem" aria-level="2" aria-setsize="2" aria-posinset="2" aria-selected="false" tabindex="-1">
    <span class="sl-tree__twisty" aria-hidden="true"></span><span class="sl-tree__label">cache.ts</span></li>
</ul>

Palette sl-palette#

The command palette, as Lumen draws it (0.34). It floats on Lumen's cast (--slc-depth-cast), whose ring is its edge, so it keeps no border; 580px wide at r14; the raised rung at 94% under blur(24px) saturate(1.3) where the backdrop blurs, opaque where it does not, under prefers-reduced-transparency: reduce, in high contrast and under forced colours (which also give it a CanvasText outline). A line of the accent runs just inside its top edge, from 16px in to 40% before the end, fading, glowing at 55% wherever --slc-glow is not 0, because it holds the focus; it is the palette's ::before. The head is 52px over a hairline, 16px in, 10px round the field as in the demo. The input is the kit's field (sl-field__input), the one control height, 32px, at 16px, 8px in, with no fill and no well, in the one control edge (Lumen draws it borderless; a field is found by its boundary, ≥ 3:1 against the palette). The rows are 36px, 12px between the icon and the label; the foot sits on the surface at 70% over a hairline. The active result is a raised tile with the kit's seam, always in the accent, because the palette always holds the focus. Shortcuts are keycaps, one cap per key. It never animates: it appears at once, and the active row moves without a transition, because a palette is driven at typing speed. Substrate: R IDE, A App, N/A Page. Consumes: --slc-raised, --slc-depth-cast, --slc-depth-tile, --slc-tile, --slc-seam, --slc-glow, --slc-text, --slc-text-muted, --slc-text-secondary, --slc-accent-text, --slc-border-subtle, --slc-surface, --slc-edge-hairline, --slc-edge-control, --slc-edge-control-hover, --slc-focus. Every text in it holds 4.5:1 with the page's own ink under the 6% that shows through. A match is a <mark> anywhere in the palette, in the primary ink, heavier and underlined in the accent, never the accent alone. The group label is a micro label. Do: keep the focus in the input. It is a combobox (aria-autocomplete="list") pointing at the active option with aria-activedescendant, and the options are not focusable. Give the list tabindex="-1": since Chromium 130 a scroller with no focusable children is a tab stop of its own. The input shows the field's ring and halo while it has the focus, as every field does; it takes no transition, at a weight (two classes) that holds whatever order the sheets load in. Do: mount the palette in the top layer or under <body>, never inside an sl-invert band. Don't: animate it, or the movement of its active row. Don't: put glass, press or glitch on it (0.34): its seam is its ::before.

Markup
<div class="sl-palette" role="dialog" aria-label="Command palette">
  <div class="sl-palette__head">
    <input class="sl-field__input sl-palette__input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-controls="pal-list" aria-activedescendant="pal-1" aria-label="Command" value="run probe">
  </div>
  <div class="sl-palette__list" id="pal-list" role="listbox" aria-label="Results" tabindex="-1">
    <div role="group" aria-labelledby="pal-g1">
      <div class="sl-palette__group" id="pal-g1" role="presentation">Commands</div>
      <div class="sl-palette__row" id="pal-1" role="option" aria-selected="true">
        <span class="sl-palette__label"><mark>Run</mark> <mark>probe</mark> q-8f2a</span>
        <span class="sl-palette__meta">resolve.ts</span>
        <span class="sl-palette__keys"><kbd class="sl-kbd">⌘</kbd><kbd class="sl-kbd">⏎</kbd></span>
      </div>
    </div>
  </div>
  <div class="sl-palette__foot"><span><kbd class="sl-kbd">esc</kbd> close</span></div>
</div>

Terminal block sl-term-block [data-exit]#

One command and its output, as a small island in a pane: the raised rung with the island recipe. In a lit pane, which is the raised rung too, it steps down to the sunken rung, so its fill still bounds it. It is set in the product's coding mono where the product sets one (--sl-font-code, because a terminal is product content, L1), and in the kit's mono otherwise. The exit status is a short mark on the top edge plus the exit text in the same ink: data-exit="0" is success, data-exit="cancelled" is neutral (a stop you asked for: 130, 143), and any other code is the danger. data-exit="" (an exit not known) and a block with no data-exit (still running) have no mark. The exit text is what states the status; the mark only helps find it. Substrate: R IDE, A App, A Page (a real-content block, L3). Consumes: --slc-raised, --slc-sunken, --slc-depth-island, --slc-text, --slc-text-secondary, --slc-text-muted, --slc-accent-text, --slc-success, --slc-danger. It may sit straight on an inversion band (a real-content block on the ink surface). There its wash goes and the island's ring still draws it. Under forced colours it gets a CanvasText outline inside its box, and its exit mark is drawn in CanvasText. Do: write the exit code in the words ("exit 1"), not only in the attribute, and mark a block that is running with aria-busy="true". Do: write cancelled for a stop you asked for, and keep the code in the words ("exit 130"). Don't: put glass, press or glitch on it. Its mark is its ::before, which those three need; ::after is left free for the aurora.

$ pnpm sl-audit 0.8 sexit 1
R  components.css:412  raw colour literal outside the role vars
Markup
<article class="sl-term-block" data-exit="1">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> pnpm sl-audit</span>
    <span class="sl-term-block__meta"><time>14:02:19</time><span>0.8 s</span><span class="sl-term-block__exit">exit 1</span></span>
  </header>
  <pre class="sl-term-block__out">R  components.css:412  raw colour literal outside the role vars</pre>
</article>

Terminal

Terminal blocks are a character grid: they keep their columns and scroll sideways on a narrow screen instead of wrapping.

Roles and glyphs sl-term-block__ok#

Six spans for the six terminal roles, each a class on a <span> inside sl-term-block__out. They paint with the kit's theme-aware roles, never with the terminal truecolor values: those are tuned for a dark terminal and fail on paper. prompt is __prompt, the class the header's $ already wears: the accent as text. ok (__ok) is the success ink, warn (__warn) the warning ink, err (__err) the danger ink, dim (__dim) the muted ink and accent (__accent) the info ink: the depth hue is a theme token and not a role, so a Tier B product would not have it. Every role reads at least 4.5:1 on the block's own fill, the raised rung or the sunken rung in a lit pane, for every registered product, light and dark, Tier A and Tier B, in high contrast and in an inversion band, where the status inks take the band's own floor (workbench.test.mjs). Dim is text too, so it holds 4.5:1, not 3. Substrate: A IDE, A App, A Page (real content, L3). Consumes: --slc-accent-text, --slc-success, --slc-warning, --slc-danger, --slc-info, --slc-text-muted, --slc-text, --slc-raised, --slc-sunken. The glyph column is the tui glyph set: each glyph has a Unicode and an ASCII form and the role it is painted with, as the block lists them. Colour only repeats the glyph and the word, so under forced colours, where the spans take the user's ink, and with NO_COLOR the output says the same thing. Two more spans serve the full screen: sl-term-block__inverse, a run of cells in inverse video (the primary ink as the ground, the block's own fill as the ink: the inversion band in one line, L3), and sl-term-block__sel, a selected row (below). Do: paint the glyph, not the label. A step's label and detail stay in the output's ink. Don't: paint a failure with a success glyph, or colour a word that has no glyph or role of its own.

prompt  ok  warn  err  dim  accent

  ✓ done       +  ok
  ✓ fixed      +  ok
  ✗ failed     x  err
  ! warn       !  warn
  ● active     *  prompt
  ○ pending    .  dim
  ↷ skipped    -  dim
  ? question   ?  prompt
  · separator  |  dim
Markup
<article class="sl-term-block" aria-label="Terminal roles and glyphs">
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">prompt</span>  <span class="sl-term-block__ok">ok</span>  <span class="sl-term-block__warn">warn</span>  <span class="sl-term-block__err">err</span>  <span class="sl-term-block__dim">dim</span>  <span class="sl-term-block__accent">accent</span>

  <span class="sl-term-block__ok">✓</span> done       +  ok
  <span class="sl-term-block__ok">✓</span> fixed      +  ok
  <span class="sl-term-block__err">✗</span> failed     x  err
  <span class="sl-term-block__warn">!</span> warn       !  warn
  <span class="sl-term-block__prompt">●</span> active     *  prompt
  <span class="sl-term-block__dim">○</span> pending    .  dim
  <span class="sl-term-block__dim">↷</span> skipped    -  dim
  <span class="sl-term-block__prompt">?</span> question   ?  prompt
  <span class="sl-term-block__dim">·</span> separator  |  dim</pre>
</article>

Header sl-term-block#

The header an interactive launch opens with (a TUI screen, a prompt loop, an installer, a bare launch, --help): the mark on the left, 3 lines and 6 columns (tui.header.mark), then sonda/lab with the slash in prompt, the name and version, and the description in dim. The mark's circle is its one accent shape, in prompt like the slash (the accent as text); the square and the bar keep the output's ink. A one-shot subcommand gets the compact header instead: the 2-column mark ●■, then sonda/lab <name> in dim and a blank line. Off a TTY stdout or in accessible mode either size prints nothing, so piped output stays byte-identical; on a TTY it falls back to the one-line lockup sonda/lab <name> <version> under TERM=dumb, ASCII mode and a terminal narrower than the header, and prints nothing for --json or --plain. The lockup is also the --version line. Python: term.header() since palette-py 0.8.0 (nothing off a TTY since 0.9.0), term.lockup() since 0.9.0. Node: header() and lockup() from @sondalab/ui-kit/term.js since 0.43.0. Pass the CLI's --ascii, --color and --no-color as ascii/mode (palette 0.9.1, kit 0.43.1). Consumes the role spans above. Do: cut a long description at the line cap (100 columns). Don't: wrap it under the mark, print the header on --version, or draw any other banner.

$ cld
▄█▄ ▄▄  sonda/lab
▀█▀ ▀▀  cld 0.9.0
▄▄▄▄▄▄  Manage Claude Code loadouts.
Markup
<article class="sl-term-block" aria-label="Terminal header">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> cld</span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">▄█▄</span> ▄▄  sonda<span class="sl-term-block__prompt">/</span>lab
<span class="sl-term-block__prompt">▀█▀</span> ▀▀  cld 0.9.0
▄▄▄▄▄▄  <span class="sl-term-block__dim">Manage Claude Code loadouts.</span></pre>
</article>

Step list and summary sl-term-block#

One line per step: two columns of indent, the glyph in its role, the label padded to labelWidth (28 columns), then the detail. A running step is a present participle and a finished one past tense, in sentence case with no trailing period. After one blank line the summary gives four counts in a fixed order (ok, fixed, warn, failed), each in its role and joined by the separator glyph in dim; a zero count is dim. A success says what changed and the next step, Next: in dim on a continuation line. Consumes the role spans above. Do: keep all four counts, zeros included. Don't: write "Successfully", an exclamation mark or "we": a measured figure replaces an adjective.

$ smartctx doctor exit 1
  ✓ Check git repository        clean, on main
  ✓ Install pre-commit hook     fixed
  ! Check signing key           not loaded
  ✗ Verify remote               origin unreachable

Summary  1 ok · 1 fixed · 1 warn · 1 failed
Markup
<article class="sl-term-block" data-exit="1">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx doctor</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 1</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__ok">✓</span> Check git repository        clean, on main
  <span class="sl-term-block__ok">✓</span> Install pre-commit hook     fixed
  <span class="sl-term-block__warn">!</span> Check signing key           not loaded
  <span class="sl-term-block__err">✗</span> Verify remote               origin unreachable

Summary  <span class="sl-term-block__ok">1 ok</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__ok">1 fixed</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__warn">1 warn</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__err">1 failed</span></pre>
</article>
$ smartctx hook install exit 0
  ✓ Installed hook              .git/hooks/pre-commit
    Next: smartctx doctor --fix
Markup
<article class="sl-term-block" data-exit="0">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx hook install</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 0</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__ok">✓</span> Installed hook              .git/hooks/pre-commit
    <span class="sl-term-block__dim">Next:</span> smartctx doctor --fix</pre>
</article>

Error block and did you mean sl-term-block#

An error takes three lines: what failed after the failed glyph, why in dim with the exit code or the timeout, and the fix after Try: in prompt, a command in the output's ink and an optional docs link with an error code in dim after the separator. The fix comes last, so it is the last thing on screen. "Did you mean" is the one two-line error: the suggestion replaces the why and the fix, Did you mean and its ? in prompt. It suggests and never runs. Consumes the role spans above. Do: write the exit code in the block's head and in the why line. Don't: print a stack trace without --debug; an unexpected failure prints the same three lines, its fix Try: <command> --debug.

$ smartctx sync exit 1
  ✗ Could not reach origin
    git ls-remote timed out after 10s (exit 128)
    Try: git remote -v · sondalab.eu/e/T102
Markup
<article class="sl-term-block" data-exit="1">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx sync</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 1</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__err">✗</span> Could not reach origin
    <span class="sl-term-block__dim">git ls-remote timed out after 10s (exit 128)</span>
    <span class="sl-term-block__prompt">Try:</span> git remote -v <span class="sl-term-block__dim">·</span> <span class="sl-term-block__dim">sondalab.eu/e/T102</span></pre>
</article>
$ smartctx --versoin exit 2
  ✗ Unknown flag --versoin
    Did you mean --version?
Markup
<article class="sl-term-block" data-exit="2">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx --versoin</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 2</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__err">✗</span> Unknown flag --versoin
    <span class="sl-term-block__prompt">Did you mean</span> --version<span class="sl-term-block__prompt">?</span></pre>
</article>

Confirmation sl-term-block#

? <question> [y/N]: the question glyph in prompt and the choice in dim, the capital letter marking the default, which Enter takes. The default is no for anything outside the working directory. A destructive action asks [y/N], and an irreversible delete asks the user to type the name of what it deletes. A prompt is the one place output addresses the user. Consumes the role spans above. Don't: prompt without a TTY on stdin. The program stops with an error naming the flag that skips the question (--yes).

$ smartctx hook install --global waiting
? Install the hook into ~/.config/git? [y/N]
Markup
<article class="sl-term-block">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx hook install --global</span>
    <span class="sl-term-block__meta"><span>waiting</span></span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">?</span> Install the hook into ~/.config/git? <span class="sl-term-block__dim">[y/N]</span></pre>
</article>
$ smartctx probe rm q-8f2a waiting
? Delete probe q-8f2a? [y/N]
? Type q-8f2a to delete it permanently:
Markup
<article class="sl-term-block">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx probe rm q-8f2a</span>
    <span class="sl-term-block__meta"><span>waiting</span></span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">?</span> Delete probe q-8f2a? <span class="sl-term-block__dim">[y/N]</span>
<span class="sl-term-block__prompt">?</span> Type q-8f2a to delete it permanently:</pre>
</article>

Terminal progress sl-term-block#

A determinate step draws a 24-cell bar (progress.cells) in prompt on the continuation line under its running step: the filled cells are █, and the leading edge dithers through ▓▒░ before the rest of the bar, which is spaces. Then the count, done right-aligned to the width of total, and the percentage in dim, right-aligned to 4 columns. At 0% the bar is the edge alone, so a step that has started still shows it is alive; at 100% it is 24 █. The running step's glyph cell is the spinner (below). Consumes the role spans above. When the step ends the bar line is cleared and the step line persists. With motion off there is no bar: the final step line carries the count.

$ smartctx resolve running
   Resolving 128 probes…
    ███████████▓▒░             61/128   48%
Markup
<article class="sl-term-block" aria-busy="true">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx resolve</span>
    <span class="sl-term-block__meta"><span>running</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__spin" aria-hidden="true"></span> Resolving 128 probes…
    <span class="sl-term-block__prompt">███████████▓▒░</span>             61/128  <span class="sl-term-block__dim"> 48%</span></pre>
</article>
    ▓▒░                         0/128    0%
    ████████████████████████  128/128  100%
Markup
<article class="sl-term-block" aria-label="The progress bar at 0% and at 100%">
  <pre class="sl-term-block__out">    <span class="sl-term-block__prompt">▓▒░</span>                         0/128  <span class="sl-term-block__dim">  0%</span>
    <span class="sl-term-block__prompt">████████████████████████</span>  128/128  <span class="sl-term-block__dim">100%</span></pre>
</article>

Spinner sl-term-block__spin#

The primary button's dither hover in one cell: the glyph cell fills and drains through the burst ░▒▓█▓▒░ (spinner.frames), 8 frames at 100ms each (spinner.intervalMs), 0.8s a cycle, in prompt. sl-term-block__spin draws it with CSS alone, so a page shows it with no script: an empty <span> whose ::before steps through the frames on a @keyframes of content, one frame per 100ms (step-end), only under prefers-reduced-motion: no-preference. Otherwise, and under data-sl-fx-still (which stops it), the page shows █, the full frame. The span is one 1ch cell wide, so the label grid holds through the space frame. In a terminal the spinner shows only after 300ms (spinner.delayMs), always ends in a persisted step line, and with motion off it is the active glyph ● instead, its final line printed below it. Consumes: --slc-accent-text. Do: mark it aria-hidden="true" (the label says what is running) and the block aria-busy="true". Don't: leave a spinner on screen when the step ends: it becomes the step's glyph.

$ smartctx resolve running
   Resolving 128 probes…
Markup
<article class="sl-term-block" aria-busy="true">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx resolve</span>
    <span class="sl-term-block__meta"><span>running</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__spin" aria-hidden="true"></span> Resolving 128 probes…</pre>
</article>
$ CI=1 smartctx resolve exit 0
  ● Resolving 128 probes…
  ✓ Resolved 128 probes         2.1s
Markup
<article class="sl-term-block" data-exit="0">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> CI=1 smartctx resolve</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 0</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__prompt">●</span> Resolving 128 probes…
  <span class="sl-term-block__ok">✓</span> Resolved 128 probes         2.1s</pre>
</article>

Decode sl-term-block#

The glitch in a terminal: something re-resolved. Only the changed token decodes, left to right, over 4 frames of 60ms (decode.frames, decode.frameMs), 240ms in all, once. Frame n settles the first ⌊n / 4 × length⌋ characters; each unsettled one is drawn from ░▒▓█▚▞ (decode.glyphs) plus random printable ASCII, in prompt, and a space stays a space. The four frames are drawn on one line; this filmstrip stacks them, each labelled in dim. No inverse and no blink, so luminance never flashes. Consumes the role spans above. The labels are the filmstrip's, not terminal output. With motion off the final value prints directly.

$ smartctx lock --refresh exit 0
  ! Value changed               sh▓ ▞#░▒%█▚  frame 1 · 60ms
  ! Value changed               sha 9▒▚░@▞▓  frame 2 · 120ms
  ! Value changed               sha 9c41▞%░  frame 3 · 180ms
  ! Value changed               sha 9c41e0b  frame 4 · 240ms, settled
    was sha 3f02a7d · re-resolved after cache miss
Markup
<article class="sl-term-block" data-exit="0">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx lock --refresh</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 0</span></span>
  </header>
  <pre class="sl-term-block__out">  <span class="sl-term-block__warn">!</span> Value changed               sh<span class="sl-term-block__prompt">▓ ▞#░▒%█▚</span>  <span class="sl-term-block__dim">frame 1 · 60ms</span>
  <span class="sl-term-block__warn">!</span> Value changed               sha 9<span class="sl-term-block__prompt">▒▚░@▞▓</span>  <span class="sl-term-block__dim">frame 2 · 120ms</span>
  <span class="sl-term-block__warn">!</span> Value changed               sha 9c41<span class="sl-term-block__prompt">▞%░</span>  <span class="sl-term-block__dim">frame 3 · 180ms</span>
  <span class="sl-term-block__warn">!</span> Value changed               sha 9c41e0b  <span class="sl-term-block__dim">frame 4 · 240ms, settled</span>
    <span class="sl-term-block__dim">was sha 3f02a7d · re-resolved after cache miss</span></pre>
</article>

Full-screen view sl-term-block--screen#

An alternate-screen view on the same roles and glyphs, with the rounded box set ╭ ╮ ╰ ╯ ─ │. The focused pane has its border in prompt and its title in inverse video (sl-term-block__inverse); the other panes are dim. The selected row is sl-term-block__sel, a 6% wash of the ink behind the row's cells, plus the seam ▌ in prompt in its first cell; with no colour the seam alone marks the row. Table headers are dim uppercase, with no vertical rules. One footer of key hints: keys in accent, verbs in dim, joined by the separator. sl-term-block--screen keeps the geometry: its output does not wrap, scrolls sideways where the block is narrower than the view, and sets the tight line (--sl-line-tight) so the box's vertical strokes meet from row to row. Consumes: --slc-text, --slc-raised, --slc-sunken, and the role spans above. The inverse run is the primary ink on the block's own fill, which is the sunken rung in a lit pane and the band's ground in an inversion band. Under forced colours the inverse run is CanvasText on Canvas, and the selected row is the system's selection, Highlight with HighlightText, the seam included. Do: wrap the row's cells from the seam to the pane's inner edge in __sel, and the title with a space on each side in __inverse. Don't: draw a vertical rule between columns.

$ smartctx probes full screen
╭─ PROBES ─────────────────────╮╭─ DETAIL ────────────╮
│ ID       STATE    AGE        ││ q-8f2a              │
│▌q-8f2a   ✓ ok     2m         ││ resolved in  1.2s   │
│ q-71c0   ● live   12s        ││ cache        hit    │
│ q-0d9e   ✗ err    5m         ││                     │
╰──────────────────────────────╯╰─────────────────────╯
↑↓ move · enter open · / filter · : command · ? help · q back · ctrl-c quit
Markup
<article class="sl-term-block sl-term-block--screen">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx probes</span>
    <span class="sl-term-block__meta"><span>full screen</span></span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">╭─</span><span class="sl-term-block__inverse"> PROBES </span><span class="sl-term-block__prompt">─────────────────────╮</span><span class="sl-term-block__dim">╭─ DETAIL ────────────╮</span>
<span class="sl-term-block__prompt">│</span> <span class="sl-term-block__dim">ID       STATE    AGE</span>        <span class="sl-term-block__prompt">│</span><span class="sl-term-block__dim">│</span> q-8f2a              <span class="sl-term-block__dim">│</span>
<span class="sl-term-block__prompt">│</span><span class="sl-term-block__sel"><span class="sl-term-block__prompt">▌</span>q-8f2a   <span class="sl-term-block__ok">✓</span> ok     2m         </span><span class="sl-term-block__prompt">│</span><span class="sl-term-block__dim">│</span> <span class="sl-term-block__dim">resolved in</span>  1.2s   <span class="sl-term-block__dim">│</span>
<span class="sl-term-block__prompt">│</span> q-71c0   <span class="sl-term-block__prompt">●</span> live   12s        <span class="sl-term-block__prompt">│</span><span class="sl-term-block__dim">│</span> <span class="sl-term-block__dim">cache</span>        hit    <span class="sl-term-block__dim">│</span>
<span class="sl-term-block__prompt">│</span> q-0d9e   <span class="sl-term-block__err">✗</span> err    5m         <span class="sl-term-block__prompt">│</span><span class="sl-term-block__dim">│</span>                     <span class="sl-term-block__dim">│</span>
<span class="sl-term-block__prompt">╰──────────────────────────────╯</span><span class="sl-term-block__dim">╰─────────────────────╯</span>
<span class="sl-term-block__accent">↑↓</span> <span class="sl-term-block__dim">move</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">enter</span> <span class="sl-term-block__dim">open</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">/</span> <span class="sl-term-block__dim">filter</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">:</span> <span class="sl-term-block__dim">command</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">?</span> <span class="sl-term-block__dim">help</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">q</span> <span class="sl-term-block__dim">back</span> <span class="sl-term-block__dim">·</span> <span class="sl-term-block__accent">ctrl-c</span> <span class="sl-term-block__dim">quit</span></pre>
</article>

Plain and accessible output sl-term-block#

Every full-screen view also has --plain: the same content as line output, with no alternate screen, no key reader and no redraw. Accessible mode (SONDALAB_ACCESSIBLE=1, or ACCESSIBLE) implies it, and turns prompts into a numbered list answered by typing, with every state written as a word next to its glyph. SONDALAB_REDUCED_MOTION=1, CI, TERM=dumb and a non-TTY stream turn the motion off; NO_COLOR keeps the glyphs and drops the colour, and SONDALAB_ASCII=1 uses every glyph's ASCII form. Consumes the role spans above. Do: send progress, spinners and prompts to stderr and results to stdout, and offer --json for scripts.

$ smartctx probes --plain exit 0
ID       STATE    AGE
q-8f2a   ✓ ok     2m
q-71c0   ● live   12s
q-0d9e   ✗ err    5m
Markup
<article class="sl-term-block" data-exit="0">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> smartctx probes --plain</span>
    <span class="sl-term-block__meta"><span class="sl-term-block__exit">exit 0</span></span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__dim">ID       STATE    AGE</span>
q-8f2a   <span class="sl-term-block__ok">✓</span> ok     2m
q-71c0   <span class="sl-term-block__prompt">●</span> live   12s
q-0d9e   <span class="sl-term-block__err">✗</span> err    5m</pre>
</article>
$ SONDALAB_ACCESSIBLE=1 smartctx probes waiting
? Open which probe? Type a number, then Enter
  1  q-8f2a  ok
  2  q-71c0  live
  3  q-0d9e  err
> 2
Markup
<article class="sl-term-block">
  <header class="sl-term-block__head">
    <span class="sl-term-block__cmd"><span class="sl-term-block__prompt">$</span> SONDALAB_ACCESSIBLE=1 smartctx probes</span>
    <span class="sl-term-block__meta"><span>waiting</span></span>
  </header>
  <pre class="sl-term-block__out"><span class="sl-term-block__prompt">?</span> Open which probe? Type a number, then Enter
  1  q-8f2a  ok
  2  q-71c0  live
  3  q-0d9e  err
<span class="sl-term-block__prompt">&gt;</span> 2</pre>
</article>

Identity & media

Wordmark sl-wordmark#

The official logo. The brand is typographic; there is no pictorial mark. sondalab. in the brand face (--sl-font-brand, Fraunces) at weight 500, tracked -0.05em, the trailing period in the accent. Since 0.30 the display face is Geist; Fraunces is the wordmark's and the monogram's alone. Substrate: R App/Page, A IDE. Consumes: --slc-text, --slc-accent. Source of truth: packages/ui-kit/assets/sondalab-wordmark.svg — where this class and that file disagree, the file is right. Do: let it inherit its size from context; it is type, so it scales with font-size. Don't: re-letter it, re-space it, or set the period in the text colour — the accent period is the mark.

sondalab.
Markup
<span class="sl-wordmark">sondalab<span class="sl-wordmark__dot">.</span></span>

Compact lockup sl-lockup#

The wordmark where the wordmark is too wide: headers, tight chrome. sonda/lab lowercase in Geist Pixel Square at --sl-text-px-1 (12.5px, 1px cells; a hero lockup may step up to --sl-text-px-2), untracked, the / in the accent. Substrate: R IDE/App/Page. Consumes: --slc-text, --slc-accent-text. The / is a child b or .sl-lockup__sep; .sl-lockup__dot keeps the 0.30 middle dot. Since 0.39 (L3; owner amendment, 2026-10-26) it is no longer uppercase or tracked 0.2em; packages/ui-kit/assets/sondalab-lockup.svg still draws the 0.30 lockup until the asset follows, so this class is the lockup's current form. Do: use this one in a sl-header; keep it at a whole-cell size. Don't: mix the two marks on one surface.

sonda/lab
Markup
<span class="sl-lockup">sonda<span class="sl-lockup__sep">/</span>lab</span>

Pixel word sl-px#

One display word in the pixel face, inline in a heading or running display text. Substrate: R App/Page, A IDE. Consumes: --slc-accent-text. font-family: var(--sl-font-pixel), one weight, letter-spacing: 0, accent ink; the size is inherited, so give the word (or its heading) a whole-cell size (--sl-text-px-1…4) to keep the cells crisp. Do: use it for a single word. Don't: set a sentence or a paragraph in it; body and UI text stay in Geist and code in Geist Mono (L1).

Measured, not guessed
Markup
<h2>Measured, not <span class="sl-px">guessed</span></h2>

Monogram sl-monogram#

Where even the lockup is too wide to read: a social avatar, a square tile. s. in the wordmark's cut (--sl-font-brand, Fraunces), the letter in the text colour and the period in the accent, on a full-bleed square of the surface. Substrate: R IDE/App/Page. Consumes: --slc-text, --slc-accent, --slc-surface. Rendered assets: packages/ui-kit/assets/sondalab-avatar-{ink,paper}.{svg,png}. Resize it by setting --sl-monogram-size (default 3rem) — the letter is sized off that box, never off an inherited font-size, so the three corrections hold at every size. Those corrections are fixed in design-language.md L3 and transcribed here, not re-derived: the mark is sized to the inscribed crop circle (~60% of the canvas wide) rather than the square; the accent period is scaled +35% around its own centre so it survives a 32px render; and it is pushed +0.06em off the letter, because the wordmark's tight tracking is drawn for a period at its natural size. Do: give it role="img" and a label — s. read aloud is not the brand. The period is drawn by the class, so the markup carries the letter alone. Don't: re-tune the three corrections per surface; they are what makes the small end legible.

s
Markup
<span class="sl-monogram" role="img" aria-label="Sondalab">s</span>

Figure sl-figure#

An image in a hairline frame with a micro-label caption. The house way to put a picture in a page without it reading as a blog post. Substrate: R Page, A App, N/A IDE. Consumes: --slc-border, --slc-surface, --slc-text-muted. Do: declare the aspect-ratio on sl-figure__media yourself — the class sets none, because the right ratio is a property of the image and not of the design system, and a default would silently crop most of them. Don't: let the caption run to sentence case in the sans face; a caption is a structural label (L1).

Glass pane, GPU tier, dark theme
Contact 1k — the GPU glass pane
Markup
<figure class="sl-figure">
  <div class="sl-figure__media" style="aspect-ratio: 16 / 9">
    <img src="/contact-1k.jpg" alt="Glass pane, GPU tier, dark theme">
  </div>
  <figcaption class="sl-figure__caption">Contact 1k — the GPU glass pane</figcaption>
</figure>

Avatar sl-avatar#

A person or a product, as a square tile. Falls back to sl-monogram when there is no image. Substrate: R IDE/App, A Page. Consumes: --slc-surface, --slc-border. Do: use the monogram as the fallback rather than initials in a circle — the monogram is the mark, and it already carries the three small-size corrections; the avatar hands it its own box, so the corrections scale with the modifier. Don't: give a decorative avatar alt text; alt="" is correct when the name is beside it.

s s
Markup
<span class="sl-avatar"><img src="/avatar.png" alt=""></span>
<span class="sl-avatar sl-avatar--sm"><span class="sl-monogram" role="img" aria-label="Sondalab">s</span></span>
<span class="sl-avatar sl-avatar--lg"><span class="sl-monogram" role="img" aria-label="Sondalab">s</span></span>

Effects

Every effect stills under prefers-reduced-motion (the goo drift is refused outright and the field stays welded). [data-sl-fx="off"] switches the layer off for a subtree, and the high-contrast theme turns it off site-wide.

Glass edge sl-fx-glass#

The pointer is a light above the surface: a narrow arc of warm white wakes on the border facing it, from 140px before the pointer arrives, and on paper a soft shade answers on the far side. A crossing dims, turns and brightens it again rather than snapping. Nothing is lit at rest, and there is never a disc under the cursor (a test bans a pointer-positioned radial-gradient). Tier 1 only: mount() writes --slfx-spec-a (bearing) and --slfx-spec-i (how lit) and the class is-spec-lit. The WebGPU chrome that used to draw this edge is retired (2026-09-24); the material and the lens above are not. Width is the border's own, never spent. Substrate: R Page, A App. --wide widens the CSS fallback ring to 2px for containers (card, dialog, panel); it does not change the chrome, which is always the element's own border width. --field marks a field's wrapper: its ring sits on the input's own border, 1px. Glass controls (buttons, icon buttons, --field inputs) share one edge: a sharp 1px line on the border and a softer 1px line just inside it. Glass owns the control's depth (0.32): the primary's foot, the secondary's lit line and cast and a --field input's well stand down for that edge, and under keyboard focus the edge carries the kit's focus halo; high contrast and an opt-out region keep the shipped control. On a replaced control the sl-field__control wrapper is mandatory: <input>, <textarea> and <select> render no ::before/::after, so the class on the control itself renders nothing at all — no error, no ring. Consumes: --slc-border-strong, --slc-border-subtle, --slc-accent, --slc-text (the chrome's poles and flecks, read at runtime). Don't: thicken it to replace a separator — a separator is always 1px. Don't: put glass or aurora on a component whose own ::after is load-bearing — both families paint their ring there (:is(.sl-fx-glass, .sl-fx-aurora)::after, effects.css:499), and the ring rule silently wins over whatever the component needed the pseudo-element for. .sl-switch__track is the instance that proved it: the track's ::after is the knob, and glass on the track computed opacity: 0 there, deleting the knob with no error and no warning. The same collision waits on ::before: that is where --pane seats its pointer-following light, so a component that needs its own ::before for something load-bearing is in the same position. Check what a component's ::before/::after already does before reaching for either family. Don't: put glass on a container whose own background is structural — a separator, a rule, a divider — rather than a surface. The material clears the host's background so its own tint layer can paint (glass.css:209), and a container that has no fill of its own to spare loses whatever that background was doing. .sl-btn-group is the instance that proved it: the group's background is the 1px rule between its members, and glass on the group measured rgba(0, 0, 0, 0) there — the rule gone, silently. Same shape as the ::after collision above, one property over: the effect layer takes over something the component was already using, with no error and no warning. The switch's knob (::after), the select's chevron (no pseudo-element at all on a replaced control), and the group's rule (background) are three instances of one pattern, in three different properties.

Card title

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Markup
<article class="sl-card sl-fx-glass sl-fx-glass--wide">…</article>
<label class="sl-field">
  <span class="sl-field__label">Product</span>
  <span class="sl-field__control sl-fx-glass sl-fx-glass--field">
    <input class="sl-field__input" type="text">
  </span>
</label>

Aurora sl-fx-aurora#

Work readings (2026-09-25, re-scope R3): data-sl-fx-live="run" (an agent working here, with aria-busy="true") draws two bodies of light travelling the edge; "busy" (loading) breathes light in from the edges. Both are WebGL from live-light.js, loaded by mount(); a --linear aurora gets a travelling segment on its underline instead, and a --rim or determinate one keeps the CSS arc. Without WebGL, past eight live hosts, or under reduced motion, the CSS arc is the reading. data-sl-fx-still on <html> (0.18.0) holds the light and every kit animation where they are while the app is idle or unfocused; removing it resumes them from there. Attention lives here: a 1px arc of light riding the border with its bloom, which reaches ~22px outside the box and ~28px inside it — CSS at every tier. Inhabits the element's own edge; never a second concentric ring, never a replacement for the focus outline. A filled element (sl-btn--primary) takes --rim: the arc steps just outside the fill, in the depth companion. Substrate: R Page, A App. --wide widens the arc to 2px on containers; --field lights a field's input border (1px, the sharp line of the control edge); --linear sweeps a segment (a tab's or link's underline; add --top for an inversion band's rule) instead of a perimeter and has no busy mode; --rim is for filled elements. On a replaced control the sl-field__control wrapper is mandatory — the control itself hosts no pseudo-element, and :focus-within on the wrapper is what lights the arc. Consumes: --slc-accent, --slc-text. Do: pair every busy aurora with aria-busy, and every determinate one with role="progressbar" + aria-valuenow — the aurora renders state, it never is the state. Don't: grant more than one ambient data-sl-fx-live="on" per document. Don't put an aurora element under an ancestor that clips (overflow other than visible, contain: paint, clip-path): the bloom reaches ~22px outside the box, and a glow cut at a container's edge is a defect — wrap the table in the scroll container, not the card beside it.

Card title

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Card title

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Markup
<button class="sl-btn sl-btn--ghost sl-fx-aurora">Run audit</button>
<button class="sl-btn sl-btn--primary sl-fx-aurora sl-fx-aurora--rim" data-sl-fx-live="busy" aria-busy="true" disabled>Saving…</button>
<span class="sl-field__control sl-fx-aurora sl-fx-aurora--field"><input class="sl-field__input" type="text"></span>
<article class="sl-card sl-fx-aurora sl-fx-aurora--wide" data-sl-fx-live="busy" aria-busy="true">…</article>
<article class="sl-card sl-fx-aurora sl-fx-aurora--wide" data-sl-fx-live="busy"
         role="progressbar" aria-valuenow="62" aria-valuemin="0" aria-valuemax="100"
         style="--slfx-progress: .62">…</article>

Goo sl-fx-goo sl-fx-goo__member#

These are one substance. A container carries sl-fx-goo and owns one injected silhouette layer; every sl-fx-goo__member inside it contributes its own rounded box, and members within --slfx-goo-weld of one another grow a soft neck between them. Laid out and welded at rest — it answers the layout, not the pointer, so it marks a set (a tag row, a gallery of cards or pictures, a cluster of draggable chips) and never a state. Add sl-fx-goo--drift and members wander around where they were laid out (7px, each with its own period, neighbours in opposition), so a pair's neck thins, parts and re-forms; it is refused under reduced motion, which gets the static weld. Driven by mount(); without it the members simply render unmerged, which is the correct Tier 0. The content is never filtered: the members ride crisp on top of the layer. Substrate: A App/Page. Bind --slfx-goo-weld (default 14px) — the largest gap between two members, as laid out, that still welds, measured edge to edge between facing sides, so a grid's diagonals stand further apart than its gap and stay open. --slfx-goo-reach (default 3px) is the rim the substance shows past a member with no neighbour, and a floor rather than a target. --slfx-goo-soft (default 5px) caps the blur: dilation and blur both close a gap, but dilation preserves the outline while blur melts it, so raise soft for a gooier neck and lower it for a crisper one. --slfx-goo-fill is the substance every member stands on. Consumes: --slfx-goo-fill under every member, and each member's own computed background-color composited over it at the component's own alpha — so a tinted member stays a tint and a member with no fill is simply the substance. A member that welds to a neighbour gives up its own border and its own background, and the substance paints it: an outline drawn across a merged mass reads as a card stacked on a blob, and an opaque rectangular box covering a neighbour's substance reads as boxes stepped over one another rather than as drops merging. Handing the paint over moves that colour boundary inside the filter, where the blur softens it. The member keeps its text. One standing alone keeps both. Never a form control or a link. button, input, select, textarea and a[href] are refused a field outright, marked or not: they paint their own chrome through layers this family does not own, so a welded control kept an outline the substance was meant to replace. Use a standard element — and a div[role="button"][tabindex="0"] where a member must be operable, which paints nothing of its own. Do: mark members explicitly — membership is a class, never "every child of the container". Members may also move: a drag or an arrow-key nudge re-welds, because the field re-measures per frame while a pointer or the focus is inside the container (and not at all otherwise). Place a movable member with insets or margin, never with a transform — a transform moves the painted element without moving the box getBoundingClientRect() reports, and the silhouette stays behind. Do: give the container padding — the substance reaches --slfx-goo-reach plus three blur sigmas (~34px at the default weld) past the outermost member, and an ancestor that clips cuts it along a straight line. Don't: expect a neck between members whose own fills are both near the ground's colour — the weld is there, but nothing separates it from the background.

daos
introspect
Markup
<div class="sl-fx-goo sl-fx-goo--drift" style="display:flex; gap:.75rem; padding:2.5rem; --slfx-goo-weld: 20px">
  <div class="sl-callout sl-callout--warning sl-fx-goo__member">daos</div>
  <div class="sl-callout sl-callout--info sl-fx-goo__member" style="margin-top:1.25rem">introspect</div>
</div>

Halftone data-sl-halftone#

A picture in round dots whose size follows its light, in a circle that dissolves at its edge; gathers when first seen, then floats. Content, not decoration: under reduced motion it is drawn still. Substrate: R Page, A App. Attributes: data-sl-grid is cells per side (16–256, default 96); data-sl-seed (optional) makes the scatter reproducible; a non-square picture is centre-cropped; data-sl-ink="spectral" (opt-in, light theme only) fills the dots with the spectrum ink instead of the single ink, which is the default on every theme since 0.28. Consumes: the canvas's inherited color (set it with a role-var, e.g. var(--slc-text) or var(--slc-accent)). Don't: feed it a busy photo or a dark render — only one iconic subject with near-binary contrast reads, at ≥ 320px with a grid near 130. Don't: give it meaning — it is a picture, so a label or caption says what it shows; keep aria-hidden when the text beside it already does.

Markup
<canvas data-sl-halftone data-sl-src="/art/subject.png" data-sl-grid="130" aria-hidden="true"
        style="width: 22rem; aspect-ratio: 1; color: var(--slc-text)"></canvas>

Press sl-fx-press#

You acted on this. Pressing the control lights it from within: the light rises from its own lower body. Press controls within 48px catch that light on the edge that faces it, the way a lit key lights the keys beside it. On release both fade on their own clocks, and the control moves like every control while held (a text button sinks to 97%, anything else squashes), returning on the spring token --sl-motion-spring. Enter and Space press exactly like a click. Tier 1 (mount()); without it a press is the component's own :active and its spring return. Substrate: A App/Page. Put it on every control in a group, not one: the spill only reaches other sl-fx-press hosts. It composes with glass (the spill joins the glass edge as one more layer). mount() writes --slfx-press, --slfx-spill and --slfx-spill-a, and the classes is-press-lit / is-spill-lit while lit. Consumes: --slc-accent. Don't: put it on a switch, checkbox or radio — their own state change is the answer to the press. Don't: put it on a component whose ::before is load-bearing; the press light paints there while lit.

Markup
<div style="display:flex; gap:0.6rem">
  <button class="sl-btn sl-btn--primary sl-fx-press">Run probe</button>
  <button class="sl-btn sl-btn--ghost sl-fx-press">Cancel</button>
</div>

Glitch sl-fx-glitch#

Something re-resolved. A finite burst, fired from JavaScript on a discrete event. Always a child span, never the component itself. Substrate: A App/Page. The --shatter variant additionally wraps an intact sl-fx-glitch__text and a sl-fx-glitch__shards stack. Every sl-fx-glitch__shard carries --slfx-i (its 0-based index) and --slfx-n (the band count) inline — the shard's clip-path divides by them, so a shard missing either one silently fails to render. Consumes: --slc-accent, --slc-accent-hover. Do: call effects.js's mount() once and fire burst(el) on the triggering event — CSS alone renders nothing; set data-text to the element's own text, and give every shard its --slfx-i/--slfx-n pair. Don't: run it ambiently on a control — ambient glitch is the wordmark's alone.

Markup
<button class="sl-btn sl-btn--primary">
  <span class="sl-fx-glitch" data-text="Delete branch">Delete branch</span>
</button>
Markup
<button class="sl-btn sl-btn--primary">
  <span class="sl-fx-glitch sl-fx-glitch--shatter" data-text="Delete branch">
    <span class="sl-fx-glitch__text">Delete branch</span>
    <span class="sl-fx-glitch__shards" aria-hidden="true">
      <span class="sl-fx-glitch__shard" style="--slfx-i:0; --slfx-n:3">Delete branch</span>
      <span class="sl-fx-glitch__shard" style="--slfx-i:1; --slfx-n:3">Delete branch</span>
      <span class="sl-fx-glitch__shard" style="--slfx-i:2; --slfx-n:3">Delete branch</span>
    </span>
  </span>
</button>

Signature patterns

Wrap sl-wrap#

The content measure and the fluid gutter, in one class. --sl-gutter is a convention, not a token (design-language.md §New-token policy), and this class is where the kit declares it. Substrate: A App, R Page, N/A IDE. Consumes: nothing — layout only. Do: put it inside a full-bleed section, so the section's background reaches the viewport edge and only the content is inset. Don't: nest one sl-wrap in another; the gutters add up.

sl-wrap: the content measure

Markup
<div class="sl-wrap"> … </div>

Prose sl-prose#

Caps running text at the ~63ch measure. --sl-measure is a convention, not a token. Substrate: A IDE, R App/Page. Consumes: nothing — layout only. Do: put it on the text container, not on a grid cell that also holds a figure. Don't: let prose run full-bleed; L1 caps the measure for a reason.

A heading sets the measure

Running text caps at about 63 characters, with a link, strong text and inline code that keep their own rhythm.

Lists and quotes

  • An unordered item
  • Another item
  1. A first step
  2. A second step
A quotation indents and takes the secondary ink.
const measure = "63ch";
Markup
<div class="sl-prose"> <p>…</p> </div>

Sticky translucent header sl-header#

The house header: sticky, translucent over the page ground, a 1px bottom rule. The lockup left, micro-label meta and sentence-case controls right. Substrate: R App/Page, N/A IDE. Consumes: --slc-canvas, --slc-border-subtle. Do: put a sl-wrap inside it, so the translucency reaches the viewport edge and only the content is inset. Don't: use an opaque header, or a drop-shadow instead of the 1px rule.

sl-wrap: the content measure

Markup
<header class="sl-header">
  <div class="sl-wrap"> … </div>
</header>

Inversion band sl-invert#

A full-width block flipped to paper-on-ink. It punctuates rhythm and marks the thesis or the primary call to action; at least one per long page is idiomatic. Substrate: R Page, A App, N/A IDE. Consumes: --slc-text, --slc-canvas.

sl-wrap: the content measure

Markup
<section class="sl-invert">
  <div class="sl-wrap"> … </div>
</section>
Usage, tokens and rules

The class re-derives the border, text and surface role-vars from the band's own foreground on its children, so every component placed inside — card, table, field, callout, checkbox, switch — keeps a visible hairline and a ground it can be read against. Re-deriving only the lines and the text is not enough: a component that paints its own surface would keep the light one and render the re-derived light text on top of it. (This sentence is deliberately on its own line: scripts/catalog-audit.test.mjs reads the whole Consumes: line and compares every --slc-* on it against catalog.json as a set, so a role-var named in trailing prose fails parity.)

Every control in a band — check, radio, switch, field, select, segmented, secondary, icon button, chip, button group — is found by the band's own control edge (0.36.1): the band's ink at the least share that clears 3:1 against the band and against the control's own wash, 48% on the light theme's dark band and 53% on a light band (it was the strong line, 38%, under 3:1 in every band). Hovered, it is 14 points further. A pressed toggle keeps it (0.36.2).

A filled control in a band — the primary (the danger one too), a checked check box, radio or switch — keeps its fill and its label, and is found by its edge (0.36.2): its edge and foot are the fill held to the mid-tones, oklch L 0.55–0.59, which reads 3:1 against the light theme's dark band and the dark and high-contrast themes' light bands alike, in every state. The fill alone read 1.07:1 on high contrast's band and 1.33 on the dark theme's (introspect's mint). A checked box says it is checked with its tick, dot or knob, or, on the light theme's dark band, its fill.

Do: give it a direct child to hold the content (a sl-wrap is the usual one); the re-derivation is a > * rule, because a custom property cannot be defined on the same element that reads it. Don't: hand-write an alpha-over-canvas hairline inside the band — that is the bug this class exists to close.

Hairline grid sl-hgrid#

Cards formed by a 1px gap over a line-colour background; cells paint their own surface, producing crisp shared rules instead of doubled borders. This is a signature — prefer it over the bordered-card grid the house style otherwise avoids. Substrate: R App/Page, N/A IDE. Consumes: --slc-border-subtle, --slc-surface. Do: let the cells be plain elements — the grid paints them. Don't: give a cell its own border; that is the doubling this technique exists to avoid.

Metric

42

One line of copy.

Metric

42

One line of copy.

Metric

42

One line of copy.

Markup
<div class="sl-hgrid">
  <div>…</div>
  <div>…</div>
  <div>…</div>
</div>

Section with mono index sl-section#

A section opens with a micro-label index (mono, uppercase, --sl-text-micro) beside its heading, separated from the previous section by a 1px top rule. Substrate: R Page, A App, N/A IDE. Consumes: --slc-border-subtle, --slc-text-muted. Do: number it only where the content is a real sequence — L5, structure encodes truth. Don't: number four unrelated sections 01–04 because it looks tidy.

03
Signature components
Markup
<section class="sl-section">
  <div class="sl-section__head">
    <span class="sl-section__idx">03</span>
    <h2>Signature components</h2>
  </div>
</section>

Oversized display anchor sl-anchor#

One oversized display heading per screen, sized by a fluid clamp — a documented pattern, not a token, because the size is fluid — in Geist 600 tracked -0.05em, and set solid (line-height: 1). Substrate: R Page, A App where a hero exists, N/A IDE. Consumes: nothing — type only. Do: spend the screen's one oversized element here. Don't: use more than one per screen, and don't set a numeral in the display face — a display-scale numeral is a structural label and stays mono (L1).

Everything measured, nothing asserted.
Markup
<h1 class="sl-anchor">Everything measured, nothing asserted.</h1>

Haze sl-haze#

A soft field of the spectrum behind a section: the light theme's colour as atmosphere (Prism). Opt-in only — the kit never adds it, and since 0.28 the spectrum paints no edge, rim or arc anywhere by default. Substrate: A Page/App, N/A IDE. Consumes: --slc-haze. Paints nothing in dark and high-contrast. Do: one per screen, behind a hero. Don't: put it behind body text that must be read at a glance, or stack two.

Light as atmosphere

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Markup
<section class="sl-haze"> … </section>

Spectral text sl-spectral#

A word or phrase of a display heading painted in the spectrum ink (Prism). Opt-in only, like sl-haze. Substrate: A Page/App, N/A IDE. Consumes: --slc-spectral-ink, --slc-spectral-fill. Plain text in dark, high-contrast and forced colours. Do: display sizes only (sl-anchor, h1, h2). Don't: body text — the ink clears 3:1, not 4.5.

The spectral ink is painted in the light theme only: the spectrum tokens are undefined in dark by design, so there the text keeps its plain ink. Switch the site theme to Light in the header to see it.

Everything measured, nothing asserted.
Markup
<h1 class="sl-anchor">Everything measured, <span class="sl-spectral">nothing asserted.</span></h1>

Art sl-eyebrow--mark -square -tri -circle -half -stair sl-rule--shapes sl-rule--weave sl-art-corner sl-art-field sl-empty--void sl-empty--shapes sl-art-poster sl-art-horizon#

Bauhaus shapes (quarter disc, square, triangle, bar) drawn on a 2px cell and shaded through the kit's Bayer matrix (0.41; more glyphs, fields, fades and the poster in 0.42; until 0.45 the cell was the dither hover's 3px, and every piece keeps its size). Opt-in only: the kit never adds one. Each piece is a generated mask (scripts/gen-art.mjs, the --sl-art-* properties) painted on a pseudo-element from the ink and the accent text: static, pointer-events: none, decorative. It follows the theme and sl-invert; it paints nothing in high contrast and forced colours. The posters and the horizons (0.45) are procedural pictures in fixed palettes of their own (art-core.js): the stylesheet ships one static picture of each, and mountArt() from @sondalab/ui-kit/art.js draws any seed. Substrate: A Page/App/IDE. - sl-eyebrow--mark: the glyph before the eyebrow text (::before), a quarter disc in the accent and a bar in the ink, 9 × 6 cells. The eyebrow's text moves right by 13.5 cells (27px at the default cell); the content it heads does not move. Five more glyphs on the same frame, each worn with sl-eyebrow--mark (the modifier only swaps the mask, so the paint and the high-contrast and forced-colours removal stay): sl-eyebrow--mark-square (a square and an ink dot), sl-eyebrow--mark-tri (a triangle and a bar), sl-eyebrow--mark-circle (a disc and a short bar), sl-eyebrow--mark-half (two stacked half discs and a bar), sl-eyebrow--mark-stair (a two-step stair and a short bar). Vary them across the sections of one page. --sl-art-mark-cell (default 2px, set on the eyebrow or any ancestor) sizes the glyph in whole cells for a larger label: keep it a whole px (3px gives 27 × 18px) or the cells blur. Changed in 0.45: the glyph was 6 × 4 cells of 3px, so a page that sets 4px (24 × 16px until 0.45) now gets 36 × 24px; set 3px for the nearest size. - sl-rule--shapes: three whole shapes of 18px on the first 90px of the rule (a quarter disc in the accent, a square and a triangle in the ink), then the hairline (0.44; a 288px strip of twelve shapes that dithered away until then). sl-rule--weave: a 2/2 twill strip in the ink at 45%, 24px high, across the whole rule, its first band in the accent. Both draw into the rule's margin and keep its 1px box; where they paint nothing (high contrast, forced colours) the hairline comes back. Not with sl-rule--labeled. - sl-art-corner: nested quarter discs fading into the top-right corner (::after, 102px). sl-art-field: a truchet field of quarter arcs behind the content (::before), the faintest tone. Three more tiles, each worn with sl-art-field (the modifier only swaps the tile, so the paint and the high-contrast and forced-colours removal stay): sl-art-field--grid (a Bauhaus grid of discs, squares, triangles, quarter discs and outlines, 144px), sl-art-field--albers (Albers' nested squares at stepped tones, 96px), sl-art-field--stripes (diagonal stripes dithered from solid to nothing, 96px). Give the sections of one page different fields. A fade makes any field, the truchet included, recede where the text sits: sl-art-field--fade-start (strongest at the inline start, gone at the end), sl-art-field--fade-end (the reverse), sl-art-field--fade-down (strongest at the top); start and end follow the writing direction. Since 0.44 a fade is a dissolve through the Bayer matrix, so each cell is on or off and none is grey: a band 240px deep from its edge (144px for --fade-down), and past it the field paints nothing, so on a wide box the field is a mark at that edge. Both make the host position: relative at zero specificity, so a host's own position wins. - sl-empty--void: a Molnár field of strokes around the message, with an erased zone centred on the box in three steps by the box's width (S below 392px, M from 392px, L from 504px); it centres the message in the zone. A message longer than the zone may touch strokes at its edge. It makes the box a size container (container-type: inline-size): give it a width where it is a shrink-to-fit item. sl-empty--shapes: a 120 × 72px composition above the title, a disc in the accent, a square outline and a dithered triangle in the ink. Use one of the two on a box, not both. In high contrast and forced colours the eyebrow glyph and the composition are removed, leaving no blank space. - sl-art-poster: a print for a page head, on an empty aria-hidden element the page sizes (the golden frame, 126 : 78, by default through aspect-ratio; it is a size container, so give it a width where it is a shrink-to-fit item). Put it beside the head's text, in a column of its own, never under it or behind display type: the hero-field is out (owner, 2026-10-26). Since 0.45 a poster is a procedural print on its own pastel paper, in vivid inks, with rounded corners (--sl-radius-md): one generated image in a fixed palette of its own, so it is the same picture on every theme and product (it still paints nothing under high contrast or forced colours). The picture is 126 × 78 cells and is never resampled: it draws at 1px per cell in a box under 252px, at 2px from 252px (the design size) and at 3px from 378px. The bare poster is a dawn over the sea; three more, each worn with sl-art-poster (the modifier only swaps the picture): sl-art-poster--overprint (three inks that cross), sl-art-poster--hills (rolling hills, a sun and two plants), sl-art-poster--orbit (a ringed planet and its moons). The 0.44 paintings (--circles, --primary, and the pictures the bare poster and --orbit showed) are removed. Give each page head its own. One per screen. - sl-art-horizon: large art for a section's background, a scene 200px tall at the section's foot (::before the colour, ::after the ink). It has no paper: the page is its sky, and its top 88px dissolve into the page through the Bayer matrix. It is behind the content, so keep the copy above it: give the section 12.5rem (200px) of bottom padding (the kit sets none, and a modifier never changes its host's box). The bare horizon is rolling hills with plants; the plants are a mask painted from --slc-text, so they follow the theme and sl-invert. sl-art-horizon--dawn is a sun on the sea between two ranges, and has no ink. Without JavaScript the hills repeat as a tile every 800px, and the dawn is one picture of 960px centred in the section, with plain sea continuing to both sides. It makes the host position: relative at zero specificity. One per screen, and never behind a hero's display type. - Seeds (art.js, optional). mountArt(root?) returns { stop() } and, like mountSignals(), is not called by mount(). A poster that carries data-sl-art-seed gets its own picture of its scene: the same forms, moved and sometimes mirrored. A whole number is the seed itself; any other text (data-sl-art-seed="blog") is hashed to one; 0, empty or absent is the stylesheet's picture, which mountArt() leaves alone. Every horizon is drawn at its section's real width (so it does not repeat) and follows its width; its class picks the scene (--dawn) and its seed varies the picture of that scene. Wear one scene class on an element. The same seed gives the same picture on every machine. The module adds no element: it sets the picture on the host as a custom property the stylesheet reads first. art-core.js is the pure drawing code (renderPoster(name, seed), renderHorizon(name, cols, seed), toRgba()), for a build step or a canvas of your own.

§ 02 — Signals
§ 03 — Traces


Card title

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Nothing here yet

Start a run and its traces land in this panel.

A page head

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

A section

Sample copy sets in the kit's type and spacing, so the box reads as a surface and not as an empty frame.

Markup
<div class="sl-eyebrow sl-eyebrow--mark">§ 02 — Signals</div>
<div class="sl-eyebrow sl-eyebrow--mark sl-eyebrow--mark-circle">§ 03 — Traces</div>
<hr class="sl-rule sl-rule--shapes">
<hr class="sl-rule sl-rule--weave">
<article class="sl-card sl-art-corner"> … </article>
<section class="sl-art-field"> … </section>
<section class="sl-art-field sl-art-field--albers sl-art-field--fade-end"> … </section>
<div class="sl-empty sl-empty--shapes">
  <p class="sl-empty__title">Nothing here yet</p>
  <p class="sl-empty__body">Start a run and its traces land in this panel.</p>
</div>
<header>
  <div> <h1>…</h1> <p>…</p> </div>
  <div class="sl-art-poster sl-art-poster--hills" data-sl-art-seed="7" aria-hidden="true"></div>
</header>
<section class="sl-art-horizon" style="padding-bottom: 12.5rem"> <h2>…</h2> <p>…</p> </section>
Usage, tokens and rules

Consumes: --slc-text, --slc-accent-text. The pieces that can sit under text (field 7%, corner 22%, void 22% of the ink) are tested to keep secondary text at 4.5:1 on a solid cell of their paint, over the host's own fill, on the canvas and the surface, both themes, every registered product in Tier A and in the site's product subtree (scripts/art.test.mjs). Tier B is not covered: a Tier B page maps its own secondary text, which the kit cannot read. The marks beside text (eyebrow glyph, both rules, the composition, the poster) are not bound by it and keep their own paint. Do: one or two pieces per screen, where there is room. Don't: put a piece where a number or a label must be found at a glance, or change its tone in a product (the contrast test holds the kit's shares, not yours).