Components / Selects and toggles
Switch with state text
A rounded switch with the label above and the current state written to its right, in two sizes.
Auto-send invoices
On
Round hours up
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-carbon-toggle">
<div class="t"><p class="l">Auto-send invoices</p><div class="line"><button class="sw on" role="switch" aria-checked="true" type="button" aria-label="Auto-send invoices"><i></i></button><span>On</span></div></div>
<div class="t"><p class="l">Round hours up</p><div class="line"><button class="sw sm" role="switch" aria-checked="false" type="button" aria-label="Round hours up"><i></i></button><span>Off</span></div></div>
</div>
.ukc-toggle-carbon-toggle { 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-carbon-toggle *, .ukc-toggle-carbon-toggle *::before, .ukc-toggle-carbon-toggle *::after { box-sizing: border-box; }
.ukc-toggle-carbon-toggle :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-toggle-carbon-toggle :where(ul, ol) { padding: 0; list-style: none; }
.ukc-toggle-carbon-toggle :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-toggle-carbon-toggle :where(a) { color: inherit; }
.ukc-toggle-carbon-toggle svg { flex: none; }
.ukc-toggle-carbon-toggle .t { display: grid; gap: 8px; margin-bottom: 14px; }
.ukc-toggle-carbon-toggle .l { font-size: 12px; color: var(--uk-muted); }
.ukc-toggle-carbon-toggle .line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ukc-toggle-carbon-toggle .sw { position: relative; width: 48px; height: 24px; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; }
.ukc-toggle-carbon-toggle .sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--uk-paper); transition: left var(--uk-motion-duration, 160ms); }
.ukc-toggle-carbon-toggle .sw.on { background: var(--uk-accent); }
.ukc-toggle-carbon-toggle .sw.on i { left: 27px; }
.ukc-toggle-carbon-toggle .sw.sm { width: 32px; height: 16px; }
.ukc-toggle-carbon-toggle .sw.sm i { width: 10px; height: 10px; }
.ukc-toggle-carbon-toggle .sw:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
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.