Components / Selects and toggles
Setting rows
A title, a line of explanation, and a switch on the right. The settings page, done once.
Send 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.
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-setting-rows">
<div class="set">
<div class="r"><div><p class="t">Send receipts automatically</p><p class="d">Clients get a receipt the moment a payment clears.</p></div><button class="sw on" role="switch" aria-checked="true" type="button" aria-label="Send receipts automatically"><i></i></button></div>
<div class="r"><div><p class="t">Late payment reminders</p><p class="d">A polite nudge 3 days after the due date.</p></div><button class="sw on" role="switch" aria-checked="true" type="button" aria-label="Late payment reminders"><i></i></button></div>
<div class="r"><div><p class="t">Share job photos with clients</p><p class="d">Photos stay private to your crew when this is off.</p></div><button class="sw" role="switch" aria-checked="false" type="button" aria-label="Share job photos with clients"><i></i></button></div>
</div>
</div>
.ukc-toggle-setting-rows { 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-setting-rows *, .ukc-toggle-setting-rows *::before, .ukc-toggle-setting-rows *::after { box-sizing: border-box; }
.ukc-toggle-setting-rows :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-setting-rows :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-setting-rows :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-setting-rows :where(a) { color: inherit; }
.ukc-toggle-setting-rows svg { flex: none; }
.ukc-toggle-setting-rows .set { max-width: 520px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); }
.ukc-toggle-setting-rows .r { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--uk-line); }
.ukc-toggle-setting-rows .r:last-child { border-bottom: 0; }
.ukc-toggle-setting-rows .t { font-weight: 600; }
.ukc-toggle-setting-rows .d { font-size: 14px; color: var(--uk-muted); }
.ukc-toggle-setting-rows .sw { position: relative; flex: none; width: 40px; height: 22px; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; }
.ukc-toggle-setting-rows .sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--uk-paper); transition: left var(--uk-motion-duration, 160ms); }
.ukc-toggle-setting-rows .sw.on { background: var(--uk-accent); }
.ukc-toggle-setting-rows .sw.on i { left: 21px; }
More selects and toggles
All 28- 0%25%50%
Trades on this job 3 selected
Label color
Accent