Actions
Button
A pill that runs one action when pressed, used for the commands of a screen such as "Mark as done" or "Continue".
In kanso-ui as Button
Variants and sizes
k-btn--accent: the highlight.k-btn--ink: the strong action.k-btn--tonal: secondary, oncontainer: "Remind me later".k-btn--outline: secondary, with a 1pxoutlineedge: "Skip".k-btn--text: the quietest, an accent label with no fill: "Undo".k-btn--critical: destructive actions only: "Delete".- Sizes:
k-btn--sm(32px) andk-btn--md(40px) on the web, no modifier (48px) on phones,k-btn--xl(56px) for the spotlight's main action. k-btn--block: full width, for the main action at the foot of a phone sheet.- Spotlight card only:
k-btn--on-spot,k-btn--on-spot-tonal,k-btn--on-spot-outline.
States
- Hover and pressed: the state layer at
state-hover(8%) andstate-pressed(12%); pressed also shrinks the pill to 98%. - Focus: the 2px
focus-ring, 2px outside;on-spotlightin the spotlight. - Disabled (
disabledoraria-disabled="true"):inkat 12% behind a label at 38%. Say why beside it, "Add a title to save", so the fade is never the only message.
Do and don’t
Do
Name the outcome in sentence case: "Mark as done", "Remind me later".
Put the strongest action first, with one strong button per group.
Don’t
Add a second accent button, or one beside a spotlight card.
Use critical for money over budget or a late item: it means destructive.
Write "OK", "Submit" or Title Case.
What you provide
- Label in sentence case, variant and size.
- Icon name, optional:
add,attach_file. - The press handler, or an
hrefwhen it navigates; when disabled, the reason.