Dustin Johnson ← Design Primitives
Design Primitive Reference · Part I · October 2026

Feedback & Notification

Messages, toasts and undo. A system that acts on the user's behalf has to say what it did, what went wrong, and what is still going on, and each of those has a right surface: the field, the page, the edge of the screen, or a dialog that stops everything. The decisions that keep the messages proportionate to what they report: which surface, how long it stays, who dismisses it, and what the words say.

I. The Vocabulary

Five surfaces carry everything a product says about itself, and they differ along two axes: how much they interrupt, and how long they stay. The inline message sits at its cause and stays until it's fixed. The banner sits at the top of the page and stays while its condition holds. The toast appears at the edge of the screen and leaves on its own. The dialog stops everything until it's answered. The badge counts what is waiting somewhere else. Pick by those two axes, never by how important the message feels to whoever wrote it.

Timetable office/ Sailings
07:40 Ostrand – Hollin QuayMV Tern · Sat 13 Feb · 184 of 240 booked
Swell warning after 14:00. The 15:20 return may be held at Hollin Quay.
2 · banner · page
Revised departure05:40Ostrand opens at 06:00. Enter 06:00 or later.
1 · inline · at its field
Crew list sent to MV Tern
3 · toast · 4 s · level 4
Inline 1 · banner 1 · toast 1 · badge 1 on one screen, none in hue · the dialog, raised, dims the rest once at .40 The five surfaces, each in its place · Right
SurfaceInterruptsStaysDismissed bySits
Inline messageNo one; read when the eye reaches its fieldUntil the cause is fixedThe fixAt the field or section, in the helper slot
BannerNo one; seen on arrivalWhile the condition holdsThe condition ending; × only when it's informationalUnder the page header; above the frame for the system
ToastThe edge of attention, briefly4–8 s; with an action, until acted onTime, ×, or its actionBottom-start of the window, level 4
DialogEveryone; the page is blockedUntil answeredA decisionCentred across, top at 12vh, over the scrim
BadgeNo one; a count of what waits elsewhereUntil those things are seenOpening what it countsOn the control that leads to them

Interruption and persistence are the whole decision, and they're independent. A dialog interrupts and stays; a toast barely interrupts and leaves; a banner doesn't interrupt and stays; an inline message is the quietest of all and stays the longest, because a field that is wrong stays wrong until someone changes it. The failures in this chapter are nearly all one surface standing in for another: a toast reporting an error that needs fixing, a dialog announcing a success, a banner pinned to the window for a notice read once. Each borrows a persistence or an interruption its message doesn't have.

Nothing here depends on hue. This chapter is written before Color (01), deliberately, so every kind of message is told apart by things that survive greyscale, colour blindness and a bright deck in the sun: the icon's shape (a circle with an i for information, a circle with a check for success, a triangle for a warning, an octagon for an error), the first word ("Couldn't", "Check", "Saved"), the weight of the sentence the user must act on, the strength of the edge, and the position next to the cause. When Color arrives it adds a hue to each, and none of the rules below change. An error that is only red looks, to about one man in twelve, like the text beside it.

The boundaries, stated once. Modal I owns the dialog, the scrim and the confirmation; this page uses them. Elevation I §VII put the toast at level 4, z 1300, above every scrim, and Motion I §IV gave it its entrance. Type III §VI set the voices: errors never smaller than the UI voice, a toast at the UI voice with its action underlined. Status, Badges & Counts (planned) owns the badge and the status word; Forms (planned) owns when validation runs; Loading & Skeleton States (planned) owns the spinner and the skeleton. The notification tray, the list of things other people did to your things, is Part II of this chapter.

Ask how much the message must interrupt and how long it stays true. The surface follows from the answers; the urgency the author feels doesn't come into it.

II. Choosing the Surface

Three questions, in order, choose the surface. Must the user decide before going on? Then a dialog, and nothing else. If not, what does the message belong to: a field, the page, an action just taken, or the whole product? A field gets an inline message, the page a banner, the product a system banner. An action gets a toast, unless the result must still be there when the user comes back, in which case it becomes the record's own state.

1 · Must they decide first?
2 · It belongs to
3 · Needed after they leave?
Move BK-40712 to the 09:50?
The 09:50 has 2 seats left and the fare is £4.40 more per passenger.
Passengers3The 09:50 has 2 seats left. Move 2, or choose another sailing.
This sailing is held at Hollin Quay. Bookings can't be moved onto it until it departs.
The timetable office is read-only on Sun 14 Feb, 02:00–03:00, for maintenance.
BK-40712 moved to the 09:50
BK-40712 · 3 passengers09:50 Ostrand – Carrow · MV FulmarMoved from the 07:40 by you at 10:42
A decision before going on → a dialog, whatever it belongs to · it names the cost on the verb A field → an inline message at the field · it stays until the value changes The page → a banner under its header · shown on every visit while it's true The product → a system banner above the frame · dismissable, back an hour before An action, not needed later → a toast · it stays here because it carries Undo An action, needed later → the record's own state · the booking says where it went and who moved it Three questions, one surface · each answer is Right for its case

Blocking comes first because it overrides everything else. A message that needs a decision, a move that will charge the passengers more, a delete that can't come back, is a dialog whether it belongs to a field or to the whole product, because every other surface lets the user carry on without answering. Most messages don't need a decision, and the commonest overuse of dialogs is for messages that only inform. Modal I §I gives the dialog's own test; this page adds that a dialog which only informs (an OK and nothing else) should be one of the other four surfaces.

Ownership decides the place. A message belongs where its cause is, so the user finds it by looking at the thing that's wrong. A wrong value belongs to its field, and the message sits under the field. A condition of the record (held, cancelled, read-only) belongs to its page, and the banner sits under the page's title. A fact about the product (maintenance, a degraded service, a trial ending) belongs to every page at once, so the banner moves above the frame. An action the user just took has no place on the screen, because the user is already somewhere else; that's the toast's job, and the only one.

Persistence decides between the toast and the record. A toast is gone in seconds, so anything the user may need later, "where did that booking go?", can't live only in a toast. The answer is to put the result where the user will look for it: the booking shows its new sailing and a line saying who moved it and when. The toast can still confirm the move as it happens; it just isn't the record of it. Things that happen while the user is away, done by other people, are the tray's, in Part II.

A decision gets a dialog. Everything else goes to the place it belongs to, and only a fresh action with nowhere to stand gets a toast.

III. The Inline Message

A message about a field sits under the field, in the helper's slot, and stays until the value changes. It is the UI voice at the ink, never smaller, with the icon of its kind on the first line, and the field's edge goes to 2px. A message about a group of fields sits under the group's title in the same voice. Inline is the default for anything the user typed: the cause and the message are in one glance.

Passengers · BK-40712
2 passengers need a date of birth before check-in opens at 06:30.section · under its title
Passenger 1Iris Calder
Date of birth14/06/1979DD/MM/YYYY
Passenger 2Tomas Vey
Date of birth31/02/1988February 1988 has 29 days.13 / 20 · ink · left = field leftedge 2 · ink
Passenger 3Ruth Okafor
Date of birthEnter Ruth Okafor's date of birth.
Passengers · BK-40712
There are 2 problems with this form. Check the passengers' details and try again.
Passenger 1Iris Calder
Date of birth14/06/1979DD/MM/YYYY
Passenger 2Tomas Vey
Date of birth31/02/1988DD/MM/YYYY
Passenger 3Ruth Okafor
Date of birthDD/MM/YYYY
Passengers · BK-40712
Passenger 1Iris Calder
Date of birth14/06/1979DD/MM/YYYY
Passenger 2Tomas Vey
Date of birth31/02/1988DD/MM/YYYYInvalid date
Passenger 3Ruth Okafor
Date of birthDD/MM/YYYY
Move a booking
Booking referenceBK-40712Found: 3 passengers on the 07:4012 / 16 · the helper's voice
Move to09:50 Ostrand – Carrow2 seats left
ReasonMissed connection
Passengers · BK-40712
Passenger 1Iris CalderLooks good
Date of birth14/06/1979Looks good
Passenger 2Tomas VeyLooks good
Date of birth31/02/1988February 1988 has 29 days.
Message left − field left 0 · 13/20 replaces the 12/16 helper in its 20 slot, nothing below moves · errors named by person · edge 1 → 2, ink A count with no names · 0 of 2 fields marked · the user rereads 6 fields to find 2 The reason only on hover · nothing on touch, nothing to a screen reader unless described · 2 fields marked, 0 explained One check, because "is this the right booking?" was the user's question · 12/16, the helper's slot 3 ticks and 1 error at one weight · the error is 1 line of 4 that look alike At the field, in the helper's slot · Right A summary with nothing marked · Wrong The reason in a tooltip · Avoid Success where the check was the question · Right "Looks good" under every field · Avoid

The helper's slot is the message's place, because the eye that finds the wrong field is already there. The message replaces the helper (the format hint is no use while the error states the problem) and sits on the field's left edge, so it reads as part of the field and not of the one below. It is 13/20 at the ink, a step up from the helper's 12/16, because Type III §VI ruled that an error is never smaller than the UI voice. The slot is 20 tall at rest, holding the helper, so the message that replaces it moves nothing below, which is Forms' (planned) rule for a field checked on blur. The field's own edge goes from the 1px strong hairline to 2px of ink, which Checkbox I §XIII keeps legible on its own at 3:1 and above. The octagon names the kind, the 2px names the field, and the sentence names the fix, so none of them needs a colour. The full field state matrix is Inputs II §XI's.

The summary alone is the common failure, and it ships because it's one component instead of one per field. It tells the user how many things are wrong and leaves them to find which. On a long form the summary is right as well as the field messages, never instead of them: a list at the top whose items name each field and link to it, which is what GOV.UK's error summary does and why it's copied so often. The tooltip saves the space and loses the message: on touch there is no hover, and a reason that only appears when the user points at the exact icon is a reason most users never read. When validation runs (on blur, on submit, while typing) belongs to Forms (planned); wherever it runs, this is where the message goes.

Inline success only where the check was the user's question. A booking reference that resolves, a vessel name that is free, a promo code that applies: the user typed it to find out, so the answer belongs in the slot, in the helper's voice with the check. A tick under every field that merely isn't wrong is noise, and it costs the error its contrast: one error among three "Looks good" lines is one line of four at the same weight and size. In the accessibility tree the field takes aria-invalid and the message is its aria-describedby, so a screen reader hears the reason when it reaches the field; on submit, focus moves to the first invalid field.

Put the message where the mistake is, in a voice no smaller than the field's, and keep it there until the value changes.

IV. The Banner

A banner reports a condition of the page, and sits under the page's header, on the content's edge, the width of the content, scrolling with it. One per page. It has a × only when it informs about something that doesn't change what the page can do; a banner about the page's state stays until the state ends. A banner about the whole product moves above the frame and spans it.

Manifests can now be exported as CSV from the sailing's menu.
info · circle i · .14 · 400
Saved. All 184 passengers have a seat on the 07:40.
success · circle check · .14 · 400
Check the 15:20 return. It may be held at Hollin Quay after 14:00.
warning · triangle · .52 · 600
Couldn't publish the manifest. MV Tern's crew list is missing a master.
error · octagon · .52 · 600
Manifests can now be exported as CSV from the sailing's menu.
info · #eceae6
Saved. All 184 passengers have a seat on the 07:40.
success · #e9e8e4
Check the 15:20 return. It may be held at Hollin Quay after 14:00.
warning · #ebe9e3
Couldn't publish the manifest. MV Tern's crew list is missing a master.
error · #e8e6e2
Four shapes · two edges, .14 at 1.31:1 and .52 at 3.22:1 · 600 only on the sentence to act on · the first words say the kind A hue-only set reduced to its luminance: 1.01–1.04:1 apart · no icon, no edge, no weight · four banners that look like one Info, success, warning, error without colour · Right Told apart by tint alone · Wrong

Four kinds, five signals, no hue. The icon's outline is the first: a circle for the two kinds that report, a triangle for the warning, an octagon for the error, the road-sign shapes most readers learned before they learned an interface. The first words are the second: an error starts with what failed ("Couldn't publish"), a warning with what to check, a success with what is now true. The edge is the third: information and success take the .14 hairline of a container, warning and error the .52 strong edge of a control, 3.22:1, because they're asking for something. Weight is the fourth: the sentence to act on is 600, the one emphasis the UI voice allows; an informational banner has nothing to act on and stays at 400. Position is the fifth, and the next specimen's subject. The tinted set is how a hue-only system reads for the reader who can't see the hues, and in print, and on a projector: four grey boxes, 1.03:1 apart.

The timetable office is read-only on Sun 14 Feb, 02:00–03:00, for maintenance.
system · full width · radius 0 · above the top bar
Timetable office/ Sailings
This sailing is held at Hollin Quay. Departure will be confirmed by 08:10.
pinned · 56 of 296 · every scroll position
This sailing is held at Hollin Quay. Departure will be confirmed by 08:10.
above the title · the page starts with a notice
07:40 Ostrand – Hollin QuayMV Tern · Sat 13 Feb · 184 of 240 booked
This sailing is held at Hollin Quay. Departure will be confirmed by 08:10.
16 under the header · content's edge · no ×: it's the page's state
Manifests can now be exported as CSV from the sailing's menu.
a second banner · 104 before the content
Passengers
  • Iris CalderBK-40712Adult
  • Tomas VeyBK-40712Adult
  • Ruth OkaforBK-40712Child
  • Ben HaleBK-40733Adult
  • Ada MossBK-40738Adult
  • Jon PellBK-40741Adult
The title first, then the condition, then the content · banner left = content left · it scrolls away with the header it explains The notice outranks the page's own name · the reader learns something is held before learning what 2 banners, 104px before the first passenger · the dismissable news sits in the same box style as the hold Pinned under the bar: 56 of 296 visible pixels, 19%, at every scroll position, for a sentence read once Two levels, never two banners in one: the product's above the frame, the page's under its header Under the page header · Right Above the page title · Avoid Two banners in one region · Wrong A page banner pinned to the window · Wrong The system banner above the frame · Right

Under the header, because the banner explains the page. The user arrives, reads where they are, and the next line says what's unusual about it; then the content. Above the title the notice outranks the page's own name, which is backwards for a page the user chose to open. The banner sits on the content's edge, the width of the content column, 16 below the header and 16 above the content, md 8 like any object on the page (Border I §II), at level 0 with no shadow. It scrolls with the page. Pinned under the top bar, it takes the same 48px at every scroll position for a sentence the user read once, and in a 296px viewport that's a sixth of the screen. A condition urgent enough to follow the user down the page is urgent enough to be a dialog, or it's the product's, and goes above the frame.

One banner per page. Two banners make the second one the same size as the first whatever it says, and a page with a hold and a feature announcement in identical boxes has told the user they matter equally. When two conditions are true at once the more severe one shows; the other waits until the first is resolved. A page that regularly needs two has put the second one in the wrong place: a feature announcement belongs in the tray or nowhere, and a condition of one field belongs to the field.

The × follows the condition. A banner that informs, the new export, the forecast, can be dismissed, and the dismissal is remembered per user and per object, so it doesn't return on the next visit to the same sailing. A banner that describes the page's state ("held", "cancelled, bookings are read-only") has no ×, because the user can't dismiss the state, and a closed banner on a held sailing is a page that lies by omission; it leaves when the state ends. The system banner spans the window above the top bar with no corners, as Border I gives every region of the frame, on the selected tone with the strong edge under it. It's dismissable for the session, comes back an hour before the window it announces, and there is only ever one. For assistive technology a banner present when the page loads is plain content; one that appears in response to something is a role="status" region, or role="alert" if it's an error.

The page's name, then its condition, then its content. One condition at a time, closed only when the user can do without it.

V. The Toast

A toast confirms an action the user just took, from the bottom-start corner of the window, at level 4, one at a time. Without an action it leaves on its own after 4 to 8 seconds, by its length; with an action it stays until it's used or closed. It never reports an error the user has to fix, and it never asks a question.

BK-40712 moved to the 09:50
Crew list sent to MV Tern6 crew · copied to the master
max 420 48 = 20 + 14 × 2 inset 16 · icon 16 · gap 12 Undo · underlined · 400 × 32 min 288 · 13/20 + 12/16 level 4 · #fff · md 8
One line 48 tall, with a detail line 66 · 13/20 event at 400, detail 12/16 muted at 5.33:1 · the action is the only underline Anatomy: an action toast and a plain one · Right

A toast is the UI voice on a raised, opaque surface. The event is 13/20 at 400, the detail, if there is one, 12/16 in the muted ink under it, and the action an underlined word at 400 (Type III §VI). The surface is level 4's: white with the level's key and ambient pair and a .10 edge, md 8, never glass (Elevation II §III). The dark chip many products use is a good toast in a system whose tooltips aren't dark; in this one the dark chip is the tooltip (Popover I §XI), and a toast that looks like one reads as a label for whatever is under the pointer. Width comes from the text, 288 to 420, and two lines is the most a toast holds; a message that needs three is a banner or a page. The icon is optional, and when it's there it's the kind's shape, at 16 on the first line.

Timetable office/ Bookings
BK-407123 passengers · 07:40 Ostrand – Hollin Quay
Revised departure05:4024-hour, Ostrand time
Couldn't save. Departure must be 06:00 or later.
Press the three buttons, in any order and as fast as you like The field still looks right · its cause 180px above, unmarked · the reason gone in 5 s · Save again fails the same way The newest replaces the current one · Right Each toast stacks on the last · Wrong An error the user must fix, in a toast · Wrong Copy link: 4 s. Send crew list: 6 s, it has a detail line. Move: stays, because it carries Undo. Point at a toast to stop its clock.
RuleValueWhy
Positionbottom-start · 24 from both edgesClear of the drawer and dialog footers at the end edge, where the commit buttons are; one place, learned once
Width288–420 · 1–2 linesFrom its text; a third line means it isn't a toast
Duration, no action4 s one line · 6 s with detail · 8 s ceilingLong enough to read twice at the edge of attention
Duration, with actionuntil used, closed, or replacedAn action on a timer is a time limit; WCAG 2.2.1
Clockstops on hover, focus, hidden tabA toast never runs out while the user is reading it or away
Count on screen1The newest replaces the current one, unless the current one carries an action: then it holds and the newer waits; repeats merge into a count
Motionin slow 300 · out base 200Opacity and 16px up in, fading in place out (Motion I §IV)
Level4 · z 1300Above every scrim, so it outlives the dialog that caused it

Bottom-start, because the end edge is taken. Drawers open from the end edge and dialogs put their commit at the end of their footer, so a toast in the bottom-end corner lands on Save, or on the very drawer the user is still working in. Top positions cover the page header and its actions, the most used row on the screen. The bottom-start corner is over the foot of the sidebar or the start of the content, the least busy place in most frames, and Material's snackbar converged on it for the same reasons. Any corner is better than two, though: the position is decided once for the product and never per message.

The newest replaces the current one. The toast the user is waiting for is the one about what they just did, and in a queue it waits behind the confirmation of the thing before; three quick actions put the third toast ten seconds late. So a new toast replaces the visible one at once, the old fading out as the new rises, and three of the same event become one, "3 bookings moved · Undo". Stacked, the corner fills with a column of messages, each with its own clock, in the order nobody reads them, and the Undo the user wants is one of three that look alike. One exception: a toast that carries an action is never replaced. "Link copied" arriving while "Moved to the 9:50 · Undo" is up waits behind it, because the Undo is the one the user may need and the copy is already done. A dismissed Undo isn't lost either: ⌘Z still takes back the last action, and the record keeps its history (section VI).

Never an error the user has to fix. The toast in the third frame is the most common misuse in the chapter: the save fails, the form stays as it was with nothing marked, and the only true thing on the screen is 180px from its cause and gone in five seconds. An error that blocks the user's goal belongs to its cause, inline, or in a banner at the top of the surface that failed (section XI). The toast can carry a failure only when nothing on screen is wrong and nothing needs fixing: "Couldn't send the crew list. It will retry at 10:45." Assistive technology hears a toast through a polite live region, never role="alert", and a toast never takes focus; its action is reachable with Tab from the end of the page or a shortcut, and the toast stays while focus is in it.

One toast, about the last thing the user did, in a corner chosen once. If they'd need to find it again, or fix something, it was never a toast.

VI. Undo Instead of Confirm

What can be taken back is done at once and offered back: the row goes, and a toast says what went with an Undo that restores it exactly. What can't be taken back gets a dialog that names it and counts it. A confirmation for a reversible action is a tax on every use to insure against a rare mistake, and it doesn't even work: users who confirm everything stop reading the question.

Timetable office/ BK-40712
Passengers4 on this booking
  • Iris CalderAdult · seat 14A
  • Tomas VeyAdult · seat 14B
  • Ruth OkaforChild · seat 14C
  • Ben OkaforChild · seat 14D
Remove any passenger A refund and an email leave the system at once · named and counted on the title and the verb · Cancel… opens it, Keep booking takes focus Removed at once, Undo in the toast · Right "Remove Iris Calder?" before every removal · Avoid An Undo that can't undo what already left · Wrong A refund and an email: the dialog · Right

Undo makes the common case free and the rare case recoverable. A dispatcher removes forty passengers a day and removes the wrong one perhaps once a month. A confirmation charges two clicks and a reading for each of the forty, so after a week the reading stops and the dialog is pressed through by reflex, which means it no longer protects the forty-first. Undo charges one click for each removal and two for the mistake, and it works when the mistake is noticed, which is after the act, not before it. This is Checkbox I §IX's optimistic update applied to verbs: show the result at once, keep the means of reversing it, and report the reversal in the same place.

What Undo Promises

Undo has to be true. It restores the object exactly: the row comes back in its old position, with its seat, and focus returns to it. That requires the action to be reversible underneath, which usually means a soft delete: the record is marked removed, hidden, and purged later, so restoring is a flag, not a re-creation that loses the seat to someone else. It also means anything that leaves the system waits. The passenger's email, a refund, a message to the vessel can't be recalled, so they're held until the undo window closes. The third frame is the failure: the Undo restores the row, but the "you've been removed from your booking" email went out the moment the row disappeared, so Undo has quietly done half of what it says.

The Undo Clock

The toast's clock and the undo window are different things. An Undo toast carries an action, so it stays until it's used, closed, or replaced (section V). The window is the server's: how long the soft delete is held before the side effects go. Make the window longer than the toast can plausibly last, at least the 10 seconds a user needs to notice, and keep Undo available after the toast has gone: ⌘Z for the last action, and the record's history ("Removed by you at 10:42 · Restore") for thirty days. When the window is genuinely short, because the emails go at the top of the minute, the toast says when: "Iris Calder will be emailed at 10:43 · Undo". The toast should never be the only way back; if closing it makes a change permanent, the user has been handed a timer they didn't know about.

What Can't Be Undone

A refund paid, an email sent, a sailing cancelled with 184 passengers told: these get the confirmation dialog of Modal I §X, with the object and the count in the title and on the verb, the consequence in the body, and focus on the safe button. The dialog isn't the opposite of Undo; it's what's left when Undo can't be built. Which is why the work of reversibility is worth doing: every action that can be made undoable is a dialog that never has to exist. The toggle that makes the same argument for settings is Checkbox I §IX's "reversal is the undo".

If it can be taken back, do it and offer it back. If it can't, ask once, by name and by number, and mean it.

VII. After a Save

The change itself is the best confirmation, so show the changed thing and add nothing when it's in view. A document that saves itself says "Saved · 10:42" by its title and nowhere else. A surface that closes on Save hands over to a toast that names the object. A create lands on the new record, which is its own confirmation; a toast there says only what the page can't. A success never gets a dialog.

Timetable office/ Sailings/ Vessels / MV Tern/ Sailings / 16:05
SailingVesselStatusBooked
  • 07:40Ostrand – Hollin QuayMV TernOn time184
  • 09:05Ostrand – CarrowMV FulmarDelayed 25 mincommitted on Enter · nothing added251
  • 09:50Hollin Quay – OstrandMV TernOn time212
  • 10:30Fenmouth – CarrowMV GannetOn time64
09:05 Ostrand – Carrow updated
4 s · the drawer has closed
MV TernSaved · 10:42by the title · 12/16 muted · the one place
Passenger capacity240
Home portOstrand
Notes for crewBow door inspection due 20 Feb.
Changes saved
the 14th this minute
16:05 Carrow – FenmouthMV Skua · Sat 13 Feb · 0 of 180 booked · created by you at 10:42the title says it exists
Bookings
No bookings yet. The sailing opens for booking when the timetable is published.
Added to the Winter 2026 timetable
The value changed where the user was looking · 0 messages · a failure would show in the cell (Tables I §X) A document has no Save button · its state in one place by the title, four words at most · Saving…, Saved · 10:42, Couldn't save · Retry The drawer that showed the edit is gone · the toast says which sailing, and the row shows the new value The heading says the sailing exists · the toast says only what the page can't: which timetable it joined, and Undo 2 clicks for a save that worked · the scrim and focus trap for a message with nothing to decide A toast a second after each pause in typing · the corner never empties · the one save that fails arrives in the same box An inline edit, committed · Right: nothing at all A document, saved by itself · Right A drawer that closed · Right A create that navigates · Right Success in a dialog · Wrong "Changes saved" on every autosave · Avoid
AfterShowBecause
An edit in placeNothingThe new value is under the user's eye; Tables I §X shows a failure there
A toggleNothingThe knob moved; "Saving…" only after 1000ms (Checkbox I §IX)
A document's autosave"Saved · 10:42" by the titleNothing on the page changes; the time is the evidence (Forms, planned)
A drawer or dialog that closesA toast naming the objectThe surface that showed the change has gone
A create that opens the new recordThe record; a toast only for what it doesn't showIts title says it exists; where it went and Undo don't show

Say "Saved" only where the user can't see that it was. A document that saves itself looks exactly as it did before the save, so its one evidence is the state by its title, "Saved · 10:42", in the helper's voice, which Forms (planned) fixes with its "Saving…" and "Couldn't save · Retry": the time is how the user knows the save they're relying on is this one. A transaction ends by leaving its surface, and then the toast takes over, naming the object ("09:05 Ostrand – Carrow updated") because the user may have edited three sailings in a row, while the row that changed carries the new value, which is the real confirmation. A create lands on the new record, and its heading says it exists; a toast that repeats the heading is decoration, and one that says what the page can't (where it went, who was told) with an Undo is not.

Nothing at all is the right answer more often than teams allow. An inline cell committed on Enter, a toggle, a drag that reorders: the result is the thing the user is looking at, and a message about it moves their eyes away from it to read what they already know. The success dialog is the opposite mistake: it blocks the page, traps focus, and dims everything to report a non-event, and its OK is the most reflexively pressed button in software. The autosave toast fires every few seconds while the user types, so the corner never empties, and the one autosave that fails arrives in the same box as the forty that didn't. Autosave reports a state in the one place by the title, and never a toast per save.

Let the changed thing confirm itself. A document dates its last save by its title; a closed surface hands over to a toast; good news never gets a dialog.

VIII. Error Copy

An error says what happened, then what to do, in that order and in the user's words. What happened names the object ("Couldn't move BK-40712"); the cause follows it when it changes what the user will do; the fix is a sentence in the imperative, and a link when the product can take them there. The error code is last, in the mono, for whoever the user will call.

Move BK-40712
Error 409: Conflict
Something went wrong. Please try again.
Capacity exceeded. Sailing 0950-OST-CAR: seats_available 2, requested 3.
Oops! Looks like that one's full. We're so sorry. Please try again later!
Choose another sailing.
Couldn't move BK-40712. The 09:50 has 2 seats left and the booking has 3 passengers. Choose another sailing, or .Ref 409-CAP-7712
Move to09:50 Ostrand – Carrow · MV Fulmar2 seats left
PassengersIris Calder, Tomas Vey, Ruth Okafor
What: no · why: a protocol's · what to do: no · the one word the user knows is "Error" What: no · why: no · what to do: retry, which fails the same way every time What: yes, in the database's words · why: yes · what to do: no · "0950-OST-CAR" is a key, not a sailing What: half · why: no · what to do: "later", which won't help · two apologies, one joke, one wrong instruction What: no · why: no · what to do: yes · the user chose this sailing on purpose and isn't told why it won't do What: the booking · why: 2 seats for 3 · what to do: two ways on, one a link · the reference last, in the mono The status code as the message · Wrong Something went wrong · Wrong The system's words · Avoid Breezy and apologetic · Avoid The fix with no cause · Avoid What happened, why, what to do · Right
PartRuleExample
What happened"Couldn't" + the verb + the object, in the past, at 600Couldn't move BK-40712.
WhyOnly when it changes what the user does next; in their termsThe 09:50 has 2 seats left and the booking has 3 passengers.
What to doThe imperative; a link when the product can take them there; at most two ways onChoose another sailing, or split the booking.
The referenceLast, its own line, mono 12/16 muted, selectableRef 409-CAP-7712
A field's errorThe field or the person by name, and the fixEnter Ruth Okafor's date of birth.

What happened comes first because it's what the user is checking. They pressed Move and expected a moved booking; the first words should confirm or deny exactly that, with the object named, so a user who made three moves knows which one failed. "Couldn't" is shorter and less alarming than "Failed to" and "Unable to", and it doesn't sound like the machine is the one with feelings. The cause follows only when it changes the next step: "the 09:50 has 2 seats left" tells the dispatcher a split will work and a retry won't. A cause the user can do nothing with ("a server error") is left out, because it only adds a sentence to read. The fix is an instruction, "Choose another sailing", not a description of a possibility, and when the product can do it the instruction is a link. Two ways on is the limit; three is a menu written as a sentence.

The grades are all things good teams ship. The code is what an API returns, passed straight through; "Something went wrong" is the catch-all written once for every failure, which is why it's everywhere, and its "try again" is wrong whenever the failure is deterministic. The system's words leak from a validation layer that knows the reason and phrases it for a developer. The breezy one comes from a voice guide that asked for warmth; warmth in an error reads as not taking the user's problem seriously, and "later" is a guess. The fix alone is the most respectable and still fails: a user who deliberately chose the 09:50 needs the reason to choose differently. NN/g's guidelines and GOV.UK's error messages agree on the essentials: say what happened and how to fix it, plainly, without blame or jokes.

The error that names the field. "This field is required" is the inline version of "Something went wrong": the user has to work out which field and what it wants. Name it, and use the user's name for it, the passenger rather than "Passenger 3 DOB": "Enter Ruth Okafor's date of birth." In a summary at the top of a long form, the same sentence is the link to the field. The reference has one job, letting support find the failure in the logs, so it goes last on a line of its own in the mono, selectable, and never in the headline. Show it when the user may have to quote it; a validation error the user fixes themselves doesn't need one.

What happened, to what; why, if it changes the next step; what to do, as an instruction. The code is for support and goes at the end.

IX. The Empty State

An empty region says why it's empty and offers the one next step that fits the reason. There are four reasons and they must never share a message: nothing exists yet (explain and offer Create), nothing matches (name the filters and offer Clear), the work is done (say so, and stop), and it couldn't load (say what failed and offer Try again, with any data already had).

Timetable office/ Vessels/ Sailings/ Crew
Add your first vesselVessels carry the timetable's sailings. Add one with its capacity and home port, and it can be given sailings straight away.
GannetStatus: Cancelled0 of 10 sailings
SailingVesselStatusBooked
No sailings match "Gannet" with Status: CancelledMV Gannet has no cancelled sailings on Sat 13 Feb.
Create your first sailingSailings put a vessel on a route at a time. Create one to start building the timetable.
Unassigned shiftsSat 13 Feb
Every shift on Sat 13 Feb has crewThe next unassigned shift is the 06:10 on Sun 14 Feb.
SailingsSat 13 Feb
SailingVesselStatusBooked
Couldn't load the sailingsThe timetable server didn't answer in 20 seconds. Ref 504-TT-1180
Title 20/28 at 600, the section step · one sentence of purpose · one primary action · no toolbar: nothing to search Search, chip and header stay where they were · the message quotes the query · the action undoes the filters The good empty: the work is finished · no action needed, so the link only goes to the next work Header kept · what failed and how long it waited · Try again · the reference for the duty desk 10 sailings exist · the user is told to create one · it reads as if the timetable has gone Nothing exists yet · Right Nothing matches · Right The work is done · Right Couldn't load · Right The first-use state shown for zero results · Wrong

Each reason has its own next step, and the message is there to offer it. First use is the only one that explains the object, because it's the only time the user may not know what a vessel record is for; one sentence of purpose and the Create action, with the toolbar hidden because there's nothing yet to search. No results keeps the whole frame, quotes the query and the filters back, and offers the reversal, as Layout III §VII placed it and Tables I §XV drew it inside a table. All done is the empty state teams forget to design, and the one users see most in a queue: say plainly that the work is finished, without confetti, and point to the next work if there is any. Couldn't load is an error, with the error's copy (section VIII), and it keeps whatever data the user already had, dated.

The Wrong frame is the commonest empty-state bug, and it's a logic error more than a design one: the component checks "no rows" and shows the first-use state, when the rows are only filtered out. The dispatcher with ten sailings is told to create their first, which reads as if the timetable has been lost. The fix is to test for the reason, records or no records, before choosing the message. The voices are Type III §VI's: the title at the section step, 20/28, never the page title's size, the explanation in the UI voice at the muted ink, a normal button. Whether a first-use state carries a picture, and what kind, belongs to Illustration (planned); none of these needs one to work.

Say why it's empty, and offer the step that fits the reason. Never tell someone with ten sailings to create their first.

X. Progress

Progress is a message about work in flight, and it says two things in words: which step the work is on, and how much is done in the user's units, "Matching vessels · 412 of 1,284 sailings". When the length can't be known, it says what it's waiting for instead. Past ten seconds the user may leave, a banner follows them to the pages the work affects, and a toast says when it's done.

Timetable office/ Import/ Sailings
Import Summer 2026summer-2026-final.csv · 1,284 rows
Matching vesselsStep 2 of 3412 of 1,284 sailings
About 2 minutes left. You can leave this page; the import carries on.the step · the count · the time · leave to go
Checking for clashes18 s
Checking 1,284 sailings against 4 vessels' maintenance windows. Nothing to count until it's done.2 · the region's top edge · muted · 30% in 1.6 s
Importing…90%
Importing…32%
SailingsWinter 2026 · Sat 13 Feb
Importing Summer 2026: matching vessels, 412 of 1,284 sailings.
Summer 2026 imported1,284 sailings · 3 need a vessel
on finish · stays: it has an action
The step in words, the count in sailings, the time left once 10% is done, and leave to go · 412 / 1,284 = 32.1%, the bar 32% Nothing to count until the check ends · a 2px line along the region's top edge, the reason in words, the time so far Eased to 90% in 3 s, then 2 minutes at 90 · the bar measured an animation, not the work 32% of what · no step · no time · no hint that the page can be left Elsewhere in the product: a banner on the pages the import affects · on finish a toast with the one thing to look at Determinate, counted, with the step · Right Indeterminate, saying what it waits for · Right A bar that runs ahead of the work · Wrong A percentage with nothing else · Avoid Work that outlives the page · Right
MomentSayWhere
Under 300 msNothingThe result is the feedback
To 10 sAn indicator; past 4 s, a number or a reasonWhere the result will land
Past 10 sThe step, the count, time left after 10%, and that the user may leaveThe region doing the work
The user has leftThe step and the countA banner on the pages the work affects
DoneWhat finished and the one thing to look atA toast, which stays: it has an action
FailedSection VIII's copy, and what was keptThe region; a toast that leads there if the user has left

Count in the user's units and name the step. "412 of 1,284 sailings" says how far, how much is left, and what is being counted; "32%" says only the first, and it reads as a guess even when it isn't. The step matters because steps rarely take equal time: matching vessels may be most of the job and writing the results a moment, and the user who sees "Step 2 of 3 · Matching vessels" knows the long part is under way. Time left comes once the rate is steady, coarsely and in words. When nothing can be counted, the words carry it: what the work is waiting for, and how long it has been. The bar that eases to 90% and waits is the trick everyone recognises, and after the first time it sits there for two minutes the user trusts no bar in the product. The bar's geometry, its motion, the indeterminate line and the spinner are Loading & Skeleton States' (planned); this section is what the words say and where they go.

Long work lets the user go, and finds them afterwards. Past ten seconds the region says the user can leave and the work carries on, and then it has to: the import runs on the server, a banner on the pages it affects carries the step and the count, and when it finishes a toast says so with the one thing worth looking at, "3 need a vessel · Review". That toast has an action, so it stays until it's dismissed (section V). If it fails, the failure is an error with section VIII's copy, in the region that ran it; a user who has gone elsewhere gets a toast that leads back there, the one kind of failure a toast may carry, because nothing on their screen is wrong.

Say which step and how much, in words the user counts in. When they leave, follow them with a banner and tell them when it's done.

XI. Inside a Dialog or Drawer

A failure inside a dialog or a drawer is reported inside it: on the fields that caused it, and, when the submit itself failed, in a banner at the top of the body, under the header, where focus moves. The footer holds only buttons. A success closes the surface, and the toast that confirms it sits outside at level 4, where it survives the close.

Timetable office/ Sailings
SailingVesselStatusBooked
  • 07:40Ostrand – Hollin QuayMV TernOn time184
  • 09:05Ostrand – CarrowMV FulmarOn time251
  • 09:50Hollin Quay – OstrandMV TernOn time212
  • 10:30Fenmouth – CarrowMV GannetOn time64
Couldn't save the sailing.
outside the dialog · 5 s · the field still unexplained
Edit 09:05 Ostrand – Carrow
Couldn't save the 09:05. MV Fulmar is on another sailing at that time.
top of the body · above the fields
Departure09:05
VesselMV FulmarOn the 09:00 Carrow – Fenmouth until 10:10.
09:05 Ostrand – Carrow updated
level 4 · outlived the dialog · 4 s
The cause on the field, the failure of the submit at the top of the body · focus on the banner, then Tab to the field · the footer unchanged The message 380px from the field it's about, outside the surface the user is in, gone in 5 s · the dialog looks as if Save did nothing The reason cut to fit beside two buttons · it reads as part of the commit, and the footer is the last place a reader looks The same rule in a drawer: the banner under the header, the field marked, the footer buttons only The dialog has closed, the row shows MV Skua, and the toast at z 1300 names the sailing · no scrim was needed for it At the top of the dialog's body · Right The dialog's failure as a toast · Wrong The failure in the footer · Avoid At the top of the drawer's body · Right Success: closed, confirmed outside · Right

The surface the user is in is where they're looking. A dialog has their whole attention, by design: it dimmed the page to get it. A failure reported anywhere else, in a toast at the window's corner or a banner on the dimmed page, is reported to the one place the user has been told to ignore. So the field that caused it is marked as in section III, and the submit's own failure, "Couldn't save the 09:05", goes in a banner at the top of the body, 16 under the header, the first thing in reading order. Focus moves to it on a failed submit, so a screen reader announces it, and Tab goes on into the fields. The dialog grows down from its anchored top as the banner arrives, as Modal I §VI designed it to, and the scrim doesn't change.

Not the footer. It is visible at every scroll position, which is why teams put messages there, but it holds the commit, and a reason squeezed in beside Save is cut to fit, reads as a caption for the buttons, and is the last thing a reader reaches. If the body is long enough that its top scrolls away, the failed submit scrolls the body back to the banner. A drawer follows the same rule, banner under its header, fields marked, footer buttons only. Success leaves the surface: the dialog closes and the toast confirms from level 4, z 1300, above every scrim, rendered at the root so it outlives the dialog (Modal I §XI). A toast is never inside a dialog, and never reports the dialog's failure.

Report inside the surface the user is in, at the top of its body and on its fields. Confirm outside it, after it has gone.

XII. Reducing to Mobile

On a phone the banner spans the screen with no corners, under the top bar; the toast moves to the bottom, 16 in from each side and 16 above the tab bar, as wide as the screen allows; inline messages don't change at all. The surfaces keep their jobs and their rules; only the toast's corner gives way, because a phone has no corners to spare.

BK-40712
This sailing is held at Hollin Quay. Departure confirmed by 08:10.
07:40 Ostrand – Hollin Quay
Ruth Okafor · date of birthEnter Ruth Okafor's date of birth.
Iris Calder · date of birth14/06/1979
Moved to the 09:50
BK-40712 moved to the 09:50
Moved to the 09:50
BookingsSailingsCrewMore
banner · full width · radius 0 16 · 288 wide · 16 above the bar · stays: Undo tab bar 56 bottom-left 24 · 340 · clipped by 44, over the tab bar over the back button and the banner
320 viewport drawn 1:1 · banner 320 wide · toast 288, 1 line at 14/20 · Undo and × each 44 tall to touch The desktop corner and width ported: the toast runs 44px off the screen and sits on Bookings and Sailings From the top it covers the back button, the title and the hold · and a thumb can't reach it Banner across, toast at the bottom, inline unchanged · Right The desktop toast, unreduced · Wrong The toast at the top · Avoid

The banner becomes a region. At 320 the content column is the screen, so the banner takes its full width, loses its corners as anything touching the frame does (Border I §II), and keeps its edge as a rule above and below it, the strong one for a warning or an error. It stays under the top bar and above the content, and it still scrolls. The system banner, if there is one, sits above it in the same form; two banners on a phone are a hundred pixels of a six-hundred-pixel screen, which is the strongest argument for keeping the system banner rare.

The toast goes to the bottom, inset 16, above the tab bar, where the thumb is and where nothing the user needs is covered except the content they just acted on, which has already changed. It takes the width the screen allows, 288 on a 320 screen, and the event shortens to fit one line ("Moved to the 09:50", the booking is the page). Undo and × grow to 44px targets without the toast growing taller, since the extra height is inside its 14px inset. The top of the screen is the wrong place on a phone for the same reason as on desktop and one more: it covers the back button and the title, and it is the part of the screen the thumb reaches last. A system toast from the operating system may also be arriving there. Inline messages don't change: the field's helper slot is under the field at every width, and only the voice steps to 14/20 with the field, as touch posture asks.

On a phone the banner spans the screen and the toast sits above the thumb. The inline message was already in the right place.

XIII. Dark Mode

In dark mode the toast climbs to level 4's #363636 with a white edge brighter at the top; banners and fields stay on the page's #1a1a1a with their edges in white, each alpha chosen to match the light ratio: the container edge .10 (1.34:1), the strong edge .36 (3.31:1). Every kind keeps its shape, word and weight, which is why none of them needed a colour to port.

Timetable office/ 07:40
Couldn't publish the manifest. MV Tern's crew list has no master.
Manifests can now be exported as CSV.
Revised departure05:40Enter 06:00 or later.
Crew list sent to MV Tern6 crew · copied to the master
Timetable office/ 07:40
Couldn't publish the manifest. MV Tern's crew list has no master.
Manifests can now be exported as CSV.
Revised departure05:40Enter 06:00 or later.
Crew list sent to MV Tern6 crew · copied to the master
Timetable office/ 07:40
Couldn't publish the manifest. MV Tern's crew list has no master.
Manifests can now be exported as CSV.
Revised departure05:40Enter 06:00 or later.
Crew list sent to MV Tern6 crew · copied to the master
Strong edge .52, 3.22:1 · container edge .14, 1.31:1 · toast #fff at level 4, staying: it has an action · muted 5.33:1 Strong edge white .36, 3.31:1 · container .10, 1.34:1 · toast #363636, 1.44:1 off the page, its ink 10.1:1 and muted 5.56:1 Edges 1.02:1 and 1.09:1, gone · muted #6b6b6b 3.27:1, under 4.5 · the white toast 17.4:1, the loudest thing on the screen Light · Right Dark, ratios matched · Right Dark with the light values · Wrong

Match the ratio, not the alpha. The paper-tinted edges that separate a banner and mark an error in light mode are dark on dark: the strong edge falls from 3.22:1 to 1.09:1, so the error banner and the warning lose the one structural signal that sets them apart from information, and the field in error loses its 2px. White at .36 brings the strong edge back to 3.31:1, the same step it was in light; white at .10 gives the container edge 1.34:1 against light's 1.31. The muted ink becomes #b0b0ae, 8.0:1 on the page and 5.56:1 on the toast. The octagon, the triangle and the first words carry over untouched, which is the dividend of having told the kinds apart without a colour: there's no red to re-derive for a dark surface.

The toast keeps its level, not its colour. Ported as white, it is 17.4:1 against the page, the brightest object on the screen, and on a dark screen the brightest small object reads as an alert even when it's reporting a sent crew list. At level 4's #363636 it sits 1.44:1 off the page, and the white edge, .16 at the top and .10 around, draws its outline where the shadow can't, as Elevation I §VI gives every raised surface in the dark. Everything stays opaque in both modes (Elevation II §IX), and the scrim under a dialog goes to black at .60 (Modal I §XIV).

Re-measure each edge in the dark and pick the alpha that matches its light twin. The shapes and the words come across for free.

XIV. The Checklist

Decide each message in this order; each step assumes the ones before it.

1
Does it need a decision?Then a dialog, named and counted (Modal I §X). A dialog that only informs is one of the other four surfaces.
2
Put it where it belongsA field: inline. The page: a banner under its header. The product: a system banner above the frame. A fresh action: a toast. A result needed later: the record's own state.
3
Tell the kind without colourCircle i, circle check, triangle, octagon. The first word says the kind; 600 only on the sentence to act on; the strong edge for warning and error.
4
Inline in the helper's slot13/20 at the ink, never smaller; the field's edge to 2px; named by field or person; until the value changes. A summary on long forms links to the fields, never replaces them.
5
One banner, under the headerOn the content's edge, md 8, scrolling with the page. × only when it informs; a state banner stays while the state does. The system banner spans the frame, radius 0, one at a time.
6
One toast, bottom-start24 from both edges, 288–420, two lines at most, level 4. 4 s, 6 s with detail, 8 s ceiling; with an action, until used or closed. Clock stops on hover, focus and a hidden tab. The newest replaces the current one; one with an action holds, and the newer waits.
7
Never an error to fix in a toastThe cause gets the message. A toast carries a failure only when nothing on screen is wrong.
8
Undo before confirmSoft delete, side effects held for the window, the row restored exactly. ⌘Z and the record's history after the toast goes. Only what can't be undone gets the dialog.
9
Confirm success only when it's unseenNothing when the change is in view; a document's "Saved · 10:42" by its title; a toast naming the object when the surface closed; the new record when it navigated, with a toast only for what it doesn't show. Never a dialog.
10
Write the error in order"Couldn't" + verb + object; the cause if it changes the next step; the fix as an instruction or a link, two at most; the reference last, in the mono.
11
Give every empty state its reasonFirst use: purpose and Create. No results: the query and Clear. All done: say so. Couldn't load: the error and Try again, with the data already had. Test for records before choosing.
12
Count progress in the user's unitsThe step in words and the count in the user's units; when nothing can be counted, what it waits for. Past 10 s the user may leave; a banner follows them, a toast says it's done.
13
Report inside the surface, confirm outside itA dialog's failure at the top of its body, focus on it, fields marked, footer buttons only. Its success closes it, and the toast at z 1300 outlives it.
14
Reduce, then measure the darkPhone: banner full width, toast at the bottom inset 16 above the tab bar, inline unchanged. Dark: edges .10 and .36 on #1a1a1a, the toast at #363636. Opaque throughout.

Steps one, two and eight are the judgement; the rest are contracts written once and inherited by every message. The audit: trigger every error a screen can produce and find each one's cause from its message alone; turn the screen to greyscale and tell the four kinds apart; remove a passenger, close the toast, and find the way back; press three actions in a second and count the toasts; empty every list by filtering, then by deleting, and read the two messages; leave a long import and see where it tells you it's done; open a dialog, make it fail, and find where the reason is.

Part II takes the notification tray: what earns a notification, grouping by object, read and unread, the badge count and what clears it, and what a notification opens. Status, Badges & Counts (planned) owns the badge's shape and the status words; Forms (planned) owns validation timing, the error summary's full form and autosave; Loading & Skeleton States (planned) owns the spinner and the skeleton; Color (planned) adds a hue to each kind, and changes none of these rules.

Part I of Feedback & Notification.
Say it where it happened, as loudly as it matters, for as long as it's true.