Components / Selects and toggles
Weekday picker
Seven day tiles you tick on and off, with a closed day struck through and a running count underneath. For standing orders, opening days, and repeats.
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-weekday-picker">
<fieldset>
<legend>Deliver bread on</legend>
<div class="body">
<p class="hint">Standing order for Cafe Lindqvist. Change it any time before 4 pm the day before.</p>
<div class="days">
<label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Monday" checked><span aria-hidden="true">Mon<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></label><label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Tuesday"><span aria-hidden="true">Tue<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></label><label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Wednesday" checked><span aria-hidden="true">Wed<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></label><label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Thursday"><span aria-hidden="true">Thu<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></label><label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Friday" checked><span aria-hidden="true">Fri<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></label><label class="day"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Saturday" checked><span aria-hidden="true">Sat<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></label><label class="day shut"><input type="checkbox" name="ukc-toggle-weekday-picker-day" aria-label="Sunday, closed" disabled><span aria-hidden="true">Sun<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></label>
</div>
<p class="sum"><span class="n" aria-live="polite"></span><span class="shut-note">We do not bake on Sundays.</span></p>
</div>
</fieldset>
</div>
.ukc-toggle-weekday-picker { 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-weekday-picker *, .ukc-toggle-weekday-picker *::before, .ukc-toggle-weekday-picker *::after { box-sizing: border-box; }
.ukc-toggle-weekday-picker :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-weekday-picker :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-weekday-picker :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-weekday-picker :where(a) { color: inherit; }
.ukc-toggle-weekday-picker svg { flex: none; }
.ukc-toggle-weekday-picker fieldset { margin: 0; padding: 0; border: 0; min-width: 0; max-width: 400px; }
.ukc-toggle-weekday-picker legend { padding: 0; margin-bottom: 4px; font-family: var(--uk-font-display, inherit); font-size: 19px; font-weight: 600; }
.ukc-toggle-weekday-picker .body { display: grid; gap: 12px; counter-reset: ukc-toggle-weekday-picker; }
.ukc-toggle-weekday-picker .hint { font-size: 13px; color: var(--uk-muted); }
.ukc-toggle-weekday-picker .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ukc-toggle-weekday-picker .day { position: relative; display: block; cursor: pointer; }
.ukc-toggle-weekday-picker .day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ukc-toggle-weekday-picker .day input:checked { counter-increment: ukc-toggle-weekday-picker; }
.ukc-toggle-weekday-picker .day > span { display: grid; justify-items: center; align-content: center; gap: 2px; height: 56px; border: var(--uk-border-width) solid var(--line-strong); border-radius: min(var(--uk-radius-md), 10px); background: var(--uk-paper); color: var(--uk-muted); font-size: 13px; }
.ukc-toggle-weekday-picker .day svg { opacity: 0; }
.ukc-toggle-weekday-picker .day:hover > span { border-color: var(--uk-ink); color: var(--uk-ink); }
.ukc-toggle-weekday-picker .day input:checked + span { border-color: var(--uk-ink); background: var(--uk-ink); color: var(--uk-paper); font-weight: 700; }
.ukc-toggle-weekday-picker .day input:checked + span svg { opacity: 1; }
.ukc-toggle-weekday-picker .day input:focus-visible + span { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-toggle-weekday-picker .day.shut { cursor: not-allowed; }
.ukc-toggle-weekday-picker .day.shut > span, .ukc-toggle-weekday-picker .day.shut:hover > span { border-style: dashed; border-color: var(--line-strong); color: var(--uk-muted); background: linear-gradient(to top right, transparent calc(50% - 0.75px), var(--line-strong) calc(50% - 0.75px), var(--line-strong) calc(50% + 0.75px), transparent calc(50% + 0.75px)); }
.ukc-toggle-weekday-picker .sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; }
.ukc-toggle-weekday-picker .n::before { content: "Deliveries a week: " counter(ukc-toggle-weekday-picker); font-weight: 600; }
.ukc-toggle-weekday-picker .shut-note { color: var(--uk-muted); }
More selects and toggles
All 28Skerry Line · crossing of 14 June
Live room BMics are hot. Knock and wait.Mics are muted. Come on in.
Trailer type
Dry van, 53 ftReefer, 53 ftFlatbed, 48 ft
Rates are this week's average, Reno to Boise.
Orders
38 open orders, newest first38 open orders in 4 stages38 open orders over 9 delivery days38 open orders, 31 inside the ring road