Notifications
Notifications surface timely feedback—successes, warnings, errors, and neutral updates—without derailing the current task. Keep them short, scannable, and dismissible so they inform rather than interrupt.
Tailor the tone to the message: confirm completed actions, warn about risks, or highlight required follow-up. Ensure keyboard users can reach controls, and place notifications near the action that triggered them when context matters.
Regular
Regular notifications sit inline with surrounding content or at the top of a region to deliver status. Use them sparingly so each message feels relevant, and favor concise copy that states what happened and what to do next.
Your changes have been saved. It can take a few minutes before they are visible to everyone.
Accessibility: announce important alerts via polite or assertive ARIA live regions (aria-live="polite|assertive") and give every notification a clear role. Provide enough color contrast and avoid relying on color alone to convey meaning.
<div class="notification"></div>
Close
Closable notifications give users agency to clear messages that linger after they are read. Position the close control consistently (top-right), make it keyboard-focusable, and preserve padding so text doesn’t jump when the icon is present.
Your changes have been saved. It can take a few minutes before they are visible to everyone.
Close control tips: make it a <button>, so it works with the keyboard, and give it a name with aria-label, because it only shows an icon; ensure focus returns to a logical element after dismissal, and consider auto-dismiss for low-severity messages with enough dwell time to be read.
<div class="notification">
...
<button type="button" class="control close" aria-label="Dismiss"><svg>...</svg></button>
</div>
Icons
Iconified notifications pair a glyph with copy to convey severity at a glance—warnings, info, success. Keep icon styles consistent with your typography, and ensure they don’t overpower the headline or body text.
Scheduled maintenance: on Sunday between 02:00 and 04:00 the catalogue can’t be searched and orders can’t be placed. Orders placed before that time will be processed as usual on Monday morning. We apologise for the inconvenience.
<div class="notification">
<svg class="icon">...</svg>
...
</div>
Colors
Color-coded notifications lean on the Catppuccin palette to reinforce meaning: warm tones for warnings, cool for info, and greens for success. Maintain readable contrast and reserve saturated hues for higher-severity messages.
New comment
Helen replied to your note on “The Odyssey, book six”.
Reminder
Your reading group meets tomorrow at 19:30 in the library.
Welcome back
We saved the list you were working on last time.
New feature
You can now export any list as a spreadsheet.
Payment failed
Your card was declined. Check the details or choose another payment method.
Connection lost
We’ll keep trying to reconnect. Your changes are stored until then.
Storage almost full
You have used 95% of your storage. Remove old files to make room.
Scheduled maintenance
The catalogue is unavailable on Sunday between 02:00 and 04:00.
Order confirmed
Order 2024-0613 has been placed and will be shipped within two days.
Synchronised
All devices now show the same version of your lists.
Tip
Press the slash key to jump to the search field from anywhere.
Update available
A new version of the app is ready. Restart to install it.
Information
Prices shown include VAT and exclude shipping costs.
Invitation
Katrien invited you to collaborate on “Classics for schools”.
Archived
The list “Summer reading 2023” was moved to the archive.
Color guidance: align hues with severity consistently and provide a text label for the state. Review contrast ratios for icons and text against backgrounds, and see the Catppuccin palette for the full range.
<div class="notification rosewater">...</div>
<div class="notification flamingo">...</div>
<div class="notification pink">...</div>
<div class="notification mauve">...</div>
<div class="notification red">...</div>
<div class="notification maroon">...</div>
<div class="notification peach">...</div>
<div class="notification yellow">...</div>
<div class="notification green">...</div>
<div class="notification teal">...</div>
<div class="notification sky">...</div>
<div class="notification sapphire">...</div>
<div class="notification blue">...</div>
<div class="notification lavender">...</div>
<div class="notification gray">...</div>
E-ink: in the e-ink theme every notification is black with white text, whatever its color class. The icon and the words have to tell what kind of message it is.
Sticky
Sticky notifications remain on screen until explicitly dismissed, useful for critical alerts or messages that require acknowledgment. Anchor them near related content or at the top of a container, and avoid covering essential controls.
The catalogue will be unavailable on Sunday between 02:00 and 04:00 for scheduled maintenance.
Sticky notifications stay at the top of their container while the content below scrolls underneath them.
That makes them suitable for messages that should remain visible, such as planned maintenance or an unsaved draft.
A sticky message is only useful when it is important. Too many of them and people stop reading.
Always include a way to close the notification, and remember the choice so it doesn’t come back on the next page.
<div class="notification sticky"></div>