Sub topic 10
Assemble the High-Fidelity Mockup
This chapter assumes you have a low-fidelity wireframe, a column grid with a spacing scale, a type scale, and a color palette. It also assumes you know basic HTML and CSS terms. Here you combine those pieces into one high-fidelity mockup. A high-fidelity mockup is a static, detailed picture of the finished page, with real text, colors, type, and images.
What the mockup adds to the wireframe
The wireframe fixed the structure: which sections exist, in what order, and which one holds the primary call to action. The mockup must not change that order. It adds visual decisions on top of it.
| Wireframe | Mockup |
|---|---|
| Gray boxes and placeholder text | Real copy and final images |
| One line weight, no color | Type scale, palette, and states |
| Approximate spacing | Values from the spacing scale |
| Sections in rough columns | Sections aligned to the grid |
Build in layers
Work from the largest decisions to the smallest. This keeps you from polishing details that a later change would erase.
- Set up the frame and grid. Use the desktop width you chose, and turn on the column grid so every block snaps to it.
- Place each section as a container with its background and vertical padding, using only values from the spacing scale.
- Add real content. Replace placeholder text with the actual headline, supporting sentence, and button label. Real copy exposes problems that filler hides, such as a headline that wraps to four lines.
- Apply type styles. Give each text element a style from the type scale, not a one-off size.
- Apply color and imagery. Use the accent color for the primary action and keep it rare so it stays noticeable.
- Add states and details, such as hover and focus styles for links and buttons.
Use design tokens as you go
Do not type values by hand. Create styles or variables in your design tool for each spacing step, color, and text size. These are design tokens: named values that a design and the code can share. The CSS below shows how the same decisions look to a developer.
:root {
--space-2: 1rem;
--space-4: 2.5rem;
--color-text: #1a1a1a;
--color-bg: #ffffff;
--color-accent: #0b5fff;
--font-size-h1: 2.5rem;
}
.hero {
padding: var(--space-4) var(--space-2);
background: var(--color-bg);
color: var(--color-text);
}
.hero h1 {
font-size: var(--font-size-h1);
}
.button {
background: var(--color-accent);
color: #ffffff;
}If you later change the accent color, you change one token and every button updates.
Check the hierarchy
Squint at the finished mockup or view it small. The eye should land on the headline first, then the primary button, then the supporting sections. If something else competes, reduce its size, contrast, or saturation.
Common errors
- Adding sections or moving the call to action because the layout "looks better." Return to the wireframe and hierarchy first.
- Using spacing values that are not on the scale, such as 22 px next to 24 px. These small differences look like mistakes.
- Using many type sizes. Stick to the scale.
- Choosing stock images that carry no meaning. Pick images that support the message, and crop them consistently.
- Leaving placeholder text in, which hides layout problems.
Exercise
Your mockup's hero headline wraps to four lines with real copy, though it fit on two lines with placeholder text. Which two fixes keep to the system, and which fix does not?
Show answer
Two fixes keep to the system: shorten the headline copy, or switch to the next smaller style on the type scale. The fix that does not is typing a custom font size, such as 2.2 rem, because that breaks the type scale and produces an inconsistent size.
Exercise
Why should the accent color be used sparingly in the mockup?
Show answer
The accent color marks the primary action. If it appears on many elements, the primary button no longer stands out, and the hierarchy from the wireframe is weakened.