Components / Alerts and banners
Left-ruled alerts
A heavy left rule, a heading, and a sentence. Info, warning, and error share the same shape.
Permit renewal opens Monday
Renewals for 2027 permits start on 3 November.
Your session ends in 5 minutes
Save your work to keep your answers.
Payment declined
Try a different card or contact your bank.
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-uswds-alert">
<div class="a"><h4>Permit renewal opens Monday</h4><p>Renewals for 2027 permits start on 3 November.</p></div>
<div class="a warn"><h4>Your session ends in 5 minutes</h4><p>Save your work to keep your answers.</p></div>
<div class="a err"><h4>Payment declined</h4><p>Try a different card or contact your bank.</p></div>
</div>
.ukc-alert-uswds-alert { 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-uswds-alert *, .ukc-alert-uswds-alert *::before, .ukc-alert-uswds-alert *::after { box-sizing: border-box; }
.ukc-alert-uswds-alert :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-uswds-alert :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-uswds-alert :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-uswds-alert :where(a) { color: inherit; }
.ukc-alert-uswds-alert svg { flex: none; }
.ukc-alert-uswds-alert .a { max-width: 560px; margin-bottom: 10px; padding: 14px 16px 14px 20px; border-left: 8px solid var(--uk-accent); background: var(--tint); }
.ukc-alert-uswds-alert .a.warn { border-left-color: var(--uk-highlight); background: var(--high-tint); }
.ukc-alert-uswds-alert .a.err { border-left-color: var(--uk-danger); background: var(--danger-tint); }
.ukc-alert-uswds-alert h4 { font-size: 18px; margin-bottom: 4px; }
More alerts and banners
All 26- Invoice sent to Reyes FramingPhotos uploaded
Saturday, 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.