Dashboard Mode - Why Auto Layout creates responsive designs
Goal
Understand how Auto Layout in Figma helps create responsive designs that adjust automatically to different screen sizes.
Sample Data
Component
Width (px)
Height (px)
Behavior
Button
120
40
Fixed width and height
Text Label
Auto width
20
Expands with text
Container
Auto width
Auto height
Resizes with children
Icon
24
24
Fixed size
Spacing
Auto
Auto
Flexible gap
Dashboard Components
KPI Card: Shows a button and text label inside a container using Auto Layout with horizontal direction and spacing of 10px. The container resizes automatically based on the text length.
Responsive Container: A frame with Auto Layout set to vertical direction that stacks multiple KPI Cards. It adjusts height and width as cards change size.
Fixed Icon: An icon with fixed size placed inside the container that does not resize but moves position responsively.
Spacing Control: Auto Layout gap property set to 10px between elements, which adjusts spacing dynamically when elements resize.
When the text inside the KPI Card changes, the Auto Layout container resizes automatically. The spacing between elements remains consistent at 10px. The fixed-size icon stays the same but moves position to keep alignment. This responsiveness means the design adapts smoothly to different content lengths or screen sizes without manual resizing.
Self Check
If you increase the text length inside the KPI Card, which components resize or move? Answer: The KPI Card container and the Responsive Container resize automatically, the spacing remains consistent, and the fixed Icon moves position but does not resize.
Key Result
Shows how Figma's Auto Layout creates responsive designs by automatically resizing containers and maintaining consistent spacing as content changes.
Practice
(1/5)
1. What is the main reason Auto Layout helps create responsive designs in Figma?
easy
A. It only works with text elements, not shapes or images.
B. It automatically adjusts elements based on screen size changes.
C. It requires manual resizing of each element for different screens.
D. It locks elements in fixed positions regardless of screen size.
Solution
Step 1: Understand Auto Layout behavior
Auto Layout arranges elements automatically based on rules, allowing them to adjust when screen size changes.
Step 2: Compare options with this behavior
Only It automatically adjusts elements based on screen size changes. describes automatic adjustment; others describe fixed or manual layouts.
Final Answer:
It automatically adjusts elements based on screen size changes. -> Option B
Quick Check:
Auto Layout = automatic adjustment [OK]
Hint: Auto Layout means automatic adjustment, not fixed positions [OK]
Common Mistakes:
Thinking Auto Layout fixes elements in place
Assuming manual resizing is needed for responsiveness
Believing Auto Layout only works with text
2. Which of the following is the correct way to enable Auto Layout on a frame in Figma?
easy
A. Drag elements outside the frame to activate Auto Layout.
B. Double-click the frame and press Ctrl+L.
C. Right-click the frame and select 'Add Auto Layout'.
D. Select the frame and click the '+' button next to 'Auto Layout' in the right panel.
Solution
Step 1: Recall how to enable Auto Layout
In Figma, Auto Layout is enabled by selecting a frame and clicking the '+' button next to 'Auto Layout' in the right properties panel.
Step 2: Evaluate each option
Select the frame and click the '+' button next to 'Auto Layout' in the right panel. matches the correct method; others describe incorrect or non-existent actions.
Final Answer:
Select the frame and click the '+' button next to 'Auto Layout' in the right panel. -> Option D
Quick Check:
Enable Auto Layout = '+' button in right panel [OK]
Hint: Look for '+' next to 'Auto Layout' in the right panel [OK]
Common Mistakes:
Trying to enable Auto Layout via right-click menu
Using keyboard shortcuts that don't exist
Dragging elements outside frame to activate Auto Layout
3. Given a frame with Auto Layout set to 'Horizontal' and spacing of 10px between items, what happens when the frame width shrinks smaller than the total width of items?
medium
A. Items shrink or grow based on their resizing settings.
B. Items overlap each other inside the frame.
C. Items wrap to the next line automatically.
D. The frame expands automatically to fit all items.
Solution
Step 1: Understand Auto Layout resizing behavior
When the frame shrinks, items inside adjust their size if resizing is set to 'Fill container' or 'Hug contents'. They do not overlap or wrap by default.
Step 2: Analyze options
Items shrink or grow based on their resizing settings. correctly describes items resizing based on settings. Items do not overlap, wrap to the next line automatically, or cause the frame to expand.
Final Answer:
Items shrink or grow based on their resizing settings. -> Option A
Quick Check:
Auto Layout resizing = items adjust size [OK]
Hint: Items resize if set; no overlap or wrap by default [OK]
Common Mistakes:
Assuming items overlap when frame shrinks
Thinking Auto Layout wraps items automatically
Believing frame always expands to fit content
4. You applied Auto Layout to a vertical frame, but the items do not space evenly when resizing the frame. What is the most likely cause?
medium
A. Auto Layout is set to horizontal instead of vertical.
B. The frame's padding is set to zero.
C. Items have fixed heights and do not stretch.
D. The frame is not selected before applying Auto Layout.
Solution
Step 1: Identify why items don't space evenly
In vertical Auto Layout, items must have flexible height settings to stretch evenly when the frame resizes.
Step 2: Check options for this cause
Items have fixed heights and do not stretch. states items have fixed heights, preventing even spacing. Other options do not explain uneven spacing correctly.
Final Answer:
Items have fixed heights and do not stretch. -> Option C
Quick Check:
Fixed item size blocks even spacing [OK]
Hint: Check if items can stretch; fixed size blocks spacing [OK]
Common Mistakes:
Ignoring item resizing settings
Confusing frame padding with item spacing
Not verifying Auto Layout direction
5. You want a button inside an Auto Layout frame to always stay centered horizontally and vertically, resizing smoothly on different screen sizes. Which combination of Auto Layout settings achieves this?
hard
A. Set frame to vertical Auto Layout with center alignment; set button resizing to 'Fill container'.
B. Set frame to horizontal Auto Layout with space between; set button resizing to fixed size.
C. Set frame to vertical Auto Layout with center alignment; set button resizing to 'Hug contents'.
D. Set frame to horizontal Auto Layout with left alignment; set button resizing to 'Fill container'.
Solution
Step 1: Understand centering in Auto Layout
To center an item horizontally and vertically, the frame should have vertical Auto Layout with center alignment.
Step 2: Choose resizing for smooth resizing
Setting the button to 'Fill container' allows it to resize smoothly within the frame.
Step 3: Evaluate options
Set frame to vertical Auto Layout with center alignment; set button resizing to 'Fill container'. matches both correct frame and resizing settings for centered, responsive button.
Final Answer:
Set frame to vertical Auto Layout with center alignment; set button resizing to 'Fill container'. -> Option A
Quick Check:
Center + Fill container = responsive centered button [OK]
Hint: Center frame + Fill container resizing centers and resizes button [OK]
Common Mistakes:
Using fixed size prevents resizing
Wrong Auto Layout direction breaks centering
Ignoring alignment settings in frame
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.