Design tokens: build a site that can change themes
Keep colours, spacing and type in one set of variables, so light mode, dark mode and whole new themes need no redesign.
Say what happened, why and how to fix it, in plain words.
1. What happened: "We could not save your changes."
2. Why (if known): "Your connection was lost."
3. What to do: "Check your internet and try again."
| Bad | Better |
|---|---|
| Error 500 | Something went wrong on our side. Please try again in a minute. |
| Invalid input | Enter your phone number with 11 digits, for example 03001234567. |
| Operation failed | We could not send your message. Your text is saved. Try again. |
Trigger every error in your design on purpose. Read each message out loud. Would a tired visitor understand it?
Keep colours, spacing and type in one set of variables, so light mode, dark mode and whole new themes need no redesign.
You do not need a lab. Five people, a short list of tasks and an hour of observation will show most major problems.