Components / Selects and toggles
Checkbox list
Square checkboxes in a list with a select-all row at the top showing the mixed state.
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-toggle-checkbox-list">
<div class="cl">
<label class="all"><span class="b mixed"></span> All crews <span class="n">2 of 4</span></label>
<label><span class="b on"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span> North crew</label>
<label><span class="b on"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span> South crew</label>
<label><span class="b"></span> Weekend crew</label>
<label><span class="b"></span> Subcontractors</label>
</div>
</div>
.ukc-toggle-checkbox-list { 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-toggle-checkbox-list *, .ukc-toggle-checkbox-list *::before, .ukc-toggle-checkbox-list *::after { box-sizing: border-box; }
.ukc-toggle-checkbox-list :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-checkbox-list :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-checkbox-list :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-checkbox-list :where(a) { color: inherit; }
.ukc-toggle-checkbox-list svg { flex: none; }
.ukc-toggle-checkbox-list .cl { display: grid; gap: 2px; max-width: 280px; }
.ukc-toggle-checkbox-list label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: min(var(--uk-radius-sm), 8px); cursor: pointer; font-size: 15px; }
.ukc-toggle-checkbox-list label:hover { background: var(--ink-soft); }
.ukc-toggle-checkbox-list .all { font-weight: 600; border-bottom: 1px solid var(--uk-line); border-radius: 0; margin-bottom: 4px; }
.ukc-toggle-checkbox-list .n { margin-left: auto; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); font-weight: 400; }
.ukc-toggle-checkbox-list .b { width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: min(var(--uk-radius-sm), 4px); background: var(--uk-paper); }
.ukc-toggle-checkbox-list .b.on { background: var(--uk-accent); border-color: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-toggle-checkbox-list .b.mixed { background: var(--uk-accent); border-color: var(--uk-accent); }
.ukc-toggle-checkbox-list .b.mixed::after { content: ""; width: 8px; height: 2px; background: var(--uk-accent-ink); }
More selects and toggles
All 28Send receipts automatically
Clients get a receipt the moment a payment clears.
Late payment reminders
A polite nudge 3 days after the due date.
Share job photos with clients
Photos stay private to your crew when this is off.
- 0%25%50%
Trades on this job 3 selected