Design Tools and AI-Assisted Workflows Questions
Working efficiently and confidently inside a design tool such as Figma, Sketch, or Adobe XD. Covers organizing files, pages, and layers for a team; naming conventions that stay searchable as a project grows; version history, branching, and merge practices that let several designers work at once without overwriting each other; and diagnosing a shared file that has grown slow to open and edit. Covers building components in the tool so they hold up in practice, using its layout, resizing, and variant systems so a component adapts across screen sizes and survives real content instead of tidy placeholders. Also covers working faster and automating repetition: keyboard shortcuts, choosing workflow plugins and knowing when to avoid them, and occasionally scripting one; export settings for production assets, including formats, scale factors, and file naming; and choosing or migrating between design tools for a team's needs. Does not cover design token architecture, component governance, or design system versioning; prototype fidelity or interaction pattern choices; accessibility auditing; responsive and multi-platform design strategy; or handoff specs, redlines, and developer communication, each of which is its own topic.
How do resizing constraints (for example, 'fill container', 'hug contents', or fixed size) in Figma or Sketch help adapt components across screen sizes? Describe a header component example that must keep the logo left and action icons right while the center area adapts between breakpoints, and explain the constraint choices you'd make.
Sample Answer
Direct answer
"Fill container," "hug contents," and fixed size are a design tool's Auto Layout sizing behaviors: they control how a layer's own size responds when its content or its parent changes. They work alongside the older, separate constraints system (pin left, right, top, bottom, center, or scale), which controls where a layer sits and how it stretches when its parent frame is resized, whether or not that parent uses Auto Layout at all. For a header with a fixed logo on the left, fixed action icons on the right, and a center area that should adapt, the combination that gets it right is: logo and icon group set to a fixed or hug-contents size so they never distort, and the center area set to fill the remaining space, so it's the only part that grows or shrinks as the header's width changes.
Structured elaboration
Fixed size: the layer keeps an exact pixel width or height regardless of content or container. Use it for anything that must never distort, like a logo mark.
Hug contents: the layer's size is computed from what's inside it, so adding a longer label grows it just enough to fit, and shrinking the content shrinks it back. Appropriate for a text label or an icon group whose natural size is the size you want.
Fill container: the layer expands to take whatever space is left in its parent after fixed- and hug-sized siblings have claimed theirs. Appropriate for the one element in a row that should absorb any extra or missing space.
Classic constraints: available on any layer, whether or not it's inside an Auto Layout frame. Pinning a layer's edges to its parent's edges (left, right, top, bottom, center, or scale) means that when the parent resizes, pinned layers move or stretch relative to those pins. This is the tool to reach for on a plain frame that isn't using Auto Layout, or for a layer that needs parent-relative behavior the sizing modes above don't directly express.
Applying this to the header: place the logo, center area, and icon group inside one horizontal Auto Layout frame. Logo: fixed or hug contents, so it never stretches or shrinks. Icon group: the same, so icons stay crisp and evenly spaced. Center area (a search field, nav links, or a page title): fill container, so as the header's overall width changes across breakpoints, the center area absorbs that change while logo and icons hold their exact size at both ends. If the header is a plain, non-Auto-Layout frame instead, the equivalent with constraints is: logo pinned left, icon group pinned right, and the center element constrained to both left and right at once (a "stretch" constraint), so its width recalculates as the parent frame's width changes while the two ends stay anchored.
Worked example
A header is 1200 pixels wide on desktop: logo fixed at 120px, icon group fixed at 96px (three 32px icons), leaving 984px for a center search field set to fill container. At a 768px tablet breakpoint the header narrows to 768px: logo and icons stay exactly 120px and 96px, unchanged, since they're fixed or hug-sized, and the search field, set to fill container, recalculates to 552px automatically, with no manual repositioning. Built without Auto Layout, using constraints instead, the equivalent setup pins the logo left, the icon group right, and gives the search field a left-and-right stretch constraint, so narrowing the parent frame from 1200 to 768px stretches the field to the same 552px. The visible result is identical; what differs is the mechanism, a recalculated relationship versus a constraint recomputed on parent resize.
Trade-offs and pitfalls
Setting the center area to hug contents instead of fill container is a common mistake: it will size to its own placeholder text rather than expanding to use the available header width, so the layout won't look adaptive at all until that's corrected. Applying constraints to a layer nested directly inside an Auto Layout frame usually has no effect, since the parent's own sizing modes take priority for direct children; mixing the two systems on the same layer is a frequent source of "why isn't this resizing the way I expect" confusion, so it's worth knowing which system actually governs a given layer before debugging it. For a header with more than three zones, logo, nav links, search, and an avatar, for example, a single fill-container element in the middle usually isn't enough on its own, and that typically calls for nested Auto Layout frames rather than forcing one flat row to do everything.
Explain what Auto Layout is in Figma or a similar design tool, and how it differs from manual positioning. Then walk through how you'd use it to build a horizontal row of buttons that needs to wrap, keep equal spacing, and stay centered as the screen gets smaller, and describe when you'd reach for constraints or manual resizing instead.
Sample Answer
Direct answer
Auto Layout is a rule-based layout engine built into a design tool's frames: instead of placing every element at a fixed x/y position and manually nudging things whenever content changes, you tell a frame how its children should be arranged, direction, spacing, alignment, padding, and the frame recalculates positions itself whenever content is added, removed, or resized, the same underlying idea as flexbox in CSS. Manual positioning has no such rule: every element keeps the exact coordinates it was given, and only the tool's separate constraints system (pinning edges) adjusts anything, and only in response to the parent frame's own resize, not to a sibling's content changing.
Structured elaboration
What Auto Layout manages once turned on: the arrangement direction of children, a consistent gap between items, inner padding around the group, how items align on the cross axis, and a sizing mode per child, whether it hugs its own content, fills the remaining space in its parent, or stays a fixed size.
Difference from manual positioning: manual layout stores each layer's coordinates directly, so nothing recalculates automatically when a sibling's width changes; you'd have to move every affected element by hand. Auto Layout stores relationships instead of coordinates, so it behaves like a live layout system rather than a fixed snapshot.
Building the button row, step by step:
- Turn the group of buttons into an Auto Layout frame arranged left to right.
- Set a fixed gap value between items so spacing is uniform rather than hand-eyeballed.
- Turn on the frame's wrapping behavior, so once the row runs out of horizontal room, additional buttons drop to a new line instead of overflowing or shrinking unreadably.
- For "stay centered as the screen gets smaller": set the row's own alignment to center, so wrapped rows re-center as a group, and set the outer frame to fill the available parent width rather than a fixed pixel width, since it needs less room to work with as the screen narrows, which is what triggers the wrap in the first place. Each button should hug its own text content rather than stretch, so buttons don't awkwardly grow to fill leftover space.
When to reach for constraints or manual resizing instead: constraints (pin to left, right, top, bottom, center, or scale) are the right tool for an element that needs to react to its parent frame resizing but has no internal sibling relationships to manage, a background image, a single decorative graphic, or a fixed watermark that should sit in the same corner regardless of screen size. Manual, fixed positioning suits content that is intentionally exact and never expected to reflow, like a pixel-precise illustration or a one-off frame that will never be resized. Reach for Auto Layout whenever a group of siblings needs correct spacing or order as items are added, removed, or the container resizes, which covers most real UI, including this button row.
Worked example
The button row above illustrates the main mechanism. A second, related case: an icon-plus-label button has to shrink cleanly when the icon is turned off. Built with manual, fixed positioning, removing the icon leaves an empty gap where it used to sit, since nothing else knows to move over. Built as an Auto Layout frame with the icon and label as two children, sizing set to hug contents, hiding or removing the icon layer makes the frame's own computed width shrink immediately and the label re-flows into the space, no manual repositioning needed. It's the same mechanism as the row, hug-versus-fill sizing plus automatic recalculation on content change, applied to a single component instead of a row of them.
Trade-offs and pitfalls
Auto Layout adds real setup overhead for something that will never change, like a static hero illustration, so it shouldn't be applied reflexively to every frame. Deeply nested Auto Layout frames, one inside another inside another, can be confusing to debug when a size behaves unexpectedly, since several frames are each claiming hug or fill; trace outward from the innermost frame when a layout looks wrong rather than guessing at the top level. A common early mistake is leaving the outer row at a fixed width: wrap will never trigger because nothing is actually running out of room, and this is usually the first thing to check if wrapping doesn't behave as expected.
You're designing a component that has to survive real content: variable-length text, user-uploaded images of unpredictable size, and a live data feed that might return nothing or far too much. Walk through how you'd build and stress-test it in Figma so it holds up across breakpoints and platforms instead of breaking the moment the content isn't the tidy placeholder you designed with.
Sample Answer
Direct answer
I'd build the component using Auto Layout (Figma's system for making a frame automatically resize, space, and align its children as content changes, instead of every layer being sized and placed by hand) so its size is driven by whatever content actually fills it, rather than a fixed frame sized to look right with the one tidy example I designed with, then deliberately stress-test it against a spread of realistic and adversarial content, empty, minimal, typical, and maximal, instead of only the happy path, so the breakage shows up in the design file rather than in production.
Building for variability
- Sizing: give every layer the right Auto Layout sizing mode for what it is: "hug" for text that should grow or shrink with its content, "fill" for anything that should stretch to its container, "fixed" only where a size is genuinely constant. The component's overall height or width becomes a function of its actual content, not an assumption baked into the frame.
- Text: decide a max-line or truncation rule up front (e.g. a 2-line clamp with an ellipsis) instead of leaving text unconstrained, and deliberately decide what a very short title (one word) should look like too, not just what a very long one does.
- Images: use a fixed-aspect-ratio container with a defined fill/crop behavior, so user-uploaded images of arbitrary source dimensions don't distort the layout or leave visible gaps. Decide and document what "no image at all" looks like as its own state (the layout reclaims that space, or shows a placeholder), rather than treating it as a smaller version of "has an image."
- Live data feed: design three states beyond the happy path explicitly: empty (real empty-state guidance, not a blank frame), sparse (one or two items, where a grid can otherwise look broken or lonely), and overflow (far more items than fit, needing pagination, infinite scroll, or a "show more" affordance you actually design rather than assume the tool or engineering will handle).
Stress-testing method
Don't validate only against your own placeholder copy. Pull or fabricate a genuinely adversarial content set, the longest real title you can find, a small or oddly-cropped real user-uploaded image, an empty feed and an overloaded one, and drop it into the component across every breakpoint and platform frame, checking specifically for text overlap, image distortion, broken row alignment between sibling cards, and inconsistent row heights in a grid. Re-run the same content set per platform, not just per breakpoint width, since comfortable line length and touch-target sizing differ by platform convention even at similar widths.
Worked example
Take a feed card. Content test set: a 1-character title through a genuinely long real headline (~120 characters); images including a square avatar, a wide banner photo, and a "no image" case; feed sizes of zero items, one item, exactly enough to fill one row, and far more than fit. Result of the stress test: the long headline without a clamp pushes that card's height noticeably past its row neighbors, breaking alignment, fixed by adding a 2-line clamp. The wide banner photo inside a container built for square avatars either stretches or leaves visible letterboxing, fixed by standardizing the image container's aspect ratio and fill behavior regardless of the source image's shape. The "no image" case leaves a blank gray box the same size as a populated one, reading as a broken loading state rather than an intentional one, fixed with a component property that removes the image slot and lets the text stack take that space, used only for the genuine "no image" case (a separate, distinct treatment covers "image still loading"). A one-item feed on a grid built for three columns leaves two glaring empty cells, fixed by having the grid collapse to a left-aligned row of only the populated cards instead of reserving ghost slots.
Trade-offs and pitfalls
- Designing purely for the absolute worst case (every field maxed out) makes the typical, common case look padded and awkward; the goal is testing the full range, then choosing defaults, like a 2-line clamp, that degrade gracefully rather than breaking at the extreme or looking wrong in the common case.
- Treating "no image" as just a smaller version of "has an image" instead of its own layout state is the most common source of a card that reads as subtly broken rather than intentionally different.
- Empty and overflow feed states are often left undesigned because they feel like edge cases, but the choice between pagination, infinite scroll, and a "show more" button is a real UX decision. Leaving it undesigned just hands that decision to whoever implements it, with no design intent behind it.
- Stress-testing with genuinely messy content matters because generic filler text is uniform in a way that hides exactly the length-variance problems the test exists to catch.
When exporting UI assets from Figma (icons, images, logos), what formats and export settings do you choose for (a) scalable UI icons for web, (b) raster hero images, and (c) Android/iOS app assets? Explain density/scales, naming conventions, and when to prefer SVG vs PNG/WebP.
Sample Answer
Direct answer
The right format and settings depend on what the asset actually is, not one house rule: scalable UI icons should ship as optimized SVG, raster hero images should ship as WebP (lossy for photographic content, lossless where pixel-exactness matters) at multiple responsive widths, with a JPEG or PNG fallback only where a consumer genuinely can't decode it, and Android or iOS app assets should ship as density-scaled rasters (or a platform vector format where supported), following each platform's own naming rules. Each case trades off differently between infinite scalability, photographic fidelity, and platform build requirements.
Structured elaboration
| Asset type | Format | Why | Scale or density | Naming |
|---|---|---|---|---|
| (a) Scalable UI icons, web | SVG, a vector, XML-based format that renders crisply at any size and can be recolored via CSS | Vector means one export serves every screen size and density, no multiplying files | None needed, a single file covers all sizes | kebab-case, e.g. icon-search.svg |
| (b) Raster hero images | WebP, a modern raster format with both a lossy mode (the JPEG competitor) and a lossless mode with alpha (the PNG competitor); AVIF where image weight dominates and the extra encode cost is acceptable; a JPEG or PNG fallback where a specific consumer needs it | Photographic or gradient content doesn't compress well as vector; a modern format gives better compression than older raster formats at similar visual quality, plus transparency support | Multiple target widths for responsive image sets (narrow, medium, wide breakpoints), not fixed device multipliers, since hero images are usually sized to layout width, not device density | kebab-case with a width suffix, e.g. hero-banner-1200w.webp, with hero-banner-1200w.jpg beside it as the fallback |
| (c) iOS app assets | PNG at fixed multipliers, or a vector format where the asset system supports it | App icons and most UI assets on iOS are required to be raster even when the source is vector | @1x baseline, @2x, @3x, exact multiples of the base pixel size matching device pixel density | base-name@2x.png, base-name@3x.png, the platform's own suffix convention |
| (c) Android app assets | PNG, or vector drawables where supported | Same raster requirement as iOS for most asset types | Density buckets off an mdpi 1x baseline: hdpi 1.5x, xhdpi 2x, xxhdpi 3x, xxxhdpi 4x, each in its own density-qualified folder | lowercase with underscores only, e.g. drawable-xhdpi/icon_search.png; the resource system rejects hyphens or uppercase letters outright, a build requirement, not a style choice |
When to prefer SVG versus PNG versus WebP: prefer SVG whenever content is genuinely vector, icons, logos, simple illustrations, line art, and the destination can render it directly. Prefer PNG when true lossless quality is required and either the content isn't vector-friendly, a screenshot or a complex illustration with soft transparency, for example, or the platform's build system requires a raster file regardless of the source, which covers most mobile app icon slots. Prefer WebP as the default web raster for photographic or gradient-heavy content: it has a lossy mode that generally beats JPEG at comparable perceived quality and a lossless mode that supports alpha, so it covers both of PNG's and JPEG's web jobs in one format.
The useful way to frame the PNG-versus-WebP call is not "old versus new," it is two questions. First, does this asset need pixel-exact losslessness? A UI screenshot in documentation, a QR code, a flat-color diagram with hard edges: yes, so PNG or lossless WebP, never lossy, because lossy compression puts visible ringing on hard edges and small text. A photograph or a gradient hero: no, so lossy WebP, where the file-size difference is large enough to matter to page load. Second, can every consumer of this asset actually decode WebP? Browsers are not the only consumer: an email client, an embedded webview in an old native app, or a third-party partner's CMS may not be, and that is what a fallback exists for, not a general nervousness about newness. AVIF compresses smaller again and is worth measuring when image weight dominates page load, against a slower encode and a narrower consumer set. Re-check the support assumption at the time you make the decision rather than carrying forward whichever answer was true when you learned it, since that is the part of this that dates.
Worked example
A hero photo needs to ship on a marketing page and on a native app screen. For the web page: export at three widths, 800, 1200, and 1600 pixels, as lossy WebP, each at a quality setting that keeps banding or artifacts imperceptible at normal viewing size while meaningfully reducing file size versus an uncompressed export, wired into a responsive image set so the browser picks the right width, with a JPEG at the same three widths as the fallback for any consumer that can't decode WebP. For the same hero image reused on an iOS screen: export a single fixed-size PNG at @2x and @3x, not a whole width set, since the app controls its own layout width directly, named hero-banner@2x.png and hero-banner@3x.png. For Android: export into drawable-xhdpi, drawable-xxhdpi, and drawable-xxxhdpi at the corresponding pixel dimensions off the same mdpi baseline, filename hero_banner.png, lowercase throughout.
Trade-offs and pitfalls
Defaulting to PNG for everything because it's the most familiar export choice wastes bandwidth on photographic content that would compress far better as lossy WebP, and needlessly multiplies files for content that's actually vector and could have shipped as one SVG. Applying device-density multipliers to a web hero image, instead of layout-width-based breakpoints, ships images sized for the wrong variable: device pixel density and layout width are different things, and conflating them either wastes bandwidth or under-serves a large viewport. Getting Android's filename rule wrong isn't cosmetic, a hyphen or capital letter in a resource filename fails the build outright, so catching it at export time is far cheaper than catching it in a broken build.
Describe step-by-step how you prepare and export visual assets (icons, raster images, SVGs) from Figma, Sketch, or Adobe XD for iOS, Android, and Web. Include file formats, scale factors, naming conventions, and how you ensure developers receive correctly optimized assets for each platform.
Sample Answer
Direct answer
A reliable export process fixes four things ahead of time so exports are predictable rather than ad hoc: the right format per asset type and platform, an explicit set of scale factors per platform, a naming convention developers can script against, and an optimization pass before handoff, then exports assets in batch rather than one at a time.
Structured elaboration
1. Choose format by asset type and destination. Icons and simple vector marks export as SVG (Scalable Vector Graphics, an XML-based vector format that stays crisp at any size and can be recolored with CSS) for web; on iOS and Android, a vector format is also usable where the platform's asset system supports it, otherwise export flattened rasters at each density instead. Complex raster imagery, photos, gradients, detailed illustration, exports as PNG when lossless quality or transparency is required, or a modern compressed format for web where file size matters more.
2. Scale factors per platform.
- iOS uses
@1x/@2x/@3xnaming, the same asset exported at one, two, and three times its base pixel size to match device pixel densities. - Android uses density buckets:
mdpias the 1x baseline, thenhdpi(1.5x),xhdpi(2x),xxhdpi(3x),xxxhdpi(4x), each exported into its own density-named folder. - Web typically exports at 1x and 2x (sometimes 3x) for responsive image sets, or ships a single SVG that needs no scale variants at all.
3. Naming conventions developers can script against.
- iOS:
base-name@2x.png,base-name@3x.png, following the platform's own suffix convention. - Android: lowercase with underscores only, inside density-qualified folders (
drawable-xhdpi/icon_name.png); Android's resource system rejects hyphens or uppercase letters in resource filenames, so this isn't a style choice, it's a build requirement. - Web: kebab-case, e.g.
icon-search.svg, consistent enough for a build script to glob and import predictably.
4. Optimize before handoff, including SVGs specifically. Raster exports get compressed to a sensible quality-versus-size trade-off rather than maximum quality regardless of size. SVGs get run through an SVG optimizer that strips editor metadata, redundant groups, and unnecessary path precision left behind by the design tool's own export, so what ships is a clean file, not a bloated raw export.
5. Batch and verify. Export whole frames or sections at once using each tool's export presets rather than one asset at a time, then spot-check a few files at their real target size and density before sending them over, since a scale-factor mistake shows up immediately at high density.
Worked example
A search icon needs to ship to iOS, Android, and web from one 24 by 24 vector source. For web: export as search.svg, run it through an SVG optimizer, and ship it as-is, no scale variants needed since it's vector. For iOS: export as a vector asset the platform's asset catalog can use at any scale, or, if the pipeline needs flattened rasters, export search@1x.png, search@2x.png, search@3x.png at 24, 48, and 72 pixels. For Android: export into drawable-mdpi/search.png (24px), drawable-hdpi/search.png (36px), drawable-xhdpi/search.png (48px), drawable-xxhdpi/search.png (72px), and drawable-xxxhdpi/search.png (96px), scaling off the 24px mdpi baseline, with filenames lowercase and underscore-separated throughout.
Trade-offs and pitfalls
Skipping the optimization pass ships editor cruft, hidden layers, overly precise path data, that bloats app or page size with no visual benefit; it's a nearly-free step that's easy to forget under deadline pressure. Defaulting to PNG everywhere instead of vector where vector actually applies needlessly multiplies the number of density-specific files that have to be generated and kept in sync. Getting Android's naming rule wrong, a hyphen or a capital letter in a resource filename, isn't a style nitpick, it fails the build outright, so it's worth catching at export time rather than letting engineering discover it later.
Unlock Full Question Bank
Get access to all 19 Design Tools and AI-Assisted Workflows interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.