Skip to content
Kimenpre-v1documentation home
Color scheme

ki-copy-button

Theme for this example
Color scheme for this example
Copy token
<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

AttributePropertyTypeDefaultDescription
copied-labelcopiedLabelstring'Copied'Polite announcement after a successful write. Override for localized interfaces.
copy-error-labelcopyErrorLabelstring"Couldn't copy"Polite announcement after a failed write or missing source. Override for localized interfaces.
feedback-durationfeedbackDurationnumber1500Milliseconds to show feedback after a write settles. Zero keeps the outcome visible until the next result. Invalid values use 1500 ms.
fromfromstring | 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.
labellabelstring'Copy'Accessible name for the icon-only control. Visible slot text supplies the name when present.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'Token-backed button size. Match the size of adjacent controls.
valuevaluestring | undefined–Exact clipboard text, including whitespace. Supply it when the text is known directly.
variantvariant"ghost" | "outline" | "primary" | "quaternary" | "secondary"'ghost'Button emphasis. Use ghost for compact actions and secondary for a visible supporting action.

Events

EventDetail typeDescription
ki-copyCustomEvent<{ value: string }>Fired after a successful clipboard write. The detail carries the exact text copied.
ki-copy-errorCustomEvent<void>Fired when the source cannot be read or clipboard writing is unavailable or fails.

Slots

SlotDescription
(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

PartDescription
buttonNative copy control with keyboard and pointer activation.
iconFixed-size decorative feedback glyph box inside the button.
labelWrapper 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.

TokenDescription
--ki-button-backdrop-filterComplete backdrop filter for glass button and icon-button variants.
--ki-button-border-widthdimension used by the button component for border width (MarsUI bevel/outline stroke: 1px).
--ki-button-focus-ring-colorcolor used by the button component for focus ring color.
--ki-button-focus-ring-offsetdimension used by the button component for focus ring offset.
--ki-button-focus-ring-shadowshadow used by the button component for the focus ring glow (MarsUI Focus/primary: 3px spread ring).
--ki-button-focus-ring-widthdimension used by the button component for focus ring width.
--ki-button-font-familyfont family used by the button component for font family.
--ki-button-font-weightfont weight used by the button component for font weight.
--ki-button-ghost-danger-hover-bgcolor used by the button component for ghost danger hover background.
--ki-button-ghost-danger-hover-bordercolor used by the button component for ghost danger hover border.
--ki-button-ghost-danger-hover-fgcolor used by the button component for ghost danger hover foreground.
--ki-button-ghost-danger-rest-bgcolor used by the button component for ghost danger rest background.
--ki-button-ghost-danger-rest-bordercolor used by the button component for ghost danger rest border.
--ki-button-ghost-danger-rest-fgcolor used by the button component for ghost danger rest foreground.
--ki-button-ghost-disabled-shadowvalue used by the button component for ghost disabled shadow.
--ki-button-ghost-hover-shadowvalue used by the button component for ghost hover shadow.
--ki-button-ghost-neutral-disabled-bgcolor used by the button component for ghost neutral disabled background.
--ki-button-ghost-neutral-disabled-bordercolor used by the button component for ghost neutral disabled border.
--ki-button-ghost-neutral-disabled-fgcolor used by the button component for ghost neutral disabled foreground.
--ki-button-ghost-neutral-hover-bgcolor used by the button component for ghost neutral hover background.
--ki-button-ghost-neutral-hover-bordercolor used by the button component for ghost neutral hover border.
--ki-button-ghost-neutral-hover-fgcolor used by the button component for ghost neutral hover foreground.
--ki-button-ghost-neutral-rest-bgcolor used by the button component for ghost neutral rest background.
--ki-button-ghost-neutral-rest-bordercolor used by the button component for ghost neutral rest border.
--ki-button-ghost-neutral-rest-fgcolor used by the button component for ghost neutral rest foreground.
--ki-button-ghost-rest-shadowvalue used by the button component for ghost rest shadow.
--ki-button-ghost-selected-bgBackground of the selected ghost button toggle.
--ki-button-ghost-selected-fgForeground of the selected ghost button toggle.
--ki-button-ghost-success-hover-bgcolor used by the button component for ghost success hover background.
--ki-button-ghost-success-hover-bordercolor used by the button component for ghost success hover border.
--ki-button-ghost-success-hover-fgcolor used by the button component for ghost success hover foreground.
--ki-button-ghost-success-rest-bgcolor used by the button component for ghost success rest background.
--ki-button-ghost-success-rest-bordercolor used by the button component for ghost success rest border.
--ki-button-ghost-success-rest-fgcolor used by the button component for ghost success rest foreground.
--ki-button-label-padding-inlinedimension 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-sizedimension used by the button component for lg font size.
--ki-button-lg-gapdimension used by the button component for lg gap.
--ki-button-lg-heightdimension used by the button component for lg height.
--ki-button-lg-icon-sizedimension used by the button component for lg icon size.
--ki-button-lg-line-heightdimension used by the button component for lg line height.
--ki-button-lg-min-targetdimension used by the button component for lg min target.
--ki-button-lg-padding-inlinedimension used by the button component for lg padding inline.
--ki-button-lg-radiusdimension 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-sizedimension 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-sizedimension used by the button component for md font size.
--ki-button-md-gapdimension used by the button component for md gap (MarsUI effective icon-to-text gap 6px).
--ki-button-md-heightdimension used by the button component for md height.
--ki-button-md-icon-sizedimension used by the button component for md icon size.
--ki-button-md-line-heightdimension used by the button component for md line height.
--ki-button-md-min-targetdimension used by the button component for md min target.
--ki-button-md-padding-inlinedimension used by the button component for md padding inline.
--ki-button-md-radiusdimension 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-sizedimension 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-bgBackground of the outline variant at rest.
--ki-button-outline-rest-borderVisible outline of the outline variant at rest.
--ki-button-outline-rest-fgForeground of the outline variant at rest.
--ki-button-outline-selected-bgBackground of the selected outline button toggle.
--ki-button-outline-selected-fgForeground of the selected outline button toggle.
--ki-button-padding-blockdimension used by the button component for padding block (MarsUI: 4px in every size).
--ki-button-primary-active-overlayPressed 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-bgcolor 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-bordercolor used by the button component for primary danger hover border (MarsUI bevel top/inline edge).
--ki-button-primary-danger-hover-fgcolor used by the button component for primary danger hover foreground.
--ki-button-primary-danger-rest-bgcolor 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-bordercolor used by the button component for primary danger rest border (MarsUI bevel top/inline edge).
--ki-button-primary-danger-rest-fgcolor used by the button component for primary danger rest foreground.
--ki-button-primary-disabled-shadowvalue used by the button component for primary disabled shadow.
--ki-button-primary-hover-overlaycolor used by the button component for the primary hover overlay layer (MarsUI hover_overlay, White/5).
--ki-button-primary-hover-shadowshadow used by the button component for button primary hover shadow (MarsUI Component_effect/primary_hover).
--ki-button-primary-neutral-disabled-bgcolor 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-bordercolor used by the button component for primary neutral disabled border.
--ki-button-primary-neutral-disabled-fgcolor 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-bgcolor 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-bordercolor used by the button component for primary neutral hover border (MarsUI bevel top/inline edge).
--ki-button-primary-neutral-hover-fgcolor used by the button component for primary neutral hover foreground.
--ki-button-primary-neutral-rest-bgcolor used by the button component for primary neutral rest background (MarsUI Surface/primary_med_em, brand 500).
--ki-button-primary-neutral-rest-bordercolor used by the button component for primary neutral rest border (MarsUI bevel top/inline edge).
--ki-button-primary-neutral-rest-fgcolor used by the button component for primary neutral rest foreground.
--ki-button-primary-rest-border-bottomcolor used by the button component for the primary bevel bottom edge (MarsUI Outline/primary_button_bottom).
--ki-button-primary-rest-shadowshadow used by the button component for button primary rest shadow (MarsUI Component_effect/primary_default).
--ki-button-primary-selected-bgBackground of the selected primary button toggle.
--ki-button-primary-selected-fgForeground of the selected primary button toggle.
--ki-button-primary-success-hover-bgcolor 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-bordercolor used by the button component for primary success hover border (MarsUI bevel top/inline edge).
--ki-button-primary-success-hover-fgcolor used by the button component for primary success hover foreground.
--ki-button-primary-success-rest-bgcolor 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-bordercolor used by the button component for primary success rest border (MarsUI bevel top/inline edge).
--ki-button-primary-success-rest-fgcolor used by the button component for primary success rest foreground.
--ki-button-quaternary-danger-hover-bgcolor used by the button component for quaternary danger hover background.
--ki-button-quaternary-danger-hover-bordercolor used by the button component for quaternary danger hover border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-danger-hover-fgcolor used by the button component for quaternary danger hover foreground.
--ki-button-quaternary-danger-rest-bgcolor used by the button component for quaternary danger rest background.
--ki-button-quaternary-danger-rest-bordercolor used by the button component for quaternary danger rest border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-danger-rest-fgcolor used by the button component for quaternary danger rest foreground.
--ki-button-quaternary-disabled-shadowvalue used by the button component for quaternary disabled shadow.
--ki-button-quaternary-hover-shadowvalue used by the button component for quaternary hover shadow.
--ki-button-quaternary-neutral-disabled-bgcolor used by the button component for quaternary neutral disabled background.
--ki-button-quaternary-neutral-disabled-bordercolor used by the button component for quaternary neutral disabled border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-neutral-disabled-fgcolor 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-bgcolor 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-bordercolor used by the button component for quaternary neutral hover border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-neutral-hover-fgcolor 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-bgcolor used by the button component for quaternary neutral rest background.
--ki-button-quaternary-neutral-rest-bordercolor used by the button component for quaternary neutral rest border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-neutral-rest-fgcolor 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-shadowvalue used by the button component for quaternary rest shadow.
--ki-button-quaternary-selected-bgBackground of the selected quaternary button toggle.
--ki-button-quaternary-selected-fgForeground of the selected quaternary button toggle.
--ki-button-quaternary-success-hover-bgcolor used by the button component for quaternary success hover background.
--ki-button-quaternary-success-hover-bordercolor used by the button component for quaternary success hover border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-success-hover-fgcolor used by the button component for quaternary success hover foreground.
--ki-button-quaternary-success-rest-bgcolor used by the button component for quaternary success rest background.
--ki-button-quaternary-success-rest-bordercolor used by the button component for quaternary success rest border (MarsUI quaternary is borderless in every state).
--ki-button-quaternary-success-rest-fgcolor used by the button component for quaternary success rest foreground.
--ki-button-secondary-active-overlayPressed 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-bgcolor used by the button component for secondary danger hover background.
--ki-button-secondary-danger-hover-bordercolor used by the button component for secondary danger hover border (MarsUI bevel top/inline edge, variant trait).
--ki-button-secondary-danger-hover-fgcolor used by the button component for secondary danger hover foreground.
--ki-button-secondary-danger-rest-bgcolor used by the button component for secondary danger rest background.
--ki-button-secondary-danger-rest-bordercolor used by the button component for secondary danger rest border (MarsUI bevel top/inline edge, variant trait).
--ki-button-secondary-danger-rest-fgcolor used by the button component for secondary danger rest foreground.
--ki-button-secondary-disabled-shadowvalue used by the button component for secondary disabled shadow.
--ki-button-secondary-hover-overlaycolor used by the button component for the secondary hover overlay layer (MarsUI hover_overlay_inverse, Black/3).
--ki-button-secondary-hover-shadowshadow used by the button component for secondary hover shadow (MarsUI Component_effect/secondary_hover).
--ki-button-secondary-neutral-disabled-bgcolor used by the button component for secondary neutral disabled background.
--ki-button-secondary-neutral-disabled-bordercolor used by the button component for secondary neutral disabled border.
--ki-button-secondary-neutral-disabled-fgcolor used by the button component for secondary neutral disabled foreground.
--ki-button-secondary-neutral-hover-bgcolor 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-bordercolor used by the button component for secondary neutral hover border (MarsUI bevel top/inline edge).
--ki-button-secondary-neutral-hover-fgcolor used by the button component for secondary neutral hover foreground (MarsUI text/high_em).
--ki-button-secondary-neutral-rest-bgcolor 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-bordercolor used by the button component for secondary neutral rest border (MarsUI bevel top/inline edge).
--ki-button-secondary-neutral-rest-fgcolor used by the button component for secondary neutral rest foreground (MarsUI text/high_em).
--ki-button-secondary-rest-border-bottomcolor used by the button component for the secondary bevel bottom edge (MarsUI Outline/secondary_button_bottom).
--ki-button-secondary-rest-shadowshadow used by the button component for secondary rest shadow (MarsUI Component_effect/secondary_default).
--ki-button-secondary-selected-bgBackground of the selected secondary button toggle.
--ki-button-secondary-selected-fgForeground of the selected secondary button toggle.
--ki-button-secondary-success-hover-bgcolor used by the button component for secondary success hover background.
--ki-button-secondary-success-hover-bordercolor used by the button component for secondary success hover border (MarsUI bevel top/inline edge, variant trait).
--ki-button-secondary-success-hover-fgcolor used by the button component for secondary success hover foreground.
--ki-button-secondary-success-rest-bgcolor used by the button component for secondary success rest background.
--ki-button-secondary-success-rest-bordercolor used by the button component for secondary success rest border (MarsUI bevel top/inline edge, variant trait).
--ki-button-secondary-success-rest-fgcolor used by the button component for secondary success rest foreground.
--ki-button-sm-font-sizedimension used by the button component for sm font size.
--ki-button-sm-gapdimension 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-heightdimension used by the button component for sm height.
--ki-button-sm-icon-sizedimension used by the button component for sm icon size.
--ki-button-sm-line-heightdimension used by the button component for sm line height.
--ki-button-sm-min-targetdimension used by the button component for sm min target.
--ki-button-sm-padding-inlinedimension used by the button component for sm padding inline.
--ki-button-sm-radiusdimension 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-sizedimension 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-durationduration 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-widthdimension 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-bgTertiary alias of the secondary danger hover background.
--ki-button-tertiary-danger-hover-bordercolor 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-fgcolor used by the button component for tertiary danger hover foreground.
--ki-button-tertiary-danger-rest-bgTertiary alias of the secondary danger rest background.
--ki-button-tertiary-danger-rest-bordercolor 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-fgcolor used by the button component for tertiary danger rest foreground.
--ki-button-tertiary-disabled-shadowvalue used by the button component for tertiary disabled shadow.
--ki-button-tertiary-hover-overlayHover overlay for neutral tertiary buttons, shared with secondary by default.
--ki-button-tertiary-hover-shadowshadow used by the button component for tertiary hover shadow (MarsUI Component_effect/secondary_hover).
--ki-button-tertiary-neutral-disabled-bgcolor used by the button component for tertiary neutral disabled background.
--ki-button-tertiary-neutral-disabled-bordercolor used by the button component for tertiary neutral disabled border.
--ki-button-tertiary-neutral-disabled-fgcolor used by the button component for tertiary neutral disabled foreground.
--ki-button-tertiary-neutral-hover-bgTertiary alias of the secondary neutral hover background.
--ki-button-tertiary-neutral-hover-bordercolor 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-fgTertiary alias of the secondary neutral hover foreground.
--ki-button-tertiary-neutral-rest-bgTertiary alias of the secondary neutral rest background.
--ki-button-tertiary-neutral-rest-bordercolor 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-fgTertiary alias of the secondary neutral rest foreground.
--ki-button-tertiary-rest-border-bottomcolor 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-shadowshadow 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-bgTertiary alias of the secondary success hover background.
--ki-button-tertiary-success-hover-bordercolor 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-fgcolor used by the button component for tertiary success hover foreground.
--ki-button-tertiary-success-rest-bgTertiary alias of the secondary success rest background.
--ki-button-tertiary-success-rest-bordercolor 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-fgcolor used by the button component for tertiary success rest foreground.
--ki-button-toggle-radiusRounded rectangle shape for an unselected text toggle button.
--ki-button-toggle-selected-radiusPill shape for a selected text toggle button.
--ki-button-xl-font-sizedimension used by the button component for xl font size.
--ki-button-xl-gapdimension used by the button component for xl gap (MarsUI effective icon-to-text gap 8px).
--ki-button-xl-heightdimension used by the button component for xl height.
--ki-button-xl-icon-sizedimension used by the button component for xl icon size.
--ki-button-xl-line-heightdimension used by the button component for xl line height.
--ki-button-xl-min-targetdimension used by the button component for xl min target.
--ki-button-xl-padding-inlinedimension used by the button component for xl padding inline (MarsUI 14px).
--ki-button-xl-radiusdimension 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-sizedimension 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-sizedimension 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-gapdimension used by the button component for xs gap (MarsUI effective icon-to-text gap 4px).
--ki-button-xs-heightdimension used by the button component for xs height.
--ki-button-xs-icon-sizedimension used by the button component for xs icon size (MarsUI 14px).
--ki-button-xs-line-heightdimension used by the button component for xs line height (caption_2 16px, the same height as caption_1).
--ki-button-xs-min-targetdimension used by the button component for xs min target.
--ki-button-xs-padding-inlinedimension used by the button component for xs padding inline.
--ki-button-xs-radiusdimension 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-sizedimension 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-bgContrast ground for the error glyph on filled primary copy buttons.
--ki-copy-button-error-fgCopy failure glyph ink.
--ki-copy-button-success-bgContrast ground for the success glyph on filled primary copy buttons.
--ki-copy-button-success-fgConfirmation check ink.
--ki-density-control-offsetAdded 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-minThe 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-fastFast interaction transition duration.
--ki-motion-easing-outDecelerating interaction transition easing curve.
--ki-typography-family-bodysemantic font family for typography family body.

Open ki-copy-button in Storybook