ki-copy-button
@kimen/elements/ki-copy-button- Source
- Agent reference
<ki-copy-button value="https://kimen.dev/i/4f9a" label="Copy invite link"></ki-copy-button><ki-copy-button value="token-4f9a" variant="secondary">Copy token</ki-copy-button>Use value for known text or from for the ID of a source in the same
document or shadow root. When the person activates the button, it reads the
source’s current string value or its text content.
<ki-input id="invite" label="Invite link" value="https://kimen.dev/i/4f9a" readonly></ki-input><ki-copy-button from="invite" label="Copy invite link" variant="secondary"></ki-copy-button>Give an icon-only button a label that identifies what will be copied.
When the button has visible slot text, that text supplies its accessible name.
The check or error glyph replaces the copy icon in place. The button retains
focus and a polite status announces the result. Localize copied-label and
copy-error-label for the page’s language.
Copying requires the browser Clipboard API and permission to write. Listen
for ki-copy to receive the exact copied string in detail.value, or
ki-copy-error to respond to a failed copy. Guarded surfaces can bind a
declared action to successful copies.
API reference
When to use: let a person copy a link, identifier, token or code sample. Supply a direct value or point to a source in the same document or shadow root.
When not to use: submit a form, navigate, or trigger an action with no clipboard write. Use a button or link for those actions.
Properties & attributes
| Attribute | Property | Type | Default | Description |
|---|---|---|---|---|
copied-label | copiedLabel | string | 'Copied' | Polite announcement after a successful write. Override for localized interfaces. |
copy-error-label | copyErrorLabel | string | "Couldn't copy" | Polite announcement after a failed write or missing source. Override for localized interfaces. |
feedback-duration | feedbackDuration | number | 1500 | Milliseconds to show feedback after a write settles. Zero keeps the outcome visible until the next result. Invalid values use 1500 ms. |
from | from | string | undefined | – | ID of a source in this button's document or shadow root. A nonempty ID takes precedence over value. The source's current string value or its text content is read on activation. |
label | label | string | 'Copy' | Accessible name for the icon-only control. Visible slot text supplies the name when present. |
size | size | "lg" | "md" | "sm" | "xl" | "xs" | 'md' | Token-backed button size. Match the size of adjacent controls. |
value | value | string | undefined | – | Exact clipboard text, including whitespace. Supply it when the text is known directly. |
variant | variant | "ghost" | "outline" | "primary" | "quaternary" | "secondary" | 'ghost' | Button emphasis. Use ghost for compact actions and secondary for a visible supporting action. |
Events
| Event | Detail type | Description |
|---|---|---|
ki-copy | CustomEvent<{ value: string }> | Fired after a successful clipboard write. The detail carries the exact text copied. |
ki-copy-error | CustomEvent<void> | Fired when the source cannot be read or clipboard writing is unavailable or fails. |
Slots
| Slot | Description |
|---|---|
| (default) | Optional visible text, which supplies the accessible name and places the icon at the inline start. Use plain text or non-interactive markup. |
CSS parts
| Part | Description |
|---|---|
button | Native copy control with keyboard and pointer activation. |
icon | Fixed-size decorative feedback glyph box inside the button. |
label | Wrapper around the visible slotted label. |
CSS custom properties
The public styling contract of ki-copy-button: reassign these tokens at :root or on a subtree — never override internals.
| Token | Description |
|---|---|
--ki-button-backdrop-filter | Complete backdrop filter for glass button and icon-button variants. |
--ki-button-border-width | dimension used by the button component for border width (MarsUI bevel/outline stroke: 1px). |
--ki-button-focus-ring-color | color used by the button component for focus ring color. |
--ki-button-focus-ring-offset | dimension used by the button component for focus ring offset. |
--ki-button-focus-ring-shadow | shadow used by the button component for the focus ring glow (MarsUI Focus/primary: 3px spread ring). |
--ki-button-focus-ring-width | dimension used by the button component for focus ring width. |
--ki-button-font-family | font family used by the button component for font family. |
--ki-button-font-weight | font weight used by the button component for font weight. |
--ki-button-ghost-danger-hover-bg | color used by the button component for ghost danger hover background. |
--ki-button-ghost-danger-hover-border | color used by the button component for ghost danger hover border. |
--ki-button-ghost-danger-hover-fg | color used by the button component for ghost danger hover foreground. |
--ki-button-ghost-danger-rest-bg | color used by the button component for ghost danger rest background. |
--ki-button-ghost-danger-rest-border | color used by the button component for ghost danger rest border. |
--ki-button-ghost-danger-rest-fg | color used by the button component for ghost danger rest foreground. |
--ki-button-ghost-disabled-shadow | value used by the button component for ghost disabled shadow. |
--ki-button-ghost-hover-shadow | value used by the button component for ghost hover shadow. |
--ki-button-ghost-neutral-disabled-bg | color used by the button component for ghost neutral disabled background. |
--ki-button-ghost-neutral-disabled-border | color used by the button component for ghost neutral disabled border. |
--ki-button-ghost-neutral-disabled-fg | color used by the button component for ghost neutral disabled foreground. |
--ki-button-ghost-neutral-hover-bg | color used by the button component for ghost neutral hover background. |
--ki-button-ghost-neutral-hover-border | color used by the button component for ghost neutral hover border. |
--ki-button-ghost-neutral-hover-fg | color used by the button component for ghost neutral hover foreground. |
--ki-button-ghost-neutral-rest-bg | color used by the button component for ghost neutral rest background. |
--ki-button-ghost-neutral-rest-border | color used by the button component for ghost neutral rest border. |
--ki-button-ghost-neutral-rest-fg | color used by the button component for ghost neutral rest foreground. |
--ki-button-ghost-rest-shadow | value used by the button component for ghost rest shadow. |
--ki-button-ghost-selected-bg | Background of the selected ghost button toggle. |
--ki-button-ghost-selected-fg | Foreground of the selected ghost button toggle. |
--ki-button-ghost-success-hover-bg | color used by the button component for ghost success hover background. |
--ki-button-ghost-success-hover-border | color used by the button component for ghost success hover border. |
--ki-button-ghost-success-hover-fg | color used by the button component for ghost success hover foreground. |
--ki-button-ghost-success-rest-bg | color used by the button component for ghost success rest background. |
--ki-button-ghost-success-rest-border | color used by the button component for ghost success rest border. |
--ki-button-ghost-success-rest-fg | color used by the button component for ghost success rest foreground. |
--ki-button-label-padding-inline | dimension used by the button component for the label Text_wrap inline padding (MarsUI 8003:300: 4px each side of the label; the flex gap subtracts the same value so icon-to-text keeps the composite distance). |
--ki-button-lg-font-size | dimension used by the button component for lg font size. |
--ki-button-lg-gap | dimension used by the button component for lg gap. |
--ki-button-lg-height | dimension used by the button component for lg height. |
--ki-button-lg-icon-size | dimension used by the button component for lg icon size. |
--ki-button-lg-line-height | dimension used by the button component for lg line height. |
--ki-button-lg-min-target | dimension used by the button component for lg min target. |
--ki-button-lg-padding-inline | dimension used by the button component for lg padding inline. |
--ki-button-lg-radius | dimension used by the button component for lg radius (Button master 8003:300 binds Radius/small-component/lg, the scale a radius mode reassigns). |
--ki-button-lg-spinner-size | dimension used by the button component for the lg loading spinner box (20px, the lg icon size; spec 046 D5: no Figma source, the spinner takes the place of the content). |
--ki-button-md-font-size | dimension used by the button component for md font size. |
--ki-button-md-gap | dimension used by the button component for md gap (MarsUI effective icon-to-text gap 6px). |
--ki-button-md-height | dimension used by the button component for md height. |
--ki-button-md-icon-size | dimension used by the button component for md icon size. |
--ki-button-md-line-height | dimension used by the button component for md line height. |
--ki-button-md-min-target | dimension used by the button component for md min target. |
--ki-button-md-padding-inline | dimension used by the button component for md padding inline. |
--ki-button-md-radius | dimension used by the button component for md radius (Button master 8003:300 binds Radius/small-component/md, the scale a radius mode reassigns). |
--ki-button-md-spinner-size | dimension used by the button component for the md loading spinner box (18px, the md icon size; spec 046 D5: no Figma source, the spinner takes the place of the content). |
--ki-button-outline-rest-bg | Background of the outline variant at rest. |
--ki-button-outline-rest-border | Visible outline of the outline variant at rest. |
--ki-button-outline-rest-fg | Foreground of the outline variant at rest. |
--ki-button-outline-selected-bg | Background of the selected outline button toggle. |
--ki-button-outline-selected-fg | Foreground of the selected outline button toggle. |
--ki-button-padding-block | dimension used by the button component for padding block (MarsUI: 4px in every size). |
--ki-button-primary-active-overlay | Pressed state layer for the primary button: primary paints on a dark brand fill, so its wash lightens: the next rung above ki.surface.hover-overlay (White/5 -> White/8 light). Replaces this variant's share of a 45-cell active bg/fg/border matrix whose values were documented mirrors of rest and which WITHDREW the hover overlay rather than deepening it, an appearance legible only to a pointer user who had hovered first. |
--ki-button-primary-danger-hover-bg | color used by the button component for primary danger hover background (MarsUI: rest fill; hover lightening comes from the hover overlay). |
--ki-button-primary-danger-hover-border | color used by the button component for primary danger hover border (MarsUI bevel top/inline edge). |
--ki-button-primary-danger-hover-fg | color used by the button component for primary danger hover foreground. |
--ki-button-primary-danger-rest-bg | color used by the button component for primary danger rest background. Deliberate deviation: Figma specifies the 500 ramp (Surface/danger_med_em #f05149) but white on 500 is ≈3.5:1 < AA 4.5:1; Kimen keeps the 700 ramp (precedent 010 D2, pending founder ratification). |
--ki-button-primary-danger-rest-border | color used by the button component for primary danger rest border (MarsUI bevel top/inline edge). |
--ki-button-primary-danger-rest-fg | color used by the button component for primary danger rest foreground. |
--ki-button-primary-disabled-shadow | value used by the button component for primary disabled shadow. |
--ki-button-primary-hover-overlay | color used by the button component for the primary hover overlay layer (MarsUI hover_overlay, White/5). |
--ki-button-primary-hover-shadow | shadow used by the button component for button primary hover shadow (MarsUI Component_effect/primary_hover). |
--ki-button-primary-neutral-disabled-bg | color used by the button component for primary neutral disabled background. Deliberate deviation: Figma disabled is Surface/disabled_base_em gray.100 with gray.400 text (≈1.4:1); Kimen keeps gray.200 for contrast (precedent 010 D2, pending founder ratification). |
--ki-button-primary-neutral-disabled-border | color used by the button component for primary neutral disabled border. |
--ki-button-primary-neutral-disabled-fg | color used by the button component for primary neutral disabled foreground. Deliberate deviation: Figma disabled text is text/base_em gray.400 (≈1.4:1 on gray.100); Kimen keeps text.muted gray.700 for readable disabled text (precedent 010 D2, pending founder ratification). |
--ki-button-primary-neutral-hover-bg | color used by the button component for primary neutral hover background (MarsUI: rest fill; hover lightening comes from the hover overlay). |
--ki-button-primary-neutral-hover-border | color used by the button component for primary neutral hover border (MarsUI bevel top/inline edge). |
--ki-button-primary-neutral-hover-fg | color used by the button component for primary neutral hover foreground. |
--ki-button-primary-neutral-rest-bg | color used by the button component for primary neutral rest background (MarsUI Surface/primary_med_em, brand 500). |
--ki-button-primary-neutral-rest-border | color used by the button component for primary neutral rest border (MarsUI bevel top/inline edge). |
--ki-button-primary-neutral-rest-fg | color used by the button component for primary neutral rest foreground. |
--ki-button-primary-rest-border-bottom | color used by the button component for the primary bevel bottom edge (MarsUI Outline/primary_button_bottom). |
--ki-button-primary-rest-shadow | shadow used by the button component for button primary rest shadow (MarsUI Component_effect/primary_default). |
--ki-button-primary-selected-bg | Background of the selected primary button toggle. |
--ki-button-primary-selected-fg | Foreground of the selected primary button toggle. |
--ki-button-primary-success-hover-bg | color used by the button component for primary success hover background (MarsUI: rest fill; hover lightening comes from the hover overlay). |
--ki-button-primary-success-hover-border | color used by the button component for primary success hover border (MarsUI bevel top/inline edge). |
--ki-button-primary-success-hover-fg | color used by the button component for primary success hover foreground. |
--ki-button-primary-success-rest-bg | color used by the button component for primary success rest background. Deliberate deviation: Figma specifies the 500 ramp (Surface/success_med_em #409b3f) but white on 500 is ≈3.5:1 < AA 4.5:1; Kimen keeps the 700 ramp (precedent 010 D2, pending founder ratification). |
--ki-button-primary-success-rest-border | color used by the button component for primary success rest border (MarsUI bevel top/inline edge). |
--ki-button-primary-success-rest-fg | color used by the button component for primary success rest foreground. |
--ki-button-quaternary-danger-hover-bg | color used by the button component for quaternary danger hover background. |
--ki-button-quaternary-danger-hover-border | color used by the button component for quaternary danger hover border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-danger-hover-fg | color used by the button component for quaternary danger hover foreground. |
--ki-button-quaternary-danger-rest-bg | color used by the button component for quaternary danger rest background. |
--ki-button-quaternary-danger-rest-border | color used by the button component for quaternary danger rest border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-danger-rest-fg | color used by the button component for quaternary danger rest foreground. |
--ki-button-quaternary-disabled-shadow | value used by the button component for quaternary disabled shadow. |
--ki-button-quaternary-hover-shadow | value used by the button component for quaternary hover shadow. |
--ki-button-quaternary-neutral-disabled-bg | color used by the button component for quaternary neutral disabled background. |
--ki-button-quaternary-neutral-disabled-border | color used by the button component for quaternary neutral disabled border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-neutral-disabled-fg | color used by the button component for quaternary neutral disabled foreground: the disabled ink of every field and selection control (Text/base_em). quaternary has no fill or border, so its ink alone shows the state; ki.text.muted equals its resting ki.text.med-em in onmars. |
--ki-button-quaternary-neutral-hover-bg | color used by the button component for quaternary neutral hover background (MarsUI hover mechanism: hover_overlay_inverse Black/3 wash over the transparent rest fill). |
--ki-button-quaternary-neutral-hover-border | color used by the button component for quaternary neutral hover border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-neutral-hover-fg | color used by the button component for quaternary neutral hover foreground (MarsUI quaternary label text/med_em gray; the outlined-purple rest identity was a pre-master synthesis). |
--ki-button-quaternary-neutral-rest-bg | color used by the button component for quaternary neutral rest background. |
--ki-button-quaternary-neutral-rest-border | color used by the button component for quaternary neutral rest border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-neutral-rest-fg | color used by the button component for quaternary neutral rest foreground (MarsUI quaternary label text/med_em gray; the outlined-purple rest identity was a pre-master synthesis). |
--ki-button-quaternary-rest-shadow | value used by the button component for quaternary rest shadow. |
--ki-button-quaternary-selected-bg | Background of the selected quaternary button toggle. |
--ki-button-quaternary-selected-fg | Foreground of the selected quaternary button toggle. |
--ki-button-quaternary-success-hover-bg | color used by the button component for quaternary success hover background. |
--ki-button-quaternary-success-hover-border | color used by the button component for quaternary success hover border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-success-hover-fg | color used by the button component for quaternary success hover foreground. |
--ki-button-quaternary-success-rest-bg | color used by the button component for quaternary success rest background. |
--ki-button-quaternary-success-rest-border | color used by the button component for quaternary success rest border (MarsUI quaternary is borderless in every state). |
--ki-button-quaternary-success-rest-fg | color used by the button component for quaternary success rest foreground. |
--ki-button-secondary-active-overlay | Pressed state layer for the secondary button: secondary paints on a light fill, so its wash darkens: the next rung above ki.surface.hover-overlay-inverse (Black/3 -> Black/5 light). Replaces this variant's share of a 45-cell active bg/fg/border matrix whose values were documented mirrors of rest and which WITHDREW the hover overlay rather than deepening it, an appearance legible only to a pointer user who had hovered first. |
--ki-button-secondary-danger-hover-bg | color used by the button component for secondary danger hover background. |
--ki-button-secondary-danger-hover-border | color used by the button component for secondary danger hover border (MarsUI bevel top/inline edge, variant trait). |
--ki-button-secondary-danger-hover-fg | color used by the button component for secondary danger hover foreground. |
--ki-button-secondary-danger-rest-bg | color used by the button component for secondary danger rest background. |
--ki-button-secondary-danger-rest-border | color used by the button component for secondary danger rest border (MarsUI bevel top/inline edge, variant trait). |
--ki-button-secondary-danger-rest-fg | color used by the button component for secondary danger rest foreground. |
--ki-button-secondary-disabled-shadow | value used by the button component for secondary disabled shadow. |
--ki-button-secondary-hover-overlay | color used by the button component for the secondary hover overlay layer (MarsUI hover_overlay_inverse, Black/3). |
--ki-button-secondary-hover-shadow | shadow used by the button component for secondary hover shadow (MarsUI Component_effect/secondary_hover). |
--ki-button-secondary-neutral-disabled-bg | color used by the button component for secondary neutral disabled background. |
--ki-button-secondary-neutral-disabled-border | color used by the button component for secondary neutral disabled border. |
--ki-button-secondary-neutral-disabled-fg | color used by the button component for secondary neutral disabled foreground. |
--ki-button-secondary-neutral-hover-bg | color used by the button component for secondary neutral hover background (MarsUI: rest fill; hover darkening comes from the hover overlay). |
--ki-button-secondary-neutral-hover-border | color used by the button component for secondary neutral hover border (MarsUI bevel top/inline edge). |
--ki-button-secondary-neutral-hover-fg | color used by the button component for secondary neutral hover foreground (MarsUI text/high_em). |
--ki-button-secondary-neutral-rest-bg | color used by the button component for secondary neutral rest background (MarsUI Surface/special/secondary_alpha_base: gray glass, not a brand tint). |
--ki-button-secondary-neutral-rest-border | color used by the button component for secondary neutral rest border (MarsUI bevel top/inline edge). |
--ki-button-secondary-neutral-rest-fg | color used by the button component for secondary neutral rest foreground (MarsUI text/high_em). |
--ki-button-secondary-rest-border-bottom | color used by the button component for the secondary bevel bottom edge (MarsUI Outline/secondary_button_bottom). |
--ki-button-secondary-rest-shadow | shadow used by the button component for secondary rest shadow (MarsUI Component_effect/secondary_default). |
--ki-button-secondary-selected-bg | Background of the selected secondary button toggle. |
--ki-button-secondary-selected-fg | Foreground of the selected secondary button toggle. |
--ki-button-secondary-success-hover-bg | color used by the button component for secondary success hover background. |
--ki-button-secondary-success-hover-border | color used by the button component for secondary success hover border (MarsUI bevel top/inline edge, variant trait). |
--ki-button-secondary-success-hover-fg | color used by the button component for secondary success hover foreground. |
--ki-button-secondary-success-rest-bg | color used by the button component for secondary success rest background. |
--ki-button-secondary-success-rest-border | color used by the button component for secondary success rest border (MarsUI bevel top/inline edge, variant trait). |
--ki-button-secondary-success-rest-fg | color used by the button component for secondary success rest foreground. |
--ki-button-sm-font-size | dimension used by the button component for sm font size. |
--ki-button-sm-gap | dimension used by the button component for sm gap (Button master 8003:301: root gap Space/xxs 2px + Text_wrap inline padding Space/xs 4px = 6px icon-to-text). |
--ki-button-sm-height | dimension used by the button component for sm height. |
--ki-button-sm-icon-size | dimension used by the button component for sm icon size. |
--ki-button-sm-line-height | dimension used by the button component for sm line height. |
--ki-button-sm-min-target | dimension used by the button component for sm min target. |
--ki-button-sm-padding-inline | dimension used by the button component for sm padding inline. |
--ki-button-sm-radius | dimension used by the button component for sm radius (Button master 8003:300 binds Radius/small-component/sm, the scale a radius mode reassigns). |
--ki-button-sm-spinner-size | dimension used by the button component for the sm loading spinner box (16px, the sm icon size; spec 046 D5: no Figma source, the spinner takes the place of the content). |
--ki-button-spinner-duration | duration used by the button and icon button components for one turn of the loading spinner (spec 046 D5: the ki-progress indeterminate period). Applied only under prefers-reduced-motion: no-preference. |
--ki-button-spinner-stroke-width | dimension used by the button and icon button components for the loading spinner stroke (spec 046 D5: the circular ki-progress ring, drawn with a non-scaling stroke of this width). |
--ki-button-tertiary-danger-hover-bg | Tertiary alias of the secondary danger hover background. |
--ki-button-tertiary-danger-hover-border | color used by the button component for tertiary danger hover border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-danger-hover-fg | color used by the button component for tertiary danger hover foreground. |
--ki-button-tertiary-danger-rest-bg | Tertiary alias of the secondary danger rest background. |
--ki-button-tertiary-danger-rest-border | color used by the button component for tertiary danger rest border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-danger-rest-fg | color used by the button component for tertiary danger rest foreground. |
--ki-button-tertiary-disabled-shadow | value used by the button component for tertiary disabled shadow. |
--ki-button-tertiary-hover-overlay | Hover overlay for neutral tertiary buttons, shared with secondary by default. |
--ki-button-tertiary-hover-shadow | shadow used by the button component for tertiary hover shadow (MarsUI Component_effect/secondary_hover). |
--ki-button-tertiary-neutral-disabled-bg | color used by the button component for tertiary neutral disabled background. |
--ki-button-tertiary-neutral-disabled-border | color used by the button component for tertiary neutral disabled border. |
--ki-button-tertiary-neutral-disabled-fg | color used by the button component for tertiary neutral disabled foreground. |
--ki-button-tertiary-neutral-hover-bg | Tertiary alias of the secondary neutral hover background. |
--ki-button-tertiary-neutral-hover-border | color used by the button component for tertiary neutral hover border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-neutral-hover-fg | Tertiary alias of the secondary neutral hover foreground. |
--ki-button-tertiary-neutral-rest-bg | Tertiary alias of the secondary neutral rest background. |
--ki-button-tertiary-neutral-rest-border | color used by the button component for tertiary neutral rest border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-neutral-rest-fg | Tertiary alias of the secondary neutral rest foreground. |
--ki-button-tertiary-rest-border-bottom | color used by the button component for the tertiary bevel bottom edge (MarsUI Outline/secondary_button_bottom — same bevel pair as secondary). |
--ki-button-tertiary-rest-shadow | shadow used by the button component for tertiary rest shadow (MarsUI Component_effect/secondary_default — replaces the migrated M2-era stack, which the material3 theme keeps via its own override). |
--ki-button-tertiary-success-hover-bg | Tertiary alias of the secondary success hover background. |
--ki-button-tertiary-success-hover-border | color used by the button component for tertiary success hover border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-success-hover-fg | color used by the button component for tertiary success hover foreground. |
--ki-button-tertiary-success-rest-bg | Tertiary alias of the secondary success rest background. |
--ki-button-tertiary-success-rest-border | color used by the button component for tertiary success rest border (MarsUI secondary bevel top/inline edge — tertiary carries the secondary_button outline pair). |
--ki-button-tertiary-success-rest-fg | color used by the button component for tertiary success rest foreground. |
--ki-button-toggle-radius | Rounded rectangle shape for an unselected text toggle button. |
--ki-button-toggle-selected-radius | Pill shape for a selected text toggle button. |
--ki-button-xl-font-size | dimension used by the button component for xl font size. |
--ki-button-xl-gap | dimension used by the button component for xl gap (MarsUI effective icon-to-text gap 8px). |
--ki-button-xl-height | dimension used by the button component for xl height. |
--ki-button-xl-icon-size | dimension used by the button component for xl icon size. |
--ki-button-xl-line-height | dimension used by the button component for xl line height. |
--ki-button-xl-min-target | dimension used by the button component for xl min target. |
--ki-button-xl-padding-inline | dimension used by the button component for xl padding inline (MarsUI 14px). |
--ki-button-xl-radius | dimension used by the button component for xl radius (Button master 8003:300 binds Radius/small-component/xl, the scale a radius mode reassigns). |
--ki-button-xl-spinner-size | dimension used by the button component for the xl loading spinner box (24px, the xl icon size; spec 046 D5: no Figma source, the spinner takes the place of the content). |
--ki-button-xs-font-size | dimension used by the button component for xs font size: caption_2, 12px, the smallest size the library ships for informative text (spec 002 amendment A1, issue #321). The Figma Button master draws caption_1, 10px. |
--ki-button-xs-gap | dimension used by the button component for xs gap (MarsUI effective icon-to-text gap 4px). |
--ki-button-xs-height | dimension used by the button component for xs height. |
--ki-button-xs-icon-size | dimension used by the button component for xs icon size (MarsUI 14px). |
--ki-button-xs-line-height | dimension used by the button component for xs line height (caption_2 16px, the same height as caption_1). |
--ki-button-xs-min-target | dimension used by the button component for xs min target. |
--ki-button-xs-padding-inline | dimension used by the button component for xs padding inline. |
--ki-button-xs-radius | dimension used by the button component for xs radius (Button master 8003:300 binds Radius/small-component/xs, the scale a radius mode reassigns). |
--ki-button-xs-spinner-size | dimension used by the button component for the xs loading spinner box (14px, the xs icon size; spec 046 D5: no Figma source, the spinner takes the place of the content). |
--ki-copy-button-error-bg | Contrast ground for the error glyph on filled primary copy buttons. |
--ki-copy-button-error-fg | Copy failure glyph ink. |
--ki-copy-button-success-bg | Contrast ground for the success glyph on filled primary copy buttons. |
--ki-copy-button-success-fg | Confirmation check ink. |
--ki-density-control-offset | Added to the block size of every scaled control and row (button, icon button, field, select, textarea, option, list item, tab). Components floor the result at ki.size.target-min. |
--ki-density-target-min | The smallest pointer target any density may produce: 24 x 24 CSS px by default and in compact (WCAG 2.5.8 AA), 44 x 44 in touch (WCAG 2.5.5). It floors a shrinking control but never lifts what a control paints: a control painted smaller extends its target to it, invisibly; rows and tabs grow to it (spec 045 A1). |
--ki-motion-duration-fast | Fast interaction transition duration. |
--ki-motion-easing-out | Decelerating interaction transition easing curve. |
--ki-typography-family-body | semantic font family for typography family body. |