How to set up design constraints on Figma
Design constraints in Figma control how objects behave when their parent frame is resized. Set constraints by selecting an object, opening the Design panel, and choosing horizontal and vertical constraint options like Left & Right, Center, or Scale to create responsive layouts.
Prerequisites
- Basic Figma navigation knowledge
- Understanding of frames and components
- Familiarity with Auto Layout concepts
- Knowledge of responsive design principles
Step-by-Step Instructions
Select the object to constrain
Open the Design panel
Set horizontal constraints
- Left - maintains fixed distance from left edge
- Right - maintains fixed distance from right edge
- Left & Right - stretches to maintain distances from both edges
- Center - keeps object centered horizontally
- Scale - resizes proportionally with frame width
Configure vertical constraints
- Top - maintains fixed distance from top edge
- Bottom - maintains fixed distance from bottom edge
- Top & Bottom - stretches to maintain distances from both edges
- Center - keeps object centered vertically
- Scale - resizes proportionally with frame height
Test constraint behavior
Apply constraints to multiple objects
Shift and clicking each one, or drag to select multiple items. With all objects selected, set constraints in the Design panel - the same constraint settings will apply to all selected objects. This is efficient for applying consistent responsive behavior across similar elements.Combine with Auto Layout for advanced responsiveness
Create constraint presets for consistency
Common Issues & Troubleshooting
Object jumps unexpectedly when frame is resized
Check that the object is a direct child of the frame being resized. Objects nested in groups or other containers may not respond correctly to constraints. Ungroup or move the object directly into the target frame.
Constraints options are grayed out or missing
Ensure the selected object is inside a frame, not floating on the canvas. Only objects within frames can have constraints applied. Create a frame around your objects using Ctrl/Cmd + Alt + G or the Frame tool.
Text gets cut off when using Left & Right constraints
Text with Left & Right constraints will stretch its container but may cause overflow. Switch to Auto Layout with Hug contents for text elements, or use Center constraints instead of Left & Right for better text handling.
Complex layouts break when constraints are applied
Start with simple constraint setups before adding complexity. Use Auto Layout for the immediate parent containers, then apply constraints to those Auto Layout frames. This creates more predictable and maintainable responsive behavior.