Idle, working, done
One button through its three states: ready, working with a spinner, and done with a check.
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-button-states">
<div class="row">
<button class="btn" type="button">Publish</button>
<button class="btn busy" type="button" aria-busy="true"><span class="spin" aria-hidden="true"></span> Publishing</button>
<button class="btn done" type="button"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg> Published</button>
</div>
</div>
.ukc-button-states { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-button-states *, .ukc-button-states *::before, .ukc-button-states *::after { box-sizing: border-box; }
.ukc-button-states :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-button-states :where(ul, ol) { padding: 0; list-style: none; }
.ukc-button-states :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-button-states :where(a) { color: inherit; }
.ukc-button-states svg { flex: none; }
.ukc-button-states .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ukc-button-states .btn { display: inline-flex; align-items: center; gap: 8px; min-width: 132px; justify-content: center; padding: 10px 16px; border: 0; border-radius: var(--uk-radius-md); background: var(--uk-accent); color: var(--uk-accent-ink); font-weight: 600; cursor: pointer; }
.ukc-button-states .btn.busy { background: var(--tint-strong); color: var(--accent-deep); cursor: progress; }
.ukc-button-states .btn.done { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-button-states .spin { width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: ukc-button-states-spin 0.8s linear infinite; }
@keyframes ukc-button-states-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ukc-button-states .spin { animation: none; } }