Plain data table
A caption, bold header row, rules between rows, and numbers aligned right. Nothing else.
| Crew | Jobs | Hours |
|---|---|---|
| North | 6 | 412 |
| South | 4 | 298 |
| Weekend | 2 | 96 |
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-table-govuk-table">
<div class="scroll"><table>
<caption>Hours logged by crew, October</caption>
<thead><tr><th scope="col">Crew</th><th scope="col" class="num">Jobs</th><th scope="col" class="num">Hours</th></tr></thead>
<tbody><tr><th scope="row">North</th><td class="num">6</td><td class="num">412</td></tr><tr><th scope="row">South</th><td class="num">4</td><td class="num">298</td></tr><tr><th scope="row">Weekend</th><td class="num">2</td><td class="num">96</td></tr></tbody>
</table></div>
</div>
.ukc-table-govuk-table { 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-table-govuk-table *, .ukc-table-govuk-table *::before, .ukc-table-govuk-table *::after { box-sizing: border-box; }
.ukc-table-govuk-table :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-table-govuk-table :where(ul, ol) { padding: 0; list-style: none; }
.ukc-table-govuk-table :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-table-govuk-table :where(a) { color: inherit; }
.ukc-table-govuk-table svg { flex: none; }
.ukc-table-govuk-table .scroll { overflow-x: auto; max-width: 100%; }
.ukc-table-govuk-table table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 17px; }
.ukc-table-govuk-table caption { text-align: left; font-weight: 700; font-size: 22px; margin-bottom: 12px; font-family: var(--uk-font-display, inherit); }
.ukc-table-govuk-table th, .ukc-table-govuk-table td { padding: 10px 20px 10px 0; border-bottom: 1px solid var(--uk-line); text-align: left; }
.ukc-table-govuk-table thead th { font-weight: 700; }
.ukc-table-govuk-table tbody th { font-weight: 400; }
.ukc-table-govuk-table .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
More tables and lists
All 26Invoice Client Status Amount INV-0412 Reyes Framing Paid $1,870.55 INV-0411 Whitfield Homes Sent $3,420.00 INV-0410 Bay Cabinets Overdue $980.10 INV-0409 Ortega Tile Paid $2,115.75 Permit fees, 2026 Permit Typical wait Fee Residential remodel 10 days $420 New deck 5 days $180 Electrical panel 3 days $95 Demolition 14 days $650 - Client
- Reyes Framing
- Site
- 12 Quarry Row, San Francisco
- Started
- 2 October 2026
- Crew
- 3 people · North crew
- Budget
- $18,000
- 1North crew412 h
- 2South crew298 h
- 3Weekend crew96 h
- 4Subcontractors61 h
Qty Description Rate Amount 14 Framing labor (hours) 85.00 1,190.00 40 Lumber, 2x6 16.06 642.40 1 Fasteners 38.15 38.15 Subtotal 1,870.55 Tax (8.6%) 160.87 Total due $2,031.42