Components / Selects and toggles
Checkbox tiles
Checkboxes inside bordered tiles, with a description line, so the whole tile is the target.
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-uswds-tiles">
<div class="tiles">
<label class="tile on"><input type="checkbox" checked><span class="box"><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="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span><span class="t">Framing</span><span class="d">Walls, roofs, and floors</span></span></label>
<label class="tile"><input type="checkbox"><span class="box"><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="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span><span class="t">Drywall</span><span class="d">Hang, tape, and finish</span></span></label>
<label class="tile"><input type="checkbox"><span class="box"><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="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span><span class="t">Trim</span><span class="d">Doors, base, and casing</span></span></label>
</div>
</div>
.ukc-toggle-uswds-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-toggle-uswds-tiles *, .ukc-toggle-uswds-tiles *::before, .ukc-toggle-uswds-tiles *::after { box-sizing: border-box; }
.ukc-toggle-uswds-tiles :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-uswds-tiles :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-uswds-tiles :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-uswds-tiles :where(a) { color: inherit; }
.ukc-toggle-uswds-tiles svg { flex: none; }
.ukc-toggle-uswds-tiles .tiles { display: grid; gap: 8px; max-width: 380px; }
.ukc-toggle-uswds-tiles .tile { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 14px; border: 2px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); cursor: pointer; }
.ukc-toggle-uswds-tiles .tile.on { border-color: var(--uk-accent); background: var(--tint); }
.ukc-toggle-uswds-tiles input { position: absolute; opacity: 0; }
.ukc-toggle-uswds-tiles .box { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--uk-ink); border-radius: 2px; color: transparent; background: var(--uk-paper); }
.ukc-toggle-uswds-tiles input:checked + .box { background: var(--uk-accent); border-color: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-toggle-uswds-tiles .t { display: block; font-weight: 700; }
.ukc-toggle-uswds-tiles .d { display: block; font-size: 14px; color: var(--uk-muted); }
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%