KPI tile row
Four numbers in one ruled block, each with its change and a twelve-month trend. Up is not always good, so the color follows the meaning.
October
Change against September
- Outstanding
- $24,880
- Up, worse: $1,840
- Days to get paid
- 18 days
- Down, better: 3 days
- Billable hours
- 612
- Up, better: 24 h
- Gross margin
- 34.2%
- Down, worse: 0.8 pts
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-chart-kpi-tiles">
<section class="kp" aria-labelledby="ukc-chart-kpi-tiles-title">
<div class="hd"><h3 class="ttl" id="ukc-chart-kpi-tiles-title">October</h3><p class="sub">Change against September</p></div>
<dl class="tiles">
<div class="tile">
<dt>Outstanding</dt>
<dd class="val">$24,880</dd>
<dd class="dl bad"><svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 1.5 9 8.5H1z" fill="currentColor"/></svg><span class="sr">Up, worse: </span>$1,840</dd>
<dd class="tr"><svg width="96" height="28" viewBox="0 0 96 28" role="img" aria-label="12 months: Rising most of the year"><polyline class="past" points="4,24 12,20.46 20,22.35 28,18.34 36,16.45 44,18.1 52,14.57 60,12.68 68,14.09 76,10.56 84,8.34"/><polyline class="now" points="84,8.34 92,4"/><circle cx="92" cy="4" r="3"/></svg></dd>
</div>
<div class="tile">
<dt>Days to get paid</dt>
<dd class="val">18 days</dd>
<dd class="dl"><svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 8.5 1 1.5h8z" fill="currentColor"/></svg><span class="sr">Down, better: </span>3 days</dd>
<dd class="tr"><svg width="96" height="28" viewBox="0 0 96 28" role="img" aria-label="12 months: Falling all year"><polyline class="past" points="4,4 12,6.22 20,6.22 28,8.44 36,10.67 44,10.67 52,12.89 60,15.11 68,15.11 76,17.33 84,17.33"/><polyline class="now" points="84,17.33 92,24"/><circle cx="92" cy="24" r="3"/></svg></dd>
</div>
<div class="tile">
<dt>Billable hours</dt>
<dd class="val">612</dd>
<dd class="dl"><svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 1.5 9 8.5H1z" fill="currentColor"/></svg><span class="sr">Up, better: </span>24 h</dd>
<dd class="tr"><svg width="96" height="28" viewBox="0 0 96 28" role="img" aria-label="12 months: Climbing slowly"><polyline class="past" points="4,24 12,20.67 20,15.67 28,18.17 36,12.89 44,14.28 52,10.11 60,10.67 68,8.44 76,6.78 84,10.67"/><polyline class="now" points="84,10.67 92,4"/><circle cx="92" cy="4" r="3"/></svg></dd>
</div>
<div class="tile">
<dt>Gross margin</dt>
<dd class="val">34.2%</dd>
<dd class="dl bad"><svg width="10" height="10" viewBox="0 0 10 10" aria-hidden="true"><path d="M5 8.5 1 1.5h8z" fill="currentColor"/></svg><span class="sr">Down, worse: </span>0.8 pts</dd>
<dd class="tr"><svg width="96" height="28" viewBox="0 0 96 28" role="img" aria-label="12 months: Up for most of the year, slipping for three months"><polyline class="past" points="4,24 12,21.44 20,17.33 28,15.79 36,14.26 44,11.18 52,8.1 60,5.03 68,4 76,5.54 84,6.05"/><polyline class="now" points="84,6.05 92,10.15"/><circle cx="92" cy="10.15" r="3"/></svg></dd>
</div>
</dl>
</section>
</div>
.ukc-chart-kpi-tiles { 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-chart-kpi-tiles *, .ukc-chart-kpi-tiles *::before, .ukc-chart-kpi-tiles *::after { box-sizing: border-box; }
.ukc-chart-kpi-tiles :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-chart-kpi-tiles :where(ul, ol) { padding: 0; list-style: none; }
.ukc-chart-kpi-tiles :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-chart-kpi-tiles :where(a) { color: inherit; }
.ukc-chart-kpi-tiles svg { flex: none; }
.ukc-chart-kpi-tiles { container-type: inline-size; inline-size: 100%; }
.ukc-chart-kpi-tiles .ttl { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ukc-chart-kpi-tiles .sub { margin-top: 2px; font-size: 13px; color: var(--uk-muted); }
.ukc-chart-kpi-tiles .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-chart-kpi-tiles .kp { max-width: 720px; }
.ukc-chart-kpi-tiles .hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.ukc-chart-kpi-tiles .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--uk-border-width); margin-top: 12px; overflow: hidden; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-line); box-shadow: var(--uk-card-shadow); }
.ukc-chart-kpi-tiles .tile { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; background: var(--uk-surface); }
.ukc-chart-kpi-tiles dt { font-size: 13px; color: var(--uk-muted); }
.ukc-chart-kpi-tiles dd { margin: 0; }
.ukc-chart-kpi-tiles .val { margin-top: 2px; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.ukc-chart-kpi-tiles .dl { display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1.4 var(--uk-font-mono, ui-monospace, monospace); color: var(--uk-ink); }
.ukc-chart-kpi-tiles .dl.bad { color: var(--uk-danger); }
.ukc-chart-kpi-tiles .tr { margin-top: auto; padding-top: 10px; }
.ukc-chart-kpi-tiles .tr svg { display: block; width: 100%; max-width: 132px; height: auto; overflow: visible; }
.ukc-chart-kpi-tiles .tr polyline { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.ukc-chart-kpi-tiles .tr .past { stroke: color-mix(in srgb, var(--uk-ink) 38%, var(--uk-paper)); }
.ukc-chart-kpi-tiles .tr .now { stroke: var(--uk-accent); stroke-width: 2; }
.ukc-chart-kpi-tiles .tr circle { fill: var(--uk-accent); stroke: var(--uk-surface); stroke-width: 2; }
@container (min-width: 600px) { .ukc-chart-kpi-tiles .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 340px) { .ukc-chart-kpi-tiles .tile { padding: 12px; } .ukc-chart-kpi-tiles .val { font-size: 22px; } }
More charts and kpis
All 24Hours by crewLast 8 weeks, one shared scale Crew Trend This week Change Reyes crew 162 h +4.5% Akande crew 138 h +3.0% Ortega crewDown 5 weeks 118 h −4.8% Lindgren crew 100 h +3.1% Park crew 96 h −2.0% Job sheets filed
312 in 16 weeks · busiest day Tue, Oct 13, with 10
Quote to cash, last 90 days
37% of quotes become paid jobs. Most are lost after the client opens the quote.
80% opened · 24 never opened
53% accepted · 45 lost here
94% invoiced · 3 not yet
92% paid · 4 overdue
October against target
Two of three on target. Billable hours fell short.
-
Invoiced$28,400 / $26,0009% over
-
Billable hours612 h / 640 h28 h short
-
Gross margin34.2% / 32%2.2 pts over
-
27%
of October's invoices were paid late
Up from 19% in September
- Paid late27
- Paid on time58
- Still open15
Quoted against actual hours
Last 20 jobs · 9 ran over quote
020406080 20406080