Components / Progress and loaders
Labelled bars with status
A label, a thin track, and helper text under it. Shown counting, working without an end, and stopped on an error.
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-progress-carbon-progress-bar">
<div class="stack">
<div class="pb">
<p class="lbl"><span id="ukc-progress-carbon-progress-bar-l1">Uploading site photos</span></p>
<div class="track" role="progressbar" aria-labelledby="ukc-progress-carbon-progress-bar-l1" aria-describedby="ukc-progress-carbon-progress-bar-h1" aria-valuenow="62" aria-valuemin="0" aria-valuemax="100"><span class="bar" style="width: 62%"></span></div>
<p class="help" id="ukc-progress-carbon-progress-bar-h1">31 of 50 photos · 62%</p>
</div>
<div class="pb busy">
<p class="lbl"><span id="ukc-progress-carbon-progress-bar-l2">Preparing the October export</span></p>
<div class="track" role="progressbar" aria-labelledby="ukc-progress-carbon-progress-bar-l2" aria-describedby="ukc-progress-carbon-progress-bar-h2"></div>
<p class="help" id="ukc-progress-carbon-progress-bar-h2">Counting invoices</p>
</div>
<div class="pb err">
<p class="lbl"><span id="ukc-progress-carbon-progress-bar-l3">Syncing to the ledger</span><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="M12 3l9.5 17h-19z"/><path d="M12 10v4M12 17h.01"/></svg></p>
<div class="track" role="progressbar" aria-labelledby="ukc-progress-carbon-progress-bar-l3" aria-describedby="ukc-progress-carbon-progress-bar-h3" aria-valuenow="212" aria-valuemin="0" aria-valuemax="340"><span class="bar"></span></div>
<p class="help" id="ukc-progress-carbon-progress-bar-h3">Stopped at 212 of 340 entries. Check the connection and try again.</p>
</div>
</div>
</div>
.ukc-progress-carbon-progress-bar { 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-progress-carbon-progress-bar *, .ukc-progress-carbon-progress-bar *::before, .ukc-progress-carbon-progress-bar *::after { box-sizing: border-box; }
.ukc-progress-carbon-progress-bar :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-carbon-progress-bar :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-carbon-progress-bar :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-carbon-progress-bar :where(a) { color: inherit; }
.ukc-progress-carbon-progress-bar svg { flex: none; }
.ukc-progress-carbon-progress-bar .stack { display: grid; gap: 22px; max-width: 420px; }
.ukc-progress-carbon-progress-bar .lbl { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.ukc-progress-carbon-progress-bar .lbl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ukc-progress-carbon-progress-bar .track { position: relative; height: 8px; overflow: hidden; border-radius: var(--uk-radius-sm); background: var(--uk-line); }
.ukc-progress-carbon-progress-bar .bar { display: block; height: 100%; border-radius: var(--uk-radius-sm); background: var(--uk-accent); transition: width var(--uk-motion-duration, 180ms) var(--uk-motion-ease, ease); }
.ukc-progress-carbon-progress-bar .busy .track::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 25%; border-radius: var(--uk-radius-sm); background: var(--uk-accent); animation: ukc-progress-carbon-progress-bar-slide 1.4s linear -0.5s infinite; }
.ukc-progress-carbon-progress-bar .err .bar { width: 100%; background: var(--uk-danger); }
.ukc-progress-carbon-progress-bar .err .lbl svg { color: var(--uk-danger); }
.ukc-progress-carbon-progress-bar .help { margin-top: 8px; font-size: 12px; color: var(--uk-muted); }
.ukc-progress-carbon-progress-bar .err .help { color: var(--uk-danger); }
@keyframes ukc-progress-carbon-progress-bar-slide { 0% { transform: translateX(-100%); } 80%, 100% { transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) { .ukc-progress-carbon-progress-bar .busy .track::after { animation: none; width: 100%; opacity: 0.35; } }
More progress and loaders
All 29- Contact completed
- Site completed
- Scope
- Pricing not completed
- Review not completed
Step3of 5Describe the job
- 72%
Hours logged26 of 36 h
45%Materials in9 of 20 items
100%Deposit$1,200 paid
- Final photos14 uploaded, done
- Client sign-offSigned 18 Oct, done
- Final invoiceDraft · $3,480.00
- Ask for a reviewGoes out 2 days after payment
Hours this weekof 40 h each
Mara Reyes38 hTheo Lindqvist31 hDana Whitfield24 hSam Okafor11 hRequired job photos4 of 6
Safety checklist7 of 10
Sign-offs 3 of 3