Components / Progress and loaders
Hairline with a figure
A large quiet figure over a hairline that thickens where it is filled, built on the native progress element. For a few calm totals.
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
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-hairline-rows">
<section class="pick">
<header class="top"><p class="kicker">Harvest, week 6 of 9</p><h3>Picked so far</h3></header>
<ul class="rows">
<li>
<label for="ukc-progress-hairline-rows-a">Pinot noir, Top Field</label>
<p class="pc">68<small>%</small></p>
<p class="of">41 of 60 tonnes</p>
<progress id="ukc-progress-hairline-rows-a" value="41" max="60">41 of 60 tonnes</progress>
</li>
<li class="full">
<label for="ukc-progress-hairline-rows-b">Chardonnay, Chalk Pit</label>
<p class="pc">100<small>%</small></p>
<p class="of"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>All 24 tonnes in, finished 3 October</p>
<progress id="ukc-progress-hairline-rows-b" value="24" max="24">24 of 24 tonnes</progress>
</li>
<li>
<label for="ukc-progress-hairline-rows-c">Meunier, Long Acre</label>
<p class="pc">30<small>%</small></p>
<p class="of">9 of 30 tonnes</p>
<progress id="ukc-progress-hairline-rows-c" value="9" max="30">9 of 30 tonnes</progress>
</li>
</ul>
</section>
</div>
.ukc-progress-hairline-rows { 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-hairline-rows *, .ukc-progress-hairline-rows *::before, .ukc-progress-hairline-rows *::after { box-sizing: border-box; }
.ukc-progress-hairline-rows :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-hairline-rows :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-hairline-rows :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-hairline-rows :where(a) { color: inherit; }
.ukc-progress-hairline-rows svg { flex: none; }
.ukc-progress-hairline-rows .pick { max-width: 420px; }
.ukc-progress-hairline-rows .kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-progress-hairline-rows .top h3 { font-family: var(--uk-font-display, inherit); font-size: 26px; font-weight: 400; line-height: 1.2; }
.ukc-progress-hairline-rows .rows { display: grid; gap: 20px; margin-top: 18px; }
.ukc-progress-hairline-rows .rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end; }
.ukc-progress-hairline-rows label { grid-column: 1; font-size: 15px; font-weight: 500; }
.ukc-progress-hairline-rows .of { grid-column: 1; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--uk-muted); }
.ukc-progress-hairline-rows .pc { grid-column: 2; grid-row: 1 / span 2; font-family: var(--uk-font-display, inherit); font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ukc-progress-hairline-rows .pc small { margin-left: 2px; font-size: 16px; letter-spacing: 0; color: var(--uk-muted); }
.ukc-progress-hairline-rows progress { grid-column: 1 / -1; display: block; width: 100%; height: 3px; margin-top: 10px; border: 0; -webkit-appearance: none; appearance: none; background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat; color: var(--uk-ink); }
.ukc-progress-hairline-rows progress::-webkit-progress-bar { background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat; }
.ukc-progress-hairline-rows progress::-webkit-progress-value { background: var(--uk-ink); }
.ukc-progress-hairline-rows progress::-moz-progress-bar { background: var(--uk-ink); }
.ukc-progress-hairline-rows .full .of { color: var(--uk-ink); }
More progress and loaders
All 2918:24left of 45 min
Second proof
Batch 3, country loaves
Oven 2 is heating and will be at 220 °C by 6:10 am.
Evening Portuguese · Level A2
Unit 3 of 6, at the market
46%
22 of 48 lessons done · next class Thursday, 7 pm
Saying hello8 of 8 lessons, finished
Quiz 9/10Getting around8 of 8 lessons, finished
Quiz 7/10At the market6 of 8 lessons
ContinueFood and familyOpens when unit 3 is done
Making plansLocked
Telling a storyLocked
Restoring your photo library
From the backup made on 21 Nov at 3:10 am
46%
Checked the backup is complete, done
0:42Downloaded the index, done
1:15Matched albumsDone, with a note: 3 albums had no cover and were given their first photo.
0:09Copying photos18,204 of 41,930 · 212 GB
11:36Rebuilding thumbnails
about 6 minFinal check
about 1 min
-
Slow flowTue 6:30 pm · Imre
4 places left -
Mat pilatesWed 7:00 am · Odile
Full, 2 waiting -
Yin and restThu 8:15 pm · Imre
13 places left
-
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