Components / Alerts and banners
Cookie banner
A plain cookie notice where saying no is as easy as saying yes, plus a link to choose.
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-cookie-banner">
<div class="cb" role="region" aria-label="Cookies"><p>We use one cookie to keep you signed in. With your OK we also count visits, without ads or tracking across sites. <a href="#">Choose cookies</a></p><div class="b"><button type="button">Reject</button><button type="button">Accept</button></div></div>
</div>
.ukc-alert-cookie-banner { 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-cookie-banner *, .ukc-alert-cookie-banner *::before, .ukc-alert-cookie-banner *::after { box-sizing: border-box; }
.ukc-alert-cookie-banner :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-cookie-banner :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-cookie-banner :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-cookie-banner :where(a) { color: inherit; }
.ukc-alert-cookie-banner svg { flex: none; }
.ukc-alert-cookie-banner .cb { max-width: 640px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 18px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-lg); background: var(--uk-paper); box-shadow: var(--uk-shadow-float, 0 8px 24px rgba(0,0,0,0.12)); font-size: 14px; }
.ukc-alert-cookie-banner p { flex: 1 1 320px; }
.ukc-alert-cookie-banner a { color: var(--uk-accent); }
.ukc-alert-cookie-banner .b { display: flex; gap: 8px; }
.ukc-alert-cookie-banner .b button { padding: 9px 16px; border: 1px solid var(--uk-ink); border-radius: var(--uk-radius-md); background: var(--uk-paper); font-weight: 600; cursor: pointer; }
More alerts and banners
All 26Saturday, 1 Nov · 9 to 11 PM PT (midnight to 2 AM ET)
Scheduled maintenance. Invoices can't be sent during the window. Job sheets keep saving on your phone and sync after.
- You have used 85% of your photo storage8.5 of 10 GB
Older photos can move to the archive, or add storage.
- A new version of Halden is ready.