Design Handoff and Developer Collaboration Questions
Getting a design built as intended: the specs, redlines and acceptance criteria a designer hands to engineers, and the communication that keeps the shipped build faithful to the design. Covers what a developer-facing spec must pin down, including component states, interaction and motion detail, breakpoint behavior, edge cases and error states, accessibility notes, and the design tokens an engineer will consume. Covers how the handoff is actually carried, in Figma Dev Mode, Storybook and the sprint ticket, and where those tools stop being enough. Also working with engineers before and during the build rather than only at the moment of handoff, resolving the tension when design intent meets technical reality, and design QA after the build: verifying the implementation against intent, visual regression checks in CI, and triaging drift without needlessly blocking a release. Both sides of the seam are examinable, including the engineer mapping design variants to component props and turning a spec into a typed component contract. Not design system and token architecture, versioning or governance; not building the prototype itself; not auditing an interface against accessibility standards.
A developer reports that a pixel-perfect implementation of your layout causes layout thrashing and poor performance. How would you adjust your handoff artifacts and specifications to balance visual fidelity and runtime performance while preserving the intended UX?
Sample Answer
Framing: it's rarely fidelity itself that's expensive
Before changing anything in the spec, I'd sit down with the engineer and find out exactly which piece of the design is forcing the runtime-measurement approach that's causing the thrashing. Layout thrashing (sometimes called forced synchronous layout) happens when code repeatedly reads a layout value from the browser, like an element's rendered height, and then writes a change based on it, over and over within the same frame; each read-after-write pair forces the browser to recalculate the page's entire layout instead of doing it once, which shows up to the user as visible stutter, especially while scrolling or resizing. It's almost always caused by trying to replicate a visual relationship that depends on content measured at runtime (equal-height cards with variable content, one element sized relative to a sibling's actual rendered size) using JavaScript, rather than a fixed value CSS (the browser's styling language) can express directly.
Diagnosing which specific requirement is driving it
I'd ask the engineer to point to the exact visual behavior that needed measurement: common culprits are forcing multiple independently rendered cards to always match the tallest one's height, centering an element relative to a sibling whose height isn't known until content loads, or scaling one element as a ratio of another's measured size. Once I know which specific relationship is expensive, I can address that one thing instead of loosening fidelity across the whole screen.
Adjusting the handoff spec
- Redesign the spec around what modern CSS can express natively. Most "pixel-perfect measured" effects (equal-height cards, centering, proportional sizing) have a CSS-native equivalent, CSS Grid or Flexbox's
align-items: stretch, for instance, that the browser computes once during its normal layout pass instead of forcing an extra JavaScript-driven recalculation. I'd revise the spec to describe the outcome ("cards in a row must appear equal height") and explicitly leave the technique to the engineer, rather than specifying a pixel value that implies a measurement step. - Replace zero-tolerance pixel values with an explicit tolerance for anything driven by dynamic content: "vertically centered within 2px" instead of "must be pixel-identical." A 2px variance is invisible to a user; chasing exact equality is frequently the actual source of the expensive measurement loop.
- Mark, directly in the spec, which values are structural and fixed (safe to hardcode exactly: the spacing scale, breakpoints, fixed-size icons) versus which are content-dependent and should carry a tolerance or an explicitly CSS-native technique instead of an exact target.
- Walk the engineer through which visual guarantee is load-bearing for the experience versus incidental to how the original mockup happened to look, given the specific sample content used when I designed it.
Preserving the intended UX
The output of that conversation should be a named, non-negotiable outcome (for example, "cards must never render at visibly different heights"), decoupled from the specific implementation that was originally driving cost. If that outcome can be reached with a native CSS technique and zero runtime measurement, the user-facing experience is fully preserved and the performance problem disappears at the same time. If it cannot be reached natively, the conversation becomes an explicit, priced trade-off rather than a silent one: I rank the visual guarantees so the team knows which single relationship is worth paying a measurement pass for, and which ones I will loosen to a tolerance to buy it. What I never do is leave a spec in place that implies a measurement step nobody agreed to pay for, because that is how the cost gets rediscovered by a user on a slow device instead of by us in review.
Worked example
Take a three-column "PricingCard" component, each card holding a variable-length bullet list of plan features. The original build measured every card's rendered height with getBoundingClientRect() (the DOM method that returns an element's current on-screen size and position) after content painted, took the tallest value, and then wrote that height back onto the other two cards' inline style.height, redoing this on every resize and every time card content changed. Because writing style.height on one card invalidates the very layout the next card's getBoundingClientRect() read depends on, the browser was forced to recalculate layout on every iteration of that loop, once per card, which is exactly the read-write-read-write pattern that causes thrashing.
I'd revise the spec to describe only the outcome: "all three cards in a row must render at the same height as their tallest sibling, regardless of content length," and drop any implied measurement step from the spec entirely. The engineer replaces the manual measuring loop with a single CSS rule: setting the card row to display: grid; grid-template-columns: repeat(3, 1fr); with align-items: stretch (CSS Grid's default), which makes every card in a row stretch to match the tallest one automatically, computed once during the browser's normal layout pass with zero JavaScript and zero measurement. The visual result is identical to what the manual height-matching produced; the difference is entirely in how expensive it was to produce.
Trade-offs and pitfalls
One failure mode is holding the line on the original pixel-exact spec without understanding what's actually expensive about it, which forces the team into either an unnecessary rebuild or, worse, shipping the jank because nobody wants to escalate. The opposite failure mode is over-correcting: loosening tolerance across the whole screen instead of just the specific dynamic relationship that was measured, which quietly degrades quality everywhere performance wasn't actually the problem. The fix has to be scoped to the specific interaction that was expensive, not a blanket retreat from fidelity.
Design an asynchronous handoff process for remote cross-functional teams across time zones. Explain how you'd structure documentation, handoff artifacts, SLAs for designer responses to dev questions, and tools to keep momentum without frequent live meetings.
Sample Answer
Direct answer
Async handoff across time zones works by moving everything a live walkthrough used to convey into a written artifact good enough that an engineer starting their day many hours later never has to wait for a live answer to make normal progress, plus a narrow, explicit response commitment for the genuine ambiguities that remain.
Structure
Documentation: one canonical spec per component or screen, not scattered across chat history, containing everything a synchronous walkthrough would have said out loud: the redline, every state, interaction notes, the tokens used, and a short "why" behind any non-obvious decision. The "why" is the first thing that gets lost when there's no live conversation to ask about it.
Handoff artifacts: a written handoff note per feature, not per file, stating what changed since the last version, what's locked versus still flexible, and linking to the acceptance criteria. Treat this note as the primary artifact, with the design file as reference detail underneath it.
Service-level agreements (SLAs, a stated commitment for how fast something will happen) for designer responses: commit to a number the team can actually hold, for example acknowledge within one business day and give a substantive answer within two, and post it somewhere engineers will actually see it, so a blocked engineer knows whether to wait or document an assumption and move on.
Tools to keep momentum: a single async question thread per feature, not scattered direct messages, so context accumulates in one place; short recorded walkthroughs (two to three minutes) for anything genuinely hard to convey in text, like a motion detail; and a visible "blocked, waiting on design" board column so stalled work is obvious without a meeting.
Worked example
A designer in a UTC+8 zone hands off a settings screen to an engineer in UTC-5, roughly a 13-hour offset with almost no overlapping working hours. The handoff note states the toggle's disabled state uses 40% opacity of the enabled color, and that this matches an existing pattern elsewhere in the product, the "why" that stops the engineer's live guess of "0.5 looks about right" from silently drifting off spec. Working while the designer is asleep, the engineer hits a real gap the spec didn't cover, what a toggle that's both disabled and in an error state should look like, and posts it to the shared question thread with a proposed default, noting they'll ship that default unless corrected inside the response window. The designer confirms it the next morning, and the engineer's next session incorporates the answer instead of the day having been blocked.
Trade-offs & pitfalls
The core failure mode of async-first handoff is under-specifying, because "we can just ask" no longer works within the hour, so documentation has to be more complete than a co-located team would ever bother writing. Skipping that completeness to save time up front just moves the cost onto blocked engineers later. A response commitment that's too aggressive, promising same-hour answers across a 13-hour gap, is a promise nobody can keep and erodes trust in every other commitment the process makes. And "propose a default and proceed unless corrected" only works if engineers document the default loudly enough for the designer to actually catch a wrong one; a silent guess with no flag recreates the exact drift the process exists to prevent.
Describe best practices for exporting and optimizing SVG icons for the web so they can be used inline and as files. Include details on ID/metadata stripping, viewBox handling, accessibility (title/desc), and when to use symbol/sprite vs individual files.
Sample Answer
Direct answer
A clean Scalable Vector Graphics (SVG) export for the web does three things a raw design-tool export usually doesn't: it strips the tool's own generated clutter so the file is small and its internal names don't collide with anything else on the page, it sets the viewBox correctly so the icon scales cleanly at any size instead of being locked to its export dimensions, and it exposes an accessible name for anything that carries meaning rather than being purely decorative.
ID and metadata stripping
Design tools (Figma, Sketch, Illustrator) export SVGs full of tool-specific clutter: auto-generated identifiers like path-3-inside-1_2043_881, a <title> tag set to the design layer's internal name, editor namespaces, and unused <defs> blocks. Running the export through a cleanup tool such as SVGO, a widely used SVG optimizer, strips this safely, but two things must never be stripped blindly: an identifier actually referenced by a <use> element elsewhere, and any accessibility markup added deliberately. A designer handing off SVGs should flag which identifiers are load-bearing rather than letting an automated pass remove all of them.
viewBox handling
The viewBox attribute (four numbers: min-x, min-y, width, height, defining the SVG's internal coordinate system) should match the icon's actual drawn bounds, and the SVG's own width/height attributes should either be omitted or match the viewBox's aspect ratio. A viewBox that doesn't match the visible artwork, common when an export includes extra invisible canvas padding from the design tool, renders the icon off-center or with unwanted whitespace once it's resized by CSS.
Accessibility: title and desc
A meaningful icon, one that conveys information on its own, like a standalone delete-icon button with no visible text label, needs a <title> element inside the SVG plus role="img". Two different specifications are doing the work there, and mixing them up in a handoff note is a common source of confusion. <title> and <desc> are elements defined by the SVG specification itself, exactly like <path> or <g>: <title> supplies the graphic's accessible name, and <desc> adds a longer description for a genuinely complex illustration. role="img" and aria-hidden="true" come from Accessible Rich Internet Applications (ARIA), a separate standard for exposing UI semantics to assistive technology. They are needed together rather than interchangeably: the SVG element supplies the text, and role="img" is what tells assistive technology to treat the whole SVG as one graphic and announce that text instead of walking into its individual shapes.
Because support for reading a bare <title> has been inconsistent across screen readers, the durable form gives the <title> an id and points at it with aria-labelledby, so the name is exposed through the ARIA mechanism as well as the SVG one. That id has to be unique on the page, which collides directly with inlining the same icon many times, so specify that the identifier is generated per instance rather than baked into the exported file. A purely decorative icon, one that always sits beside its own text label, like a small icon inside a button that already says "Save," needs none of this and should instead be marked aria-hidden="true" so a screen reader skips it entirely rather than announcing something redundant.
Symbol/sprite vs individual files
A <symbol>-based SVG sprite, one file defining many icons by identifier, each referenced elsewhere via <use href="#icon-name">, pays off once a product uses enough repeated icons that the byte savings and single-request benefit outweigh the added build complexity, typically past a couple dozen distinct icons reused across many pages. Individual files, or inline SVG per component, are simpler to reason about, let one icon change independently, and make more sense for icons used sparingly or that need per-instance fill colors a shared sprite entry can make trickier to override.
Worked example
A rating-star icon exported raw from a design tool: <svg width="24" height="24" viewBox="0 0 24.5 24.3"><title>Layer 3 Copy 2</title><defs><clipPath id="clip-path-928-unused">...</clipPath></defs><path id="path-3-inside-1_2043_881" d="M12 2l..." fill="#F5A623"/></svg>. Cleaned up for use as a standalone meaningful icon, an average-rating badge with no adjacent text:
<svg width="24" height="24" viewBox="0 0 24 24" role="img" aria-labelledby="rating-star-title">
<title id="rating-star-title">Rated 4.5 out of 5 stars</title>
<path d="M12 2l..." fill="#F5A623"/>
</svg>
The tool-generated id (path-3-inside-1_2043_881) is gone, but a deliberate one (rating-star-title) has been added, which is the distinction the stripping section is about: the cleanup pass removes identifiers nothing references and keeps the ones something does. If this badge renders once per row in a list, that id has to be generated per instance, or every duplicate after the first is invalid markup and the accessible name resolves to the wrong element.
If the same star instead sits inside a "4.5 (128 reviews)" text row, it's decorative, since the adjacent text already conveys the information:
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 2l..." fill="#F5A623"/>
</svg>
Trade-offs & pitfalls
Stripping metadata too aggressively with a default optimizer configuration can delete an identifier a <use> reference or animation depends on, silently breaking the icon rather than just shrinking the file; always test optimized output, never trust it blind. Sprites add indirection, an icon's real markup lives in a shared file, not next to where it's used, that can slow a small team down more than it saves; don't adopt a sprite system before the icon count actually justifies it.
During handoff you discover the engineering team uses a different naming scheme for color and spacing tokens than your design system. How would you reconcile these differences and align both teams to a shared token map while minimizing disruption to ongoing implementation?
Sample Answer
Direct answer
I'd reconcile the naming mismatch by building a shared token map, a single side-by-side reference both teams treat as the source of truth, in two layers: a short-term alias so the two token sets resolve to the same underlying values without anyone renaming anything in code they're actively working on, and a longer-term migration plan to a single canonical name once the disruption cost of renaming is actually low. Trying to force an instant rename across an in-flight codebase is the mistake that causes the most disruption, not the one that prevents it.
Step 1: audit and categorize
I export the design system's token list from Figma (name, value, and where it's used) and pull engineering's existing token file, then build a side-by-side mapping. Each pair falls into one of three buckets: exact matches (same value, different name, like neutral-100 versus gray-10), semantic near-matches (close but not identical values that need a decision about which one becomes canonical), and tokens that exist in only one system and need to be added to the other.
Step 2: short-term aliasing
For exact matches and semantic equivalents, I propose adding aliases in engineering's token layer so both names resolve to the same value. This is the part that "minimizes disruption to ongoing implementation": nobody has to change any code that already references gray-10, because it now quietly points to the same value as neutral-100.
Step 3: migration plan and governance
I prioritize renaming by usage: the tokens referenced in the most places get the most careful phased rollout, less-used tokens can rename sooner. I also establish a single token owner (a cross-functional role, not one team unilaterally deciding names) so the next naming mismatch gets caught before ten components have shipped with it.
Step 4: communicate and verify
A short working session with both teams to walk through the mapping and agree on the canonical direction, then updating any shared component library (like Storybook, a tool that renders each component in isolation for review) to reflect the aliases, followed by a quick regression pass to confirm nothing visually shifted. Make that pass concrete rather than a look around the app: build the tokens and diff the compiled output (the generated CSS or platform files) against the previous build. Apart from the newly added tokens it should come out byte-identical, because an alias layer that changes any existing computed value is not an alias layer, it is a silent restyle wearing one, and a diff of the compiled artifacts is the only cheap way to prove which of the two you just shipped.
Worked example
Suppose the audit turns up this mapping:
| Design token | Code token | Value | Category |
|---|---|---|---|
| neutral-100 | gray-10 | #F5F5F5 | exact match, different name |
| primary-500 | brand-blue | #0B74FF | exact match, different name |
| spacing-2 | space-sm | 8px | exact match, different name |
| spacing-3 | (missing) | 16px | design-only, needs adding |
The alias layer in the engineering token file would look like this, so existing code referencing gray-10 keeps working unchanged while the design-facing name becomes the documented canonical one:
{
"color": {
"neutral-100": { "value": "#F5F5F5" },
"primary-500": { "value": "#0B74FF" },
"gray-10": { "value": "{color.neutral-100.value}" },
"brand-blue": { "value": "{color.primary-500.value}" }
},
"spacing": {
"spacing-2": { "value": "8px" },
"spacing-3": { "value": "16px" },
"space-sm": { "value": "{spacing.spacing-2.value}" }
}
}
The shape of that file is the part to get right, and it is easy to get wrong in a way that looks correct. The canonical token is defined once with a literal value, and the legacy name is a reference to it, not a second copy of the same value. The curly-brace syntax is the reference form common to token build tools (Style Dictionary and the W3C design-tokens draft both use this shape, and your pipeline may spell it slightly differently); what matters is that the build resolves a pointer rather than trusting two hardcoded values to stay equal forever. Write gray-10 instead with its own "value": "#F5F5F5" and a note saying it corresponds to neutral-100, and the file reads as aliased while behaving as a duplicate: the first time the canonical grey is adjusted, neutral-100 moves and gray-10 silently does not, and a naming problem has quietly become a colour-drift bug on every screen still using the old name. A real reference also fails loudly at build time if the canonical name is misspelled or removed, where a copied literal fails silently, visually, and months later.
spacing-3 is defined directly rather than as an alias, since it doesn't exist in the code token file yet and so has nothing to point at. The team agrees neutral-100, primary-500, and spacing-2 are the canonical names going forward, and new code is asked to reference those directly, while old references keep working through the alias until a low-disruption window (like a planned refactor) is used to update them.
Trade-offs and pitfalls
Aliasing forever avoids disruption but means two names permanently exist for one value, which is its own long-term confusion if nobody ever completes the migration; it needs a real deadline, not an open-ended one. The pitfall to avoid is skipping the audit step and reconciling names from memory or a quick conversation: values that look equivalent (two similar grays) are sometimes intentionally different, and merging them silently introduces a visual regression instead of fixing a naming problem.
Explain how to use Figma's Inspect / Developer Mode (or an equivalent feature in another tool) to provide developers with accurate measurements, CSS values, token references and downloadable assets. What common mistakes should designers avoid when relying solely on Inspect output?
Sample Answer
What Inspect / Dev Mode does
Figma's Inspect panel (in newer Figma, a dedicated Dev Mode) lets an engineer select any layer in a design file and see, without the designer manually writing it down, the exact spacing and sizing in pixels, the CSS (the browser styling properties like padding, color, and font-weight) that would reproduce that layer's appearance, which design token a color or spacing value is bound to if one exists, and a direct export or download of any image or icon layer in the format and density needed. It effectively turns the design file into a live reference an engineer can query, instead of the designer manually transcribing every value into a separate spec document.
Common mistakes when relying on it alone
-
Treating the resolved value as the source of truth instead of the token. Inspect shows the CSS value a token currently resolves to (for example
#2F6FED), but if the layer isn't actually bound to a token, it shows a value that will silently drift out of sync the next time the design system's tokens update. An engineer copying the raw hex code instead of checking whether it's bound to a token bakes in a value that stops updating. -
Assuming a static frame's Inspect output covers every state. Inspect only shows the exact layer you selected, in whatever state it happens to be in on the canvas. If the file only has a default-state frame, Inspect gives accurate measurements for a state the component might rarely be in, and says nothing about hover, focus, error, or loading, those still need to be explicitly designed and annotated, not inferred from Inspect.
-
Missing interaction and motion entirely. Inspect describes a static layer's properties; it cannot tell an engineer what triggers a transition, how long it should take, or what easing to use, because none of that exists as a property of a static frame. Relying solely on Inspect for a component with meaningful motion produces pixel-accurate but behaviorally wrong results.
-
Missing responsive and layout intent. Inspect reports the exact pixel measurements of the specific frame you're viewing (say, the desktop frame), not how that layout should behave at widths in between designed breakpoints. An engineer who inspects only the desktop frame and interpolates on their own can reconstruct a layout that technically matches at the two or three designed widths and diverges everywhere else.
-
Missing accessibility properties. Nothing about keyboard focus order, ARIA roles or labels (attributes that describe a component to a screen reader), or required contrast ratios shows up in Inspect's output, because these aren't visual layer properties at all. They have to be documented separately, in the same states and annotation artifacts Inspect can't generate.
Worked example
A card component's border color inspects as #E2E8F0. If that value is bound to the token color-border-subtle, an engineer who reads it directly off Inspect without checking the token panel might hardcode #E2E8F0 in the component's CSS. Six months later, a design-system update changes color-border-subtle to a slightly cooler gray to match a refreshed palette; every other component picks it up automatically, and this one card silently stays on the old value until someone notices the visual inconsistency and has to hunt down where it went wrong.
The general principle
Inspect is excellent at replacing manual transcription of static, single-state visual properties. It is not a substitute for the artifacts that describe states, interaction, responsive behavior, and accessibility, because none of those are properties Inspect can read off a single static layer.
Unlock Full Question Bank
Get access to all Design Handoff and Developer Collaboration interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.