Unreleased software — APIs may change without notice.

toolbox

GitHub
Lookup

Reference

Every token, class, and attribute on one page. For the full explanation of any item, see its section.


Color

TokenRangePurpose
--bg0 → 1Surface presence. 0 transparent, 1 loud chromatic.
--fg−1 → 1Ink contrast. Negative neutral, positive chromatic.
--hue0 → 360Brand hue. Set on :root. Inherits.
--hue-shift0 → 360Relative rotation off the brand hue.
--hue-lock0 → 360Absolute hue. Overrides brand and shift.
ClassMeaning
.sucSuccess — green.
.infInfo — blue.
.wrnWarning — yellow.
.dgrDanger — red.
.bwNeutral — zero chroma.
VariableUse
var(--border)Quiet border. Derives from --bg.
var(--Border)Louder border, for focus and hover.

Scale

TokenInheritsPurpose
--typenoLocal step. 0 is body, +N bigger, −N smaller.
--scaleyesRegional multiplier. Rescales a whole subtree.

Spacing derives from these: padding in em, sizing and gaps in lh. There is no separate spacing token.


Stage

ClassPurpose
.stagePaints a surface. Depth auto-cascades on nesting.
.stage-0 … .stage-3Pinned depth. 0 frontmost, 3 deepest.
.glassTranslucent stage with backdrop blur.

Layout primitives

ClassArrangement
.rowHorizontal flow, wraps.
.columnVertical flow.
.splitRigid 50/50 grid.
.spreadContent-sized, slack in the gap.
.lcrThree children: left, center, right.
.tmbThree children: top, middle, bottom.
.flankFirst child fixed, last fills.
.flank-endFirst child fills, last fixed.
.gridAuto-fit; wraps below --grid-min.
.hud-overlayChildren share one cell, pinned by anchor class.
.hud-gridChildren in nine distinct cells.
.hero5-slot panel: top, bottom, left, right, main.
.frameFixed aspect ratio; child fills.

HUD anchor classes: ↖ ↑ ↗ ← • → ↙ ↓ ↘


Page layout

SlotRole
body.pageThe eleven-slot grid. Only pg-main is required.
.pg-bannerTopmost strip — announcements.
.pg-headerPrimary chrome — brand, top nav.
.pg-subheaderSecondary chrome — breadcrumbs, filters.
.pg-navigationNavigation column. Scrolls.
.pg-mainMain content. Scrolls. Required.
.pg-asideRight-side metadata. Scrolls.
.pg-footerBottom dock.

Components

Class / elementComponent
.btn .icon-btnButton — labeled, or square icon-only.
.tagChip. As button with aria-pressed, a toggle.
.tabs .tabs.underlineTab strip. aria-selected marks the active tab.
.card .CardBordered container — quiet or louder border.
.inputText field, select, or textarea.
.check .radioStyled checkbox and radio.
.avatarInitials chip.
.crumbsBreadcrumb trail with auto separators.
.linkInline text link.
.navbar .navbar-dynamicVertical nav column; dynamic collapses to icons.
<progress>Determinate bar or indeterminate pulse.
<kbd>Keyboard key.
<hr> hr.vrDivider — horizontal, or vertical with .vr.
.nowrap .truncateText flow — no wrap, or ellipsized overflow.

Theme attributes

Set on <html> or any ancestor.

AttributeValues
data-ui-themelight · dark · (omit for system)
data-ui-motionon · off · debug
data-ui-typesm · md · lg