inside · paddingControls space inside components.
UI reference
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Structure & spacing
.panel · .control-card · .control-subsection
Use the surface hierarchy deliberately: Panel is a top-level page region; Settings section groups preferences inside a dialog or settings surface; Control card groups application controls or a coherent specimen; Subsection divides a card internally; specialized groups such as Category group live below that level. Density changes space inside components; Rhythm changes local gaps between related controls; top-level page/section composition remains authored structure.
inside · paddingControls space inside components.
between · spacingControls local space between related elements.
.settings-section · .settings-section-headingLorem ipsum dolor sit amet, consectetur adipiscing elit.
.masthead-image-stage · .masthead-title · .masthead-subtitleThe site owns outer placement and image-stage geometry. Masthead copy uses the same title/subtitle typography as Settings section headings; carousel controls are centered on the image-stage midpoint.
.page-toc · .page-toc-list · .page-toc-sublistPage-local contents are generated from authored data-toc and data-toc-subitem markers. This specimen shows the standard expanded presentation while its sample links remain inert with respect to the Styles page's own TOC discovery.
.control-subsection · .control-subheadingLorem ipsum dolor sit amet, consectetur adipiscing elit.
.control-cardAlpha
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
.control-card.placeholder · .placeholder-badgeDisabled future-work controls retain the active theme while the complete panel is attenuated by --placeholder-opacity.
.category-editor · .category-panel · .category-group.layout-visibility-header · .layout-visibility-row.theme-surface-preview · current / alternateTypography
Headings · Text · Monospace
Public typography roles are Headings, Text, and Monospace. Internally these map to --font-display, --font-interface, and --font-mono; “display” and “interface” are implementation names, not additional user-facing roles.
--font-display · --weight-*--font-interface · --weight-*--font-mono · --weight-*.eyebrowALPHA BETA
.taglineLorem ipsum dolor sit amet, consectetur adipiscing elit.
--font-interface · --font-display · --font-monoMono · code and technical text
Colors
semantic roles · status roles · palette families
Colors owns authored theme surfaces, semantic UI roles, and palette families. Accessibility owns user adaptations such as color-vision correction. The color-vision control shown here is only a synchronized shell mirror. Application/component CSS should consume component-facing aliases such as --input; authored source roles such as --input-shared and --input-inset describe how that alias is resolved, not a choice each component should make independently.
Component-facing semantic aliases
--page--panel--card--input--text--muted--border--accent--secondaryAuthored / resolved input-surface roles
--input-shared--input-insetGlobal semantic status colors
--info--warning--success--error--status-neutralDiscrete palette families · Standard exact / colorblindness-assisted
Standard mode uses exact protected samples. Deuteranopia, Protanopia, and Tritanopia transform runtime colors at the current correction strength; sequential families preserve source positions and categorical families are reselected in the assisted display space.
Accessibility
Standard · Deuteranopia · Protanopia · Tritanopia
Accessibility owns adaptations, not authored palette identity. The authored theme stays unchanged. Assist modes use simulation-driven daltonization: 0% is the exact authored color and 100% applies the full mode-specific correction. Components continue to request semantic color roles; the accessibility layer adapts their rendered presentation.
Authored
Assist
Assist
Assist
Guide
purpose first · anatomy second
Choose a category by semantic purpose, then choose the smallest component anatomy that satisfies the interaction. Do not choose a component merely because it looks similar. The order below is the framework taxonomy used by Styles, AGENTS, Architecture, and new-project work.
Overlays
.modal · .anchored-popover · [data-floating-panel]
Dialog is modal and owns a focused workflow that temporarily blocks the underlying page. Popover is anchored and non-modal; it presents contextual detail or local actions while the page remains active. Floating panel is a movable, optionally resizable workspace surface that remains open while the page stays interactive; geometry belongs to Interface state, and narrow layouts may fall back to modal presentation.
.modal · .modal-heading · .modal-body · .modal-actionsAlpha
Optional context belongs in the heading rhythm, not in ad hoc compressed spacing.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis dapibus.
.anchored-popoverAlpha
[data-floating-panel] · floating-panel.jsWorkspace
Modeless on wide screens; movable, optionally resizable, and safe to leave open while working.
Panel content remains application- or framework-owned independently from the floating presentation primitive.
Actions & status
.primary-button · .secondary-button · .text-button · .chip · .status-chip · .icon-button
Reusable control text is deliberately quiet: buttons, chips, segmented choices, and control values use the shared Regular control-text weight; structural/control labels use Medium, and selection/primary state does not increase weight. Primary is the principal commit/advance action and should normally appear at most once per local action cluster. Secondary is an ordinary alternate/utility action. Text is deliberately low-emphasis and local. A plain Chip is passive identity/category metadata; a Status chip is passive semantic state and adds only semantic tint plus the 8 px traffic-light dot. Status-bar actions are buttons, not chips. Badge is reserved for passive qualifiers/counts such as Placeholder; authenticated identity is an interactive Account button, not a badge. Icon glyph sizes are role-based: Primary 24 px, Contextual 20 px, Compact 14 px, Traffic light 8 px.
.primary-button.secondary-button.text-button.chip.secondary-button · .status-bar-action--icon-size-primary · 24 px20 px glyph · 24 px control--icon-size-compact · 14 px.chip · .status-chip · .status-chip--error.action-feedbackPrimary · Contextual · Compact · Traffic light.text-icon · .field-label-icon · .control-icon-pair · .contextual-icon-run · .inline-icon-runContextual controls stay 20 px regardless of surrounding type size. Short clickable info / warning / error runs use adjacent 24 px control boxes with no added run gap, leaving 4 px between 20 px glyphs. Passive semantic glyph clusters use .inline-icon-run instead; the two concepts are intentionally separate. Relationship wrappers center the complete run on the text/control midline.
.inline-icon--info · --warning · --error · --success.toolbar-icon-cluster · .toolbar-icon-group · .toolbar-icon-runThe left Persistent status-bar cluster remains Back to top / Release / Feedback; Home/root navigation now lives in the shared breadcrumb below the utility bar. On the right, adjacent Primary 24 px icons keep the zero-gap 30 px-wide × 32 px-high run rhythm inside semantic families. Neighboring families receive equal 10 px boundary space around a faint 1 px accent separator; the separator is structural CSS, not a focusable control. Color and Typography form the Appearance family, while page/authoring actions and System controls remain separate families.
Choice & state
.segmented-toggle · .toggle-switch · .switch-field · .checkbox-field
Segmented control chooses exactly one option from a small visible set. Switch changes an immediate current/persistent state such as Show labels or Enable grid. Checkbox means include/select, especially in forms, batch operations, import/export, or “include X” payload semantics. Do not choose between switch and checkbox based on appearance alone.
.segmented-toggle .segmented-toggle--fill .segmented-toggle--2.segmented-toggle .segmented-toggle--fill .segmented-toggle--4.segmented-toggle--compact.segmented-toggle--comfortable.segmented-toggle--comfortableIntrinsic segmented controls accept any option count, stay on one row, and scroll horizontally when their labels exceed the available width. Never solve constrained width by wrapping a segmented choice into a second row.
.toggle-switch · .toggle-track · .toggle-thumb.switch-field .switch-field--compact.switch-field .switch-field--supporting.choice-field · .choice-control-mark.checkbox-fieldFields
.field-control · .field-inline · .field-stack · .field-row · .slider-row
Field classes describe layout anatomy, not input type. .field-control is the explicit presentation boundary for a text-like input, select, or textarea when application typography must not leak into the control; it may be combined with the layout anatomies below. Use .field-inline for compact label/control pairs, .field-stack for label above a full-width input/select with optional supporting text, and .field-row only when the control is intended to stretch across its field lane. Compact controls such as switches, color swatches, icon controls, and intrinsic segmented toggles must retain their own inline size; inside an aligned .control-group, place them in .control-row rather than .field-row. Search is simply an input type inside the appropriate field anatomy. Sliders keep their dedicated label + track + value triplet.
.field-inline.field-stack.field-stack.field-row.slider-row.slider-row .settings-slider-row.color-swatch-control.color-picker-control · color-picker.jsUse the advanced picker when color needs inspectable/editable HEX, RGB, or CIELCh D50 values, theme presets, or opacity. This specimen uses the optional compact closed-state mode, which shows only the swatch while retaining the complete picker when opened. RGB/LCH components are centered text-entry fields with numeric/decimal input hints rather than native increment/decrement controls, are wide enough for three-digit two-decimal hue, and display LCH to two decimal places. Authored LCH remains exact at that precision while HEX/RGB are derived from it. The bare .color-swatch-control above remains the low-level native primitive.
field-sizing.js · data-field-sizeCharacter widths reserve N zero-glyph widths (ch) for text, plus padding and borders. They do not limit entry length. Proportional letters vary in width; use Fit options or Fit reference for actual labels. Sized dropdowns reserve a separate arrow area with a consistent inset.
Fit options considers every label and stays stable when selection changes. Fit reference uses the sample string even when the field value changes. Font changes refresh measured widths.
.file-drop-zone.field-control.control-row · .control-row--inlineThe container below deliberately uses large, bold, italic serif text. Labels retain framework typography without a separate label class. Inline controls stay next to their labels; grouped rows retain their aligned label lane.
Composition
.control-group · .control-matrix · .button-row · .equal-action-row · .control-aligned-item · .layer-display-row
Composition arranges primitives; it does not redefine their semantics. .control-group gives heterogeneous switch/field/slider rows one shared label lane. The default is Fit (widest rendered label), not a fixed width. Explicit data-label-size="chars" / "reference" modes reserve a semantic width, or override --control-group-label-width directly. Bounded settings/diagnostic panels should normally use a content-sized .control-card--content; use .control-card--fill only when the panel is intentionally meant to span its lane. .control-group--content keeps content-sized geometry while sharing the same fitted label lane, and .field-control--short caps short text/number/select controls without changing their field styling. Compact horizontal parameter/action sequences use .control-strip.control-strip--packed: items keep intrinsic or semantic widths, pack from the inline start, and leave surplus space after the last item instead of distributing it between controls. Repeated header/row editors use .control-matrix: declare --control-matrix-columns once on the parent so headers and every row consume the same tracks as columns are added. Compound rows wrap by logical control group: label + switch, label + slider + value, and label + select stay atomic. Components that can be narrow inside a wide page respond to their own container width. When a control-aligned label becomes stacked, return it to normal in-flow field anatomy.
.control-group · Fit / Characters / ReferenceFit is the default: the longest label sets one shared column for switches, fields, segments, swatches and sliders. Characters and Reference reserve an explicit shared label width; the group remains responsible for alignment. The reference example uses the longest visible label, but its width remains anchored to that supplied text even if a label changes.
.control-card--content · .control-group--content · .field-control--shortLocal settings and diagnostic cards hug the smallest comfortable control geometry instead of consuming unused page width. Full-lane presentation is an explicit .control-card--fill choice. Labels may still align, while switches/swatches remain intrinsic and short fields stay capped.
.control-strip.control-strip--packedCompact horizontal controls keep their intrinsic or semantic widths and cascade left-to-right. Removing an item closes the gap automatically; unused container width remains after the final item. A packed strip owns overflow only when it is genuinely constrained; it must not reserve a scrollbar gutter or manufacture overflow when its contents fit. Do not use fr, flex-grow, space-between, or auto margins merely to distribute empty space.
.control-matrix · --control-matrix-columnsHeader and body rows consume one parent-owned track list. Add or resize a column by changing the shared --control-matrix-columns declaration rather than maintaining independent header/row grids; wide matrices scroll horizontally as one unit.
.button-row.equal-action-row .equal-action-row--2.equal-action-row .equal-action-row--3.control-aligned-item.layer-display-rowData display
.readout-row · .value-list · .data-table · .visualization-host
Choose by data shape: Readout is one compact scalar summary; Value list is several key/value metadata pairs; Data table is comparable records or measurements with row/column semantics; Visualization host is a graphical data viewport. Semantic categorical state belongs in a Status chip instead of any of these.
.readout-row · .readout-label.readout-row.emphasized.value-list.data-table| Sample | Mass mg |
|---|---|
| Alpha | 12.35 |
| Beta | 9.82 |
| Gamma | — |
.visualization-hostIcons
Material Symbols Rounded · local filled SVGs · src/js/icon-catalog.js
These are the standard local Material icon names retained by the framework. Create framework glyphs through createMaterialIcon(...), materialIconMarkup(...), or setMaterialIcon(...); do not hand-create SVG roots with document.createElement("svg"). Semantic status glyphs use their global status colors here. The two-pip die is a local SVG derived from the filled casino die silhouette so the pair reads as one family.
Tokens
layout · density · rhythm
Token ownership follows the same hierarchy: Density modifies component padding/height, Rhythm modifies local gaps, fixed anatomy tokens define invariant component relationships, and structural tokens compose top-level surfaces. Prefer the highest-level semantic token that matches the job.
Density
--ui-padding-x-adjustmentDensity X--ui-padding-y-adjustmentDensity Y--panel-card-padding-x14px + density--panel-card-padding-y14px + density--modal-padding-x / yoverlay padding + densityRhythm
--ui-spacing-x-adjustmentRhythm X--ui-spacing-y-adjustmentRhythm Y--panel-card-gaplocal vertical rhythm--panel-card-gap-inlinelocal inline rhythm--panel-row-gaprow rhythmFixed component anatomy
--slider-value-gaptrack → value--slider-value-widthnumeric edge--segmented-paddingsegmented shell--segmented-gapsegment separation--contextual-icon-control-size24px contextual targetStructural layout
--panel-stack-gaptop-level panel stack--release-control-gappersistent identity rhythm--utility-bar-stack-gapstatus-bar row structure--space-ypage structural space