Components / Alerts and banners
Warning text
A round exclamation mark and bold text, for the one thing people must not miss on a page.
Warning You can be fined up to $5,000 if you start work without a permit.
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-govuk-warning">
<div class="w"><span class="mark" aria-hidden="true">!</span><strong><span class="sr">Warning</span> You can be fined up to $5,000 if you start work without a permit.</strong></div>
</div>
.ukc-alert-govuk-warning { 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-govuk-warning *, .ukc-alert-govuk-warning *::before, .ukc-alert-govuk-warning *::after { box-sizing: border-box; }
.ukc-alert-govuk-warning :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-alert-govuk-warning :where(ul, ol) { padding: 0; list-style: none; }
.ukc-alert-govuk-warning :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-alert-govuk-warning :where(a) { color: inherit; }
.ukc-alert-govuk-warning svg { flex: none; }
.ukc-alert-govuk-warning .w { display: flex; gap: 16px; align-items: center; max-width: 560px; }
.ukc-alert-govuk-warning .mark { flex: none; width: 35px; height: 35px; border-radius: 999px; display: grid; place-items: center; background: var(--uk-ink); color: var(--uk-paper); font-weight: 700; font-size: 26px; line-height: 1; }
.ukc-alert-govuk-warning strong { font-size: 19px; }
.ukc-alert-govuk-warning .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
More alerts and banners
All 26Application 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.
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.
- Invoice sent to Reyes FramingPhotos uploaded