Components / Progress and loaders
Half gauge
A half-circle dial with the reading in the middle and a tick for the target. For one figure that has a good range, like margin.
31%margin
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-half-gauge">
<figure class="ga">
<div class="dial" role="meter" aria-label="Margin on the Kessler deck" aria-valuenow="31" aria-valuemin="0" aria-valuemax="50" aria-valuetext="31% margin, target 25%">
<svg viewBox="0 0 200 108" aria-hidden="true"><path class="tr" d="M 20 100 A 80 80 0 0 1 180 100" pathLength="100"/><path class="val" d="M 20 100 A 80 80 0 0 1 180 100" pathLength="100" stroke-dasharray="62 100"/><path class="tk" d="M 100 4 V 36"/></svg>
<p class="num"><strong>31%</strong><span>margin</span></p>
</div>
<div class="ends" aria-hidden="true"><span>0%</span><span>50%</span></div>
<figcaption><strong>Kessler deck rebuild</strong><span>Target 25% · quoted at 28%</span></figcaption>
</figure>
</div>
.ukc-progress-half-gauge { 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-half-gauge *, .ukc-progress-half-gauge *::before, .ukc-progress-half-gauge *::after { box-sizing: border-box; }
.ukc-progress-half-gauge :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-half-gauge :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-half-gauge :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-half-gauge :where(a) { color: inherit; }
.ukc-progress-half-gauge svg { flex: none; }
.ukc-progress-half-gauge .ga { width: 240px; }
.ukc-progress-half-gauge .dial { position: relative; }
.ukc-progress-half-gauge .dial svg { display: block; width: 100%; height: auto; }
.ukc-progress-half-gauge path { fill: none; stroke-width: 16; }
.ukc-progress-half-gauge .tr { stroke: var(--uk-line); }
.ukc-progress-half-gauge .val { stroke: var(--uk-accent); }
.ukc-progress-half-gauge .tk { stroke: var(--uk-ink); stroke-width: 2.5; }
.ukc-progress-half-gauge .num { position: absolute; left: 0; right: 0; bottom: 2px; display: grid; justify-items: center; line-height: 1.1; }
.ukc-progress-half-gauge .num strong { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ukc-progress-half-gauge .num span { font-size: 12px; color: var(--uk-muted); }
.ukc-progress-half-gauge .ends { display: flex; justify-content: space-between; padding: 0 6px; margin-top: 4px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--uk-muted); }
.ukc-progress-half-gauge figcaption { display: grid; justify-items: center; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--uk-line); font-size: 13px; color: var(--uk-muted); text-align: center; }
.ukc-progress-half-gauge figcaption strong { color: var(--uk-ink); font-size: 14px; font-weight: 600; }
More progress and loaders
All 29Pallet CF-20418
12 crates of roof slate
On the road
- Leeds depotLeft 9:05 am
- Sheffield hubLeft 10:40 am
- DerbyDue 12:50 pm
- NottinghamDue 2:10 pm
- Delivery window
- Today, 2:10 to 3:40 pm
- Distance
- 62 of 107 miles
- Driver
- Anneke, van 14
Aldgrove Lido roof fund
$27,400 raised of $40,000
312 neighbours have chipped in. 19 days to go.
- $10k Scaffold booked, reached
- $20k Timber ordered, reached
- $30k Glazing, $2,600 to go
- $40k Roof on by May
Low Tide · Side A
The Harbour Lights, mix 3
64% printed to tape
Track 7 of 11, Saltmarsh. 2 min 51 s left on this side.
Harvest, week 6 of 9
Picked so far
-
68%
41 of 60 tonnes
-
100%
All 24 tonnes in, finished 3 October
-
30%
9 of 30 tonnes
-
18:24left of 45 min
Second proof
Batch 3, country loaves
Oven 2 is heating and will be at 220 °C by 6:10 am.