Components / Progress and loaders
Spend against time
Two bars on one scale, time gone and money gone, with a line for today and a bracket on the gap between them. Says in words if the money is running ahead.
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
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-spend-against-days">
<section class="burn">
<header class="top">
<div><p class="k">Saltwick Films · The Ferryman's Daughter</p><h3>Shoot budget against shoot days</h3></div>
<p class="chip"><svg width="14" height="14" 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>Spending ahead of the days</p>
</header>
<div class="pair">
<div class="names" aria-hidden="true"><p>Days</p><p>Budget</p></div>
<div class="tracks">
<div class="track" role="progressbar" aria-label="Shoot days used" aria-valuenow="12" aria-valuemin="0" aria-valuemax="20" aria-valuetext="12 of 20 days, 60 percent"><span class="fill" style="width: 60%"></span></div>
<div class="track" role="progressbar" aria-label="Budget spent" aria-valuenow="310800" aria-valuemin="0" aria-valuemax="420000" aria-valuetext="$310,800 of $420,000, 74 percent, 14 points ahead of the days"><span class="fill money" style="width: 60%"></span><span class="over" style="left: 60%; width: 14%"></span></div>
<span class="today" style="left: 60%" aria-hidden="true"><b>Today, day 12</b></span>
<span class="gap" style="left: 60%; width: 14%" aria-hidden="true"><b>$58,800 over</b></span>
</div>
</div>
<dl class="facts">
<div><dt>Days shot</dt><dd>12 of 20<small>60%</small></dd></div>
<div><dt>Spent</dt><dd>$310,800 of $420,000<small>74%</small></dd></div>
<div><dt>Money lasts until</dt><dd>Day 16</dd></div>
</dl>
<h4>Where the extra went</h4>
<ul class="why">
<li><span>Night shoots at the harbour</span><span class="amt">$27,400</span></li>
<li><span>Generator and lighting hire</span><span class="amt">$18,900</span></li>
<li><span>Weather day, crew held</span><span class="amt">$12,500</span></li>
</ul>
<p class="note">At $25,900 a day the budget runs out four days early. <a href="#">See the daily spend</a></p>
</section>
</div>
.ukc-progress-spend-against-days { 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-spend-against-days *, .ukc-progress-spend-against-days *::before, .ukc-progress-spend-against-days *::after { box-sizing: border-box; }
.ukc-progress-spend-against-days :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-progress-spend-against-days :where(ul, ol) { padding: 0; list-style: none; }
.ukc-progress-spend-against-days :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-progress-spend-against-days :where(a) { color: inherit; }
.ukc-progress-spend-against-days svg { flex: none; }
.ukc-progress-spend-against-days .burn { --dark: color-mix(in srgb, var(--uk-ink) 15%, black); max-width: 500px; }
.ukc-progress-spend-against-days .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.ukc-progress-spend-against-days .k { font-size: 13px; color: var(--uk-muted); }
.ukc-progress-spend-against-days .top h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.ukc-progress-spend-against-days .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--uk-highlight); border-radius: var(--uk-radius-sm); background: var(--high-tint); font-size: 13px; font-weight: 600; }
.ukc-progress-spend-against-days .pair { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 34px 0 30px; }
.ukc-progress-spend-against-days .names, .ukc-progress-spend-against-days .tracks { display: grid; grid-auto-rows: 16px; gap: 10px; align-items: center; }
.ukc-progress-spend-against-days .names { font-size: 13px; font-weight: 600; line-height: 1; }
.ukc-progress-spend-against-days .tracks { position: relative; }
.ukc-progress-spend-against-days .track { position: relative; height: 16px; background: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--uk-line); }
.ukc-progress-spend-against-days .fill, .ukc-progress-spend-against-days .over { position: absolute; top: 0; bottom: 0; left: 0; }
.ukc-progress-spend-against-days .fill { background: var(--uk-ink); }
.ukc-progress-spend-against-days .money { background: var(--uk-accent); }
.ukc-progress-spend-against-days .over { background: repeating-linear-gradient(-45deg, var(--dark) 0 2px, var(--uk-highlight) 2px 6px); box-shadow: inset 0 0 0 1px var(--dark); }
.ukc-progress-spend-against-days .today { position: absolute; top: -8px; bottom: -4px; width: 0; border-left: 2px dashed var(--uk-ink); }
.ukc-progress-spend-against-days .today b { position: absolute; bottom: 100%; left: 0; translate: -50% 0; padding-bottom: 3px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.ukc-progress-spend-against-days .gap { position: absolute; top: calc(100% + 5px); height: 6px; border: 1.5px solid var(--uk-ink); border-top: 0; }
.ukc-progress-spend-against-days .gap b { position: absolute; top: calc(100% + 3px); left: 50%; translate: -50% 0; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.ukc-progress-spend-against-days .facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 0; border-top: 1px solid var(--uk-line); border-bottom: 1px solid var(--uk-line); }
.ukc-progress-spend-against-days .facts dt { font-size: 12px; color: var(--uk-muted); }
.ukc-progress-spend-against-days .facts dd { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ukc-progress-spend-against-days .facts small { margin-left: 6px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; font-weight: 400; color: var(--uk-muted); }
.ukc-progress-spend-against-days h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--uk-muted); }
.ukc-progress-spend-against-days .why li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; font-size: 14px; }
.ukc-progress-spend-against-days .why li + li { border-top: 1px dashed var(--uk-line); }
.ukc-progress-spend-against-days .amt { flex: none; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; font-variant-numeric: tabular-nums; }
.ukc-progress-spend-against-days .amt::before { content: "+"; }
.ukc-progress-spend-against-days .note { margin-top: 12px; font-size: 13px; color: var(--uk-muted); }
.ukc-progress-spend-against-days .note a { color: var(--uk-ink); font-weight: 600; text-underline-offset: 3px; }
.ukc-progress-spend-against-days .note a:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
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