How would you use Auto Layout to build a responsive card?
Tests Figma Auto Layout direction, padding, and resizing rules. Answer: stack header, image, and text vertically with a fixed gap; set text to fill width and hug height; wrap in a scaling frame. Red flag: absolute positioning instead of structured Auto Layout.
What's really being asked
This tests whether you treat Figma Auto Layout as a systematic constraint engine rather than a grouping convenience. The interviewer wants to see that you understand how vertical direction, fixed gap values, and resizing behaviors interact to create truly responsive components. Specifically, they are checking if you know how to prevent spacing drift when text content changes length, which is a fundamental production-level component design skill.
The full answer
A strong answer walks through four steps in order. First, frame strategy: wrap the entire card in an Auto Layout frame set to vertical direction so the header, image, and text stack top-to-bottom. Second, spacing discipline: apply a fixed gap of 16 or 20 pixels between child layers and uniform padding around the edges so whitespace is systematic, not eyeballed. Third, text resizing logic: set the text block to fill container width so it tracks the card width, and hug contents height so the frame expands or contracts as the copy grows or shrinks. Fourth, parent scaling: set the card frame itself to fill container width or a fixed max-width so it responds to its parent frame or device constraints without manual adjustment.
The mistakes people make
Red flags include relying on absolute positioning for the header or text, which severs them from the Auto Layout flow and breaks spacing when text wraps. Another mistake is setting the text layer to fixed height, which causes overflow or clipped descenders when the headline changes. Some candidates mention grouping but forget to set resizing rules, leaving the component brittle when instances are resized. Saying you would just nudge layers manually after content changes signals a workflow that does not scale.
What usually comes next
The interviewer may ask how you would handle a card with a horizontal row of metadata tags below the text, which tests nested Auto Layout frames with mixed directions. They might also ask how to enforce a minimum or maximum card height, or how variant properties could swap the header style while preserving spacing. Another common pivot is asking how you would document these spacing rules for developers, bridging design and engineering handoff.
A concrete example
Imagine a podcast card with a 360 by 240 pixel album art image, a title in 20 point semibold, and a description in 16 point regular. You create a vertical Auto Layout frame with 16 pixel gaps and 20 pixel padding. The title and description text layers both fill container width and hug height. When the description changes from one line to four lines, the card frame grows downward automatically, the 16 pixel gap between the image and title stays identical, and the bottom padding remains 20 pixels without any manual repositioning.
Interview question
When building a responsive card in Figma using Auto Layout, how should you configure a text layer so the card automatically expands vertically when the text wraps to multiple lines?
- a.Position the text layer absolutely inside the card and manually resize the card after each edit
- b.Set the text to fixed height and the card frame to fill container width
- c.Group the text layer and set both the text and card to fixed width and height
- d.Set the text to fill container width and hug contents height, with the card frame set to hug contents heightCorrect
Why? this is the answer
The text must fill container width to track the card and hug contents height to grow with the copy, while the card frame must hug contents height to expand with it. Option B is tempting because filling container width is correct, but fixed height clips the text when it wraps.
Just read this? Test yourself on what you have been reading.
Read the original → help.figma.com
- #figma
- #auto layout
- #responsive design
- #components
- #ui design
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on figma — each one lists the topics its interview covers.
See open roles