Sub topic 2
Organizing the Design File So It Can Be Read
A developer opens your file once to plan the work and many more times to check details. If they can't find the right screen in a few seconds, they will guess, and guesses turn into rework. This chapter covers how to structure pages, frames, layers, and names so the file reads like a map instead of a pile.
This chapter assumes you can use a design tool such as Figma, Sketch, or Adobe XD. You should know what layers, frames, and components are. You should also know roughly how HTML and CSS describe a page. The examples use Figma terms, but the ideas carry over to other tools.
What "readable" means for a handoff file
A readable file lets a developer answer four questions without asking you:
- Which screens are final and ready to build?
- Where is the reusable piece (a component) and where is a one-off layout?
- What is each element called, and does that name match something in code?
- What changed since the last time they looked?
Most problems come from the same causes. Exploration and final work share a page. Names are left at defaults like "Frame 2043". Copies of components are scattered around, so nobody knows which one is the source. Fixing these is cheap while you work and expensive after the developer has started building.
Page structure
Pages are the top level of the file. Use them to separate the stages of the work, so a developer can ignore everything that isn't ready.
A workable page layout looks like this:
| Page | Contents | Who reads it |
|---|---|---|
| Cover | Project name, status, version, links to the brief and the build ticket | Everyone |
| Ready for dev | Final screens, grouped by flow | Developers |
| Components | The source components with all their states | Developers and designers |
| Tokens and styles | Color, type, spacing, and radius references | Developers and designers |
| Assets | Icons, illustrations, and images marked for export | Developers |
| Exploration | Drafts and rejected ideas | Designers only |
| Archive | Old versions kept for reference | Nobody, by default |
The key rule is that only the "Ready for dev" page holds work a developer should build. Everything else is support material or history. Many teams add a prefix or emoji to page names so status is visible in the page list. A plain text prefix works in every tool.
Frames, sections, and flows
Inside "Ready for dev", organize screens by user flow, not by the order you designed them. A flow is a sequence of screens that completes a task, such as "Sign up" or "Checkout".
- Put each flow in its own section or a labeled group, with a heading above it.
- Arrange frames left to right in the order the user sees them.
- Place alternative states of a screen (empty, error, loading) directly under or beside the main screen, not in a different part of the file.
- Draw prototype connections only if they are accurate. A wrong arrow is worse than none.
Give each frame the size of the device it represents. A common set is a desktop frame, a tablet frame, and a mobile frame, with sizes that match your breakpoints. If your layouts change between 640 px and 960 px, the frames should show widths on both sides of those values. Later chapters cover breakpoints in detail. Here the point is only that the frame width should be a deliberate number, not whatever the artboard happened to be.
Naming conventions
A name is a promise about what something is. Good names are predictable, so a developer can guess them and be right.
Choose one pattern and keep it
Pick a pattern for each kind of object and write it down on the cover page. A common pattern for components uses a slash to create a hierarchy:
Button/Primary/DefaultButton/Primary/HoverInput/Text/ErrorCard/Product/Loading
Most tools turn the slashes into nested menus, so the library stays browsable. Use the same word order everywhere: the component first, then the variant, then the state.
For screens, use a pattern such as Flow / Screen / Breakpoint, for example Checkout / Payment / Mobile.
Match the code vocabulary
Ask the developer what they call things. If the codebase has a component named Alert, don't name your version Notification Banner. The closer your names are to the code, the fewer translations happen in conversation. The same goes for token names, which the next chapter covers: space-3 in the design should be --space-3 in CSS.
Rules that prevent most naming trouble
- Use lowercase or consistent title case, not a mix.
- Avoid spaces at the end of names and avoid special characters such as
&,#, and%. They cause trouble later when names become file names or class names. - Don't use words that describe a moment ("final", "new", "v2-fixed"). Use version history or a changelog instead.
- Don't encode values in names.
Blue 500is stable;Light blue we used last weekis not. Likewise, avoidButton 16pxwhen the size may change. - Rename default layers. "Rectangle 12" and "Group 4" tell the developer nothing.
Layer hygiene
Layers are what the developer inspects when they click an element. The layer tree should mirror how the page will be built.
- Group by meaning. A card's image, title, and button belong in one named container. That container often becomes a
divor a component in code. - Use auto layout where the layout will be flexbox or grid. Auto layout in Figma maps closely to flex behavior. It records padding, gap, and direction as real values, which the developer can read instead of measuring by eye.
- Delete hidden and unused layers. A hidden layer still shows up in the inspect panel and in exports, and it raises questions.
- Avoid masks and stacked tricks when a simple shape works. A cropped image inside an oversized frame can export at the wrong size.
- Keep text as live text. Don't convert text to outlines. The developer needs the string, the font, and the size.
- Flatten only what you will export as one image. A complex vector badge can be flattened, and then it should be named as an asset.
Check that spacing values come from your scale. If a gap measures 17 px in one place and 16 px in another, the developer must decide which is intended. Snap to the scale before handoff.
Components versus instances
A component is the single source for a reusable element. An instance is a use of it on a screen. Readability depends on keeping that relationship intact.
- Every repeated element on a final screen should be an instance of a component, not a copy.
- Don't detach instances to make small changes. If you need a variation, add it to the component as a variant or a property.
- Keep the main component on the Components page, with every state laid out next to each other. States are covered in a later chapter.
- If a one-off element truly is unique, leave it as plain layers and name it clearly, for example
Hero / Banner (one-off).
When a developer sees an instance, the inspect panel shows its component name. A detached copy shows only generic layers, so the developer cannot tell that it matches a reusable piece. That leads to the same thing being built twice.
Status, versions, and changes
Handoff is not a single event. Designs change after the developer starts. Make changes visible.
- Put a status label on each flow: "Draft", "Ready for dev", "In build", "Changed after handoff".
- Use a version name and date on the cover page, and save named versions in the tool's version history when you hand off.
- Mark changes with a visible note or a colored tag near the frame, and remove the tag once the change is built.
- Keep a short changelog on the cover page: date, what changed, which frames.
Without this, the developer re-checks every screen to find what moved. With it, they check only the tagged frames.
A pre-handoff checklist
Run through this before you send the link. It takes about ten minutes on a small file.
- The Cover page states project, version, status, and links.
- Only final work is on "Ready for dev".
- Each flow has a heading and screens in order.
- Frame widths match the agreed breakpoints.
- No layer carries a default name such as "Frame 2043".
- No hidden, empty, or off-canvas leftovers remain.
- Repeated elements are instances; none are detached.
- Spacing and color values come from the scale and styles.
- Export-ready assets are named and gathered on the Assets page.
- The file's sharing setting gives the developer view and inspect access.
Common mistakes
- Treating the file as private workspace. What is comfortable for the designer, such as stray notes and old frames, is noise for the reader.
- Over-nesting. Ten levels of groups make the inspect panel hard to follow. Keep the tree as flat as the layout allows.
- Renaming after the fact. If the developer has already referred to
Card 3in tickets, renaming it breaks their links. Rename before handoff, and announce renames afterward. - Inconsistent patterns. Half the components using
Button/Primaryand the other half usingPrimary Buttondefeats the point of a convention. - Forgetting access. A perfect file the developer cannot open is not a handoff.
Exercise
A developer asks why the file has two nearly identical "Card" designs on the Ready for dev page, and which one to build. Name two problems in the file's organization that likely caused this, and say how you would fix each one.
Show answer
Likely problems: (1) a draft or older version sits next to the final one on the Ready for dev page, and (2) the second card is a detached copy of the component, or there is no clear source component. Fixes: move the older version to the Exploration or Archive page, and replace the detached copy with an instance of the main component (adding a variant if the difference is intended). Also add a status label and a changelog entry so the current version is clear.
Exercise
Rewrite these layer and component names to follow a "Component/Variant/State" pattern and remove default or moment-based names: "Frame 2043", "primary button hover final", "Error input v2".
Show answer
Reasonable answers: "Frame 2043" becomes a meaningful container name such as "Card/Product/Default" (based on what the frame actually is). "primary button hover final" becomes "Button/Primary/Hover". "Error input v2" becomes "Input/Text/Error". The words "final" and "v2" are removed because version history and the changelog record that information.