Feedback and overlays
Alert, banner and callout
Three boxes for a message that stays on the page. .kui-alert reports the state of the thing on screen, .kui-banner runs across the top of the whole page, and .kui-callout is a note inside running text. Each comes in the tones info, ok, warn, danger and neutral, and each tone carries an icon as well as a colour.
Examples
Alert in every tone
An alert has an icon, an optional title and the text. The title says what happened; the text says what to do next.
The import runs overnight
Invoices you upload after 22:00 appear in the list tomorrow morning.
Bank account connected
Payments from Raiffeisen banka are matched to invoices every hour.
The certificate expires in 9 days
Renew the qualified certificate before 6 December 2026, or signing stops working.
The tax return was not sent
The Poreska uprava service refused the file: the field “Matični broj” is empty.
This project is archived. You can read it, but nobody can change it.
<div class="kui-alert kui-alert--info"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#info"></use></svg><div class="kui-alert__body"><p class="kui-alert__title">The import runs overnight</p><p>Invoices you upload after 22:00 appear in the list tomorrow morning.</p></div></div>
<div class="kui-alert kui-alert--ok"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#circle-check"></use></svg><div class="kui-alert__body"><p class="kui-alert__title">Bank account connected</p><p>Payments from Raiffeisen banka are matched to invoices every hour.</p></div></div>
<div class="kui-alert kui-alert--warn"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#triangle-alert"></use></svg><div class="kui-alert__body"><p class="kui-alert__title">The certificate expires in 9 days</p><p>Renew the qualified certificate before 6 December 2026, or signing stops working.</p></div></div>
<div class="kui-alert kui-alert--danger"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#circle-x"></use></svg><div class="kui-alert__body"><p class="kui-alert__title">The tax return was not sent</p><p>The Poreska uprava service refused the file: the field “Matični broj” is empty.</p></div></div>
<div class="kui-alert kui-alert--neutral"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#archive"></use></svg><div class="kui-alert__body"><p>This project is archived. You can read it, but nobody can change it.</p></div></div>
With actions and a close button
Actions go in .kui-alert__actions. A close button is .kui-alert__close, an icon button with an aria-label. Only offer it when the message is not needed any more once read.
Two invoices have the same number
INV-2026-0142 was issued to Đorđević i sinovi d.o.o. and to Müller Bauunternehmung GmbH. Change one of them before you send the monthly report.
<div class="kui-alert kui-alert--warn">
<svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#triangle-alert"></use></svg>
<div class="kui-alert__body">
<p class="kui-alert__title">Two invoices have the same number</p>
<p>INV-2026-0142 was issued to Đorđević i sinovi d.o.o. and to Müller Bauunternehmung GmbH. Change one of them before you send the monthly report.</p>
<div class="kui-alert__actions">
<a class="kui-button kui-button--sm" href="#alert-dup">Open both invoices</a>
<button class="kui-button kui-button--sm kui-button--ghost" type="button">Ignore</button>
</div>
</div>
<button class="kui-button kui-button--icon kui-button--ghost kui-button--sm kui-alert__close" type="button" aria-label="Dismiss"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#close"></use></svg></button>
</div>
Banner
A banner sits above the top bar and speaks about the whole product: maintenance, a trial that ends, a version that changes. Put at most one on a page.
<div class="kui-banner kui-banner--warn"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#triangle-alert"></use></svg><span>Planned maintenance on Sunday 30 November from 02:00 to 04:00. Saving is paused during that time.</span><a class="kui-link" href="#alert-status">Status page</a></div>
<div class="kui-banner kui-banner--accent"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#sparkles"></use></svg><span>Your trial ends in 5 days.</span><a class="kui-link" href="#alert-plans">Choose a plan</a></div>
<div class="kui-banner kui-banner--danger"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#wifi-off"></use></svg><span>The server cannot be reached. Changes are kept on this device.</span></div>
Callout in running text
A callout has a bar on the start side instead of a full border. Use it for a note, a tip, a warning or an example inside an article or a help page.
Note
Amounts are shown with the currency of the client, not of your company.
Tip
Press Ctrl K to open any invoice by its number.
Before you start
Export a copy of the data. The change of the fiscal year cannot be undone.
Do not share this key
Anyone with the key can sign documents in your company’s name.
Example
Die Umsatzsteuervoranmeldungsfrist endet am zehnten Tag des Folgemonats.
Član 7: Poslodavac je dužan da zaposlenom obezbedi uslove rada u skladu sa zakonom.
<div class="kui-callout kui-callout--info"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#info"></use></svg><div class="kui-callout__body"><p class="kui-callout__title">Note</p><p>Amounts are shown with the currency of the client, not of your company.</p></div></div>
<div class="kui-callout kui-callout--ok"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#lightbulb"></use></svg><div class="kui-callout__body"><p class="kui-callout__title">Tip</p><p>Press <kbd class="kui-kbd">Ctrl</kbd> <kbd class="kui-kbd">K</kbd> to open any invoice by its number.</p></div></div>
<div class="kui-callout kui-callout--warn"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#triangle-alert"></use></svg><div class="kui-callout__body"><p class="kui-callout__title">Before you start</p><p>Export a copy of the data. The change of the fiscal year cannot be undone.</p></div></div>
<div class="kui-callout kui-callout--danger"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#circle-x"></use></svg><div class="kui-callout__body"><p class="kui-callout__title">Do not share this key</p><p>Anyone with the key can sign documents in your company’s name.</p></div></div>
<div class="kui-callout kui-callout--accent"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#book-open"></use></svg><div class="kui-callout__body"><p class="kui-callout__title">Example</p><p>Die Umsatzsteuervoranmeldungsfrist endet am zehnten Tag des Folgemonats.</p></div></div>
<div class="kui-callout kui-callout--neutral"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#quote"></use></svg><div class="kui-callout__body"><p>Član 7: Poslodavac je dužan da zaposlenom obezbedi uslove rada u skladu sa zakonom.</p></div></div>
States
Every state
An alert has no hover or focus state of its own; only its buttons and links do. A long text wraps, and a long word breaks inside the body. Without a title the text alone carries the message.
Text only, no title.
Rechtsschutzversicherungsgesellschaften konnten nicht geladen werden
Pokušajte ponovo za nekoliko minuta. Ako se greška ponovi, pišite podršci na podrska@example.com i navedite broj zahteva 7f3c-91ad-22e0.
<div class="kui-stack">
<div class="kui-alert kui-alert--info"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#info"></use></svg><div class="kui-alert__body"><p>Text only, no title.</p></div></div>
<div class="kui-alert kui-alert--danger"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#circle-x"></use></svg><div class="kui-alert__body"><p class="kui-alert__title">Rechtsschutzversicherungsgesellschaften konnten nicht geladen werden</p><p>Pokušajte ponovo za nekoliko minuta. Ako se greška ponovi, pišite podršci na podrska@example.com i navedite broj zahteva 7f3c-91ad-22e0.</p></div></div>
</div>
Classes and attributes
.kui-alert- A box about the state of what is on screen. Children: an icon, .kui-alert__body, an optional .kui-alert__close.
.kui-alert__title, .kui-alert__actions- The bold first line, and the row of buttons under the text.
.kui-banner- A full-width strip at the top of the page: an icon, a span of text and an optional link.
.kui-callout, .kui-callout__body, .kui-callout__title- A note inside running text, with a bar on the start side.
--info, --ok, --warn, --danger, --neutral- The tone, on all three. A banner and a callout also take --accent.
role="status" or role="alert"- Only on a box that appears while the person works: status for news, alert for an error that needs action now.
Accessibility
- A box that is in the page from the start needs no role: it is read in its place like any other text.
- A box added later must be announced. Put
role="status"on it for good news androle="alert"for an error. The role must be on the element before its text arrives. - The tone is never said by colour alone. The icon differs per tone, and the title says it in words.
- The icons are decorative (aria-hidden); the words carry the meaning.
- The text keeps 4.5:1 against the tinted background in every theme and both modes.
Do and do not
Do
- Say what happened and what to do next, in that order.
- Keep an alert next to the thing it is about: above a form, at the top of a table.
- Use a toast instead for news about something that just finished.
Do not
- Do not stack several alerts; merge them into one with a list.
- Do not use a banner for a message about one form or one record.
- Do not write “Error” as the title; name the problem.