Components / Progress and loaders
Battery cells
A battery drawn in cells: filled, one pulsing while it charges, and a hatched one held back by the charge limit. For devices and vehicles.
Bay 4 · Kestrel Charge, Ashby Road
Charging
74%
- To 90%
- 22 min
- Rate
- 48 kW
- Added
- 31.4 kWh
- Cost so far
- $13.19
The last cell is held back by your 90% limit. Change limit
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-charge-cells">
<section class="ev">
<header class="top"><p class="bay">Bay 4 · Kestrel Charge, Ashby Road</p><p class="state"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true"><path d="M13 2L5 13.5h6L10 22l9-12h-6z"/></svg>Charging</p></header>
<div class="main">
<div class="batt" role="progressbar" aria-label="Battery charge" aria-valuenow="74" aria-valuemin="0" aria-valuemax="100" aria-valuetext="74 percent, charging to a 90 percent limit">
<div class="cells"><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="live"></i><i></i><i class="held"></i></div>
<span class="nub"></span>
</div>
<p class="big"><strong>74</strong>%</p>
</div>
<dl class="facts">
<div><dt>To 90%</dt><dd>22 min</dd></div>
<div><dt>Rate</dt><dd>48 kW</dd></div>
<div><dt>Added</dt><dd>31.4 kWh</dd></div>
<div><dt>Cost so far</dt><dd>$13.19</dd></div>
</dl>
<p class="note">The last cell is held back by your 90% limit. <a href="#">Change limit</a></p>
</section>
</div>
.ukc-progress-charge-cells { 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-charge-cells *, .ukc-progress-charge-cells *::before, .ukc-progress-charge-cells *::after { box-sizing: border-box; }
.ukc-progress-charge-cells :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-charge-cells :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-charge-cells :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-charge-cells :where(a) { color: inherit; }
.ukc-progress-charge-cells svg { flex: none; }
.ukc-progress-charge-cells .ev { max-width: 420px; }
.ukc-progress-charge-cells .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 12px; font-size: 13px; }
.ukc-progress-charge-cells .bay { color: var(--uk-muted); }
.ukc-progress-charge-cells .state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.ukc-progress-charge-cells .main { display: flex; align-items: center; gap: 16px; }
.ukc-progress-charge-cells .batt { flex: 1; min-width: 0; display: flex; align-items: center; }
.ukc-progress-charge-cells .cells { flex: 1; min-width: 0; display: flex; gap: 3px; height: 56px; padding: 4px; border: 3px solid var(--uk-ink); border-radius: min(var(--uk-radius-lg), 10px); }
.ukc-progress-charge-cells .cells i { flex: 1 1 0; min-width: 0; border-radius: min(var(--uk-radius-sm), 3px); background: var(--ink-soft); }
.ukc-progress-charge-cells .cells .on, .ukc-progress-charge-cells .cells .live { background: var(--uk-accent); }
.ukc-progress-charge-cells .cells .live { animation: ukc-progress-charge-cells-pulse 1.4s ease-in-out infinite; }
.ukc-progress-charge-cells .cells .held { background: repeating-linear-gradient(-45deg, var(--line-strong) 0 2px, transparent 2px 6px); }
.ukc-progress-charge-cells .nub { width: 6px; height: 22px; border-radius: 0 min(var(--uk-radius-sm), 3px) min(var(--uk-radius-sm), 3px) 0; background: var(--uk-ink); }
.ukc-progress-charge-cells .big { flex: none; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 18px; color: var(--uk-muted); }
.ukc-progress-charge-cells .big strong { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; color: var(--uk-ink); font-variant-numeric: tabular-nums; }
.ukc-progress-charge-cells .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--uk-line); }
.ukc-progress-charge-cells .facts dt { font-size: 12px; color: var(--uk-muted); }
.ukc-progress-charge-cells .facts dd { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 14px; font-variant-numeric: tabular-nums; }
.ukc-progress-charge-cells .note { margin-top: 12px; font-size: 13px; color: var(--uk-muted); }
.ukc-progress-charge-cells .note a { color: var(--uk-ink); font-weight: 600; text-underline-offset: 3px; }
.ukc-progress-charge-cells .note a:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
@keyframes ukc-progress-charge-cells-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .ukc-progress-charge-cells .cells .live { animation: none; opacity: 0.6; } }
More progress and loaders
All 29Hollis Street Pharmacy · prescriptions
You are 5th in the queue
Counter 2- You
About 9 minutes. The counter is serving ticket B41 and yours is B46.
Fennel and Rye · Saturday open
Before the doors at 7:30
of 6 done
to go before the doors open.
All six done. Flip the sign and open up.
The Marram Press · subscription edition
Salt Roads, set by hand in an edition of 700
We ink the press once 500 copies are spoken for. 94 more and the type goes in the chase.
- Reserved
- 406
- Press at
- 500
- List closes
- 14 March
Garsdale Walling · Low Ings boundary
34 of 50 metres of wall laid
16 metres to the gatepost. At this week's pace that is eight more dry days.
- Laid this week
- 9 m
- Stone used
- 41 tonnes
- Due
- 19 December
Saltwick Films · The Ferryman's Daughter
Shoot budget against shoot days
Spending ahead of the days
- Days shot
- 12 of 2060%
- Spent
- $310,800 of $420,00074%
- Money lasts until
- Day 16
Where the extra went
- Night shoots at the harbour$27,400
- Generator and lighting hire$18,900
- Weather day, crew held$12,500
At $25,900 a day the budget runs out four days early. See the daily spend