Back and next
The two buttons at the foot of a long form. Each one names the step it leads to, and the current step sits between them.
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-step-pair">
<div class="foot">
<button class="btn back" type="button"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg><span><small>Back to</small>Vehicles</span></button>
<p class="where"><span>Step 3 of 5</span><strong>Cabins and seats</strong></p>
<button class="btn next" type="button"><span><small>Next</small>Pick your sailing</span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button>
</div>
</div>
.ukc-button-step-pair { 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-step-pair *, .ukc-button-step-pair *::before, .ukc-button-step-pair *::after { box-sizing: border-box; }
.ukc-button-step-pair :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-button-step-pair :where(ul, ol) { padding: 0; list-style: none; }
.ukc-button-step-pair :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-button-step-pair :where(a) { color: inherit; }
.ukc-button-step-pair svg { flex: none; }
.ukc-button-step-pair { container-type: inline-size; inline-size: 100%; }
.ukc-button-step-pair .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; padding-top: 16px; border-top: var(--uk-border-width) solid var(--uk-line); }
.ukc-button-step-pair .where { display: grid; text-align: center; line-height: 1.3; }
.ukc-button-step-pair .where span { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-button-step-pair .where strong { font-size: 14px; }
.ukc-button-step-pair .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; border: var(--uk-border-width) solid transparent; border-radius: var(--uk-radius-md); font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.ukc-button-step-pair .btn small { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; }
.ukc-button-step-pair .btn svg { transition: transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-button-step-pair .back { border-color: var(--line-strong); background: transparent; color: var(--uk-ink); }
.ukc-button-step-pair .back:hover { background: var(--ink-soft); }
.ukc-button-step-pair .back:hover svg { transform: translateX(-3px); }
.ukc-button-step-pair .next { border-color: var(--uk-accent); background: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-button-step-pair .next:hover { border-color: var(--accent-deep); background: var(--accent-deep); }
.ukc-button-step-pair .next:hover svg { transform: translateX(3px); }
.ukc-button-step-pair .btn:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
@container (max-width: 470px) { .ukc-button-step-pair .where { order: -1; flex-basis: 100%; text-align: left; } .ukc-button-step-pair .btn { flex: 1 1 140px; } .ukc-button-step-pair .next { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .ukc-button-step-pair .btn svg { transition: none; } }