# Button (`.z-button`) > Styled button classes with color schemes, outline/ghost/text variants, four sizes, and icon-only and grouped layouts. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-button-bg` | `var(--z-bg)` | `.z-button` | `background-color` | Background color of the button. | | `--z-button-bg-o` | `100%` | `.z-button` | `background-color` | Opacity applied to the background color. | | `--z-button-border` | `var(--z-border)` | `.z-button` | `border-color` | Border color. | | `--z-button-border-o` | `var(--z-border-o)` | `.z-button` | `border-color` | Opacity applied to the border color. | | `--z-button-color` | `var(--z-bg-f)` | `.z-button` | `color` | Text and icon color. | | `--z-button-disabled-o` | `50%` | `.z-button` | `opacity` | Opacity of disabled buttons. | | `--z-button-font-size` | `var(--z-global-font-size)` | `.z-button` | `font-size` | Label font size. | | `--z-button-font-weight` | `500` | `.z-button` | `font-weight` | Label font weight. | | `--z-button-height` | `calc(var(--z-global-font-size) * var(--z-interactive-height-multiplier))` | `.z-button` | `height` | Button height, derived from the font size and the interactive height multiplier. | | `--z-button-hover-bg` | `var(--z-accent)` | `.z-button` | `background-color` | Background color on hover. | | `--z-button-hover-bg-o` | `4%` | `.z-button` | `background-color` | Opacity applied to the hover background color. | | `--z-button-hover-color` | `var(--z-accent-f)` | `.z-button` | `color` | Text and icon color on hover. | | `--z-button-icon-size` | `1rem` | `.z-button` | `height`, `width` | Width and height of icons inside the button. | | `--z-button-line-height` | `var(--z-global-line-height)` | `.z-button` | `line-height` | Label line height. | | `--z-button-padding` | `var(--z-button-padding-block) var(--z-button-padding-inline)` | `.z-button` | `padding` | Shorthand padding assembled from the block and inline padding variables. | | `--z-button-padding-block` | `calc( var(--z-global-font-size) * var(--z-interactive-padding-block-multiplier) )` | `.z-button` | `padding` | Vertical padding; feeds `--z-button-padding`. | | `--z-button-padding-inline` | `calc( var(--z-global-font-size) * var(--z-interactive-padding-inline-multiplier) )` | `.z-button` | `padding` | Horizontal padding; feeds `--z-button-padding`. | | `--z-button-radius` | `var(--z-global-radius)` | `.z-button` | `border-end-end-radius`, `border-end-start-radius`, `border-radius`, `border-start-end-radius`, `border-start-start-radius` | Corner radius. | | `--z-button-shadow` | `var(--z-global-shadow-small)` | `.z-button` | `box-shadow` | Box shadow. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-button` | `root` | `.z-button` | Base class for styled buttons and button-like links. | | `.z-button-danger` | `modifier` | `.z-button` | Danger color scheme with white text. | | `.z-button-default` | `modifier` | `.z-button` | Neutral surface color scheme. | | `.z-button-ghost` | `modifier` | `.z-button` | Transparent background and border with no shadow; an accent tint appears on hover. | | `.z-button-group` | `element` | `.z-button` | Joins adjacent buttons into one segmented unit with shared radius and shadow. | | `.z-button-icon` | `element` | `.z-button` | Square icon-only button with no padding. | | `.z-button-info` | `modifier` | `.z-button` | Info color scheme with white text. | | `.z-button-large` | `modifier` | `.z-button` | Large size: taller height and wider padding. | | `.z-button-medium` | `modifier` | `.z-button` | Medium size. | | `.z-button-outline` | `modifier` | `.z-button` | Transparent background with colored border and text; combines with the color schemes. | | `.z-button-primary` | `modifier` | `.z-button` | Primary color scheme. | | `.z-button-secondary` | `modifier` | `.z-button` | Subtle secondary color scheme with a faint tinted background. | | `.z-button-small` | `modifier` | `.z-button` | Small size with reduced font and padding. | | `.z-button-success` | `modifier` | `.z-button` | Success color scheme with white text. | | `.z-button-text` | `modifier` | `.z-button` | Inline text button with an animated underline and no background, border, or padding. | | `.z-button-warning` | `modifier` | `.z-button` | Warning color scheme with white text. | | `.z-button-xsmall` | `modifier` | `.z-button` | Extra-small size with reduced font and padding. | ## Notes - Buttons are plain elements styled by class; there is no custom element or JavaScript API. - Size classes adjust the interactive height and padding multipliers; xsmall and small also switch to the small global font size. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Avatar (`.z-avatar`) > Image or initials avatar with rounded and bordered variants and a positionable status dot. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-avatar-bg` | `var(--z-bg)` | `.z-avatar` | `background-color` | Background behind the image or initials. | | `--z-avatar-border` | `var(--z-border)` | `.z-avatar` | `border-color` | Border color of the bordered variant. | | `--z-avatar-border-o` | `4%` | `.z-avatar` | `border-color` | Opacity applied to the bordered variant's border color. | | `--z-avatar-dot-bg` | `var(--z-danger)` | `.z-avatar-dot-danger::after` | `background-color` | Background color of the status dot; the color variants set it per scheme. | | `--z-avatar-dot-border` | `var(--z-bg)` | `.z-avatar-dot::after, .z-avatar-dot-top::after, .z-avatar-dot-top-right::after, .z-avatar-dot-right::after, .z-avatar-dot-bottom::after, .z-avatar-dot-bottom-right::after, .z-avatar-dot-bottom-left::after, .z-avatar-dot-left::after, .z-avatar-dot-top-left::after` | `border-color` | Ring color around the status dot. | | `--z-avatar-dot-size` | `0.875rem` | `.z-avatar-dot::after, .z-avatar-dot-top::after, .z-avatar-dot-top-right::after, .z-avatar-dot-right::after, .z-avatar-dot-bottom::after, .z-avatar-dot-bottom-right::after, .z-avatar-dot-bottom-left::after, .z-avatar-dot-left::after, .z-avatar-dot-top-left::after` | `height`, `width` | Width and height of the status dot. | | `--z-avatar-radius` | `var(--z-global-radius)` | `.z-avatar` | `border-radius` | Corner radius of the avatar container. | | `--z-avatar-size` | `2.5rem` | `.z-avatar` | `height`, `width` | Width and height of the avatar. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-avatar` | `root` | `.z-avatar` | Square avatar container for an image or initials. | | `.z-avatar-bordered` | `modifier` | `.z-avatar` | Adds a border ring with inner padding around the avatar. | | `.z-avatar-dot` | `modifier` | `.z-avatar` | Status dot at the bottom-right corner (the default position). | | `.z-avatar-dot-bottom` | `modifier` | `.z-avatar` | Status dot centered on the bottom edge. | | `.z-avatar-dot-bottom-left` | `modifier` | `.z-avatar` | Status dot at the bottom-left corner. | | `.z-avatar-dot-bottom-right` | `modifier` | `.z-avatar` | Status dot at the bottom-right corner. | | `.z-avatar-dot-danger` | `modifier` | `.z-avatar` | Danger-colored status dot. | | `.z-avatar-dot-info` | `modifier` | `.z-avatar` | Info-colored status dot. | | `.z-avatar-dot-left` | `modifier` | `.z-avatar` | Status dot centered on the left edge. | | `.z-avatar-dot-muted` | `modifier` | `.z-avatar` | Muted-colored status dot. | | `.z-avatar-dot-right` | `modifier` | `.z-avatar` | Status dot centered on the right edge. | | `.z-avatar-dot-success` | `modifier` | `.z-avatar` | Success-colored status dot. | | `.z-avatar-dot-top` | `modifier` | `.z-avatar` | Status dot centered on the top edge. | | `.z-avatar-dot-top-left` | `modifier` | `.z-avatar` | Status dot at the top-left corner. | | `.z-avatar-dot-top-right` | `modifier` | `.z-avatar` | Status dot at the top-right corner. | | `.z-avatar-dot-warning` | `modifier` | `.z-avatar` | Warning-colored status dot. | | `.z-avatar-rounded` | `modifier` | `.z-avatar` | Fully circular avatar and content. | | `.z-avatar-text` | `element` | `.z-avatar` | Initials or text content filling the avatar. | ## Notes - The status dot is a `::after` pseudo-element: combine one position class with one color class on the container. - Images fill the container with `object-fit: cover`. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Badge (`.z-badge`) > Small pill for counts and short statuses with four semantic color schemes. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-badge-bg` | `var(--z-bg)` | `.z-badge` | `background-color` | Background color of the badge. | | `--z-badge-bg-o` | `100%` | `.z-badge` | `background-color` | Opacity applied to the background color. | | `--z-badge-border` | `var(--z-border)` | `.z-badge` | `border-color` | Border color. | | `--z-badge-border-o` | `var(--z-border-o)` | `.z-badge` | `border-color` | Opacity applied to the border color. | | `--z-badge-color` | `var(--z-bg-f)` | `.z-badge` | `color` | Text color. | | `--z-badge-color-o` | `100%` | `.z-badge` | `color` | Opacity applied to the text color. | | `--z-badge-shadow` | `var(--z-global-shadow)` | `.z-badge` | `box-shadow` | Box shadow; falls back to the global shadow. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-badge` | `root` | `.z-badge` | Inline pill for counts and short statuses. | | `.z-badge-danger` | `modifier` | `.z-badge` | Danger color scheme with a faint tinted background. | | `.z-badge-info` | `modifier` | `.z-badge` | Info color scheme with a faint tinted background. | | `.z-badge-success` | `modifier` | `.z-badge` | Success color scheme with a faint tinted background. | | `.z-badge-warning` | `modifier` | `.z-badge` | Warning color scheme with a faint tinted background. | ## Notes - Hovering fades the badge to 80% opacity with a short background transition. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Breadcrumb (`.z-breadcrumb`) > Hierarchical navigation trail with automatic dividers and an emphasized current page. - **Kind:** css - **Category:** navigation ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-breadcrumb-disabled-opacity` | `0.5` | `.z-breadcrumb > .z-disabled > *` | `opacity` | Opacity of crumbs inside a `z-disabled` item. | | `--z-breadcrumb-divider` | `'/'` | `.z-breadcrumb > :nth-child(n + 2):not(.z-first-column)::before` | `content` | Divider character inserted before every crumb except the first. | | `--z-breadcrumb-divider-margin-end` | `0.75rem` | `.z-breadcrumb > :nth-child(n + 2):not(.z-first-column)::before` | `margin-inline` | Space after the divider character. | | `--z-breadcrumb-divider-margin-start` | `0.5rem` | `.z-breadcrumb > :nth-child(n + 2):not(.z-first-column)::before` | `margin-inline` | Space before the divider character. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-breadcrumb` | `root` | `.z-breadcrumb` | Navigation trail; wrap each crumb in a list item. | ## Notes - Structure: `.z-breadcrumb > li > a` or `span`; the last crumb is emphasized automatically. - Render the current page as a `span` or an anchor without `href`. - Add `z-disabled` to a crumb's `li` to mute it and block pointer events. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Card (`.z-card`) > Content container with header, body, and footer regions and seven color schemes. - **Kind:** css - **Category:** layout ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-card-adjacent-padding` | `0` | `.z-card` | `padding-block-start` | Top padding of a body that follows a header, or a footer that follows a body. | | `--z-card-bg` | `var(--z-card)` | `.z-card` | `background-color` | Surface background color. | | `--z-card-bg-o` | `100%` | `.z-card` | `background-color` | Opacity applied to the surface background color. | | `--z-card-border-color` | `var(--z-border)` | `.z-card` | `border` | Border color. | | `--z-card-border-color-o` | `var(--z-border-o)` | `.z-card` | `border` | Opacity applied to the border color. | | `--z-card-border-width` | `1px` | `.z-card` | `border` | Border width. | | `--z-card-color` | `var(--z-card-f)` | `.z-card` | `color` | Text color. | | `--z-card-color-o` | `100%` | `.z-card` | `color` | Opacity applied to the text color. | | `--z-card-header-footer-padding` | `0` | `.z-card` | `padding-block-start` | Top padding of a footer that follows a header. | | `--z-card-padding` | `1rem` | `.z-card` | `padding` | Padding of the header, body, and footer regions. | | `--z-card-radius` | `var(--z-global-radius)` | `.z-card` | `border-radius` | Corner radius. | | `--z-card-shadow` | `var(--z-global-shadow)` | `.z-card` | `box-shadow` | Box shadow. | | `--z-card-title-font-size` | `1.125rem` | `.z-card-title` | `font-size` | Font size of the card title. | | `--z-card-title-height` | `1` | `.z-card-title` | `line-height` | Line height of the card title. | | `--z-card-title-tracking` | `-0.025em` | `.z-card-title` | `letter-spacing` | Letter spacing of the card title. | | `--z-card-title-weight` | `600` | `.z-card-title` | `font-weight` | Font weight of the card title. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-card` | `root` | `.z-card` | Container surface with border, radius, and shadow. | | `.z-card-body` | `element` | `.z-card` | Main content region with padding. | | `.z-card-danger` | `modifier` | `.z-card` | Danger color scheme with white text. | | `.z-card-footer` | `element` | `.z-card` | Bottom region for actions or metadata. | | `.z-card-header` | `element` | `.z-card` | Top region, typically holding the title. | | `.z-card-info` | `modifier` | `.z-card` | Info color scheme with white text. | | `.z-card-muted` | `modifier` | `.z-card` | Muted color scheme with a faint tinted background. | | `.z-card-primary` | `modifier` | `.z-card` | Primary color scheme. | | `.z-card-secondary` | `modifier` | `.z-card` | Secondary color scheme with a faint tinted background. | | `.z-card-success` | `modifier` | `.z-card` | Success color scheme with white text. | | `.z-card-title` | `element` | `.z-card` | Card heading typography. | | `.z-card-warning` | `modifier` | `.z-card` | Warning color scheme with white text. | ## Notes - The last child of each region loses its bottom margin so regions sit flush. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Label (`.z-label`) > Compact solid-filled pill label with seven color schemes. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-label-bg` | `var(--z-bg)` | `.z-label` | `background-color` | Background color of the label. | | `--z-label-bg-o` | `100%` | `.z-label` | `background-color` | Opacity applied to the background color. | | `--z-label-border` | `var(--z-border)` | `.z-label` | `border-color` | Border color. | | `--z-label-border-o` | `var(--z-border-o)` | `.z-label` | `border-color` | Opacity applied to the border color. | | `--z-label-color` | `var(--z-bg-f)` | `.z-label` | `color` | Text color. | | `--z-label-color-o` | `100%` | `.z-label` | `color` | Opacity applied to the text color. | | `--z-label-shadow` | `var(--z-global-shadow)` | `.z-label` | `box-shadow` | Box shadow; falls back to the global shadow. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-label` | `root` | `.z-label` | Inline solid-filled pill for short labels. | | `.z-label-danger` | `modifier` | `.z-label` | Danger color scheme with white text. | | `.z-label-destructive` | `modifier` | `.z-label` | Destructive color scheme from the destructive palette tokens. | | `.z-label-info` | `modifier` | `.z-label` | Info color scheme with white text. | | `.z-label-primary` | `modifier` | `.z-label` | Primary color scheme. | | `.z-label-secondary` | `modifier` | `.z-label` | Secondary color scheme. | | `.z-label-success` | `modifier` | `.z-label` | Success color scheme with white text. | | `.z-label-warning` | `modifier` | `.z-label` | Warning color scheme with white text. | ## Notes - Labels are solid-filled; badges use faint tints for their semantic schemes. - Hovering fades the label to 80% opacity with a short background transition. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Divider (`.z-divider`) > Horizontal rules and small or vertical dividers for separating content. - **Kind:** css - **Category:** layout ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-divider-small-border-color` | `var(--z-border)` | `.z-divider-small` | `border-top` | Line color of the small divider. | | `--z-divider-small-border-color-o` | `var(--z-border-o)` | `.z-divider-small` | `border-top` | Opacity applied to the small divider's line color. | | `--z-divider-small-width` | `100px` | `.z-divider-small` | `width` | Width of the small divider's line. | | `--z-divider-vertical-border-color` | `var(--z-border)` | `.z-divider-vertical` | `border-inline-start` | Line color of the vertical divider. | | `--z-divider-vertical-border-color-o` | `var(--z-border-o)` | `.z-divider-vertical` | `border-inline-start` | Opacity applied to the vertical divider's line color. | | `--z-divider-vertical-height` | `100px` | `.z-divider-vertical` | `height` | Height of the vertical divider. | | `--z-hr-color` | `var(--z-border)` | `.z-hr` | `border-color` | Line color of a horizontal rule (`hr.z-hr`). | | `--z-hr-color-o` | `var(--z-border-o)` | `.z-hr` | `border-color` | Opacity applied to the horizontal rule's line color. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-divider` | `root` | `.z-divider` | Base reset for any element whose class contains `z-divider`: no border, 1px height. | | `.z-divider-small` | `modifier` | `.z-divider` | Short centered horizontal rule, 100px wide by default. | | `.z-divider-vertical` | `modifier` | `.z-divider` | Vertical rule, 100px tall by default, centered horizontally. | | `.z-hr` | `element` | `.z-divider` | Full-width horizontal rule for `hr` elements. | ## Notes - Use `hr.z-hr` for a full-width horizontal rule; any element with a `z-divider-*` class gets the 1px border reset. - The small divider draws its line with an `::after` pseudo-element. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Link (`.z-link`) > Link styles: underlined, muted, hover-only underline, reset, and parent toggle. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-link-font-weight` | `500` | `.z-link` | `font-weight` | Font weight of underlined links. | | `--z-link-muted-color` | `var(--z-muted-f)` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `color` | Text color of muted links. | | `--z-link-muted-color-o` | `100%` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `color` | Opacity applied to the muted link color. | | `--z-link-muted-font-weight` | `500` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `font-weight` | Font weight of muted links. | | `--z-link-underline-offset` | `4px` | `.z-link` | `text-underline-offset` | Distance between the text and its underline. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-link` | `root` | `.z-link` | Underlined link with medium font weight. | | `.z-link-muted` | `modifier` | `.z-link` | Muted-color underlined link; also styles links inside a muted container. | | `.z-link-reset` | `modifier` | `.z-link` | Removes underline and restores normal font weight. | | `.z-link-text` | `modifier` | `.z-link` | Plain text link that underlines on hover. | | `.z-link-toggle` | `modifier` | `.z-link` | Underline-free parent; hovering it underlines `.z-link-text` children and styles `.z-link-muted` children. | ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # List (`.z-list`) > List spacing and markers: style types, marker colors, divider and striped variants. - **Kind:** css - **Category:** general ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-list-divider-border-color` | `var(--z-border)` | `.z-list-divider > :nth-child(n + 2)` | `border-color` | Border color between divider-list items. | | `--z-list-divider-border-color-o` | `var(--z-border-o)` | `.z-list-divider > :nth-child(n + 2)` | `border-color` | Opacity applied to the divider-list border color. | | `--z-list-divider-border-width` | `1px` | `.z-list-divider > :nth-child(n + 2)` | `border-top-width` | Border width between divider-list items. | | `--z-list-divider-item-margin-top` | `0.5rem` | `.z-list-divider > :nth-child(n + 2)` | `margin-block-start` | Top margin of divider-list items after the first. | | `--z-list-divider-item-padding-top` | `0.5rem` | `.z-list-divider > :nth-child(n + 2)` | `padding-block-start` | Top padding of divider-list items after the first. | | `--z-list-indent` | `32px` | `.z-list-disc, .z-list-circle, .z-list-square, .z-list-decimal, .z-list-hyphen` | `padding-inline-start` | Inline padding for lists with markers. | | `--z-list-item-margin-top` | `0.5rem` | `.z-list > :nth-child(n + 2), .z-list > * > ul` | `margin-block-start` | Top margin between list items and before nested lists. | | `--z-list-marker-muted-color` | `var(--z-muted-f)` | `.z-list-muted > ::marker` | `color` | Marker color of the muted variant. | | `--z-list-marker-muted-color-o` | `100%` | `.z-list-muted > ::marker` | `color` | Opacity applied to the muted marker color. | | `--z-list-marker-primary-color` | `var(--z-primary)` | `.z-list-primary > ::marker` | `color` | Marker color of the primary variant. | | `--z-list-marker-primary-color-o` | `100%` | `.z-list-primary > ::marker` | `color` | Opacity applied to the primary marker color. | | `--z-list-marker-secondary-color` | `var(--z-secondary-f)` | `.z-list-secondary > ::marker` | `color` | Marker color of the secondary variant. | | `--z-list-marker-secondary-color-o` | `100%` | `.z-list-secondary > ::marker` | `color` | Opacity applied to the secondary marker color. | | `--z-list-striped-background-color` | `var(--z-muted)` | `.z-list-striped > :nth-of-type(odd)` | `background-color` | Background of odd striped rows. | | `--z-list-striped-background-color-o` | `var(--z-muted-o)` | `.z-list-striped > :nth-of-type(odd)` | `background-color` | Opacity applied to the striped background. | | `--z-list-striped-border-color` | `var(--z-border)` | `.z-list-striped > *:nth-of-type(odd)` | `border-color` | Border color of odd striped rows. | | `--z-list-striped-border-color-o` | `var(--z-border-o)` | `.z-list-striped > *:nth-of-type(odd)` | `border-color` | Opacity applied to the striped border color. | | `--z-list-striped-border-width` | `1px` | `.z-list-striped > *:nth-of-type(odd)` | `border-bottom-width`, `border-top-width` | Top and bottom border width of odd striped rows. | | `--z-list-striped-item-padding` | `0.5rem` | `.z-list-striped > *` | `padding` | Padding of striped items. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-list` | `root` | `.z-list` | Base list spacing; nested lists indent and items keep their bottom margin collapsed. | | `.z-list-circle` | `modifier` | `.z-list` | Circle markers. | | `.z-list-decimal` | `modifier` | `.z-list` | Decimal markers. | | `.z-list-disc` | `modifier` | `.z-list` | Disc markers. | | `.z-list-divider` | `modifier` | `.z-list` | Separates items with a top border and extra spacing. | | `.z-list-hyphen` | `modifier` | `.z-list` | Hyphen markers. | | `.z-list-muted` | `modifier` | `.z-list` | Muted-color markers. | | `.z-list-primary` | `modifier` | `.z-list` | Primary-color markers. | | `.z-list-secondary` | `modifier` | `.z-list` | Secondary-color markers. | | `.z-list-square` | `modifier` | `.z-list` | Square markers. | | `.z-list-striped` | `modifier` | `.z-list` | Padded items with a tinted background and borders on odd rows. | ## Notes - Marker color variants style the `::marker` pseudo-element; combine them with a style type such as `z-list-disc`. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Progress (`.z-progress`) > Styled native progress bar with an animated value track. - **Kind:** css - **Category:** feedback ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-progress-height` | `1rem` | `.z-progress` | `height` | Height of the progress bar. | | `--z-progress-margin-bottom` | `1.25rem` | `.z-progress` | `margin-block-end` | Bottom margin of the progress bar. | | `--z-progress-radius` | `500px` | `.z-progress` | `border-radius` | Corner radius of the track. | | `--z-progress-track-color` | `var(--z-primary)` | `.z-progress` | `background-color` | Track (background) color. | | `--z-progress-track-color-o` | `20%` | `.z-progress` | `background-color` | Opacity applied to the track color. | | `--z-progress-transition` | `width 0.6s ease` | `.z-progress` | `transition` | Transition applied to the value bar when the value changes. | | `--z-progress-value-color` | `var(--z-primary)` | `.z-progress` | `background-color` | Value bar color. | | `--z-progress-value-color-o` | `100%` | `.z-progress` | `background-color` | Opacity applied to the value bar color. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-progress` | `root` | `.z-progress` | Styles a native `` element: rounded track, tinted background, animated value bar. | ## Notes - Keep the native semantics: set `value` and `max`, and provide fallback text inside the element. - Omit `value` for an indeterminate progress bar. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Table (`.z-table`) > Table styling with divider, striped, hover, and size variants plus a responsive label layout. - **Kind:** css - **Category:** data ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-table-active-bg` | `var(--z-info)` | `.z-table > tr.z-active, .z-table tbody tr.z-active` | `background-color` | Background of rows marked with `z-active`. | | `--z-table-active-bg-o` | `8%` | `.z-table > tr.z-active, .z-table tbody tr.z-active` | `background-color` | Opacity applied to the active row background. | | `--z-table-caption-color` | `var(--z-muted-f)` | `.z-table caption` | `color` | Caption text color. | | `--z-table-caption-color-o` | `100%` | `.z-table caption` | `color` | Opacity applied to the caption color. | | `--z-table-caption-font-size` | `0.875rem` | `.z-table caption` | `font-size` | Caption font size. | | `--z-table-cell-padding` | `1rem 0.75rem` | `.z-table` | `left`, `padding`, `padding-left`, `top` | Padding of header and body cells. | | `--z-table-expand-min-width` | `10rem` | `.z-table-expand` | `min-width` | Minimum width of `z-table-expand` cells. | | `--z-table-footer-font-size` | `0.875rem` | `.z-table tfoot` | `font-size` | Font size of the footer (`tfoot`). | | `--z-table-header-color` | `var(--z-muted-f)` | `.z-table th` | `color` | Header text color. | | `--z-table-header-color-o` | `100%` | `.z-table th` | `color` | Opacity applied to the header text color. | | `--z-table-header-font-size` | `0.875rem` | `.z-table th` | `font-size` | Header font size. | | `--z-table-header-font-weight` | `normal` | `.z-table th` | `font-weight` | Header font weight. | | `--z-table-hover-bg` | `var(--z-muted)` | `.z-table-hover > tr:hover, .z-table-hover tbody tr:hover` | `background-color` | Row background on hover. | | `--z-table-hover-bg-o` | `var(--z-muted-o)` | `.z-table-hover > tr:hover, .z-table-hover tbody tr:hover` | `background-color` | Opacity applied to the hover background. | | `--z-table-hover-transition` | `background-color 150ms ease-in-out` | `.z-table-hover > tr:hover, .z-table-hover tbody tr:hover` | `transition` | Transition applied to the hover background. | | `--z-table-responsive-label-color` | `var(--z-muted-f)` | `.z-table-responsive` | `color` | Label text color in the responsive layout. | | `--z-table-responsive-label-color-o` | `100%` | `.z-table-responsive` | `color` | Opacity applied to the responsive label color. | | `--z-table-responsive-label-size` | `0.875rem` | `.z-table-responsive` | `font-size` | Label font size in the responsive layout. | | `--z-table-responsive-label-weight` | `500` | `.z-table-responsive` | `font-weight` | Label font weight in the responsive layout. | | `--z-table-responsive-label-width` | `50%` | `.z-table-responsive` | `padding-left`, `width` | Width of the label column in the responsive layout. | | `--z-table-responsive-padding-y` | `0.5rem` | `.z-table-responsive` | `padding-bottom`, `padding-top` | Vertical cell padding in the responsive layout. | | `--z-table-responsive-stack-gap` | `0.25rem` | `.z-table-responsive.z-table-responsive-stack td[data-label]::before` | `margin-bottom` | Gap between label and value in the stacked responsive variant. | | `--z-table-striped-bg` | `var(--z-muted)` | `.z-table-striped > tr:nth-of-type(odd), .z-table-striped tbody tr:nth-of-type(odd)` | `background-color` | Background of odd striped rows. | | `--z-table-striped-bg-o` | `var(--z-muted-o)` | `.z-table-striped > tr:nth-of-type(odd), .z-table-striped tbody tr:nth-of-type(odd)` | `background-color` | Opacity applied to the striped background. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-table` | `root` | `.z-table` | Full-width collapsed table with padded cells. | | `.z-table-divider` | `modifier` | `.z-table` | Top border on every row except the first. | | `.z-table-expand` | `utility` | `.z-table` | Cell utility: minimum width so the column claims free space. | | `.z-table-hover` | `modifier` | `.z-table` | Tinted background on row hover with a short transition. | | `.z-table-justify` | `modifier` | `.z-table` | Removes outer cell padding so the table aligns with surrounding content. | | `.z-table-large` | `modifier` | `.z-table` | Larger cell padding. | | `.z-table-link` | `utility` | `.z-table` | Cell utility: moves padding onto a block-level link filling the cell. | | `.z-table-middle` | `modifier` | `.z-table` | Vertically centers cell content. | | `.z-table-responsive` | `modifier` | `.z-table` | Below 48rem, rows stack into blocks and `td[data-label]` cells show their label inline. | | `.z-table-responsive-compact` | `modifier` | `.z-table` | Narrower label column and tighter row padding in the responsive layout. | | `.z-table-responsive-stack` | `modifier` | `.z-table` | Responsive variant that places each label above its value instead of beside it. | | `.z-table-shrink` | `utility` | `.z-table` | Cell utility: collapses the column to its content width. | | `.z-table-small` | `modifier` | `.z-table` | Smaller cell padding. | | `.z-table-striped` | `modifier` | `.z-table` | Tinted background and borders on odd rows. | ## Notes - In the responsive layout, give each body cell a `data-label` attribute with its column header text; it renders via `::before`. - Mark a selected row with `z-active` for the info-tinted highlight. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) --- # Tab (`.z-tab`) > Underline and pill tablist styles with horizontal, bottom, and left/right layouts, plus a sliding active indicator driven by the Switcher controller. - **Kind:** css - **Category:** navigation ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-tab-active-border-color` | `var(--z-primary)` | `.z-tab > .z-active > a, .z-tab > .z-active > button` | `border-color` | Border color of the active tab's underline or side bar. | | `--z-tab-active-border-color-o` | `100%` | `.z-tab > .z-active > a, .z-tab > .z-active > button` | `border-color` | Opacity applied to the active border color. | | `--z-tab-alt-active-bg` | `var(--z-bg)` | `.z-tab-alt` | `background-color` | Background of the active pill, also used by the sliding indicator. | | `--z-tab-alt-active-shadow` | `var(--z-global-shadow-small)` | `.z-tab-alt` | `box-shadow` | Shadow of the active pill and the sliding indicator. | | `--z-tab-alt-padding` | `0.25rem` | `.z-tab-alt` | `padding` | Outer padding of the pill tablist track. | | `--z-tab-alt-padding-inner` | `0 0.75rem` | `.z-tab-alt` | `padding` | Inner padding of each pill tab link. | | `--z-tab-alt-radius` | `var(--z-global-radius)` | `.z-tab-alt` | `border-radius` | Corner radius of the pill tablist track. | | `--z-tab-alt-radius-inner` | `var(--z-global-radius-small)` | `.z-tab-alt` | `border-radius` | Corner radius of the active pill and the sliding indicator. | | `--z-tab-alt-transition` | `150ms cubic-bezier(0.16, 1, 0.3, 1)` | `.z-tab-alt` | `transition` | Transition timing for pill color and indicator movement. | | `--z-tab-border-color` | `var(--z-border)` | `.z-tab` | `border-bottom`, `border-left` | Color of the tablist baseline (the bottom border, or the side border in left/right layouts). | | `--z-tab-border-o` | `var(--z-border-o)` | `.z-tab` | `border-bottom`, `border-left` | Opacity applied to the baseline color. | | `--z-tab-font-size` | `var(--z-global-font-size-small)` | `.z-tab` | `font-size` | Font size of tab links. | | `--z-tab-indicator-color` | `var(--z-primary)` | `.z-tab` | `background-color` | Color of the sliding active indicator. | | `--z-tab-indicator-h` | `0px` | `.z-tab[data-indicator-ready]::after` | `height`, `transform` | Height of the active tab, written by the switcher at runtime to size the indicator. | | `--z-tab-indicator-o` | `100%` | `.z-tab` | `background-color` | Opacity applied to the indicator color. | | `--z-tab-indicator-w` | `0px` | `.z-tab[data-indicator-ready]::after` | `transform`, `width` | Width of the active tab, written by the switcher at runtime to size the indicator. | | `--z-tab-indicator-x` | `0px` | `.z-tab[data-indicator-ready]::after` | `transform` | Horizontal offset of the active tab, written by the switcher at runtime to position the indicator. | | `--z-tab-indicator-y` | `0px` | `.z-tab[data-indicator-ready]::after` | `transform` | Vertical offset of the active tab, written by the switcher at runtime to position the indicator. | | `--z-tab-item-padding` | `0.3125rem 0.625rem` | `.z-tab` | `padding` | Padding of each tab link. | | `--z-tab-link-color` | `var(--z-muted-f)` | `.z-tab > * > a, .z-tab > * > button` | `color` | Text color of inactive tab links. | | `--z-tab-link-color-o` | `100%` | `.z-tab > * > a, .z-tab > * > button` | `color` | Opacity applied to the inactive link color. | | `--z-tab-link-gap` | `0.25em` | `.z-tab` | `column-gap` | Gap between a tab link's icon and its label. | | `--z-tab-link-hover-color` | `var(--z-bg-f)` | `.z-tab > * > a, .z-tab > * > button` | `color` | Text color of tab links on hover. | | `--z-tab-link-hover-color-o` | `100%` | `.z-tab > * > a, .z-tab > * > button` | `color` | Opacity applied to the hover link color. | | `--z-tab-transition` | `150ms cubic-bezier(0.16, 1, 0.3, 1)` | `.z-tab` | `transition` | Transition timing for tab link color and indicator movement. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-tab` | `root` | `.z-tab` | Underline tablist: a flex list of links or buttons sharing a baseline, with an active underline. Mark the active item `.z-active` and disabled items `.z-disabled`. | | `.z-tab-alt` | `element` | `.z-tab` | Pill-style tablist variant: a rounded track whose active item is a raised pill. Use in place of `.z-tab`. | | `.z-tab-bottom` | `modifier` | `.z-tab` | Moves the baseline and the active border to the top edge of the tablist. | | `.z-tab-left` | `modifier` | `.z-tab` | Vertical tablist drawn on the left side, with the baseline and active bar on its right edge. | | `.z-tab-right` | `modifier` | `.z-tab` | Vertical tablist drawn on the right side, with the baseline and active bar on its left edge. | ## Notes - This component is styling only: switching behavior, keyboard navigation, and the sliding indicator come from the Switcher controller (`z-switcher`). - The `--z-tab-indicator-x/y/w/h` variables and the `data-indicator-ready` / `data-indicator-animate` attributes are written by the switcher at runtime; theme them rather than setting them by hand. - Without the switcher, mark the active item `.z-active` yourself; the static underline or pill still renders. ## Guides - [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md) - [Translating Components](https://next.0build.dev/docs/guides/i18n.md) - [Icon Resolution](https://next.0build.dev/docs/guides/icons.md) - [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md) - [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md) - [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md) - [Utilities](https://next.0build.dev/docs/guides/utilities.md) - [Runtime](https://next.0build.dev/docs/guides/runtime.md) ## Related - [Switcher](https://next.0build.dev/docs/components/switcher.md) --- # Form (`.z-input`) > Styling for native form controls: inputs, selects, textareas, radios, checkboxes, ranges, toggle switches, labels, icons, sizes, and selectable card/field layouts. - **Kind:** css - **Category:** inputs ## CSS Variables | Variable | Default | Scope | Affects | Description | | --- | --- | --- | --- | --- | | `--z-form-checkbox-image` | `` | `.z-checkbox:checked` | `background-image` | Background image drawn for a checked checkbox (the check mark). | | `--z-form-checkbox-image-indeterminate` | `` | `.z-checkbox:indeterminate` | `background-image` | Background image drawn for an indeterminate checkbox (the dash). | | `--z-form-danger-ring-color` | `var(--z-danger)` | `.z-form-danger:focus` | `outline-color` | Focus ring color for fields marked `.z-form-danger`. | | `--z-form-danger-ring-color-o` | `100%` | `.z-form-danger:focus` | `outline-color` | Opacity applied to the danger focus ring color. | | `--z-form-focus-ring-color` | `var(--z-focus)` | `.z-input:focus, .z-select:focus, .z-textarea:focus, .z-input-fake:focus` | `outline`, `outline-color` | Focus ring color for inputs, selects, textareas, and fake inputs. | | `--z-form-focus-ring-color-o` | `100%` | `.z-input:focus, .z-select:focus, .z-textarea:focus, .z-input-fake:focus` | `outline`, `outline-color` | Opacity applied to the focus ring color. | | `--z-form-icon-width` | `2.5rem` | `.z-form-icon, .z-input` | `padding-left`, `padding-right`, `width` | Width reserved for a leading or trailing form icon; the input pads itself by this amount. | | `--z-form-input-bg` | `transparent` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `background-color` | Background color of inputs, selects, textareas, fake inputs, and radio cards. | | `--z-form-input-border-color` | `var(--z-input)` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `border-color` | Border color of the shared input base. | | `--z-form-input-border-color-o` | `var(--z-input-o)` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `border-color` | Opacity applied to the input border color. | | `--z-form-input-color` | `var(--z-bg-f)` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `color` | Text color of the shared input base. | | `--z-form-input-color-o` | `100%` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `color` | Opacity applied to the input text color. | | `--z-form-input-font-size` | `var(--z-global-font-size-small)` | `.z-form-xsmall` | `font-size` | Font size of controls; overridden by the small and extra-small size variants. | | `--z-form-input-height` | `calc(var(--z-global-font-size) * var(--z-interactive-height-multiplier))` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `height` | Computed control height from the global font size and the interactive height multiplier. | | `--z-form-input-line-height` | `var(--z-global-line-height-small)` | `.z-form-xsmall` | `line-height` | Line height of controls; overridden by the small and extra-small size variants. | | `--z-form-input-padding` | `var(--z-form-input-padding-block) var(--z-form-input-padding-inline)` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `padding` | Shorthand padding of the shared input base, composed from the block and inline padding variables. | | `--z-form-input-padding-block` | `calc( var(--z-global-font-size) * var(--z-interactive-padding-block-multiplier) )` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `padding` | Block (vertical) padding of controls, derived from the interactive padding multiplier. | | `--z-form-input-padding-inline` | `calc( var(--z-global-font-size) * var(--z-interactive-padding-inline-multiplier) )` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `padding` | Inline (horizontal) padding of controls, derived from the interactive padding multiplier. | | `--z-form-input-radius` | `` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `border-radius` | Corner radius of the shared input base; supplied by the theme. | | `--z-form-input-shadow` | `` | `.z-input, .z-select, .z-textarea, .z-input-fake, .z-radio-card` | `box-shadow` | Box shadow of the shared input base; supplied by the theme. | | `--z-form-radio-border-color` | `var(--z-input)` | `.z-radio, .z-checkbox` | `border` | Border color of radios and checkboxes. | | `--z-form-radio-border-color-o` | `var(--z-input-o)` | `.z-radio, .z-checkbox` | `border` | Opacity applied to the radio/checkbox border color. | | `--z-form-radio-focus-ring-color` | `var(--z-form-radio-checked-border-color)` | `.z-radio:focus, .z-checkbox:focus` | `outline` | Focus ring color for radios and checkboxes; defaults to the checked border color. | | `--z-form-radio-focus-ring-color-o` | `30%` | `.z-radio:focus, .z-checkbox:focus` | `outline` | Opacity applied to the radio/checkbox focus ring color. | | `--z-form-radio-image` | `` | `.z-radio:checked` | `background-image` | Background image drawn for a checked radio (the dot). | | `--z-form-radio-indeterminate-bg` | `var(--z-muted)` | `.z-checkbox:indeterminate` | `background-color` | Background color of an indeterminate checkbox. | | `--z-form-radio-indeterminate-bg-o` | `8%` | `.z-checkbox:indeterminate` | `background-color` | Opacity applied to the indeterminate background color. | | `--z-form-radio-indeterminate-border-color` | `var(--z-muted)` | `.z-checkbox:indeterminate` | `border-color` | Border color of an indeterminate checkbox. | | `--z-form-radio-indeterminate-border-color-o` | `32%` | `.z-checkbox:indeterminate` | `border-color` | Opacity applied to the indeterminate border color. | | `--z-form-radio-radius` | `` | `.z-radio, .z-checkbox` | `border-radius` | Corner radius of radios and checkboxes; supplied by the theme (radios override it to a circle). | | `--z-form-radio-shadow` | `` | `.z-radio, .z-checkbox` | `box-shadow` | Box shadow of radios and checkboxes; supplied by the theme. | | `--z-form-toggle-switch-shadow` | `` | `.z-toggle-switch` | `box-shadow` | Box shadow of the toggle switch; supplied by the theme. | | `--z-radio-card-checked-border-color` | `var(--z-bg-f)` | `.z-radio-card` | — | Border color token for a checked radio card, overridden by `.z-form-danger`; currently declared but not consumed by any rule. | | `--z-radio-card-gap` | `0.5rem` | `.z-radio-card` | `column-gap` | Gap between a radio card's control and its text column. | | `--z-range-thumb-bg` | `var(--z-bg)` | `.z-range` | `background-color` | Background color of the range thumb. | | `--z-range-thumb-bg-o` | `100%` | `.z-range` | `background-color` | Opacity applied to the range thumb color. | | `--z-range-thumb-border-color` | `var(--z-primary)` | `.z-range` | `border`, `border-color` | Border color of the range thumb. | | `--z-range-thumb-border-color-o` | `50%` | `.z-range` | `border`, `border-color` | Opacity applied to the range thumb border color. | | `--z-range-thumb-margin-top` | `-7px` | `.z-range` | `margin-top` | Vertical offset that centers the range thumb on the track. | | `--z-range-thumb-radius` | `500px` | `.z-range` | `border-radius` | Corner radius of the range thumb. | | `--z-range-thumb-size` | `1rem` | `.z-range` | `height`, `width` | Height and width of the range thumb. | | `--z-range-track-bg` | `var(--z-primary)` | `.z-range` | `background-color` | Background color of the range track. | | `--z-range-track-bg-o` | `20%` | `.z-range` | `background-color` | Opacity applied to the range track color. | | `--z-range-track-height` | `3px` | `.z-range` | `height` | Height of the range track. | | `--z-range-track-radius` | `500px` | `.z-range` | `border-radius` | Corner radius of the range track. | | `--z-toggle-field-gap` | `1rem` | `.z-toggle-field` | `column-gap` | Gap between a toggle field's text and its switch. | | `--z-toggle-switch-bg` | `var(--z-input)` | `.z-toggle-switch` | `background-color` | Background color of the unchecked toggle switch track. | | `--z-toggle-switch-bg-o` | `var(--z-input-o)` | `.z-toggle-switch` | `background-color` | Opacity applied to the toggle switch track color. | | `--z-toggle-switch-height` | `1.25rem` | `.z-toggle-switch` | `height` | Height of the toggle switch track. | | `--z-toggle-switch-knob-bg` | `var(--z-bg)` | `.z-toggle-switch` | `background-color` | Background color of the toggle switch knob. | | `--z-toggle-switch-knob-bg-o` | `100%` | `.z-toggle-switch` | `background-color` | Opacity applied to the toggle switch knob color. | | `--z-toggle-switch-width` | `2.25rem` | `.z-toggle-switch` | `width` | Width of the toggle switch track. | ## CSS Classes | Class | Role | Applies to | Description | | --- | --- | --- | --- | | `.z-checkbox` | `element` | `.z-input` | Native checkbox styled as a custom square; the check and indeterminate marks come from background images. | | `.z-fieldset` | `element` | `.z-input` | Fieldset wrapper with `min-width: 0` so it can shrink inside flex/grid layouts. | | `.z-form-blank` | `element` | `.z-input` | Removes an input's background, border, and shadow, and suppresses the focus outline. | | `.z-form-custom` | `element` | `.z-input` | Wrapper that overlays a native `` transparently on top of custom-styled content. | | `.z-form-danger` | `modifier` | `.z-input` | Marks a field invalid: switches the focus ring (and radio-card border) to the danger color. | | `.z-form-help` | `element` | `.z-input` | Small helper text below a field. | | `.z-form-icon` | `modifier` | `.z-input` | Icon positioned inside an input's leading edge; the input pads itself to make room. | | `.z-form-icon-flip` | `element` | `.z-input` | Moves the form icon to the trailing edge of the input. | | `.z-form-label` | `element` | `.z-input` | Field label typography. | | `.z-form-label-required` | `element` | `.z-input` | Appends a danger-colored asterisk to a required field's label. | | `.z-form-large` | `modifier` | `.z-input` | Large control size: taller height and larger padding. | | `.z-form-medium` | `modifier` | `.z-input` | Medium (default) control size. | | `.z-form-small` | `modifier` | `.z-input` | Small control size with smaller font and line height. | | `.z-form-stacked` | `element` | `.z-input` | Stacks labels above their fields by making `.z-form-label` block-level. | | `.z-form-xsmall` | `modifier` | `.z-input` | Extra-small control size with smaller font and line height. | | `.z-inline` | `element` | `.z-input` | Inline-block wrapper that keeps an input and its icon aligned on one line. | | `.z-input` | `root` | `.z-input` | Root class for native text inputs; also the shared base style for selects, textareas, fake inputs, and radio cards. | | `.z-input-fake` | `element` | `.z-input` | Non-input element styled to look like an input, such as a custom select trigger. | | `.z-radio` | `element` | `.z-input` | Native radio styled as a custom circle; the checked dot comes from a background image. | | `.z-radio-card` | `modifier` | `.z-input` | Selectable card wrapping a radio/checkbox with a label and description; highlights its border when checked. | | `.z-radio-card-body` | `element` | `.z-input` | Text column of a radio card, holding the label and description. | | `.z-radio-card-control` | `element` | `.z-input` | Leading column of a radio card that holds and vertically centers the radio/checkbox. | | `.z-radio-card-description` | `element` | `.z-input` | Muted description text inside a radio card. | | `.z-radio-card-label` | `element` | `.z-input` | Label text inside a radio card. | | `.z-range` | `element` | `.z-input` | Native range slider with a custom track and thumb. | | `.z-select` | `element` | `.z-input` | Native `