Visual and interface craft
Decide what the eye meets first, then make type, colour, space and states serve it, and write the reason for every choice beside the screen so the argument is about evidence and not taste
A portal order screen has seven text sizes, four weights and three colours of emphasis, and distributors still cannot find the total they must pay. What do you change first?
Visual craft is the part of design people can see and, for that reason, the part most argued about in terms of taste. This chapter treats it as a set of decisions with reasons. Each choice about size, colour, space or state does something for the person reading the screen, and you can say what. The test of accessibility, the discipline of checking a screen against WCAG, belongs to mobile and accessibility testing and to accessibility in this track. Where you test a design with real people, research and usability testing covers the method. Here you use those numbers as constraints while you design, so that the audit finds little.
Craft is a short list of decisions
A screen that looks wrong is usually wrong in one of five places.
| Decision | The question it answers | What goes wrong when it is left to default |
|---|---|---|
| Hierarchy | What should the eye meet first, second and last? | Everything is equally loud, so nothing is |
| Type | Can this person read it, on this device, in their language? | Missing letters, tiny grey help text, long lines |
| Colour | What does each colour mean, and can it be seen? | One colour for brand, price, link and error |
| Space and alignment | Which things belong together? | Equal gaps everywhere, columns that do not line up |
| States | What does it look like when it is hovered, focused, loading, empty, wrong or full? | Only the happy screen is designed |
Notice that none of them is “make it prettier”. A pleasant screen is a by-product of getting these right and keeping them consistent. A screen that is polished and unranked is still hard to use.
Hierarchy: decide the order first
Before you pick a colour or a size, write down what the person came to do and the order in which they need the screen’s parts. For an order screen: what am I buying, what will it cost, can I pay, and what do I press. Then check the design by squinting at it, or by blurring a screenshot until the text is unreadable. What stands out in the blur is your actual hierarchy. If it is a banner, a logo and a red button, and the total is invisible, the hierarchy is wrong however tidy the details.
Three habits do most of the work.
- Rank by removing. Make the total prominent by making the labels, helper text and unit prices quieter, not by making the total louder. Steve Schoger and Adam Wathan’s Refactoring UI, written for developers who must design, returns to this idea repeatedly: much of the work is deciding what to de-emphasise.
- One primary action. One button per screen is the loudest. Secondary actions are quieter, tertiary ones look like links. Three equal buttons say that the designer did not decide.
- Do not borrow emphasis from colour alone. Size, weight and position carry hierarchy. Colour adds to it. A design that works only when the red is visible fails for the person who cannot see red well, and for the sunlit screen.
Type: size, measure, spacing and the letters you need
Type is most of an interface. Four things matter before taste does.
Size and weight. Use a short scale, such as five or six sizes, chosen once and reused. Keep body text comfortable on a mid-range phone in daylight. Small grey helper text is the usual casualty: it is the line the person most needs, set smallest and lightest.
Measure. Long lines are tiring because the eye has far to travel back to the start of the next one. Matthew Butterick’s Practical Typography recommends an average line length of 45 to 90 characters, including spaces. Aim for the middle on a desktop page and let the narrow screen of a phone enforce it. A distributor reading a terms paragraph across a 1,400-pixel monitor has about 200 characters a line unless you set a maximum width.
Line spacing. Butterick recommends line spacing of 120 to 145 per cent of the point size for body text. In CSS that is a line-height of about 1.2 to 1.45, and the high end suits longer text and narrower lines. Tight spacing is for headings, loose spacing for paragraphs.
Numbers and money. Interfaces for payments are full of amounts, and the details decide whether they can be compared.
- Right-align amounts in a column, so the digits line up by place value.
- Use tabular figures, in which every digit is the same width, so columns stack. In CSS that is
font-variant-numeric: tabular-nums, provided the font has them. Proportional digits make a column ragged. - Show the currency once, consistently: ₦ before the amount, with thousands separators. Drop the kobo where every price is a whole naira, and show it everywhere if any price needs it.
- Make the amount the heaviest thing in its row and its unit quieter.
The letters your customers need
A typeface is a promise to render every character you will send it. The ₦ sign is not in every font. Yoruba is written with the underdotted letters ẹ, ọ and ṣ and with tone marks, and Igbo with underdotted ị, ọ and ụ and a dotted ṅ, and tone marks above them. Many of these exist as single characters in Unicode, but the toned versions, such as an acute accent on an underdotted ọ, are made by placing a mark above the base letter, and a font must position the two correctly. A font that lacks a character does not fail loudly. The browser takes the letter from another font, at a different weight and height, in the middle of a name.
Test with real strings before any font is approved. Put the characters ẹ ọ ṣ ị ụ ṅ ₦ in the specimen, put toned combinations on top of them, and add real place names written properly, such as Ìbàdàn, Ọ̀yọ́, Ògbómọ̀ṣọ́, Ìlọrin, Ọnịcha and Ụmụahịa. Set each at body size and at heading size, in regular and bold, in the browser and on the weakest phone you support. Look for missing letters, marks that collide with the line above and marks that float away from their letter. This is a design check, not a front-end detail, because a customer’s name is the most personal text on the screen.
Colour: roles, not hues
Colour in an interface carries meaning. Give each colour a role and keep to it.
| Role | Used for | Rule |
|---|---|---|
| Brand | Logo, large headings, a few accents | Never the only carrier of meaning |
| Action | Buttons and links | One colour, with visible states |
| Text and surfaces | Reading | Contrast tested against every surface it sits on |
| Success, warning, error | Outcomes | Reserved, not reused for decoration |
The common failure is a brand colour that is also red, or a warm colour that doubles as the error colour. Then a price looks like a warning. Resolve it by giving the brand its own jobs and by giving error a different treatment, such as an icon, a text label and a tinted panel, not another red figure.
The contrast numbers are firm and you should design to them from the start. WCAG 2.2 success criterion 1.4.3 asks for a ratio of at least 4.5 to 1 for normal text, and 3 to 1 for large text, which is 18 point or 14 point bold. The ratio is a threshold, so 4.499 to 1 fails. Criterion 1.4.11 asks for 3 to 1 for the parts of controls and graphics a person needs in order to see them, and criterion 1.4.1 says colour must not be the only way to show something. Text that is part of a logo is exempt, which is why a brand red is sometimes fine in the logo and unreadable as body text.
Check the ratio against the surface under the text, not against white by default. The brand red #E4402F reaches 4.14 to 1 on white and falls to about 3.8 to 1 on a light grey (#F5F5F5) striped table row. Check every pair, in the states too: hover, focus, selected and disabled-but-readable.
States: design every moment, not the happy one
A screen is more than its happy state. For each interactive part, decide how it looks when it is:
- at rest, hovered and pressed;
- focused by a keyboard, with an outline that is visible against its background;
- loading, with a stable layout so the page does not jump;
- empty, saying what to do next;
- in error, saying what happened and how to fix it, in words;
- full, such as a name longer than the box or an amount with eight digits.
The money-specific states, such as the confirmation and the failed transfer, belong to designing for money and trust. Their craft is the same: nothing is left to default.
Space and alignment
Space tells the eye what belongs together. Items that are close are related, and items that are far apart are not, so put more space between groups than within them. Pick a spacing scale, commonly steps of 4 or 8 pixels, and use only values from it. Align things on a few clear edges; a design with six left edges looks careless even if no one can say why. Make rows in tables tall enough to tap on a phone.
Writing the reason beside the screen
The artefact of this chapter is a redesigned screen with the reasons written next to it. It exists because visual critique tends to collapse into “I prefer it”. A reason changes the conversation. Compare:
- “Made the text darker because it looked washed out.”
- “Price text changed from #E4402F to #C8281E, because the first measures 4.14 to 1 on white and 3.8 to 1 on the striped rows, below the 4.5 to 1 that WCAG 1.4.3 asks for; the second measures 5.56 to 1 on white and 5.10 to 1 on #F5F5F5.”
The second can be checked, and it can be disagreed with on evidence. Each reason names the element, the change, what it does for the reader, and the rule, measurement or test behind it. A change you cannot defend with a reason is a taste change; keep it, mark it as one, and be ready to drop it in review. Marking taste honestly is part of the craft, and it makes the reviewer more willing to accept the rest.
Hand the result to engineering as decisions with names: colours, sizes and spaces as tokens, and the states drawn. A designer and a front-end engineer such as Parisa can then agree on one table of values instead of a hundred screenshots. The larger system that holds the tokens, and who governs it, is a lead-level topic that this track covers later in design systems.
Brand and usability
Brand is a real constraint, and a brand-led company such as Crustwell takes it seriously, as it should. The brand manager’s interest is that the product feels like the packet on the shelf. The designer’s interest is that a distributor can order. Most of the time these do not conflict, because brand is a small number of things, such as a colour, a typeface, a tone and a logo, and a product screen needs only part of it. The useful move is to ask what the brand guide is protecting and to offer that: the red as the accent on the header and the primary button, the display face for headings, the tone in the words. Then show, with a measurement, the few places where applying it everywhere would hurt the reader. Bring a proposal that keeps the brand, never an ultimatum against it.
Where practitioners disagree
Whitespace or density. Consumer designers favour space. People who place orders all day want many rows on one screen. Choose by who the user is and how often they come, and offer a compact setting where both exist.
Custom type or system fonts. A custom face carries brand and costs load time and coverage. A system font is fast and complete and looks like everyone else. Many teams use a custom face for headings only.
Principles or a good eye. Some designers distrust rules and some distrust taste. Rules keep a team consistent and catch the obvious errors. Taste finds the cases the rules miss. Use rules for what is measurable and write down the taste calls.
Pixel perfection. Matching a mock-up to the pixel is a poor use of an engineer’s time when the layout reflows across screens. Agree on the tokens and states and accept the tolerance.
Day to day
Daily. Look at the build, not the mock-up. Check new screens at the smallest and largest text sizes and on a real mid-range phone in daylight. Comment on pull requests with the token to use, not a pixel value.
Weekly. Run a design review where each change comes with its reason. Check what engineers have built against the states you drew. Keep a short list of “taste calls” and “rule calls” for the current work.
Per screen. Write the hierarchy first, as a sentence. Design the states. Measure contrast on every surface. Test the font with real names and amounts. Write the reasons beside the result.
Per quarter. Audit your most-used screens: how many sizes, colours and spacing values are in use, and how many are off the scale. Drift is the sign that the system is not being used.
You are probably the only designer, and the brand is a logo and a colour someone chose. Spend your effort on hierarchy and a short scale, and take an open-licensed typeface with full character coverage instead of designing one. Write the reasons in a single page, because the founder will ask why the screen changed. Your risk is perfecting a screen that nobody ordered from yet. Test with real customer names the first day, since fixing missing letters later means touching every screen.
A brand guide exists and several teams build screens, so inconsistency appears fast. You start writing tokens, and brand conversations become regular. Your work is separating what the brand protects from what it merely says, and getting a front-end engineer to share the token table. Expect to argue a measured case against a brand manager who wants the guide followed to the letter, and to bring the alternative that keeps what the guide is for.
Brand, design systems, accessibility and engineering are separate groups, and a typeface choice involves a licence, a procurement process and a brand council. Your work is evidence and routing: measure the problem, write the reason, and send it to whoever owns the rule. Changes take quarters, so ship the product-level fix, such as a role colour or a fallback, while the brand-level one is argued. Your risk is waiting for approval of a perfect system while real screens keep drifting.
Template
# <Screen>: before and after, with reasons
Designer · Date · Who reads this screen, and what they came to do
## Hierarchy in one sentence
The eye must meet: 1. <> 2. <> 3. <>. The primary action is <>.
## Changes
| # | Element | Before | After | Reason (what it does for the reader) | Evidence: rule, measurement or test | Call: rule / taste |
|---|---|---|---|---|---|---|
## Colour roles and contrast
| Role | Colour | On surface | Ratio | Needs | Pass |
|---|---|---|---|---|---|
## Type tested
Strings used: <names, places, amounts, ₦>. Sizes and weights: <>. Device: <>. Result: <>.
## States
Designed: <>. Open: <>.
## Brand: what the guide protects, and what we kept
<> WORKED EXAMPLE
Crustwell distributor portal, Order stock screen. Kibet is the product designer; Parisa is a front-end engineer. All numbers are illustrative.
Hierarchy. The distributor must see 1. what is in the order, 2. the total, ₦512,000, against the balance in the virtual account, ₦480,000, 3. the shortfall, ₦32,000, and what to do about it. The primary action is Pay the shortfall.
| # | Element | Before | After | Reason | Evidence | Call |
|---|---|---|---|---|---|---|
| 1 | Prices | Brand red #E4402F, 14 px regular | #C8281E | Small red text could not be read in daylight by the accountant | 4.14:1 on white and 3.80:1 on #F5F5F5 striped rows, against 4.5:1 in WCAG 1.4.3; new colour 5.56:1 and 5.10:1 | Rule |
| 2 | Totals | Same size and colour as line prices | Heaviest figure on the screen, others quieter | The total is the second thing the eye must meet | Blur test: it was invisible | Rule |
| 3 | Amount columns | Left-aligned, proportional digits | Right-aligned, tabular figures | ₦9,600 and ₦14,800 looked alike in size | Column read by a colleague in 5 seconds, not 12 | Rule |
| 4 | Shortfall | Red figure under the total, same style as prices | Own row on a tinted panel, dark text, a warning icon and the words ‘Short by’ | A red figure read as another price | Two of three colleagues misread it before | Rule |
| 5 | Headings | Brand display face | Kept for headings written by Crustwell; full-coverage face for delivery towns and account names | The display face lacks toned underdotted letters | Test string with Ọ̀ṣogbo and Ụmụahịa broke in the display face | Rule |
| 6 | Header | White | Brand red band with white logo | Keeps the brand where it is safe | Logo exempt from 1.4.3 | Taste |
Brand. The guide protects recognition on the shelf, so the red remains in the header band (the logo is exempt from 1.4.3) and in the primary button, which takes #C8281E with a white label at 5.56:1, because the same label on #E4402F would be 4.14:1. The display face remains in the headings.
Now you
You are Kibet, the product designer for Crustwell’s distributor portal, and Parisa is the front-end engineer. The Order stock screen shows three lines: instant noodles, 20 cartons of 40 packs at ₦14,800; malt drink, 15 cases of 24 at ₦9,600; biscuits, 10 cartons of 36 at ₦7,200. A distributor’s virtual account holds ₦480,000. Every price, heading, link and button is brand red, #E4402F, on white or on grey striped rows, in the brand display face. Customer-care says distributors phone to ask whether the red figure under the total is a price. The accountant at one distributor reads the screen outside, on a phone. The brand manager says the guide requires red for all prices. About half of delivery towns in the address list are in Yoruba and Igbo areas, and several break in the display face. Produce the redesigned screen with the reasons beside it, the contrast ratios, the font test and your answer to the brand manager. Work out the total and the shortfall.
Self-check
Crustwell's distributor portal uses the brand display face everywhere. It lacks the toned, underdotted letters of Yoruba and Igbo, so delivery towns and contact names render with letters from a fallback font, at the wrong weight. The portal reaches distributors across Yoruba- and Igbo-speaking regions. The brand manager says the face is part of the identity. The portal's next release is in five weeks. What do you do?
- BOOK Practical Typography Matthew Butterick
A free, opinionated guide to the choices that make text readable. The source here for 45 to 90 characters a line and line spacing of 120 to 145 per cent of the point size. Read: the pages on line length, line spacing and the summary of key rules.
- BOOK Refactoring UI Adam Wathan and Steve Schoger
A book for developers who must design, with before-and-after examples. Read it for the habit of ranking a screen by turning other things down. Read: the chapters on hierarchy, layout and colour.
- DOC Understanding SC 1.4.3: Contrast (Minimum) W3C Web Accessibility Initiative
The primary source for the 4.5 to 1 and 3 to 1 ratios, the definition of large text and the exemption for logotypes.
- DOC Understanding SC 1.4.11: Non-text Contrast W3C Web Accessibility Initiative
Sets the 3 to 1 requirement for the parts of controls and graphics a person needs to see, which covers input borders and focus outlines.
- DOC Understanding SC 1.4.1: Use of Color W3C Web Accessibility Initiative
Explains why colour cannot be the only way to show a state, such as a shortfall or an error.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.