Sub topic 12
Annotating and Documenting the Handoff
This chapter assumes you have read the earlier chapters on tokens, specs, assets, states, responsive behavior, interactions, and accessibility. You know how to produce each piece. Here you will learn how to tie those pieces together so a developer can find them, trust them, and act on them without a meeting.
Why annotation is a separate step
A design file shows what the interface looks like. It does not show what the developer cannot see: which value is a token, what happens when a name is 80 characters long, why a card is 24px apart from its neighbor, or which of three similar frames is current.
Annotation fills those gaps. Documentation collects the annotations, links, and decisions into one place. Together they answer four questions a developer asks repeatedly:
- What exactly am I building?
- Where is the source for each value and asset?
- What happens in cases the mockup does not show?
- Who do I ask when something is unclear?
If the file answers these, the developer works from the file. If it does not, the developer works from guesses and chat messages, and those guesses are what later show up as review comments.
Annotations: what to mark and what to leave out
An annotation is a short note attached to a specific spot in the design. Good annotations add information that cannot be read from the pixels. Poor annotations repeat what the developer can already measure with the inspect panel.
| Worth annotating | Not worth annotating |
|---|---|
| Token names (`space-3`, `color-brand-primary`) | Raw hex values already shown in inspect |
| Behavior that is not visible (truncation, wrapping, scroll) | Pixel sizes that match the grid |
| Data rules (max length, empty value, plural forms) | Obvious labels such as "this is a button" |
| Links to the state, responsive, and motion specs | A full copy of the spec next to each element |
| Deliberate exceptions to the system | Personal preferences with no requirement behind them |
| Open questions with an owner | Resolved discussion threads |
Annotate by reference, not by copy
Do not retype values into notes. A note that says padding 16px goes stale the moment the token changes. A note that says padding: space-3 stays correct, because the developer looks up the token and gets the current value.
The same rule applies to long specs. If the button states are documented on a component page, the annotation on a screen should link to that page. Copies of a spec drift apart, and then the developer has to decide which copy is right.
Use a consistent note format
Choose one format and use it everywhere. A reader should be able to scan the notes without relearning the layout each time. One workable pattern is:
[Element] — [rule]. Token: [name]. See: [link or section].For example:
Product title — wraps to 2 lines, then truncates with an ellipsis. Token: text-heading-sm. See: Card / Content rules.Number the notes on the canvas and keep the matching list beside the frame. Numbers let people in a review say "note 4" instead of describing where to look.
Mark the unusual
Most of a design follows the system. The developer's attention is limited, so spend it on the places that break the pattern. Flag these clearly:
- A value that is not a token, with the reason (for example, "hero offset is 72px to align with the photo crop; not reusable").
- A component used in a way the library does not cover.
- A screen where the layout rule differs from the grid.
- Anything that must not change, such as legal text or a fixed-ratio image.
An unflagged exception looks like a mistake, and a developer may "fix" it back to the system value.
Describing content rules
Mockups use ideal content. Real content is longer, shorter, missing, or in another language. A handoff should state the rules for each content slot. Cover these cases:
- Minimum and maximum length. "Title: 1 to 60 characters."
- Overflow behavior. Wrap, truncate with an ellipsis, shrink, or grow the container.
- Missing values. What shows when there is no image, no subtitle, or no price.
- Number and date formats. Currency symbol placement, thousands separators, time zones.
- Longer languages. German or Finnish strings can be 30 percent or more longer than English, so a fixed-width button may break.
You can express a rule directly in CSS terms when you know the intended behavior. This helps the developer and also checks that your rule is implementable:
.card__title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
}You do not need to supply code in a handoff, and the developer may choose another approach. The value of writing it is that "two lines, then ellipsis" becomes unambiguous.
Documenting decisions and exceptions
Some choices have a reason that is not visible in the design. Record the reason next to the decision. Three lines are enough:
- Decision: what was chosen.
- Reason: the requirement, constraint, or test result behind it.
- Revisit when: the condition that would change it.
Example: "Decision: the primary button is blue, not the campaign orange. Reason: orange on white fails the 4.5:1 contrast ratio for text. Revisit when: the brand palette is updated."
A reason prevents two failures. A developer will not silently change a choice they understand, and a future designer will not reverse it without knowing the cost.
The handoff document
Annotations live on the canvas. The handoff document lives beside it and works as the table of contents for everything. Keep it to one page or one section at the front of the file. It should contain:
- Scope. The feature or flow, the screens included, and what is explicitly out of scope.
- Status. Ready for development, in progress, or on hold, with a date.
- Links. The design file section, the token file or library, the exported asset folder, the prototype, and the ticket or brief.
- Breakpoints and platforms. Which widths and browsers the design covers.
- Component list. Each component used, whether it is existing or new, and where its states are documented.
- Known gaps. Things not yet designed or decided, each with an owner.
- Contacts. Who answers design questions and who answers product questions.
- Change log. A dated list of what changed after the first handoff.
Keep a change log
Designs change after the developer starts building. If the change is silent, the developer finds out in review, after building the old version. Record every change after handoff with a date, a one-line description, and the affected frames.
## Change log
| Date | Change | Frames | Impact |
| --- | --- | --- | --- |
| 2026-11-20 | Card radius changed from `radius-sm` to `radius-md` | Cards, Listing | Token swap only |
| 2026-11-24 | Empty state added for saved items | Saved / Empty | New component state |
| 2026-11-26 | Checkout total moved below the fold on mobile | Checkout / 375 | Layout change |The impact column helps the developer judge the cost of each change. A token swap takes minutes. A layout change may mean rework.
Mark superseded frames too. Move old versions to a page named Archive or add a visible "Superseded" label. A developer who opens the wrong frame will build the wrong thing, and nothing in the file will warn them.
How the pieces connect
The handoff document points to everything. Each annotation points to the spec behind it. Each spec points to tokens.
When every path ends at the token file, a change to a value happens in one place and every screen that uses it stays correct.
Mapping annotations to code
A useful test for an annotation is whether it translates directly into code. If a note cannot, it is usually too vague. Compare these two:
- Vague: "Make the button feel clickable."
- Specific: "Hover: background
color-brand-primary-hover. Focus: 2px outline, 2px offset."
The specific note maps to the selectors in the component states chapter:
.button:hover {
background: var(--color-brand-primary-hover);
}
.button:focus-visible {
outline: 2px solid var(--color-brand-primary);
outline-offset: 2px;
}Because the note uses the token name, the developer can search the code for --color-brand-primary-hover and confirm the match. Because the note names the state, a reviewer can check that every documented state has a selector.
Tools for annotation
Most design tools offer more than one way to attach notes. Choose based on how long the note must last.
| Method | Good for | Weakness |
|---|---|---|
| Canvas notes or sticky notes | Short, visible rules on a screen | Clutter a frame if overused |
| Component descriptions | Rules that apply to every use of a component | Easy to miss unless linked |
| Dev mode or inspect annotations | Measurements and token links | Do not carry reasoning |
| Comments | Questions and temporary discussion | Get resolved and disappear |
| A separate document or wiki | Longer decisions and the change log | Can drift from the file |
Put permanent rules in component descriptions or the handoff document. Keep comments for questions. A rule that exists only in a comment thread will be lost when someone resolves it.
Common errors
- Annotating everything. When every element has a note, none stand out. Annotate exceptions and hidden behavior.
- Copying values. Retyped numbers go stale. Reference tokens and link to specs.
- Unowned questions. An open question with no name attached is never answered. Give each one an owner and a date.
- Silent changes. Edits after handoff with no log cause rework.
- Stale frames. Old versions left beside current ones invite the wrong build.
- Broken links. A link to a moved page or private file blocks the developer. Test every link from a developer's account.
- Notes in a private place. Decisions made in chat and never written down are lost when the thread scrolls away.
A short checklist
- The handoff document states scope, status, links, and contacts.
- Every annotation references a token or links to a spec instead of copying values.
- Exceptions to the system are flagged with a reason.
- Content rules cover length, overflow, missing values, and formats.
- Open questions each have an owner and a date.
- The change log is current and old frames are archived or labeled.
- All links work from a developer's account.
Exercise
A designer writes a note on a product card: "Padding 16px, corner radius 6px, title color #1a1a1a." Later the team changes the radius token from 6px to 8px. What goes wrong, and how should the note be rewritten?
Show answer
The note now disagrees with the design. The frame uses 8px, the note says 6px, and the developer must guess which is right. Values copied into notes go stale. Rewrite the note to reference tokens: "Padding: space-3. Radius: radius-md. Title color: text-default." A token change then updates the meaning of the note automatically.
Exercise
List three things a content rule for a product title should state, and give one example rule.
Show answer
It should state the length limits, the overflow behavior, and what shows when the value is missing. Other acceptable items are number or date formats and behavior for longer languages. Example: "Title: 1 to 60 characters. Wraps to 2 lines, then truncates with an ellipsis. If missing, the card is not shown."
Exercise
Two days after handoff, a designer moves the checkout total below the fold on mobile. What should the designer do so the developer does not build the old layout?
Show answer
Add a dated entry to the change log that names the change, the affected frame (for example Checkout / 375), and the impact (layout change). Move the old frame to an archive page or label it "Superseded". Tell the developer directly, because a log entry alone may not be read.