Components / Alerts and banners
Undo with a timer
A snackbar whose ring drains while the undo is still on offer. It holds still while you hover or tab into it.
Cancelled your Thursday 7:30 AM reformer class
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-alert-undo-timer">
<div class="us" role="status">
<span class="dial" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke-width="3"><circle class="bg" cx="12" cy="12" r="9"/><circle class="fg" cx="12" cy="12" r="9" pathLength="100" transform="rotate(-90 12 12)"/></svg></span>
<p>Cancelled your Thursday 7:30 AM reformer class</p>
<button class="undo" type="button">Undo</button>
<button class="x" type="button" aria-label="Dismiss"><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="M6 6l12 12M18 6L6 18"/></svg></button>
</div>
</div>
.ukc-alert-undo-timer { 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-alert-undo-timer *, .ukc-alert-undo-timer *::before, .ukc-alert-undo-timer *::after { box-sizing: border-box; }
.ukc-alert-undo-timer :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-undo-timer :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-undo-timer :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-undo-timer :where(a) { color: inherit; }
.ukc-alert-undo-timer svg { flex: none; }
.ukc-alert-undo-timer .us { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 8px 8px 14px; border: 1px solid var(--uk-ink); border-radius: min(var(--uk-radius-md), 14px); background: var(--uk-paper); box-shadow: 0 10px 24px color-mix(in srgb, black 14%, transparent); font-size: 14px; }
.ukc-alert-undo-timer .dial { display: grid; }
.ukc-alert-undo-timer .bg { stroke: var(--ink-soft); }
.ukc-alert-undo-timer .fg { stroke: var(--uk-ink); stroke-dasharray: 100; animation: ukc-alert-undo-timer-drain 8s linear infinite; }
.ukc-alert-undo-timer .us:hover .fg, .ukc-alert-undo-timer .us:focus-within .fg { animation-play-state: paused; }
.ukc-alert-undo-timer p { min-width: 0; line-height: 1.35; }
.ukc-alert-undo-timer .undo { padding: 6px 12px; border: 0; border-radius: var(--uk-radius-md); background: var(--uk-ink); color: var(--uk-paper); font-size: 13px; font-weight: 600; cursor: pointer; }
.ukc-alert-undo-timer .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: var(--uk-radius-md); background: transparent; color: var(--uk-muted); cursor: pointer; }
.ukc-alert-undo-timer .x:hover { color: var(--uk-ink); }
.ukc-alert-undo-timer button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
@keyframes ukc-alert-undo-timer-drain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@media (prefers-reduced-motion: reduce) { .ukc-alert-undo-timer .fg { animation: none; } }
More alerts and banners
All 26Important
Inspections are paused on 24 and 25 December.
Book before 20 December to be seen this year.
Success
Your permit application was sent.
We emailed a copy to mara@reyesframing.com.
- Warning You can be fined up to $5,000 if you start work without a permit.
Application complete
Your reference number
HDN-2026-4417Two invoices are waiting for your approval.
We could not reach your bank. Payouts are on hold.
Sync paused Your crew's phones will catch up when they reconnect.
Export failed The CSV was larger than 10 MB. Narrow the date range.