Component Tokens
The component-scoped custom properties a Visor theme can bind for the admin-UI families — table, chip, filter bar, page header, empty state, banner, sidebar, tabs, skeleton, spinner — each with a documented Tier-1 fallback.
A Visor theme has always been able to repaint the Tier-1 semantic surface —
--surface-*, --text-*, --border-*, --interactive-*. That is enough to make
an admin UI functional. It is not enough to make it look like one thing:
nothing stopped a page inventing its own table-header treatment, its own chip
tracking, its own filter-bar padding. A fidelity retro on a shipped admin app
measured the result — 247 element categories across 13 families whose
inconsistency traced to the substrate, not to any one component. The page title
rendered five ways; the table header cell four ways; the same mono status chip at
8.5 / 9 / 9.5 / 10 / 11px across nine implementations.
Component tokens close that gap. Each family below exposes a set of
component-scoped custom properties a theme binds once, in its .visor.yaml.
Distil the design into the theme, and every consuming surface inherits it —
instead of each page re-deriving the look in local CSS.
The two guarantees
- Bind nothing and nothing changes. Every token is read as
var(--token, <Tier-1 expression>)where the fallback is byte-for-byte what the component rendered before the token existed. A theme with nocomponents:block is pixel-identical to a theme from before this contract, and the engine emits no extra CSS at all. - Bind one thing and every surface follows. A bound token retunes every consuming rule at once — the whole point of moving the decision into the theme.
Binding a family
# my-theme.visor.yaml
components:
table:
head-height: "2.5rem"
head-font-family: '"IBM Plex Mono", monospace'
head-font-size: "11px"
head-text-transform: uppercase
head-letter-spacing: "0.06em"
head-bg:
light: "#f7f7f8"
dark: "#141418"
chip:
md-font-size: "11px"
letter-spacing: "0.04em"
text-transform: uppercase
badge:
text-transform: uppercase
letter-spacing: "0.04em"
font-size: "11px"
font-weight: "600"A bare string binds both modes; { light, dark } binds them independently, and a
binding may be mode-asymmetric (dark only, say). Family and key names are
validated — an unknown key is an error, not a warning, because a typo'd
component token is otherwise silently inert: the component just keeps resolving
its fallback and you never learn the binding missed.
Where the CSS lands
Bound tokens emit into the visor-adaptive cascade layer, on the same selectors
as the Tier-1 adaptive set (light on the host selector; dark on the manual-toggle
selectors plus a prefers-color-scheme query). Single-mode brands
(color-scheme: dark-only / light-only) collapse onto the host selector, with
no toggle blocks — the same shape every other emitter uses.
Component .module.css files use no @layer at all, so a consumer that really
must override one surface locally still can. The point of this contract is that
they should not have to.
Overriding without a theme
The same properties work as plain CSS custom properties, so a block or a page shell can scope a treatment without touching the theme:
.myAdminShell {
--table-head-text-transform: uppercase;
--table-head-letter-spacing: 0.06em;
}Prefer the theme. A local override is exactly the per-page divergence this contract exists to end — reach for it only when the treatment genuinely belongs to one surface.
The contract
table
Table head, row and cell treatment. The retro measured the same header cell rendered four ways across one admin app; binding this family pins it once.
| Token | Binds | Falls back to |
|---|---|---|
--table-font-size | Base table type size. | var(--font-size-sm, 0.875rem) |
--table-text-color | Base table text colour. | var(--text-primary, #111827) |
--table-head-height | Header row height. | 3rem |
--table-head-padding-x | Header cell horizontal padding. | var(--spacing-3, 0.75rem) |
--table-head-font-family | Header cell family — set a mono/condensed face for a chrome-style header. | inherit |
--table-head-font-size | Header cell type size. | inherit |
--table-head-font-weight | Header cell weight. | var(--font-weight-medium, 500) |
--table-head-letter-spacing | Header cell tracking. | inherit |
--table-head-text-transform | Header cell casing — uppercase for the editorial admin header. | inherit |
--table-head-color | Header cell text colour. | var(--text-primary, #111827) |
--table-head-bg | Header cell fill. Sits above the shared --dt-header-bg surface role. | var(--dt-header-bg, transparent) |
--table-row-border | Row separator (width, style and colour). | 1px solid var(--border-default, #e5e7eb) |
--table-row-hover-bg | Row hover fill. | var(--surface-muted, #f3f4f6) |
--table-row-selected-bg | Selected-row fill. | var(--surface-muted, #f3f4f6) |
--table-cell-padding | Body cell padding. | var(--spacing-3, 0.75rem) |
--table-cell-font-size | Body cell type size. | inherit |
--table-cell-color | Body cell text colour. | var(--text-primary, #111827) |
--table-cell-bg | Body cell fill. Sits above the shared --dt-row-bg surface role. | var(--dt-row-bg, transparent) |
--table-cell-border-top | Cell hairline. | var(--hairline-width, 1px) solid var(--hairline, transparent) |
--table-footer-bg | Footer row fill. | var(--surface-muted, #f3f4f6) |
--table-caption-color | Caption text colour. | var(--text-secondary, #6b7280) |
data-table
The admin-ui Tier-2 data-table surface stack (D3). Shared between the Table primitive and the DataTable shell so a list page and its table read as one surface.
| Token | Binds | Falls back to |
|---|---|---|
--dt-header-bg | Header-row surface tier. | transparent |
--dt-row-bg | Data-row surface tier — a hair above the page so rows track any palette. | transparent |
--dt-container-radius | Table container rounding — 0 lets the consumer shell own the corners. | var(--radius-lg, 0.5rem) |
--dt-container-shadow | Table container elevation. | var(--shadow-sm) |
--dt-row-py | Row vertical rhythm (the density axis). | var(--spacing-3, 0.75rem) |
--dt-cell-px | Cell horizontal inset. | var(--spacing-5, 1.25rem) |
--dt-header-font-size | Sort-header type size. | 11px |
chip
Chip / filter-pill treatment. The retro found the same mono status chip at 8.5 / 9 / 9.5 / 10 / 11px with tracking .03–.14em across nine implementations; this family is the single dial.
| Token | Binds | Falls back to |
|---|---|---|
--chip-radius | Chip corner rounding. | var(--radius-full, 9999px) |
--chip-border | Outlined-chip edge colour. Width and style come from the shared control edge, so control.edge-width: 0 turns it off. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--chip-bg | Resting chip fill, on the base chip and the default variant. | var(--surface-card, #ffffff); the default variant var(--surface-muted, #f3f4f6) |
--chip-text-color | Chip label colour. | var(--text-primary, #111827) |
--chip-font-family | Chip label family — bind a mono face for token/ID chips. | var(--font-body, inherit) |
--chip-font-weight | Chip label weight. | var(--font-weight-medium, 500) |
--chip-letter-spacing | Chip label tracking. | inherit |
--chip-text-transform | Chip label casing. | inherit |
--chip-sm-height | Small chip height. | 1.5rem |
--chip-sm-padding-x | Small chip horizontal padding. | var(--spacing-2, 0.5rem) |
--chip-sm-font-size | Small chip type size. | var(--font-size-xs, 0.75rem) |
--chip-md-height | Default chip height. | 2rem |
--chip-md-padding-x | Default chip horizontal padding. | var(--spacing-3, 0.75rem) |
--chip-md-font-size | Default chip type size. | var(--font-size-sm, 0.875rem) |
--chip-lg-height | Large chip height. | 2.5rem |
--chip-lg-padding-x | Large chip horizontal padding. | var(--spacing-4, 1rem) |
--chip-lg-font-size | Large chip type size. | var(--font-size-base, 1rem) |
--chip-selected-bg | Selected chip fill. | var(--surface-accent-subtle, #eff6ff) |
--chip-selected-border-color | Selected chip edge colour. | var(--surface-accent-default, #3b82f6) |
--chip-selected-text-color | Selected chip label colour. | var(--text-link, #2563eb) |
status-dot
StatusDot size. A caller sets --status-dot-color on a dot for a colour outside its five tones.
| Token | Binds | Falls back to |
|---|---|---|
--status-dot-size | Dot diameter. | 6px |
--status-dot-color is not a theme value: set it on one dot (or a wrapper), the way
you would give a row its role colour. Unset, each tone keeps its own token.
badge
Badge treatment — the D3 Tier-2 --badge-text-transform / -letter-spacing / -font-size / -font-weight set, promoted from the admin-ui audit to a bindable contract.
| Token | Binds | Falls back to |
|---|---|---|
--badge-radius | Badge corner rounding. | var(--radius-full, 9999px) |
--badge-border | Badge outline. | 1px solid transparent |
--badge-font-family | Badge label family. | inherit |
--badge-font-weight | Badge label weight (Tier-2: 600). | var(--font-weight-medium, 500) |
--badge-text-transform | Badge casing (Tier-2: uppercase). | none |
--badge-letter-spacing | Badge tracking (Tier-2: 0.04em). | normal |
--badge-font-size | Default badge type size (Tier-2: 11px). Drives both the standard and editorial-density steps. | var(--font-size-xs, 0.75rem) |
--badge-md-padding | Default badge padding. | calc(var(--spacing-1, 0.25rem) / 2) var(--spacing-2, 0.5rem) |
--badge-md-gap | Default badge icon gap. | var(--spacing-1, 0.25rem) |
--badge-bg | Badge ground in every variant (an accent tint, an on-image scrim). Unset, each variant keeps its own surface. | The variant's own surface |
--badge-ink | Badge label colour in every variant. Unset, each variant keeps its own text colour. | The variant's own text colour |
A theme-wide bg / ink binding paints every variant the same, including destructive and success, so status colour is lost. To tint one badge or one region, set --badge-bg / --badge-ink on that badge or its container instead.
status-badge
Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family.
| Token | Binds | Falls back to |
|---|---|---|
--status-badge-dot-size | Indicator dot diameter. | 0.5rem |
--status-badge-dot-radius | Indicator dot rounding — square it for a Linear-style status marker. | var(--radius-full, 9999px) |
--status-badge-mono-font-family | Mono-label family. | var(--font-mono, "SF Mono", "Fira Code", "Fira Mono", monospace) |
--status-badge-mono-font-size | Mono-label type size. | var(--text-11, 0.6875rem) |
--status-badge-mono-letter-spacing | Mono-label tracking. | 0.02em |
filter-bar
The operator's named case: "the filter bar above the table in many admin pages was pretty different from one to the next; that should be streamlined."
| Token | Binds | Falls back to |
|---|---|---|
--filter-bar-bg | Filter-bar fill. | var(--surface-card, #ffffff) |
--filter-bar-border | Filter-bar frame. | 1px solid var(--border-default, #e5e7eb) |
--filter-bar-radius | Filter-bar corner rounding. | var(--radius-lg, 0.75rem) |
--filter-bar-padding | Filter-bar inset. | var(--spacing-3, 0.75rem) var(--spacing-4, 1rem) |
--filter-bar-gap | Vertical rhythm between the control row and the chip row. | var(--spacing-3, 0.75rem) |
--filter-bar-text-color | Filter-bar text colour. | var(--text-primary, #111827) |
--filter-bar-dense-padding | Dense-variant inset. | var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem) |
--filter-bar-dense-gap | Dense-variant rhythm. | var(--spacing-2, 0.5rem) |
--filter-bar-control-radius | Rounding of the search input and filter triggers inside the bar. | var(--radius-md, 0.25rem) |
--filter-bar-results-font-size | Results-count type size. | var(--font-size-sm, 0.875rem) |
--filter-bar-results-color | Results-count colour. | var(--text-secondary, #6b7280) |
page-header
Page-header lockup. The retro found the page title rendered five ways across one app.
| Token | Binds | Falls back to |
|---|---|---|
--page-header-gap | Header stack rhythm. | var(--spacing-4, 1rem) |
--page-header-text-color | Header text colour. | var(--text-primary, #111827) |
--page-header-leading-gap | Gap between the leading media slot and the text stack. | var(--spacing-3, 0.75rem) |
--page-header-eyebrow-font-size | Eyebrow type size. | var(--font-size-xs, 0.75rem) |
--page-header-eyebrow-font-weight | Eyebrow weight. | var(--font-weight-semibold, 600) |
--page-header-eyebrow-letter-spacing | Eyebrow tracking. | var(--letter-spacing-wide, 0.05em) |
--page-header-eyebrow-text-transform | Eyebrow casing. | uppercase |
--page-header-eyebrow-color | Eyebrow colour. | var(--text-tertiary, #6b7280) |
--page-header-title-family | Marquee title family (titleFamily="display"). Falls through to the admin-ui marquee role before the theme display font. | var(--admin-ui-marquee-family, var(--font-display, var(--font-family-heading, inherit))) |
--page-header-title-size | Marquee title size (titleSize="marquee"). | 3.5rem |
--page-header-title-leading | Title leading. | var(--line-height-tight, 1.2) |
--page-header-title-font-size | Standard title size. | var(--font-size-2xl, 1.5rem) |
--page-header-title-font-weight | Title weight. | var(--font-weight-semibold, 600) |
--page-header-title-letter-spacing | Title tracking. | var(--letter-spacing-tight, -0.01em) |
--page-header-title-color | Title colour. | var(--text-primary, #111827) |
--page-header-description-font-size | Description type size. | var(--font-size-sm, 0.875rem) |
--page-header-description-color | Description colour. | var(--text-secondary, #6b7280) |
--page-header-actions-gap | Gap between header action buttons. | var(--spacing-2, 0.5rem) |
empty-state
Empty-state placard — surface, icon chip and copy scale.
| Token | Binds | Falls back to |
|---|---|---|
--empty-state-radius | Placard corner rounding. | var(--radius-lg, 0.75rem) |
--empty-state-text-color | Placard base text colour. | var(--text-secondary, #6b7280) |
--empty-state-gap | Placard stack rhythm. | var(--spacing-2, 0.5rem) |
--empty-state-padding | Default-size placard inset. | var(--spacing-8, 2rem) var(--spacing-5, 1.25rem) |
--empty-state-bg | Default-tone fill. | var(--surface-muted, #f9fafb) |
--empty-state-border | Default-tone dashed-edge colour. Width and style come from the shared control drop edge, so control.edge-width: 0 turns it off. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--empty-state-icon-size | Icon-chip diameter. | 72px |
--empty-state-icon-radius | Icon-chip rounding. | var(--radius-full, 9999px) |
--empty-state-icon-bg | Icon-chip fill. | var(--surface-subtle, #f5f5f6) |
--empty-state-icon-color | Icon-chip glyph colour. | var(--text-tertiary, #6b7280) |
--empty-state-heading-font-family | Heading family. | var(--font-family-heading, inherit) |
--empty-state-heading-font-size | Default-size heading type size. | var(--font-size-base, 1rem) |
--empty-state-heading-font-weight | Heading weight. | var(--font-weight-semibold, 600) |
--empty-state-heading-color | Heading colour. | var(--text-primary, #111827) |
--empty-state-description-font-size | Description type size. | var(--font-size-sm, 0.875rem) |
--empty-state-description-color | Description colour. | var(--text-secondary, #6b7280) |
--empty-state-actions-gap | Gap between placard actions. | var(--spacing-2, 0.5rem) |
--empty-state-error-color | Icon, chip glyph and heading colour for intent="error". | var(--destructive, #dc2626) |
banner
Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one.
| Token | Binds | Falls back to |
|---|---|---|
--banner-padding | Banner inset. | var(--spacing-3, 0.75rem) var(--spacing-4, 1rem) |
--banner-gap | Gap between icon, content and actions. | var(--spacing-3, 0.75rem) |
--banner-font-size | Banner base type size. | var(--font-size-sm, 0.875rem) |
--banner-radius | Banner corner rounding — 0 keeps the full-bleed bar. | 0 |
--banner-border-width | Banner rule weight. | 1px |
--banner-shadow | Banner elevation. | var(--shadow-sm) |
--banner-title-font-weight | Banner title weight. | var(--font-weight-semibold, 600) |
--banner-description-font-size | Banner description type size. | var(--font-size-sm, 0.875rem) |
--banner-info-bg | Info-intent fill. | var(--surface-info-subtle, transparent) |
--banner-info-text-color | Info-intent text colour. | var(--text-info, currentColor) |
--banner-info-border-color | Info-intent rule colour. | var(--border-info, currentColor) |
--banner-info-description-color | Info-intent description colour. | color-mix(in srgb, var(--text-info, currentColor) 90%, transparent) |
--banner-warning-bg | Warning-intent fill. | var(--surface-warning-subtle, transparent) |
--banner-warning-text-color | Warning-intent text colour. | var(--text-warning, currentColor) |
--banner-warning-border-color | Warning-intent rule colour. | var(--border-warning, currentColor) |
--banner-warning-description-color | Warning-intent description colour. | color-mix(in srgb, var(--text-warning, currentColor) 90%, transparent) |
--banner-error-bg | Error-intent fill. | var(--surface-error-subtle, transparent) |
--banner-error-text-color | Error-intent text colour. | var(--text-error, currentColor) |
--banner-error-border-color | Error-intent rule colour. | var(--border-error, currentColor) |
--banner-error-description-color | Error-intent description colour. | color-mix(in srgb, var(--text-error, currentColor) 90%, transparent) |
--banner-success-bg | Success-intent fill. | var(--surface-success-subtle, transparent) |
--banner-success-text-color | Success-intent text colour. | var(--text-success, currentColor) |
--banner-success-border-color | Success-intent rule colour. | var(--border-success, currentColor) |
--banner-success-description-color | Success-intent description colour. | color-mix(in srgb, var(--text-success, currentColor) 90%, transparent) |
--banner-neutral-bg | Neutral-intent (ink) fill. | var(--text-primary, currentColor) |
--banner-neutral-text-color | Neutral-intent text colour, the page colour on ink. | var(--surface-page, #fff) |
--banner-neutral-description-color | Neutral-intent description colour. | color-mix(in srgb, var(--banner-neutral-text-color, var(--surface-page, #fff)) 86%, transparent) |
sidebar
Sidebar chrome and nav-item treatment. The palette roles (bg, text, border, accent-*) already ship defaults from visor-core's visor-semantic layer and are read bare; the structural roles below are new in VI-625.
| Token | Binds | Falls back to |
|---|---|---|
--sidebar-bg | Sidebar rail fill. Defaulted by visor-core. | visor-core default |
--sidebar-text | Sidebar text colour. Defaulted by visor-core. | visor-core default |
--sidebar-text-muted | Sidebar group-label colour. Defaulted by visor-core. | visor-core default |
--sidebar-border | Sidebar separator + rail colour. Defaulted by visor-core. | visor-core default |
--sidebar-accent-bg | Active / hover nav-item fill. Defaulted by visor-core. | visor-core default |
--sidebar-accent-text | Active / hover nav-item text. Defaulted by visor-core. | visor-core default |
--sidebar-header-padding | Sidebar header inset. | var(--spacing-2, 0.5rem) |
--sidebar-footer-padding | Sidebar footer inset. | var(--spacing-2, 0.5rem) |
--sidebar-content-padding | Scrollable nav-area inset. | var(--spacing-1, 0.25rem) |
--sidebar-menu-gap | Gap between nav items. | var(--spacing-1, 0.25rem) |
--sidebar-group-label-height | Nav group-label height. | 2rem |
--sidebar-group-label-font-size | Nav group-label type size. | var(--font-size-xs, 0.75rem) |
--sidebar-group-label-font-weight | Nav group-label weight. | var(--font-weight-medium, 500) |
--sidebar-group-label-letter-spacing | Nav group-label tracking. | inherit |
--sidebar-group-label-text-transform | Nav group-label casing. | inherit |
--sidebar-item-radius | Nav-item corner rounding. | var(--radius-md, 0.375rem) |
--sidebar-item-gap | Nav-item icon gap. | var(--spacing-2, 0.5rem) |
--sidebar-item-font-size | Nav-item type size. | var(--font-size-sm, 0.875rem) |
--sidebar-item-font-weight | Nav-item resting weight. | inherit |
--sidebar-item-letter-spacing | Nav-item tracking. | inherit |
--sidebar-item-text-transform | Nav-item casing. | inherit |
--sidebar-item-height | Default nav-item height. | 2.25rem |
--sidebar-item-padding | Default nav-item inset. | 0 var(--spacing-3, 0.75rem) |
--sidebar-item-active-font-weight | Active nav-item weight. | var(--font-weight-medium, 500) |
admin-shell
AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to none and gets a borderless shell.
| Token | Binds | Falls back to |
|---|---|---|
--admin-shell-sidebar-border | Rule between the sidebar and the body. | 1px solid var(--border-default, #e5e7eb) |
--admin-shell-sidebar-header-border | Rule under the sidebar header. | 1px solid var(--border-muted, #e5e7eb) |
--admin-shell-sidebar-footer-border | Rule above the sidebar footer. | 1px solid var(--border-muted, #e5e7eb) |
--admin-shell-topbar-bg | Topbar fill. | var(--surface-card, #ffffff) |
--admin-shell-topbar-border | Rule under the topbar. | 1px solid var(--border-default, #e5e7eb) |
--admin-shell-rail-width | Sidebar width when a collapsible shell folds to its icon rail. | 4.25rem |
--admin-shell-rail-duration | How long the sidebar takes to fold to the rail and back. | var(--motion-duration-slow, 500ms) |
--admin-shell-rail-easing | Easing of the fold to the rail and back. | var(--motion-easing-default, ease) |
billing-slider
BillingSlider — the empty track, the thumb's pill and grip lines, and the striped money-at-stake gap between the thumb and the evidence tick.
| Token | Binds | Falls back to |
|---|---|---|
--billing-slider-track-bg | The empty track. | color-mix(in srgb, var(--text-primary, #111827) 7%, transparent) |
--billing-slider-thumb-bg | The thumb's pill. | var(--surface-popover, #ffffff) |
--billing-slider-thumb-grip | The two grip lines down the pill. | color-mix(in srgb, var(--_ink) 45%, transparent) |
--billing-slider-gap-color | The gap's stripes: undecided, and worked past what it bills (money at stake). | var(--color-success-600, #16a34a) |
resizable-split
ResizableSplit — the line the divider draws between the two panes, at rest, under the pointer and while dragging.
| Token | Binds | Falls back to |
|---|---|---|
--resizable-split-divider-color | The divider's line at rest. | var(--border-default, #e5e7eb) |
--resizable-split-divider-hover-color | The divider's line under the pointer. | var(--border-strong, #d1d5db) |
--resizable-split-divider-active-color | The divider's line while it is dragged. | var(--interactive-primary-bg, #111827) |
scroll-hint
ScrollHint — the "More Below" pill pinned to a scroll box's bottom edge: the solid chip's fill, edge and ink, the fill it takes over a photo, and the gap it undoes.
| Token | Binds | Falls back to |
|---|---|---|
--scroll-hint-bg | The chip's fill, glass off. | var(--surface-card, #ffffff) |
--scroll-hint-border | The chip's edge, glass off. Over a photo the pill has no edge. | var(--border-default, #e5e7eb) |
--scroll-hint-color | The pill's words and caret. | var(--text-secondary, #4b5563) |
--scroll-hint-glass-bg | The pill's fill inside data-glass="on", blurred with the glass layer's control blur. | color-mix(in srgb, var(--surface-page, #ffffff) 70%, transparent) |
--scroll-hint-gap | The scroll box's row gap, which the zero-height hint row undoes so it adds no space. | 0px |
dialog
Dialog's panel and page scrim — width, corners, fill, inset, shadow, a backdrop filter for glass, and the scrim's colour and blur. ConfirmDialog shares them.
| Token | Binds | Falls back to |
|---|---|---|
--dialog-max-width | The centred panel's widest. The bottom sheet stays full width. | 32rem (editorial 480px) |
--dialog-radius | Panel corners; the bottom sheet's top corners. | var(--radius-lg, 0.5rem) (editorial var(--radius-xl)) |
--dialog-bg | Panel fill. Translucent for glass, with backdrop-filter. | var(--surface-page, #ffffff) (editorial var(--surface-popover, var(--surface-page, #ffffff))) |
--dialog-padding | Panel inset. The bottom sheet keeps its own bottom inset over the safe area. | var(--spacing-6, 1.5rem) (editorial var(--spacing-8)) |
--dialog-shadow | Panel shadow. | var(--shadow-xl) (editorial var(--shadow-lg)) |
--dialog-backdrop-filter | Filter on what shows through the panel, e.g. blur(32px) saturate(110%) for glass. | none |
--dialog-overlay-bg | The page scrim's colour. | var(--overlay-bg, rgba(0, 0, 0, 0.8)) |
--dialog-overlay-blur | How much the scrim blurs the page, a length. | 4px (editorial 2px) |
popover
Popover's panel — corners, inset, fill and shadow — and the stay-mounted (forceMount) fade's timing, curve and rise. Under data-glass="on" the panel reads the glass layer's fill, blur, shadow and ink; a bound bg or shadow wins in every look.
| Token | Binds | Falls back to |
|---|---|---|
--popover-radius | Panel corners. | var(--radius-lg, 0.5rem) |
--popover-padding | Panel inset, one length. PopoverFooter's rule spans it. | var(--spacing-4, 1rem) |
--popover-bg | Panel fill, in every look. Unset, the glass layer's fill over a photo and --surface-popover elsewhere. | var(--glass-on-fill, var(--surface-popover, var(--surface-card, #ffffff))) |
--popover-shadow | Panel shadow (and any inset ring), in every look. Unset, the glass layer's shadow over a photo and --shadow-lg elsewhere. | var(--glass-on-shadow, var(--shadow-lg)) |
--popover-duration | Stay-mounted fade length. | var(--motion-duration-normal, 200ms) |
--popover-easing | Stay-mounted fade curve. | var(--motion-easing-enter, ease-out) |
--popover-rise | How far the stay-mounted panel rises as it fades in. None under reduced motion. | 6px |
--popover-item-bg | Menu row fill (a ghost Button in a stay-mounted panel). Unset, the glass layer's control fill over a photo and a faint ink tint elsewhere. | var(--glass-on-control-fill, color-mix(in srgb, var(--text-primary, #111827) 5%, transparent)) |
--popover-item-bg-hover | Menu row fill on hover. Unset, the glass layer's control hover fill over a photo and a stronger ink tint elsewhere. | var(--glass-on-control-hover-fill, color-mix(in srgb, var(--text-primary, #111827) 10%, transparent)) |
glass
The glass layer over a photo: surface fill, blur, edge, lift, shadow, on-photo ink, the scrim under white labels with its ink and shadow, plus the glass values controls read. No component reads these directly. visor-core's data-glass="on" switch copies each one into a --glass-on-<key> variable, and components read those, so glass draws only where the switch is on. See Glass.
| Token | Binds | Recommended (Visor default) |
|---|---|---|
--glass-fill | Glass surface fill, see-through. | color-mix(in srgb, var(--text-primary) 5%, transparent) |
--glass-blur | Filter on the photo behind a glass surface. | blur(32px) saturate(110%) |
--glass-edge | Edge colour, drawn with mix-blend-mode: soft-light. | color-mix(in srgb, var(--text-primary) 25%, transparent) |
--glass-lift | White lift laid over the fill, e.g. rgb(255 255 255 / 0.45) in light. | transparent |
--glass-shadow | Glass surface shadow. | var(--shadow-xl) |
--glass-ink | Text colour on glass over a photo. | var(--text-primary) |
--glass-scrim | Dark glass laid under white labels on a photo in dark mode (e.g. Stepper's rail panel in Dark + Photo), dark enough that white clears 4.5:1 on a bright photo. | rgb(0 0 0 / 0.55) |
--glass-scrim-ink | Label colour on the scrim, in dark mode over a photo. | #ffffff |
--glass-ink-shadow | Shadow under the scrim ink in dark mode over a photo, seating the labels. | 0 0 10px rgb(0 0 0 / 0.55), 0 1px 3px rgb(0 0 0 / 0.5) |
--glass-control-fill | Glass control fill (icon buttons, toggles). | color-mix(in srgb, var(--text-primary) 14%, transparent) |
--glass-control-hover-fill | Glass control fill on hover. | color-mix(in srgb, var(--text-primary) 24%, transparent) |
--glass-control-ring | Glass control ring colour. | color-mix(in srgb, var(--text-primary) 16%, transparent) |
--glass-control-ink | Glass control icon and label colour. | var(--text-primary) |
--glass-control-blur | Filter on the photo behind a glass control. | blur(16px) |
tabs
Tab rail and trigger treatment, for both the segmented (default) and underlined (line) variants.
| Token | Binds | Falls back to |
|---|---|---|
--tabs-list-radius | Tab-rail corner rounding. | var(--radius-full, 9999px) |
--tabs-list-height | Tab-rail height. | 2.25rem |
--tabs-list-padding | Tab-rail inset. | calc(var(--spacing-1, 0.25rem) * 0.75) |
--tabs-list-color | Tab-rail base text colour. | var(--text-secondary, #6b7280) |
--tabs-list-bg | Segmented-variant rail fill. | var(--surface-muted, #f3f4f6) |
--tabs-line-border-bottom | Underlined-variant rail rule (width, style and colour). Unbound, the rail rule is painted at --hairline-width; binding this draws your border instead. | 1px solid transparent (the rule is painted by border-image at --hairline-width) |
--tabs-trigger-radius | Trigger corner rounding. Leave unset: derived from the rail (rail radius minus rail padding minus the 1px trigger inset), so the corners stay concentric. Bound, an explicit override. | the rail's radius minus its padding and 1px; line variant var(--radius-md, 0.375rem) |
--tabs-trigger-padding | Trigger inset. | var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem) |
--tabs-trigger-font-size | Trigger type size. | var(--font-size-sm, 0.875rem) |
--tabs-trigger-font-weight | Trigger weight. | var(--font-weight-medium, 500) |
--tabs-trigger-letter-spacing | Trigger tracking. | inherit |
--tabs-trigger-text-transform | Trigger casing. | inherit |
--tabs-trigger-color | Resting trigger colour. | var(--text-secondary, #6b7280) |
--tabs-trigger-active-bg | Active trigger fill. | var(--surface-page, #ffffff) |
--tabs-trigger-active-color | Active trigger colour. | var(--text-primary, #111827) |
--tabs-trigger-active-shadow | Active trigger elevation. | var(--shadow-sm) |
--tabs-indicator-height | Underline indicator thickness. | 2px |
--tabs-indicator-color | Underline indicator colour. | var(--text-primary, #111827) |
--tabs-keyed-key | Keyed variant key colour: the sliding highlight's 1px edge and the active tab's icon. | var(--surface-accent-default) |
--tabs-keyed-fill | Keyed variant highlight fill. | the key colour at 10% |
--tabs-keyed-ink | Keyed variant label ink: full on the active tab, 80% on hover, 55% at rest. | var(--text-primary) |
--tabs-keyed-radius | Keyed variant tab and highlight corners. | var(--radius-md, 0.375rem) |
skeleton
Loading-placeholder shimmer and the content-shape geometry the admin list/table/detail skeletons use.
| Token | Binds | Falls back to |
|---|---|---|
--skeleton-from | Shimmer gradient start. | #f3f4f6 |
--skeleton-to | Shimmer gradient peak. | #e5e7eb |
--skeleton-radius | Default placeholder rounding. | var(--radius-md, 0.375rem) |
--skeleton-duration | Shimmer cycle length. | 1.5s |
--skeleton-logo-width | Logo-plate placeholder width. | 104px |
--skeleton-logo-height | Logo-plate placeholder height. | 24px |
--skeleton-pill-width | Badge-pill placeholder width. | 64px |
--skeleton-pill-height | Badge-pill placeholder height. | 18px |
--skeleton-line-h1-height | Display-line placeholder height. | 24px |
--skeleton-line-heading-height | Heading-line placeholder height. | 18px |
--skeleton-line-body-height | Body-line placeholder height. | 14px |
--skeleton-avatar-size | Avatar placeholder diameter. | 40px |
--skeleton-avatar-lg-size | Large avatar placeholder diameter. | 64px |
--skeleton-badge-width | Row-badge placeholder width. | 72px |
--skeleton-badge-height | Row-badge placeholder height. | 22px |
--skeleton-row-gap | Skeleton row gap. | var(--spacing-3, 0.75rem) |
--skeleton-row-padding | Skeleton row inset. | var(--spacing-3, 0.75rem) 0 |
--skeleton-row-border-bottom | Skeleton row separator. | 1px solid var(--border-default, #e5e7eb) |
spinner
Inline loading ring — track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words.
| Token | Binds | Falls back to |
|---|---|---|
--spinner-track-color | Ring track colour. | var(--border-default, #e5e7eb) |
--spinner-edge-color | Leading-edge colour (default tone). | var(--text-tertiary, #6b7280) |
--spinner-primary-edge-color | Leading-edge colour (primary tone). | var(--primary, #111827) |
--spinner-glyph | Glyph drawn in place of the ring: a mask image, e.g. url("data:image/svg+xml,..."). Unset keeps the border ring. | none |
--spinner-glyph-color | Glyph ink (default tone; the primary tone inks the glyph with primary-edge-color). | currentColor |
--spinner-radius | Ring rounding. | var(--radius-full, 9999px) |
--spinner-duration | Rotation cycle length. | var(--motion-duration-1500, 1500ms) |
--spinner-xs-size | Extra-small ring diameter. | 12px |
--spinner-xs-border-width | Extra-small ring stroke. | var(--stroke-width-thin, 1px) |
--spinner-sm-size | Small ring diameter. | 16px |
--spinner-sm-border-width | Small ring stroke. | var(--stroke-width-regular, 1.5px) |
--spinner-md-size | Default ring diameter. | 24px |
--spinner-md-border-width | Default ring stroke. | var(--stroke-width-medium, 2px) |
--spinner-appear-duration | Fade-in length once a delay passes. | var(--motion-duration-500, 500ms) |
--spinner-label-gap | Space between the spinner and its visible words (showLabel). | var(--spacing-2, 0.5rem) |
--spinner-label-font-size | Visible words size (showLabel). | var(--font-size-sm, 0.875rem) |
--spinner-label-font-weight | Visible words weight (showLabel). | var(--font-weight-medium, 500) |
--spinner-label-color | Visible words colour (showLabel). | var(--text-secondary, #4b5563) |
stepper
Stepper's rail variant — row gap and inset, the space between mark and label, label size, weight and tracking, and the dot mark's size and current width. The rail's ink is --text-primary, or over a photo the glass ink in light and the glass scrim ink in dark, at the kit's 100/64/40/24% ramp.
| Token | Binds | Falls back to |
|---|---|---|
--stepper-rail-gap | Space between rail rows. | 0 |
--stepper-rail-padding | Rail row inset. | var(--spacing-2, 0.5rem) var(--spacing-1, 0.25rem) |
--stepper-rail-mark-gap | Space between the mark and the label. | var(--spacing-3, 0.75rem) |
--stepper-rail-font-size | Rail label size. | var(--font-size-sm, 0.875rem) |
--stepper-rail-font-weight | Rail label weight. | var(--font-weight-medium, 500) |
--stepper-rail-letter-spacing | Rail label tracking. | normal |
--stepper-rail-mark-size | Dot mark diameter. | calc(var(--spacing-1, 0.25rem) * 1.5) |
--stepper-rail-mark-active-width | The current row's mark, stretched to a pill. | var(--spacing-5, 1.25rem) |
checkbox
Control sizing — the D3 Tier-2 --checkbox-size / -radius / -bg / -border set, promoted from the admin-ui audit to a bindable contract.
| Token | Binds | Falls back to |
|---|---|---|
--checkbox-size | Checkbox box size. | 1rem |
--checkbox-radius | Checkbox corner rounding — square it for the editorial admin look. | var(--radius-sm, 0.25rem) |
--checkbox-bg | Unchecked fill. | transparent |
--checkbox-border | Unchecked edge colour. Width and style come from the shared control edge, so control.edge-width: 0 turns it off. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--checkbox-edgeless-bg | Unchecked fill shown only while the shared edge is off (control.edge-width: 0), so the box still reads as a control. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--checkbox-bg-checked | Checked fill. | var(--interactive-primary-bg, var(--primary, #111827)) |
--checkbox-border-checked | Checked edge colour. | var(--interactive-primary-bg, var(--primary, #111827)) |
input
Input shape at the default md size. Each key falls back to the matching
--input-*-md variable, so a scope that sets one still applies while the key is
unbound; a bound key wins.
| Token | Binds | Falls back to |
|---|---|---|
--input-md-height | md height. Unbound, the height follows the padding and the line. Bind md-padding with it. | var(--input-height-md, auto) |
--input-md-padding | md padding. Also the padding of DialogField's medium well, so the well tracks the field. | var(--input-padding-md, var(--spacing-3_5, 0.875rem) var(--spacing-4, 1rem)) |
--input-md-radius | md corner rounding. Also the rounding of DialogField's well. | var(--input-radius-md, var(--radius-sm, 0.5rem)) |
--input-bg-invalid | Well of a refused field (aria-invalid). Input, Textarea, Select and TagInput all read it. Unbound, Input uses --surface-error-subtle and the others keep their resting well. | var(--surface-error-subtle, color-mix(in srgb, var(--border-error, #ef4444) 6%, var(--field-control-bg, var(--input-bg, #f9fafb)))) (the others: their resting well) |
textarea
Textarea shape at the default md size.
| Token | Binds | Falls back to |
|---|---|---|
--textarea-padding | md padding. | var(--spacing-3_5, 0.875rem) var(--spacing-4, 1rem) |
--textarea-radius | md corner rounding. | var(--radius-sm, 0.5rem) |
select
Select trigger shape at the default md size.
| Token | Binds | Falls back to |
|---|---|---|
--select-height | md trigger height. Unbound, the height follows the padding and the line. Bind padding with it. | auto |
--select-padding | md trigger padding. | var(--spacing-3_5, 0.875rem) var(--spacing-4, 1rem) |
--select-radius | md trigger corner rounding. | var(--radius-sm, 0.5rem) |
A 40px field with 10px 12px padding and 9px corners, on all three:
components:
input:
md-height: "40px"
md-padding: "10px 12px"
md-radius: "9px"
textarea:
padding: "10px 12px"
radius: "9px"
select:
height: "40px"
padding: "10px 12px"
radius: "9px"tag-input
TagInput — the field around the tags, each held tag, and the opt-in typing slot
(entryAs="slot"). The slot follows the tag's shape unless its own keys are set.
| Token | Binds | Falls back to |
|---|---|---|
--tag-input-min-height | Field minimum height. The field grows as tags wrap. | 2.25rem |
--tag-input-padding | Field padding around the tags. | var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem) |
--tag-input-radius | Field corner rounding. | var(--radius-md, 0.375rem) |
--tag-input-tag-height | Held-tag height. Unbound, the tag is as tall as its line. | auto |
--tag-input-tag-padding-x | Held-tag horizontal padding. | var(--spacing-2, 0.5rem) |
--tag-input-tag-font-size | Held-tag type size. The typing slot types at it too. | var(--font-size-xs, 0.75rem) |
--tag-input-tag-font-weight | Held-tag weight. Unbound, the tag inherits its row's weight. | revert-layer |
--tag-input-tag-radius | Held-tag corner rounding (a pill today). | var(--radius-full, 9999px) |
--tag-input-slot-height | Typing-slot height. Follows tag-height. | var(--tag-input-tag-height, 1.375rem) |
--tag-input-slot-padding-x | Typing-slot horizontal padding. Follows tag-padding-x. | var(--tag-input-tag-padding-x, var(--spacing-2, 0.5rem)) |
--tag-input-slot-radius | Typing-slot corner rounding. Follows tag-radius. | var(--tag-input-tag-radius, var(--radius-full, 9999px)) |
--tag-input-slot-min-width | Typing-slot minimum width. The slot grows with what is typed. | 4rem |
The typing slot draws its dashed edge from --control-drop-edge-width and
--control-drop-edge-style, so edges: off turns it off with every other edge.
A 29px tag and slot with 9px corners, in a 40px field:
components:
tag-input:
min-height: "40px"
padding: "5px"
radius: "9px"
tag-height: "29px"
tag-padding-x: "10px"
tag-font-weight: "300"
tag-radius: "9px"<TagInput entryAs="slot" defaultValue={["techno", "house"]} />control
The one switch for form-control edges. Every form control — Input, Textarea,
Select, Checkbox, Switch, TagInput, Chip, FileUpload, EmptyState and the edged
Button faces — draws its resting edge from these, so edge-width: 0 removes
every resting edge at once, dashed edges included.
| Token | Binds | Falls back to |
|---|---|---|
--control-edge-width | The switch. Resting-edge weight for every form control; 0 turns every resting edge off. | 1px (Chip: var(--stroke-width-thin, 1px)) |
--control-edge-color | Resting-edge colour. A component's own --<component>-border override still wins over it. | var(--border-default, #e5e7eb) |
--control-edge-style | Resting-edge style for solid edges. | solid |
--control-drop-edge-width | Dashed-edge weight (FileUpload draws it at 2×). Follows edge-width unless set — set it alone to keep dashed edges while solid edges are off. | var(--control-edge-width, 1px) |
--control-drop-edge-style | Dashed-edge style for drop targets, empty states and the TagInput typing slot. | dashed |
--control-state-edge-width | Focus and invalid edge weight. Independent of edge-width, so focus and invalid stay visible with edges off. | 1px |
--control-invalid-ring-width | Width of the error-colour ring on a refused value. Unbound, Input draws a 1.5px inset ring and Textarea and Select draw it at state-edge-width. | 1.5px (Textarea, Select: var(--control-state-edge-width, 1px)) |
--control-invalid-halo-width | Width of the soft error-colour halo outside the ring. Unbound, Input draws none and Textarea and Select draw it at --focus-ring-width. | 0px (Textarea, Select: var(--focus-ring-width, 2px)) |
--control-focus-halo-color | Focus halo colour, apart from the ring (border-focus). | color-mix(in srgb, var(--border-focus, #111827) 15%, transparent) |
--control-focus-halo-width | Focus halo width, apart from --focus-ring-width (the focus ring's own width). Also the halo of a focused refused field. | var(--focus-ring-width, 2px) |
--control-invalid-ring-color | Colour of the ring on a refused value. | var(--border-error, #ef4444) |
--control-invalid-halo-color | Colour of the halo around a refused value's ring. | color-mix(in srgb, var(--border-error, #ef4444) 15%, transparent) (focused Input: 30%) |
Turning every edge off is one line in the theme:
# my-theme.visor.yaml
edges: off # shorthand for components.control.edge-width: "0"Or set the token on any ancestor, for one part of an app:
.editor {
--control-edge-width: 0;
}How the switch holds up:
- No layout shift. The edge is an
outlinepulled inside the box with a matching negativeoutline-offset, over a transparent border that only holds the box's geometry. Flipping the switch moves nothing. - No
borderto fight. Nothing visible depends onborder-color, so a consumer never needs aborder-color: transparent !importantoverride. - Focus and invalid stay visible. They draw at
state-edge-width, which the switch does not touch. - The checkbox still reads as a box. With the edge off, an unchecked
checkbox takes a fill (
--checkbox-edgeless-bg), because the box is the control, not decoration. - Dashed edges can come back on their own. Set
--control-drop-edge-widthto keep drop-target and empty-state edges while solid edges stay off.
The refused-value look on Input, Textarea and Select is a ring in the error colour plus a soft halo. A 1px ring with a 3px halo on all three:
components:
control:
invalid-ring-width: "1px"
invalid-halo-width: "3px"hairline
The one switch for hairlines. Every hairline rule, divider and ring — the soft
separators and rings coloured by --hairline and --hairline-strong — reads its
weight from --hairline-width, so width: 0 removes all of them at once.
Independent of the control edge switch above: neither touches the other's
tokens.
| Token | Binds | Falls back to |
|---|---|---|
--hairline-width | The switch. Hairline weight for every --hairline / --hairline-strong rule; 0 turns every hairline off. Focus and invalid edges are untouched. | 1px (most components: var(--stroke-width-thin, 1px)) |
Turning every hairline off is one line in the theme:
# my-theme.visor.yaml
hairlines: off # shorthand for components.hairline.width: "0"Or set the token on any ancestor, for one part of an app:
.canvas {
--hairline-width: 0;
}How the switch holds up:
- Independent of
edges.hairlines: offemits only--hairline-width: 0andedges: offemits only--control-edge-width: 0. Set both, either, or neither. - No layout shift. Hairlines follow the same rule as the
controledge: the box keeps its geometry and only the paint changes. A ring (all four sides) is anoutlinepulled inside a transparent border of constant width (outline-offset: calc(-1 * var(--hairline-width))); a single rule (a rail, a header or footer rule, a divider) is a transparent border of constant width with the line painted byborder-imageat--hairline-width; a divider that is its own 1px box is an insetbox-shadow. Flipping the switch moves nothing. Rendering with it on is unchanged. - Two exceptions, both collapsed-border tables.
border-imageandoutlinedo not apply to aborder-collapse: collapsecell, so Table's cell hairline and MatrixTable's header and cell rules stay real borders. Table's cell rule shares its edge with the row rule, so removing it moves nothing; MatrixTable's header/body join has no second rule, so it tightens by 1px. - A bound border shorthand wins.
--tabs-line-border-bottomand--dialog-form-panel-bordertake a full border value. Bound, they draw that border instead of the painted hairline, and the switch no longer governs them. - Colour is still yours.
--hairlineand--hairline-strongare unchanged; the switch is the width, so a theme can still tune the colour while hairlines are on. - Focus and invalid stay visible. They draw at
--control-state-edge-width, which this switch does not touch.
field
Field's parts: the label (size, weight, line height, case, tracking, colour, the "optional" mark), the hint, the error line (a theme error colour, weight, icon gap and size) and the FieldControl box a control sits in (height, corners, fill, focus ring, invalid fill and line, the control's padding, type and placeholder, the tall box for a Textarea). Under data-glass="on" the box reads the glass layer's control values and the error line its on-photo ink.
| Token | Binds | Falls back to |
|---|---|---|
--field-gap | Space between the label, the control, the hint and the error line. | var(--spacing-2, 0.5rem) |
--field-text-inset | Start inset of the label, the hint and the error line, so their text lines up inside the box's corner. | 0 |
--field-label-font-weight | Label weight. | var(--font-weight-medium, 500) |
--field-label-line-height | Label line height. | 1.4 |
--field-label-optional-color | Colour of the "optional" mark after the label (FieldLabel optional). | var(--text-secondary, currentColor) |
--field-label-optional-font-weight | Weight of the "optional" mark. | var(--font-weight-normal, 400) |
--field-description-font-size | Hint (FieldDescription) type size. Drives both the standard and editorial-density steps. | var(--font-size-xs, 0.75rem) · 11px |
--field-description-color | Hint colour. Drives both the standard and editorial-density steps. | var(--text-secondary, currentColor) · var(--text-tertiary) |
--field-description-line-height | Hint line height. | 1.5 |
--field-error-color | The error line's colour, icon included. Under data-glass="on" the glass layer's on-photo ink (glass.ink) draws it instead. | var(--text-error, currentColor) |
--field-error-font-weight | Error line weight. | var(--font-weight-normal, 400) |
--field-error-line-height | Error line height. | inherit |
--field-error-icon-gap | Space between the error icon and its message. | calc(var(--spacing-1, 0.25rem) + var(--spacing-1, 0.25rem) / 2) |
--field-error-icon-size | Error icon size: the icon's width and height, whatever size the icon was passed at. It sits centred on the message's first line. | 1.077em |
--field-error-fill | FieldControl fill while its control is invalid. Under glass, the glass hover fill. | var(--input-bg-invalid, var(--surface-error-subtle, color-mix(in srgb, var(--border-error, #ef4444) 6%, var(--field-control-bg, var(--input-bg, #f9fafb))))) |
--field-error-line | FieldControl edge colour while its control is invalid. Under glass, the on-photo ink. | var(--control-invalid-ring-color, var(--border-error, #ef4444)) |
--field-error-line-width | FieldControl edge width while its control is invalid. | var(--control-invalid-ring-width, 1.5px) |
--field-control-height | FieldControl box height. | var(--input-md-height, 2.75rem) |
--field-control-radius | FieldControl corner radius. | var(--input-md-radius, var(--input-radius-md, var(--radius-sm, 0.5rem))) |
--field-control-fill | FieldControl fill. Under glass, the glass control fill. | var(--field-control-bg, var(--input-bg, var(--surface-interactive-default, #f9fafb))) |
--field-control-fill-hover | FieldControl fill on hover and focus. Unset, the resting fill. Under glass, the glass hover fill. | var(--field-control-fill, var(--field-control-bg, var(--input-bg, var(--surface-interactive-default, #f9fafb)))) |
--field-control-focus-ring-color | Focus ring colour: 1px on pointer focus, the full ring on keyboard focus. Under glass, the glass control ink. | var(--border-focus, #111827) |
--field-control-focus-ring-width | Keyboard focus ring width. Unset, the shared focus ring width. | var(--focus-ring-width, 2px) |
--field-control-padding-x | Side inset of the control inside the box. | var(--spacing-4, 1rem) |
--field-control-font-size | The control's type size inside the box. | var(--font-size-sm, 0.875rem) |
--field-control-font-weight | The control's weight inside the box. | inherit |
--field-control-letter-spacing | The control's tracking inside the box. | inherit |
--field-control-placeholder-color | Placeholder colour inside the box, the Select trigger's placeholder included. | var(--input-placeholder-color, var(--text-secondary, #9ca3af)) |
--field-control-tall-min-height | The tall box's (FieldControl tall) shortest; it grows with the Textarea's content. | 6.25rem |
--field-control-tall-max-height | The tall box's tallest; the Textarea scrolls beyond it. | none |
--field-control-tall-padding-y | Top and bottom inset of the Textarea in the tall box. | var(--spacing-3_5, 0.875rem) |
--field-label-font-size | Label type size. Drives both the standard and editorial-density steps. | var(--font-size-sm, 0.875rem) · 13px |
--field-label-text-transform | Label casing. | revert-layer |
--field-label-letter-spacing | Label tracking. | revert-layer |
--field-label-color | Label colour. Drives both the standard and editorial-density steps. | var(--text-primary, currentColor) · var(--text-secondary) |
The box's resting edge width and colour come from the shared control tokens.
Glass is off unless an ancestor sets data-glass="on": there the box's fill, hover fill,
edge, focus ring, control ink and blur come from the glass layer's
control values, and the error line and the invalid edge take its on-photo ink.
components:
field:
gap: "10px"
text-inset: "4px"
label-font-size: "15px"
label-font-weight: "540"
label-line-height: "20px"
label-optional-font-weight: "420"
description-font-size: "14px"
description-line-height: "20px"
error-font-weight: "520"
error-line-height: "20px"
error-icon-gap: "8px"
error-icon-size: "16px"
error-line-width: "1px"
control-height: "54px"
control-radius: "12px"
control-padding-x: "20px"
control-font-size: "18px"
control-font-weight: "460"
control-tall-min-height: "140px"
control-tall-max-height: "260px"
control-tall-padding-y: "16px"button
Button type treatment and rounding. The unprefixed keys set every size at once; a size key (dlg-radius) overrides one size.
| Token | Binds | Falls back to |
|---|---|---|
--button-icon-gap | Gap between an icon and its label, on every size. Apart from icon-pad (the icon-only hit target). | var(--spacing-2, 0.5rem) |
--button-default-bg | default variant fill, apart from interactive-primary-bg (which Switch's on track also reads). | var(--interactive-primary-bg, var(--primary, #111827)) |
--button-default-bg-hover | default variant fill on hover. | var(--interactive-primary-bg-hover, #1f2937) |
--button-default-text | default variant ink, apart from interactive-primary-text. | var(--interactive-primary-text, #f9fafb) |
--button-dlg-destructive-bg | dlg size destructive fill, the subtle error face. Apart from interactive-destructive-bg (the solid destructive button). | var(--surface-error-subtle, color-mix(in srgb, var(--destructive, #ef4444) 8%, transparent)) |
--button-dlg-destructive-bg-hover | dlg size destructive fill on hover. | color-mix(in srgb, var(--destructive, #ef4444) 14%, transparent) |
--button-dlg-destructive-text | dlg size destructive ink. | var(--text-error, var(--destructive, #b91c1c)) |
--button-hero-bg | hero variant fill, the solid face for special moments. Unbound, it is the default look. | var(--interactive-primary-bg, var(--primary, #111827)) |
--button-hero-bg-hover | hero variant fill on hover. | var(--interactive-primary-bg-hover, #1f2937) |
--button-hero-text | hero variant ink. | var(--interactive-primary-text, #f9fafb) |
--button-ghost-text | ghost variant ink at rest. The dlg size rests in secondary ink. | var(--text-primary, #111827) (dlg: var(--text-secondary, #6b7280)) |
--button-ghost-text-hover | ghost variant ink on hover. | var(--text-primary, #111827) (dlg: var(--text-secondary, #6b7280)) |
--button-md-height | md height. Bind auto with md-padding to let the padding set the height. | var(--label-box-height) (2.5rem) |
--button-md-padding | md padding. | 0 var(--spacing-4, 1rem) |
--button-dlg-padding | dlg padding. | var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem) |
--button-lg-height | lg height (54px for the kit's pill). | var(--label-box-height) |
--button-lg-padding | lg padding. | 0 var(--spacing-6, 1.5rem) |
--button-default-shadow | default variant drop shadow. Unbound, no shadow is declared. | revert-layer |
--button-default-shadow-hover | default variant drop shadow on hover. Defaults to default-shadow. | var(--button-default-shadow, revert-layer) |
--button-outline-text | outline variant ink. | var(--text-primary, #111827) |
--button-outline-bg-hover | outline variant fill on hover. | var(--surface-muted, #f3f4f6) |
--button-outline-bg | outline variant fill at rest. Unbound, it is transparent. | transparent |
--button-outline-padding | outline variant padding on every labelled size, over the size's own padding (0 26px for the kit). Unbound, each size keeps its padding. | — (each size's padding) |
--button-outline-font-weight | outline variant weight on every size, over the size and family weights (520 for the kit). Unbound, each size keeps its weight. | — (each size's weight) |
--button-outline-ring-color | outline variant ring colour, apart from the shared --control-edge-color. | var(--control-edge-color, var(--border-strong, #e5e7eb)) |
--button-outline-backdrop-filter | outline variant backdrop filter, so it can frost over a photo like the glass icon button. Unbound, none. | none |
--button-hover-scale | Grow on hover, every variant (1.06 for the kit). Off for disabled, gated and pending buttons. | revert-layer |
--button-press-scale | Scale while pressed (0.97 for the kit). Replaces the hover grow while held. | revert-layer |
--button-press-transform | Press nudge. Bind none when press-scale carries the press. | translateY(1px) |
--button-press-duration | How fast the press lands. Unbound, it is instant. | 0s |
--button-motion-duration | Duration of the fill, ink, grow, shadow and arrow-swap transitions. | var(--motion-duration-150, 150ms) |
--button-motion-easing | Curve of the fill, ink, grow, shadow and arrow-swap transitions. | var(--motion-easing-default, ease-in-out) |
--button-text-transform | Casing for every size. | revert-layer |
--button-letter-spacing | Tracking for every size. | revert-layer |
--button-font-weight | Weight for every size. | var(--font-weight-medium, 500) · var(--font-weight-semibold, 600) |
--button-radius | Corner rounding for every size (999px for a pill). | var(--radius-md, 0.375rem) · var(--radius-lg, 0.5rem) |
--button-sm-font-size | sm type size. Drives both the standard and editorial-density steps. | var(--font-size-xs, 0.75rem) · 0.8125rem |
--button-sm-font-weight | sm weight. | var(--button-font-weight, var(--font-weight-medium, 500)) |
--button-sm-text-transform | sm casing. | var(--button-text-transform, revert-layer) |
--button-sm-letter-spacing | sm tracking. | var(--button-letter-spacing, revert-layer) |
--button-sm-radius | sm corner rounding. | var(--button-radius, var(--radius-md, 0.375rem)) |
--button-md-font-size | md type size. | var(--font-size-sm, 0.875rem) |
--button-md-font-weight | md weight. | var(--button-font-weight, var(--font-weight-medium, 500)) |
--button-md-text-transform | md casing. | var(--button-text-transform, revert-layer) |
--button-md-letter-spacing | md tracking. | var(--button-letter-spacing, revert-layer) |
--button-md-radius | md corner rounding. | var(--button-radius, var(--radius-md, 0.375rem)) |
--button-lg-font-size | lg type size. | var(--font-size-base, 1rem) |
--button-lg-font-weight | lg weight. | var(--button-font-weight, var(--font-weight-medium, 500)) |
--button-lg-text-transform | lg casing. | var(--button-text-transform, revert-layer) |
--button-lg-letter-spacing | lg tracking. | var(--button-letter-spacing, revert-layer) |
--button-lg-radius | lg corner rounding. | var(--button-radius, var(--radius-md, 0.375rem)) |
--button-dlg-font-size | dlg type size. | var(--font-size-2xs, 0.6875rem) |
--button-dlg-font-weight | dlg weight. | var(--button-font-weight, var(--font-weight-semibold, 600)) |
--button-dlg-text-transform | dlg casing. | var(--button-text-transform, revert-layer) |
--button-dlg-letter-spacing | dlg tracking. | var(--button-letter-spacing, revert-layer) |
--button-dlg-radius | dlg corner rounding. | var(--button-radius, var(--radius-lg, 0.5rem)) |
--button-icon-size | Icon-only (size="icon") glyph size. The square box is this plus icon-pad on every side. Also sizes the InlineEdit pencil and the SaveStatus retry mark. | 1rem |
--button-icon-pad | Icon-only hit-target pad around the glyph, on every side. Also the hit target of the InlineEdit pencil and the SaveStatus retry mark. | var(--spacing-2, 0.5rem) |
--button-icon-radius | Icon-only corner rounding (999px for a round mark). | var(--button-radius, var(--radius-md, 0.375rem)) |
--button-icon-ghost-color | Icon-only ghost ink at rest. Hover comes up to --text-primary. Also the ink of the InlineEdit pencil and the SaveStatus retry mark. | var(--text-secondary, #6b7280) |
text
Text type treatment, per size — set sm-font-size: 13px for a 13px step, or caps and tracking on xs for a state tag. eyebrow also takes a weight, colour and gap. Every key begins with a size.
| Token | Binds | Falls back to |
|---|---|---|
--text-xs-font-size | xs type size. | var(--font-size-xs, 0.75rem) |
--text-xs-text-transform | xs casing. | revert-layer |
--text-xs-letter-spacing | xs tracking. | revert-layer |
--text-sm-font-size | sm type size. | var(--font-size-sm, 0.875rem) |
--text-sm-text-transform | sm casing. | revert-layer |
--text-sm-letter-spacing | sm tracking. | revert-layer |
--text-md-font-size | md type size. | var(--font-size-base, 1rem) |
--text-md-text-transform | md casing. | revert-layer |
--text-md-letter-spacing | md tracking. | revert-layer |
--text-lg-font-size | lg type size. | var(--font-size-lg, 1.125rem) |
--text-lg-text-transform | lg casing. | revert-layer |
--text-lg-letter-spacing | lg tracking. | revert-layer |
--text-xl-font-size | xl type size. | var(--font-size-xl, 1.25rem) |
--text-xl-text-transform | xl casing. | revert-layer |
--text-xl-letter-spacing | xl tracking. | revert-layer |
--text-eyebrow-font-size | eyebrow type size. | var(--font-size-xs, 0.75rem) |
--text-eyebrow-text-transform | eyebrow casing. | uppercase |
--text-eyebrow-letter-spacing | eyebrow tracking. | var(--letter-spacing-wide, 0.05em) |
--text-eyebrow-font-weight | eyebrow weight, unless the caller passes weight. | var(--font-weight-semibold, 600) |
--text-eyebrow-color | eyebrow colour, unless the caller passes color. | var(--text-secondary, #6b7280) |
--text-eyebrow-gap | Space between an eyebrow and a leading dot or icon. | var(--spacing-2, 0.5rem) |
switch
Switch track and knob dimensions (default size; size="sm" keeps its own) and colours. Set knob-inset to size the knob from the track: it sits that far from the track's outer edge on every side.
| Token | Binds | Falls back to |
|---|---|---|
--switch-track-width | Track width. | 2rem |
--switch-track-height | Track height. With knob-inset set, the knob is the track height less the inset on both sides. | 1.15rem |
--switch-knob-inset | Gap between the knob and the track's outer edge, on every side. Unset, the knob keeps its shipped 1rem size and position. | — (unset) |
--switch-track-bg | Unchecked track fill. | var(--border-default, #e5e7eb) |
--switch-edge-color | Track edge colour — transparent by default. Width and style come from the shared control edge, so control.edge-width: 0 turns it off. | transparent |
--switch-track-hover-bg | Unchecked track fill under the pointer. Bind it in a borderless theme, where --border-strong is transparent. | var(--border-strong, #d1d5db) |
--switch-track-hover-bg-checked | Checked track fill under the pointer. Unbound it is --border-strong, as it always was; bind it to keep the checked fill under the pointer. | var(--border-strong, #d1d5db) |
--switch-knob-bg | Unchecked knob fill. Bind it in a dark theme, where the page colour is a black knob on a dark track. | var(--surface-page, #ffffff) |
--switch-knob-bg-checked | Checked knob fill. Independent of knob-bg, so a light unchecked knob can sit beside a dark knob on a bright checked track. | var(--surface-page, #ffffff) |
Every hook in field, button, text and switch defaults to what shipped
before it existed. Case and tracking are declared in Visor's lowest cascade
layer (visor-base, where the reset lives) and fall back to revert-layer, so
while a hook is unset the element is exactly as it would be without it: your
own rules, a utility class, a reset, inheritance or the browser's <button>
default still decide. Set, the hook still yields to any rule of yours.
A compact caps pill for dialog actions, a 13px state line and a caps state tag:
# my-theme.visor.yaml
components:
button:
dlg-font-size: "10px"
dlg-text-transform: uppercase
dlg-letter-spacing: "0.06em"
dlg-radius: "999px"
text:
sm-font-size: "13px"
xs-font-size: "9px"
xs-text-transform: uppercase
xs-letter-spacing: "0.12em"
field:
label-font-size: "9px"
label-text-transform: uppercase
label-letter-spacing: "0.12em"
label-color: "var(--text-tertiary)"
switch:
track-width: "30px"
track-height: "17px"
knob-inset: "3px"None of these hooks draws an edge. The outline Button (at any size, dlg
included) and the Switch track take their edge from the control family, so
control.edge-width: 0 still turns them off.
save-status
SaveStatus readout — the fixed-width slot, its type, the Syncing ink and the Unsaved dot, so the readout never reflows its row.
| Token | Binds | Falls back to |
|---|---|---|
--save-status-width | Slot width. Unbound, the slot is as wide as the longest label in the current font plus the retry mark, the same in every state. Bind it to pin a width; a longer label then truncates inside it. | auto |
--save-status-syncing-color | Ink of the Syncing state (a first sync from an outside source). Unbound it reads --text-secondary. | var(--text-secondary, #6b7280) |
--save-status-font-size | Readout type size. | var(--font-size-xs, 0.75rem) |
--save-status-dot-size | Diameter of the status dot (dot), in every state but Unsaved. Also the Unsaved dot's, until unsaved-dot-size is set. The slot width does not change. | var(--spacing-2, 0.5rem) |
--save-status-unsaved-dot-size | Diameter of the dot that draws Unsaved — the status dot while Unsaved, and the dot alone of unsavedAs="dot". Follows dot-size. | var(--save-status-dot-size, var(--spacing-2, 0.5rem)) |
--save-status-font-family | Readout family (e.g. the theme's mono). | revert-layer |
--save-status-text-transform | Readout casing. | revert-layer |
--save-status-letter-spacing | Readout tracking. | revert-layer |
Family, case and tracking sit in visor-base and fall back to revert-layer,
like the type hooks above, so while they are unset the readout inherits from
its row and any rule of yours wins. A 78px caps mono readout:
components:
save-status:
width: "78px"
font-family: "var(--font-mono)"
text-transform: uppercase
letter-spacing: "0.06em"With dot, SaveStatus draws a status dot before the label in every state, in
the state's ink. A 9px readout with a 5px dot that grows to 6px while unsaved:
components:
save-status:
font-size: "9px"
dot-size: "5px"
unsaved-dot-size: "6px"The dot's box is as wide as the larger diameter, so the label never moves.
SaveStatus draws no edge, so there is nothing for control.edge-width to turn off.
proportion-bar
ProportionBar — the default part fills by position, the built-in hatched, striped and alert fills, the alert's legend text and the empty track.
| Token | Binds | Falls back to |
|---|---|---|
--proportion-bar-fill-1 | First part's fill when it sets none (then every fourth). | var(--chart-1, #2563eb) |
--proportion-bar-fill-2 | Second part's default fill. | var(--chart-2, #16a34a) |
--proportion-bar-fill-3 | Third part's default fill. | var(--chart-3, #d97706) |
--proportion-bar-fill-4 | Fourth part's default fill. | var(--chart-4, #0891b2) |
--proportion-bar-hatch-color | Stroke of the hatched fill (not billable, written off). | var(--text-tertiary, #9ca3af) |
--proportion-bar-hatch-gap | Ground between the hatch strokes. | color-mix(in srgb, var(--surface-card, #ffffff) 70%, transparent) |
--proportion-bar-stripe-a | First band of the striped fill (earned, not yet collected). | var(--color-success-500, #22c55e) |
--proportion-bar-stripe-b | Second band of the striped fill. | var(--color-success-600, #16a34a) |
--proportion-bar-alert-bg | The alert fill: the one part that needs a decision. | var(--interactive-destructive-bg, #dc2626) |
--proportion-bar-alert-text | The alert part's legend label and value. | var(--text-error, #b91c1c) |
--proportion-bar-track-bg | The one neutral track drawn when nothing is measured. | var(--surface-muted, #e5e7eb) |
segmented-control
SegmentedControl — the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared control edge. Under data-glass="on" the well blurs the photo and, unbound, takes the glass layer's control fill.
| Token | Binds | Falls back to |
|---|---|---|
--segmented-control-track-bg | The well the pill slides in. Default is the page nudged 12% toward the ink, so it reads as a well in light and dark; under glass, the glass layer's control fill. | var(--glass-on-control-fill, color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff))) |
--segmented-control-radius | Track corner radius. Unset, each size keeps its ToggleGroup radius. The segments and the pill derive their corners from it. | xs var(--radius-md, 0.375rem), sm and md var(--radius-lg, 0.5rem), lg var(--radius-xl, 0.75rem) |
--segmented-control-track-padding | Inset between the well's edge and the segments. | xs calc(var(--spacing-1, 0.25rem) / 2), sm, md and lg var(--spacing-1, 0.25rem) |
--segmented-control-item-height | Segment height; the pill follows it. | xs 1.5rem, sm 1.75rem, md 2.25rem, lg 2.75rem |
--segmented-control-item-padding-x | Segment sides. | xs var(--toggle-group-xs-padding-x, var(--spacing-2, 0.5rem)), sm var(--spacing-2, 0.5rem), md var(--spacing-3, 0.75rem), lg var(--spacing-4, 1rem) |
--segmented-control-item-radius | Segment corners: the hover fill and the focus ring. Leave unset: derived from the track, so the corners stay concentric. Bound, an explicit override. | the track radius minus its padding and 1px border (xs reads --toggle-group-xs-item-radius first) |
--segmented-control-indicator-radius | Sliding pill corners. Leave unset: derived from the track, so --segmented-control-radius: 999px alone gives a round switch. Bound, an explicit override. | the track radius minus its padding and 1px border (xs reads --toggle-group-xs-item-radius first) |
--segmented-control-font-size | Segment label size. | xs var(--toggle-group-xs-font-size, var(--font-size-xs, 0.75rem)), sm var(--font-size-xs, 0.75rem), md var(--font-size-sm, 0.875rem), lg var(--font-size-base, 1rem) |
--segmented-control-indicator-bg | Sliding active pill. Bind a lifted dark fill where the theme wants one. | var(--interactive-primary-bg, var(--primary, #111827)) |
--segmented-control-indicator-text | Active segment label ink, on the pill. | var(--interactive-primary-text, #f9fafb) |
--segmented-control-indicator-edge | Colour of the 1px state edge on the active pill. Set transparent where the fill already clears 3:1 against the well. | var(--text-primary, #111827) |
--segmented-control-inactive-text | Inactive segment label colour. | var(--text-primary, #111827) |
--segmented-control-active-weight | Active segment label weight. | var(--font-weight-medium, 500) |
The state edge is an inset ring at --control-state-edge-width (the width focus and invalid use), so
control.edge-width: 0 turns the resting edge off and leaves the state edge, with no layout shift. A theme
whose pill already clears 3:1 against the well, such as an accent fill on black, binds it to transparent:
components:
segmented-control:
indicator-edge: "transparent"A red pill with white ink, muted inactive labels, a bold active label and an 8px track:
components:
segmented-control:
indicator-bg: "#e51a1a"
indicator-text: "#ffffff"
inactive-text: "rgba(255, 255, 255, 0.46)"
active-weight: "600"
radius: "8px"A fully round switch with a 30px segment in a 3px track. The size and corner keys apply to
every size; unset, each size keeps its own values:
components:
segmented-control:
radius: "999px"
indicator-radius: "999px"
item-radius: "999px"
track-padding: "3px"
item-height: "30px"
item-padding-x: "14px"
font-size: "14px"SegmentedControl's resting edge is an outline from --control-edge-*, so
control.edge-width: 0 turns it off while focus stays visible.
toggle-group
ToggleGroup — the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (xs) size: its label size, option sides and corners. SegmentedControl takes the xs option keys too. The option-* keys draw the option variant's rows, letter key and check.
| Token | Binds | Falls back to |
|---|---|---|
--toggle-group-track-bg | The outline variant's track. Bind a well darker than its plane where the theme wants one. | transparent |
--toggle-group-selected-bg | The selected option's fill: the sliding indicator (outline, single) and the item itself (default, and outline multiple). | var(--interactive-primary-bg, var(--primary, #111827)) |
--toggle-group-selected-text | The selected option's label ink. | var(--interactive-primary-text, #f9fafb) |
--toggle-group-unselected-text | Every option that is not selected. | var(--text-primary, #111827) |
--toggle-group-xs-font-size | Compact (xs) label size. | var(--font-size-xs, 0.75rem) |
--toggle-group-xs-padding-x | Compact (xs) option sides. | var(--spacing-2, 0.5rem) |
--toggle-group-xs-track-radius | Compact (xs) outline track corner radius. | var(--radius-md, 0.375rem) |
--toggle-group-xs-item-radius | Compact (xs) option and indicator corner radius. Leave unset: in the outline track it is derived from the track (radius minus padding minus 1px border), so the corners stay concentric. Bound, an explicit override. | outline: the derived radius; default variant var(--radius-sm, 0.25rem) |
--toggle-group-option-gap | Option variant (VI-787): the space between rows. | var(--spacing-2, 0.5rem) |
--toggle-group-option-inner-gap | Option row: the space between key, label and check. | var(--spacing-3_5, 0.875rem) |
--toggle-group-option-min-height | Option row height; a wrapped label grows past it. | 3.375rem |
--toggle-group-option-padding | Option row padding (top, end, bottom, start). | var(--spacing-2, 0.5rem) var(--spacing-4_5, 1.125rem) var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem) |
--toggle-group-option-radius | Option row corner radius. | var(--radius-lg, 0.5rem) |
--toggle-group-option-bg | Option row fill at rest, a glass wash of the ink. | color-mix(in srgb, var(--text-primary, #111827) 9%, transparent) |
--toggle-group-option-hover-bg | Option row fill on hover, when not picked. | color-mix(in srgb, var(--text-primary, #111827) 13%, transparent) |
--toggle-group-option-selected-bg | Picked option row fill. | color-mix(in srgb, var(--text-primary, #111827) 20%, transparent) |
--toggle-group-option-selected-ring | Picked option row's 1px inset ring colour. | color-mix(in srgb, var(--text-primary, #111827) 40%, transparent) |
--toggle-group-option-text | Option label ink. | var(--text-primary, #111827) |
--toggle-group-option-font-size | Option label size. | var(--font-size-base, 1rem) |
--toggle-group-option-font-weight | Option label weight. | var(--font-weight-medium, 500) |
--toggle-group-option-description-text | Option row description line ink (VI-806). | var(--text-secondary, #4b5563) |
--toggle-group-option-description-font-size | Option row description line size. | var(--font-size-sm, 0.875rem) |
--toggle-group-option-key-size | Letter key badge size. | 1.75rem |
--toggle-group-option-key-radius | Letter key badge corner radius. | var(--radius-md, 0.375rem) |
--toggle-group-option-key-border | Letter key badge's inset edge while not picked. | var(--border-default, #e5e7eb) |
--toggle-group-option-key-text | Letter key ink while not picked. | var(--text-secondary, #4b5563) |
--toggle-group-option-key-font-size | Letter key size. | var(--font-size-xs, 0.75rem) |
--toggle-group-option-mark-bg | Picked fill of the letter key, the check box and the round single-choice mark (the theme's key colour). | var(--interactive-primary-bg, var(--primary, #111827)) |
--toggle-group-option-mark-text | Picked ink of the letter key and of the check glyph in the box and the round mark. | var(--interactive-primary-text, #f9fafb) |
--toggle-group-option-check-size | Size of the multiple-mode check box and of the single-mode round mark. | 1.25rem |
--toggle-group-option-check-radius | Check box corner radius. | var(--radius-sm, 0.25rem) |
--toggle-group-option-check-border | Check box's inset edge while not picked. | var(--border-strong, #d1d5db) |
The track fill is set at zero specificity, so a consumer class that sets the group's background still wins.
SegmentedControl keeps its own track, pill and inks (segmented-control); only the xs option keys reach it.
A dark theme that wants a compact group on a well, with the selected option in a soft accent wash:
components:
toggle-group:
track-bg: "rgba(0, 0, 0, 0.65)"
selected-bg: "rgba(44, 224, 230, 0.09)"
selected-text: "#2ce0e6"
unselected-text: "rgba(255, 255, 255, 0.46)"
xs-font-size: 10px
xs-padding-x: 11px
xs-track-radius: 8px
xs-item-radius: 6pxradio-card
RadioGroup card — its surface, edge, radius, icon and mark, plus the ring and dot of indicator="dot".
| Token | Binds | Falls back to |
|---|---|---|
--radio-card-bg | Card surface. | var(--surface-card, #ffffff) |
--radio-card-border | Resting card edge colour. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--radio-card-radius | Card corner radius. | var(--radius-lg, 0.5rem) |
--radio-card-hover-bg | Card surface on hover. | var(--surface-interactive-hover, var(--surface-muted, #f3f4f6)) |
--radio-card-selected-bg | Chosen card surface. | color-mix(in srgb, var(--text-primary, #111827) 10%, var(--radio-card-bg, var(--surface-card, #ffffff))) |
--radio-card-selected-border | Chosen card edge colour. | color-mix(in srgb, var(--text-primary, #111827) 40%, transparent) |
--radio-card-icon-size | Leading icon box and font size. | 1.5rem |
--radio-card-mark-bg | Filled disc behind the check mark. | var(--interactive-primary-bg, var(--primary, #111827)) |
--radio-card-mark-text | Check mark colour. | var(--interactive-primary-text, #f9fafb) |
--radio-card-ring | The ring on a card that is not chosen. | color-mix(in srgb, var(--text-primary, #111827) 30%, transparent) |
--radio-card-ring-selected | The ring on the chosen card. Unbound it follows the dot. | var(--radio-card-dot, var(--interactive-primary-bg, var(--primary, #111827))) |
--radio-card-dot | The dot inside the chosen card. | var(--interactive-primary-bg, var(--primary, #111827)) |
components:
radio-card:
ring: "rgba(255, 255, 255, 0.3)"
ring-selected: { light: "#111827", dark: "#2ce0e6" }
dot: "#2ce0e6"progress-ring
ProgressRing — its size and stroke, the arc's gradient, the track and its frost, the lustre, the words, and the timing of a jump and the done hand-off.
| Token | Binds | Falls back to |
|---|---|---|
--progress-ring-size | Ring diameter. | 160px |
--progress-ring-stroke | The arc's stroke width. | 8px |
--progress-ring-track-width | The track's width. Default is the stroke. | var(--_w) |
--progress-ring-from | The arc's first gradient stop, at its start. | var(--accent, #6b7280) |
--progress-ring-via | The arc's middle stop. Default is an oklch mix of from and to. | color-mix(in oklch, var(--_from), var(--_to)) |
--progress-ring-to | The arc's last stop, at its head (and the head cap). | var(--primary, #111827) |
--progress-ring-angle | A linear gradient's angle. | 135deg |
--progress-ring-track | The track's fill. | color-mix(in srgb, var(--text-primary, #111827) 12%, transparent) |
--progress-ring-track-edge | A hairline at the track's inner and outer edge. | transparent |
--progress-ring-track-feather | How soft the track's edges are. | 1px |
--progress-ring-track-blur | Backdrop blur through the track: a frosted track over a photo. | 0px |
--progress-ring-track-saturate | Saturation through the frosted track. | 1 |
--progress-ring-notch | Half a step notch's width, as an angle. | 0.006turn |
--progress-ring-blur | Blur on the ring itself. | 0px |
--progress-ring-sheen | The lustre, 0 to 1: the stroke shaded like a tube and lit from the top left. | 0 |
--progress-ring-cap-shadow | The head cap's tight shadow on the ring as it closes over its tail. | color-mix(in srgb, var(--color-black, #000000) 50%, transparent) |
--progress-ring-failed | The drained arc (and its head cap) in the failed state. Default is opaque: the ink at 40% over the page. | color-mix(in srgb, var(--text-primary, #111827) 40%, var(--surface-page, #ffffff)) |
--progress-ring-frost | A frosted-glass disc behind the ring, 0 to 1. Off at 0. | 0 |
--progress-ring-frost-blur | The frost's blur. | 0px |
--progress-ring-frost-saturate | Saturation through the frost. | 1 |
--progress-ring-frost-size | The frost's diameter, in ring widths. | 1.6 |
--progress-ring-frost-feather | How much of the frost's radius fades out, 0 to 1. | 0.6 |
--progress-ring-frost-tint | A tint over the frost. | transparent |
--progress-ring-value-scale | The percentage's size, as a share of the ring's diameter. | 0.25 |
--progress-ring-value-weight | The percentage's weight. | var(--font-weight-medium, 500) |
--progress-ring-value-color | The percentage and the failed mark. | var(--text-primary, #111827) |
--progress-ring-unit-color | The % sign. | var(--text-secondary, #4b5563) |
--progress-ring-label-gap | Space between the ring and its words. | var(--spacing-4, 1rem) |
--progress-ring-label-font-size | The label's size. | var(--font-size-sm, 0.875rem) |
--progress-ring-label-font-weight | The label's weight. | var(--font-weight-medium, 500) |
--progress-ring-label-color | The label's ink. | var(--text-secondary, #4b5563) |
--progress-ring-note-font-size | The note's size. | var(--font-size-xs, 0.75rem) |
--progress-ring-note-color | The note's ink. | var(--text-tertiary, #9ca3af) |
--progress-ring-jump-duration | How long a jump eases (and the done hand-off waits for the arc to close). | var(--motion-duration-300, 300ms) |
--progress-ring-handoff-duration | The done hand-off's fade. | var(--motion-duration-200, 200ms) |
--progress-ring-handoff-scale | How much the ring grows as it hands off. | 1.04 |
--progress-ring-delay | The fade-in's delay when the delay prop is set. | 600ms |
--progress-ring-gradient | The arc's gradient: conic (stops along the arc), linear (across the ring at angle) or solid (the to colour). Read by a style query. | conic (recommended; read by a style query, not var()) |
--progress-ring-cap | The arc's ends: round or flat. Read by a style query. | round (recommended; read by a style query, not var()) |
components:
progress-ring:
from: "#7c3aed"
to: "#db2777"
sheen: "0.6"
stroke: "9px"radio-step
RadioGroup variant="stepped" — the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile's fill and hairline.
| Token | Binds | Falls back to |
|---|---|---|
--radio-step-key | The key colour: the chosen tile's fill tint, hairline and icon, and the focus ring. | var(--interactive-primary-bg, var(--primary, #111827)) |
--radio-step-well | The well the tiles sit in. Default is the page nudged 12% toward the ink; a dark app binds it darker than its plane (Blacklight: rgb(0 0 0 / 0.65)). | color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff)) |
--radio-step-well-radius | Well corner radius. The tiles take it minus the well padding, so the corners stay concentric. | var(--radius-xl, 0.75rem) |
--radio-step-ink | Icon and label ink on a tile that is not chosen. | var(--text-tertiary, #9ca3af) |
--radio-step-icon-size | Tile icon size. | 1.25rem |
--radio-step-selected-bg | Chosen tile fill. Default is 12% key over --surface-elev-2. | color-mix(in srgb, var(--_key) 12%, var(--surface-elev-2, #f3f4f6)) |
--radio-step-selected-border | Chosen tile hairline. Default is 35% key. | color-mix(in srgb, var(--_key) 35%, transparent) |
components:
radio-step:
key: "#2ce0e6"
well: "rgb(0 0 0 / 0.65)"reach-rings
ReachRings — the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit.
| Token | Binds | Falls back to |
|---|---|---|
--reach-rings-key | The key colour: a lit ring's stroke, halo and wash, and the filled core. | var(--interactive-primary-bg, var(--primary, #111827)) |
--reach-rings-ring | An unlit ring's stroke. | color-mix(in srgb, var(--text-primary, #111827) 12%, transparent) |
--reach-rings-glyph | The core icon while the core is unlit. | color-mix(in srgb, var(--text-primary, #111827) 50%, transparent) |
--reach-rings-core-ink | The core icon on the lit core. | var(--interactive-primary-text, #f9fafb) |
components:
reach-rings:
key: "#2ce0e6"
core-ink: "#000000"tooltip
Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read.
| Token | Binds | Falls back to |
|---|---|---|
--tooltip-bg | Tooltip ground. | var(--surface-overlay, #111827) |
--tooltip-text | Tooltip label colour. | var(--text-inverse, #ffffff) |
Unbound, the tooltip reads --surface-overlay under --text-inverse, as it
always has. In a dark theme both can resolve dark, and --text-inverse cannot
be retuned for the tooltip alone: it is the dark ink Calendar, Badge and Chip
set on light and accent fills. Bind the pair in dark mode instead:
components:
tooltip:
bg:
dark: "rgba(0, 0, 0, 0.8)"
text:
dark: "#fafafa"A flat overrides.dark.tooltip-bg / tooltip-text pair emits the same two
properties through the brand pass-through.
action-row
ActionRow state fills, edge and geometry: rest, hover, open, selected and disabled each read their own token.
| Token | Binds | Falls back to |
|---|---|---|
--action-row-min-height | Row floor height; the whole row is the target. | 2.75rem |
--action-row-padding | Row inset, kept inside the hover and selected fills. | var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem) |
--action-row-gap | Gap between the leading slot, the title block and the trailing slot. | var(--spacing-3, 0.75rem) |
--action-row-radius | Row corner rounding (the hover and selected fill). | var(--radius-md, 0.375rem) |
--action-row-hover-bg | Hover fill. | var(--surface-interactive-hover, #f3f4f6) |
--action-row-open-bg | Fill of a row that has opened a picker or popover (aria-expanded). | var(--surface-interactive-hover, #f3f4f6) |
--action-row-selected-bg | Selected fill. A lifted fill, never white. | var(--surface-interactive-active, #e5e7eb) |
--action-row-selected-edge-color | Selected row's inset edge colour. Its width is --control-state-edge-width, so edges: off keeps it. | var(--text-secondary, #6b7280) |
--action-row-disabled-opacity | Disabled row opacity. | var(--opacity-50, 0.5) |
--action-row-title-weight | Title weight. | var(--font-weight-medium, 500) |
--action-row-line-color | Second-line colour. | var(--text-secondary, #6b7280) |
--action-row-leading-color | Leading icon colour. | var(--text-secondary, #6b7280) |
--action-row-leading-size | Leading icon size. | 1.25rem |
--action-row-trailing-color | Trailing value or caret colour. | var(--text-secondary, #6b7280) |
Unbound, the selected row is --surface-interactive-active (a neutral lift, not the accent --surface-selected) with a --text-secondary
inset edge. The row has no resting edge, and the selected edge is a state edge
at --control-state-edge-width, like focus and invalid: edges: off leaves it
(WCAG 1.4.11 asks 3:1 for a state indicator). The list's hairlines between rows
read --hairline-width (hairlines: off). Focus stays visible either way. A dark theme that wants the
lifted dark fill with a light edge binds the two selected tokens:
components:
action-row:
selected-bg:
dark: "#26262b"
selected-edge-color:
dark: "rgba(255, 255, 255, 0.24)"input-affix
Input and NumberInput prefix and suffix: the gap between a fixed affix and the value, and the affix's ink.
| Token | Binds | Falls back to |
|---|---|---|
--input-affix-gap | Space between a prefix or suffix and the value. | var(--spacing-2, 0.5rem) |
--input-affix-color | Prefix and suffix ink. | var(--text-secondary, #6b7280) |
The affix draws no edge of its own. The well keeps its one edge from the
control tokens, around the affix and the value together, so
control.edge-width: 0 turns it off and focus and invalid stay visible.
components:
input-affix:
gap: "12px"
color:
dark: "#a3a3a3"number-input
NumberInput — the field fill (resting and focused), edge colour, corner radius, height, the value's width, size and weight, and the − and + buttons' size, inset, corners, ink, hover fill and icon size. Under data-glass="on" the field reads the glass layer's control values instead.
| Token | Binds | Falls back to |
|---|---|---|
--number-input-bg | Field fill. | var(--surface-interactive-default, #f9fafb) |
--number-input-bg-focus | Field fill while the value has focus. Unset, the resting fill. | var(--number-input-bg, var(--surface-interactive-default, #f9fafb)) |
--number-input-border | Resting edge colour. Unset, the shared control edge colour. | var(--control-edge-color, var(--border-default, #e5e7eb)) |
--number-input-radius | Field corner radius. | var(--radius-md, 0.375rem) |
--number-input-height | Field and value height. | 2.25rem |
--number-input-value-width | Width of the value between the buttons. | 4rem |
--number-input-value-font-size | Value size. | var(--font-size-sm, 0.875rem) |
--number-input-value-font-weight | Value weight. | inherit |
--number-input-button-size | − and + button size. | 2.25rem |
--number-input-button-inset | Space either side of each button, so a round button sits centred in a wider end column. | 0 |
--number-input-button-radius | Button corner radius (50% for round buttons). | 0 |
--number-input-button-color | Button icon ink. | var(--text-secondary, #9ca3af) |
--number-input-button-hover-bg | Button fill on hover. | var(--surface-muted, #f3f4f6) |
--number-input-icon-size | Button icon size. | 0.875rem |
The resting edge's width and style come from the shared control tokens.
Glass is off unless an ancestor sets data-glass="on": there the fill, focused fill,
edge, ink and blur come from the glass layer's control values.
components:
number-input:
height: "54px"
radius: "12px"
value-width: "72px"
value-font-size: "22px"
value-font-weight: "640"
button-size: "40px"
button-inset: "7px"
button-radius: "50%"
icon-size: "20px"offline-banner
OfflineBanner's pill variant — height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under data-glass="on" the pill reads the glass layer's control values instead.
| Token | Binds | Falls back to |
|---|---|---|
--offline-banner-pill-height | Pill height. | 2.5rem |
--offline-banner-pill-padding-x | Pill horizontal padding. | var(--spacing-4, 1rem) |
--offline-banner-pill-gap | Space between the icon, label and detail. | var(--spacing-2, 0.5rem) |
--offline-banner-pill-font-size | Pill type size. | var(--font-size-sm, 0.875rem) |
--offline-banner-pill-font-weight | Label weight. | var(--font-weight-semibold, 600) |
--offline-banner-pill-detail-font-weight | Detail weight. | var(--font-weight-medium, 500) |
--offline-banner-pill-detail-opacity | Detail opacity, so it reads quieter than the label in any ink. | var(--opacity-80, 0.8) |
--offline-banner-pill-icon-size | Icon size. | 1.125rem |
--offline-banner-pill-bg | Solid pill fill. | var(--surface-muted, #f3f4f6) |
--offline-banner-pill-text-color | Pill ink: label, detail and icon. | var(--text-primary, #111827) |
--offline-banner-pill-border | Solid pill edge colour. | var(--border-default, #e5e7eb) |
Glass is off unless an ancestor sets data-glass="on": there the fill, edge, ink and
blur come from the glass layer's control values.
components:
offline-banner:
pill-height: "42px"
pill-gap: "6px"
pill-font-weight: "680"
pill-detail-font-weight: "520"separator
The line a Separator draws, bare or on both sides of a label.
| Token | Binds | Falls back to |
|---|---|---|
--separator-color | Rule colour. | var(--border-default, #e5e7eb) |
A borderless theme sets border-default to transparent, which hides the rule.
Bind separator.color to keep it visible without bringing structural borders back.
components:
separator:
color:
dark: "#2c2c2c"alert
Alert's soft appearance: the inline alert under a control or in a dialog. Every key is soft-only, so binding the family never moves an edged Alert.
| Token | Binds | Falls back to |
|---|---|---|
--alert-icon-size | Soft icon size for the destructive, warning and success tones; the content is at least this tall. | 2rem |
--alert-icon-size-note | Soft icon size for the neutral note (default and info). | 1.5rem |
--alert-soft-padding | Soft alert inset. | var(--spacing-3, 0.75rem) calc(var(--spacing-3, 0.75rem) + var(--spacing-1, 0.25rem) / 2) |
--alert-gap | Gap between the soft icon and its text. | var(--spacing-3, 0.75rem) |
--alert-radius | Soft alert corner rounding. | var(--radius-lg, 0.5rem) |
--alert-font-size | Soft alert type size. | var(--font-size-sm, 0.875rem) |
--alert-lead-font-weight | Weight of the inline AlertLead sentence. | var(--font-weight-bold, 700) |
The defaults are Animal Booking's build. Blacklight's door sets a smaller, lighter type:
components:
alert:
font-size: "13px"
lead-font-weight: "600"layer-chart
LayerChart and SpanStrip — the investment hue (hue="tide"), the unresolved fill and its ink, the opening motion, and the ground between blocks.
| Token | Binds | Falls back to |
|---|---|---|
--layer-chart-investment-fill | The investment hue's pale fill: its deepest blocks and its band. | var(--surface-muted, #f3f4f6) |
--layer-chart-investment-fill-strong | The investment hue's strong fill: its top-level block. | var(--surface-interactive-active, #e5e7eb) |
--layer-chart-investment-ink | Text on the investment hue's fills, and a call in its span strip. | var(--text-primary, #111827) |
--layer-chart-investment-solid | The investment hue's solid, mixed into its span cells. | var(--text-secondary, #4b5563) |
--layer-chart-alert-fill | An unresolved block: the chart's only coral. | color-mix(in srgb, var(--color-error-500, #ef4444) 35%, var(--surface-page, #ffffff)) |
--layer-chart-alert-text | Text on an unresolved block. | var(--text-error, #b91c1c) |
--layer-chart-duration | How long a block takes to open (none under reduced motion). | 480ms |
--layer-chart-easing | The opening ease. | cubic-bezier(0.2, 0.8, 0.2, 1) |
--layer-chart-ground | The ground blocks are mixed toward (covered, today, the palest layer) and the span lanes' track. | var(--surface-page, #ffffff) |
Client blocks draw in Paper's project hues (--paper-hue-<angle>-*) and need no binding. Paper binds the investment hue to Tide and the unresolved fill to coral mixed into the page.
card
Card — the corner radius, the glass variant's fill, blur, shadow and layers, and the editable state's hover fill and shadow and its pen's size and inset. The glass layers read the glass switch first, so glass shows only under data-glass="on".
| Token | Binds | Falls back to |
|---|---|---|
--card-radius | Card corner radius. | var(--radius-xl, 1rem) |
--card-glass-bg | Glass layer fill. Unset, the glass switch's lift over its fill, or the card surface where glass is off. | linear-gradient(var(--glass-on-lift, transparent) 0 0), var(--glass-on-fill, var(--surface-card, #ffffff)) |
--card-glass-filter | Filter on the photo behind the glass layer. Unset, the glass switch's blur; none where glass is off. A bound value applies with glass off too. | var(--glass-on-blur, none) |
--card-glass-shadow | Glass layer shadow. Unset, the glass switch's shadow, or Card's own where glass is off. | var(--glass-on-shadow, var(--shadow-sm)) |
--card-glass-display | none drops the glass layer and its edge. | block |
--card-edge-display | none drops the edge layer only (a surface that draws its own edge). | var(--card-glass-display, block) |
--card-editable-hover-bg | Editable card fill on hover. Unset, the interactive hover surface; on glass, the fill moved 40% toward the card surface. | var(--surface-interactive-hover, #f3f4f6) |
--card-editable-hover-shadow | Editable card shadow on hover. | var(--shadow-lg) |
--card-pen-size | Pen badge size. | var(--spacing-8, 2rem) |
--card-pen-inset | Pen distance from the top and right edges. | var(--spacing-4, 1rem) |
The pen fills with the key colour (--interactive-primary-bg and --interactive-primary-text) on hover, and the save flash draws in it. The corner shape comes from the theme's corners.
components:
card:
radius: "28px"
editable-hover-bg:
light: "hsl(220 8% 100% / 0.82)"
dark: "hsl(220 8% 12% / 0.88)"
pen-size: "30px"
pen-inset: "18px"stat-card
StatCard — the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type.
| Token | Binds | Falls back to |
|---|---|---|
--stat-card-border | Card edge — 0 draws a borderless card. | 1px solid var(--border-default, #e5e7eb) |
--stat-card-radius | Card corner rounding. | var(--radius-lg, 0.75rem) |
--stat-card-shadow | Card elevation. | var(--shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05)) |
--stat-card-padding | Card inset. | var(--spacing-5, 1.25rem) |
--stat-card-footer-border | Rule above the footer — 0 drops it. | 1px solid var(--border-default, #e5e7eb) |
--stat-card-footer-font-size | Footer type size. | var(--font-size-sm, 0.875rem) |
--stat-card-footer-font-weight | Footer weight. | inherit |
--stat-card-footer-line-height | Footer line height. | var(--line-height-normal, 1.5) |
--stat-card-footer-color | Footer colour. | var(--text-secondary, #6b7280) |
--stat-card-value-font-family | Value family. | var(--font-family-heading, inherit) |
--stat-card-value-font-size | Value type size. | var(--font-size-3xl, 1.875rem) |
--stat-card-value-font-weight | Value weight. | var(--font-weight-semibold, 600) |
--stat-card-value-line-height | Value line height. | var(--line-height-tight, 1.1) |
--stat-card-value-letter-spacing | Value tracking. | var(--letter-spacing-tight, -0.02em) |
--stat-card-label-font-size | Label type size. | var(--font-size-xs, 0.75rem) |
--stat-card-label-font-weight | Label weight. | var(--font-weight-semibold, 600) |
--stat-card-label-line-height | Label line height. | var(--line-height-tight, 1.25) |
--stat-card-label-letter-spacing | Label tracking. | var(--letter-spacing-wide, 0.05em) |
--stat-card-label-color | Label colour. | var(--text-tertiary, #6b7280) |
Where the sm size, the highlight variant or a hero / compact value sets its own padding, type size or elevation, that rule still wins. The type hooks are longhands, not a font shorthand: a shorthand would need a fallback naming a family, and the unbound label and footer inherit theirs.
key-value-list
KeyValueList — label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the surface="panel" fill, edge colour, corners and inset. Under data-glass="on" the panel reads the glass layer instead.
| Token | Binds | Falls back to |
|---|---|---|
--key-value-list-label-font-size | Label type size. | var(--font-size-xs, 0.6875rem) |
--key-value-list-label-font-weight | Label weight. | var(--font-weight-medium, 500) |
--key-value-list-label-line-height | Label line height. | 1.4 |
--key-value-list-label-letter-spacing | Label tracking, stacked and horizontal. | 0.12em stacked, 0.06em horizontal |
--key-value-list-label-text-transform | Label case (none for sentence-case labels). | uppercase |
--key-value-list-label-color | Label ink. | var(--text-tertiary, #6b7280) |
--key-value-list-label-padding-top | Nudge the label down against a larger value. | 0 |
--key-value-list-value-font-size | Value type size, in every density. | var(--font-size-lg, 1.125rem) editorial, var(--font-size-base, 1rem) default, var(--font-size-sm, 0.8125rem) compact |
--key-value-list-value-font-weight | Value weight. | inherit |
--key-value-list-value-line-height | Value line height. | inherit |
--key-value-list-value-color | Value ink. | var(--text-primary, #111827) |
--key-value-list-value-text-wrap | Value line breaking, e.g. pretty. | inherit |
--key-value-list-value-overflow-wrap | anywhere breaks a long name or email rather than widening the list. | inherit |
--key-value-list-value-font-variant-numeric | Value figures (normal for proportional). | tabular-nums |
--key-value-list-columns | Horizontal label and value columns. | minmax(7rem, 0.4fr) 1fr |
--key-value-list-item-gap | Horizontal gap between label and value. | var(--spacing-4, 1rem) |
--key-value-list-item-align | Horizontal label and value alignment. | baseline |
--key-value-list-item-padding | Inset of each row. | 0 |
--key-value-list-row-gap | Space between rows, in every density. | var(--spacing-6, 1.5rem) editorial, var(--spacing-4, 1rem) default, var(--spacing-3, 0.75rem) compact |
--key-value-list-divider | Rule between rows of a one-column list, e.g. 1px solid var(--border-default). | 0 |
--key-value-list-panel-bg | surface="panel" fill off glass. | var(--surface-card, #ffffff) |
--key-value-list-panel-border-color | surface="panel" edge colour off glass. | var(--border-default, #e5e7eb) |
--key-value-list-panel-radius | surface="panel" corner radius. | var(--radius-lg, 0.5rem) |
--key-value-list-panel-padding | surface="panel" inset. | var(--spacing-2, 0.5rem) var(--spacing-6, 1.5rem) |
Inside data-glass="on" (see Glass) a surface="panel" list takes the glass layer's fill, lift and blur, and its edge clears; the label and value keep the theme's ink. A list with no surface never blurs, so it can sit inside a glass tile without a nested blur.
rich-text
RichText link underline colour. Link text inherits the surrounding ink.
| Token | Binds | Falls back to |
|---|---|---|
--rich-text-link-underline | Link underline colour at rest; on hover it turns the link's own ink. | color-mix(in srgb, currentColor 40%, transparent) |
admin-ui
Structural roles the admin-ui pattern owns. marquee-family is the display face for KPI hero figures and marquee page titles — the role the admin-ui portability audit named as the one piece of ENTR brand coupling a new theme must rebind.
| Token | Binds | Falls back to |
|---|---|---|
--admin-ui-marquee-family | Marquee / hero-figure display family. | var(--font-display, var(--font-family-heading, inherit)) |
Emit-only roles
Two entries above (--admin-ui-marquee-family, --surface-screen) have no Visor component reading them. They exist so a
generated theme can carry the admin-ui pattern's Tier-2 treatment layer
rather than leaving it as prose in a design audit — the pattern shell
(design-prototypes/admin-ui/tokens.css) is the consumer. --surface-screen is
the deepest chrome tier (the sidebar rail); bind it to the theme's deep overlay,
never to a literal.
The glass family is emit-only too, for a different reason: visor-core's
data-glass switch is its consumer, and components read the switch's
--glass-on-* variables instead, so glass stays off on a plain page.
See also
- Token Rules — the rules every token and fallback must satisfy
- Creating Themes — the full
.visor.yamlsurface - Theming — how a theme is applied and switched