Sub topic 1
What a Handoff Is For and What It Must Contain
Prerequisites
This chapter assumes you can do the following:
- Use a design tool such as Figma, Sketch, or Adobe XD, including frames, layers, and components.
- Read basic HTML and CSS. You should know what a class, a padding value, and a media query are.
- Recognize common image formats such as PNG, JPEG, and SVG.
You do not need to write production code. You do need to know roughly how a developer turns a design into a web page.
What a handoff is
A handoff is the set of materials that lets a developer build a design without guessing. It covers the files, the specifications (specs), the exported assets, the notes, and the conversations that go with them. A spec is a precise written or visual statement of a value or behavior, such as "16px of padding" or "the button turns dark blue on hover."
A handoff is not a single event. It is a period of work in which the design moves from the designer's tool into the developer's code. The designer prepares, the developer reads and asks questions, and both close the gaps. The rest of this tutorial covers each part of that work. This chapter explains why the handoff exists and what it has to include.
Who relies on it
Several people use a handoff, and each one reads it for a different reason.
| Reader | What they look for |
|---|---|
| Front-end developer | Values to copy into CSS, assets to download, behavior to implement |
| QA tester | The expected result for each state, so they can compare it to the build |
| Product manager | Evidence that the scope matches what was agreed |
| Another designer | Names and structure, so they can pick up the file later |
| Accessibility reviewer | Contrast, focus order, labels, and text alternatives |
The developer is the main reader, but the others matter. A handoff that only works for the person who made it will fail the first time someone else opens it, including the designer six months later.
Why handoffs fail
A design file shows how a page looks in one situation. A web page runs in many situations: different screen widths, different input methods, slow networks, long text, missing data, and users with disabilities. The gap between the one picture and the many situations is where problems start.
Common failures include these:
- Missing states. The file shows a button only at rest. The developer invents hover, focus, and disabled styles, and they differ from what the designer intended.
- Unnamed values. The file uses
#1F5FD1in forty places. The developer types it forty times, and when the brand color changes, they miss three of them. - Unclear spacing. A gap looks like 16px, but the designer meant 24px and the layer was nudged by hand.
- Only one screen size. The design shows a 1440px desktop layout. Nobody says what happens at 390px.
- Wrong asset formats. A logo is exported as a blurry PNG when an SVG would stay sharp at any size.
- Hidden decisions. The designer made a choice, such as "this card keeps its aspect ratio," and never wrote it down.
Each failure costs a round trip. The developer asks, the designer answers, and the answer lives in a chat message that no one can find later. A good handoff answers these questions before they are asked.
The cost of guessing
When a developer has to guess, one of three things happens. They guess correctly by luck. They guess wrong, and the error is caught in review, which means rework. Or they guess wrong and the error ships.
Rework is the expensive outcome that people see. The shipped error is worse, because inconsistencies build up. If three developers each guess a different hover color, the product ends up with three hover colors. Users notice this as a lack of polish, even if they cannot say why.
The aim of a handoff is therefore not to produce more documents. It is to remove decisions that the developer should not have to make.
What a handoff must contain
A complete handoff has seven parts. The later chapters of this tutorial cover each in detail, so this section gives only the outline.
- An organized file. Pages, frames, and layers have clear names and a logical order, so a reader can find the screen they need. See the chapter on file organization.
- Design tokens. A design token is a named value, such as
space-3for 16px orcolor-brand-primaryfor a specific blue. Tokens give designers and developers a shared vocabulary. - Layout, spacing, typography, and color specs. These describe the grid, the gaps, the type scale, and the palette in terms a developer can implement.
- Exported assets. Icons, illustrations, and photos arrive in the right format, at the right scales, with predictable names.
- Component states. Each interactive component is shown in every state it can be in: default, hover, focus, active, disabled, loading, error, and empty.
- Responsive behavior. The handoff states what changes at each breakpoint and what stays fluid. A breakpoint is a screen width at which the layout changes.
- Interaction, motion, and accessibility notes. These cover how things move, what happens on click or keypress, and what assistive technology needs.
Annotations tie these parts together, and a review at the end closes any open questions.
How the parts depend on each other
The parts are not independent. Tokens come early because many other specs refer to them. A spacing spec that says "space-3" only works if space-3 is defined. A component state spec that says "hover uses color-brand-primary-hover" only works if that color has a name.
The diagram shows the order in which the parts build on each other.
You do not have to prepare the parts in this exact order, but you should not annotate a spec before the values it uses have names.
A small example of the full chain
The following example shows how one decision travels from the design file to code. The designer defines tokens in a file.
{
"color": {
"brand": {
"primary": { "value": "#1f5fd1" },
"primary-hover": { "value": "#174aa6" }
},
"text": {
"default": { "value": "#1a1a1a" },
"disabled": { "value": "#8a8a8a" }
}
},
"space": {
"2": { "value": "8px" },
"3": { "value": "16px" },
"4": { "value": "24px" }
},
"radius": {
"md": { "value": "6px" }
}
}The developer, or a build tool, turns these into CSS custom properties. A custom property is a named value in CSS that begins with two dashes and can be reused with var().
:root {
--color-brand-primary: #1f5fd1;
--color-brand-primary-hover: #174aa6;
--color-text-disabled: #8a8a8a;
--space-2: 8px;
--space-3: 16px;
--radius-md: 6px;
}
.button {
padding: var(--space-2) var(--space-3);
border: 0;
border-radius: var(--radius-md);
background: var(--color-brand-primary);
color: #fff;
}Now a spec that says "button padding is space-2 vertical and space-3 horizontal, radius radius-md" maps one-to-one to the code. Nobody measures pixels from a screenshot. If the brand color changes, the developer edits one line.
States are part of the contract
The .button rule above covers only the resting state. A handoff that stops there leaves the developer to invent the rest. Each state in the design should map to one selector, which also makes it easy to check that none was left out.
.button:hover {
background: var(--color-brand-primary-hover);
}
.button:focus-visible {
outline: 2px solid var(--color-brand-primary);
outline-offset: 2px;
}
.button:disabled {
background: transparent;
color: var(--color-text-disabled);
cursor: not-allowed;
}The :focus-visible selector matches when an element has keyboard focus. It is the reason a handoff must show a focus state: without one, keyboard users cannot see where they are.
Assets are part of the contract too
Images need decisions as well. The example below offers a photo at two widths, in WebP with a JPEG fallback. The browser picks a suitable file. The width and height attributes reserve space so the page does not jump when the image loads, a problem called layout shift.
<picture>
<source type="image/webp" srcset="hero-800.webp 800w, hero-1600.webp 1600w" sizes="(min-width: 960px) 50vw, 100vw">
<img src="hero-800.jpg" srcset="hero-800.jpg 800w, hero-1600.jpg 1600w" sizes="(min-width: 960px) 50vw, 100vw" width="800" height="450" alt="Team reviewing a design on a shared screen">
</picture>For the designer, this means exporting two widths in two formats and noting the intended display size. For the developer, it means no guessing about which files exist. Later chapters cover the choice of format and the export settings.
Edge cases a handoff should anticipate
Some situations appear in nearly every project and are easy to forget.
- Long and short content. A name with 40 characters, a heading that wraps to three lines, or a list with one item. State whether text truncates, wraps, or grows the container.
- Empty and error states. What shows when a list has no items, or a form field fails validation?
- Loading states. Does the page show a spinner, a skeleton, or nothing?
- Missing images. What does an avatar show when the user has no photo?
- Right-to-left or longer languages. If the product will be translated, note that German text is often much longer than English.
- Reduced motion. Some users set their system to limit animation. Say what replaces a motion effect for them.
You will not cover every case in every project. Choose the ones that apply and state them, so the developer does not meet them for the first time in production.
What a handoff should not do
More detail is not always better. A handoff that specifies every pixel of every screen is slow to produce and hard to keep current. Two habits help:
- Specify by token and rule, not by measurement. Say "cards use
space-4between them" once, instead of marking every gap on every screen. - Mark exceptions. If something breaks the pattern, call it out. If it follows the pattern, say nothing.
A handoff also should not become out of date. When the design changes after handoff, update the file and tell the developer. A spec that no longer matches the design is worse than none, because it looks authoritative.
A quick self-check
Before you call a design ready, ask these questions. If you answer "no" to any, the handoff has a gap.
- Can someone who has never seen the project find every screen in the file?
- Does every color, spacing value, and radius have a name?
- Does every interactive component show all of its states?
- Is it stated what happens at the smallest and largest supported widths?
- Are all assets exported, named, and in a suitable format?
- Are focus, contrast, and text alternatives covered?
- Is there a place where open questions and decisions are recorded?
Exercises
Exercise
A developer asks why the hover color on a button is different from the one in the design. The file shows only the resting state. Which part of the handoff was missing, and what should the designer add?
Show answer
The component states part was missing. The designer should add a hover state, along with the other states the button can have (focus, active, disabled, and loading if relevant), and refer to the hover color by token name, such as color-brand-primary-hover, so the value is defined once.
Exercise
A spec says "use a 16px gap between the icon and the label." Rewrite it so it is more useful in a handoff, and explain why the new version is better.
Show answer
Write "use space-3 between the icon and the label." Because space-3 is a named token that equals 16px, the spec maps directly to var(--space-3) in CSS. If the spacing scale changes, the value is updated in one place instead of in every spec and every stylesheet rule.
Exercise
Name three situations, other than different screen widths, that a design showing only one filled-in screen does not cover. For each, say what the handoff should state.
Show answer
Any three of these are acceptable. Long or short content: state whether text truncates, wraps, or grows the container. Empty or error data: show the empty and error states. Loading: state whether a spinner, skeleton, or nothing is shown. Missing images: state the fallback, such as initials or a placeholder. Reduced motion: state what replaces animation. Translated text: note that longer strings must fit.