Constraints in Figma
Constraints in Figma are layout rules that define how a child layer should respond when its parent frame is resized. They are especially useful for designing interfaces that need to maintain predictable positions, sizes, and relationships across different screen sizes.
Constraints can control the horizontal and vertical behavior of layers. Common options include Left, Right, Left and Right, Center, Scale, Top, Bottom, and Top and Bottom. They are particularly useful for elements such as navigation items, floating buttons, sidebars, images, cards, and controls that need to remain anchored to a specific area of a parent frame.
In modern Figma workflows, constraints are often used together with Frames, Auto Layout, components, variants, layout guides, and responsive design techniques. Constraints are most directly applicable to child layers inside regular frames; children in Auto Layout generally use Auto Layout resizing behavior unless they are configured to ignore the Auto Layout flow.
Learn more with JustAcademy Figma Training and Register for Figma Course Demo.
1. What are Constraints in Figma?
Constraints are rules that tell Figma how a child layer should behave when the parent frame changes size.
For example, a button positioned at the bottom-right of a screen can use Right and Bottom constraints so that it remains anchored to that corner when the screen becomes larger.
2. Simple Definition
A constraint is a rule that defines the relationship between a child layer and its parent frame during resizing.
3. Why are Constraints Important?
- They help maintain layer positions during resizing.
- They support responsive interface design.
- They reduce manual repositioning.
- They help maintain relationships between UI elements.
- They are useful for different screen sizes.
- They make reusable layouts easier to manage.
- They help create predictable resizing behavior.
- They improve design consistency.
4. Constraints and Responsive Design
Responsive design requires layouts to behave appropriately when the available space changes. Constraints help define how individual layers respond to parent-frame resizing.
For example, a logo may remain attached to the left side while a floating action button remains attached to the bottom-right side.
5. Parent and Child Layers
Constraints depend on a parent-child relationship. The parent frame provides the reference area, while the child layer follows the selected constraint rules.
Parent Frame
├── Header
├── Logo
├── Content
└── Floating Button
6. Parent Frame
A parent frame is the container that holds one or more child layers. Constraints determine how those child layers react when the parent frame changes dimensions.
7. Child Layer
A child layer is an object placed inside a parent frame. It can be a text layer, image, shape, button, component, nested frame, or other supported layer.
8. Basic Constraint Relationship
Parent Frame Resizes
↓
Figma Checks Constraint
↓
Child Layer Responds
↓
Position and/or Size Changes
9. Where are Constraints Found?
When a suitable child layer is selected inside a regular parent frame, the Constraints controls appear in the Position section of Figma's right sidebar.
10. Default Constraints
By default, a child layer commonly uses Top and Left constraints. This means the layer maintains its relationship with the top-left area of its parent frame when the parent is resized.
11. Constraint Axes
Figma constraints work across two primary axes:
- Horizontal axis — controls behavior along the X-axis.
- Vertical axis — controls behavior along the Y-axis.
12. Horizontal Constraints
Horizontal constraints determine how a layer behaves when the parent frame changes width.
- Left
- Right
- Left and Right
- Center
- Scale
13. Vertical Constraints
Vertical constraints determine how a layer behaves when the parent frame changes height.
- Top
- Bottom
- Top and Bottom
- Center
- Scale
14. Constraint Options at a Glance
| Constraint | Axis | Typical Purpose |
| Left | Horizontal | Keep layer attached to the left side. |
| Right | Horizontal | Keep layer attached to the right side. |
| Left and Right | Horizontal | Allow width to respond to parent width. |
| Center | Horizontal/Vertical | Keep layer centered relative to the parent. |
| Scale | Horizontal/Vertical | Maintain proportional position and size behavior. |
| Top | Vertical | Keep layer attached to the top. |
| Bottom | Vertical | Keep layer attached to the bottom. |
| Top and Bottom | Vertical | Allow vertical behavior to respond to parent height. |
15. Left Constraint
The Left constraint maintains the layer's position relative to the left side of the parent frame.
Parent Frame
┌───────────────────────────────┐
│ ● │
│ │
│ │
└───────────────────────────────┘
↑
Left
16. Left Constraint Example
A logo placed near the left side of a header can use a Left constraint when it should maintain its distance from the left edge while the header becomes wider.
17. Right Constraint
The Right constraint maintains the layer's relationship with the right side of its parent frame.
Parent Frame
┌───────────────────────────────┐
│ ● │
│ │
│ │
└───────────────────────────────┘
↑
Right
18. Right Constraint Example
A profile icon, settings button, or floating action button can use a Right constraint when it should remain attached to the right edge.
19. Left and Right Constraint
Left and Right constraints define the layer's relationship with both horizontal edges of the parent frame. Depending on the layer and its initial geometry, this can allow its width to grow or shrink as the parent changes width.
20. Left and Right Example
Small Parent
┌─────────────────────────┐
│ ┌─────────────────────┐ │
│ │ Content │ │
│ └─────────────────────┘ │
└─────────────────────────┘
Large Parent
┌─────────────────────────────────┐
│ ┌─────────────────────────────┐ │
│ │ Content │ │
│ └─────────────────────────────┘ │
└─────────────────────────────────┘
21. Center Constraint
The Center constraint maintains a layer's position relative to the center of the parent frame.
22. Center Constraint Example
A play icon positioned in the center of a video thumbnail can use center constraints so that it remains centered when the thumbnail frame changes size.
Video Frame
┌──────────────────────────────┐
│ │
│ ▶ │
│ │
└──────────────────────────────┘
↑
Center
23. Scale Constraint
The Scale constraint allows the layer's position and size to respond proportionally as the parent frame changes.
24. Scale Constraint Example
Scale can be useful for designs where an element should maintain a proportional relationship with the parent rather than simply staying attached to one edge.
25. Top Constraint
The Top constraint maintains a layer's relationship with the top edge of the parent frame.
26. Top Constraint Example
A heading positioned near the top of a regular frame can use the Top constraint so that it maintains its relationship with the top edge during vertical resizing.
27. Bottom Constraint
The Bottom constraint maintains a layer's relationship with the bottom edge of the parent frame.
28. Bottom Constraint Example
A floating action button near the bottom of a mobile screen can use Bottom along with Right to remain anchored to the lower-right corner.
29. Top and Bottom Constraint
Top and Bottom constraints define the layer's relationship with both vertical edges of the parent frame. This can allow the layer to stretch vertically when the parent changes height.
30. Top and Bottom Example
Small Frame
┌────────────────────┐
│ ┌────────────────┐ │
│ │ │ │
│ │ Sidebar │ │
│ │ │ │
│ └────────────────┘ │
└────────────────────┘
Large Frame
┌────────────────────┐
│ ┌────────────────┐ │
│ │ │ │
│ │ │ │
│ │ Sidebar │ │
│ │ │ │
│ │ │ │
│ └────────────────┘ │
└────────────────────┘
31. Vertical Center Constraint
A layer can be centered vertically relative to its parent. This is useful for icons, controls, and content that should remain vertically centered while the parent changes height.
32. Horizontal Center Constraint
A layer can be centered horizontally relative to its parent. This is useful for hero illustrations, video controls, logos, and centered content.
33. Combining Horizontal and Vertical Constraints
Figma allows horizontal and vertical constraint behavior to be configured independently. This means a layer can use Right horizontally and Bottom vertically, for example.
Horizontal → Right
Vertical → Bottom
Result → Bottom-right positioning
34. Bottom-Right Button Example
Parent Frame
┌──────────────────────────────┐
│ │
│ Content │
│ │
│ ┌────┐ │
│ │ + │ │
│ └────┘ │
└──────────────────────────────┘
↑
Right + Bottom
35. Bottom-Left Button Example
A button positioned at the bottom-left can use Left horizontally and Bottom vertically.
Horizontal → Left
Vertical → Bottom
36. Top-Right Button Example
A close button inside a regular modal frame can use Right horizontally and Top vertically.
Horizontal → Right
Vertical → Top
37. Centered Element Example
A play button inside a video thumbnail can use Center horizontally and Center vertically.
Horizontal → Center
Vertical → Center
38. Left-Aligned Header
A logo inside a regular header frame can use Left and Top constraints when it needs to remain aligned with the upper-left region.
39. Right-Aligned Header Action
A profile icon or account action can use Right and Center constraints to remain near the right edge while staying vertically centered.
40. Sidebar Constraints
A sidebar that should remain attached to the left side and stretch vertically can use Left horizontally and Top and Bottom vertically.
Sidebar
Horizontal → Left
Vertical → Top + Bottom
41. Full-Height Sidebar
Parent Frame
┌───────┬──────────────────────┐
│ │ │
│ Side │ Content │
│ bar │ │
│ │ │
│ │ │
└───────┴──────────────────────┘
↑ ↑
Left Top + Bottom
42. Floating Action Button
A floating action button is a classic constraint example. Right and Bottom constraints keep it anchored to the lower-right corner of its parent.
43. Modal Close Button
A close icon positioned in the upper-right corner of a modal can use Right and Top constraints.
44. Video Play Button
A play button positioned in the center of a video thumbnail can use Center constraints on both axes.
45. Image Constraint
Images can use constraints depending on how they should behave when the parent frame changes. For example, an image can remain anchored to one side or scale proportionally with the parent.
46. Card Constraint
A card nested inside a regular frame can use Left and Right constraints when it needs to expand horizontally with the parent while maintaining its side relationships.
47. Text Constraint
Text layers can use constraints when their position needs to remain related to the edges or center of a regular parent frame.
48. Navigation Constraint
Navigation controls can use constraints to maintain specific positions within a regular header frame.
49. Constraints and Frames
Constraints are closely related to Frames because the parent frame provides the reference area against which the child layer's position and size behavior are calculated.
50. Constraints Require a Parent
A top-level layer sitting directly on the canvas does not have a parent frame to use as a constraint reference. A suitable child layer inside a parent frame is required.
51. Constraints and Groups
Groups are not treated as independent constraint containers in the same way as frames. For predictable constraint behavior, using frames as layout containers is generally more appropriate.
52. Constraints and Nested Frames
A frame can be nested inside another frame and can itself contain constrained child layers. This allows designers to create multiple levels of layout behavior.
Main Frame
└── Header Frame
├── Logo
├── Navigation
└── Profile Button
53. Nested Constraint Structure
Nested frames can each have their own children and resizing relationships. This makes complex interfaces easier to organize and maintain.
54. Constraints vs Fixed Position
| Fixed Position | Constraints |
| Relies mainly on a fixed canvas position. | Defines a relationship with the parent. |
| May not adapt well to resizing. | Responds to parent-frame resizing. |
| Useful for static compositions. | Useful for responsive layouts. |
| More manual adjustments may be required. | Can automate positioning behavior. |
55. Constraints vs Auto Layout
| Constraints | Auto Layout |
| Controls parent-relative behavior. | Controls content flow and layout. |
| Useful inside regular frames. | Used on Auto Layout frames and their children. |
| Controls position and proportional resizing behavior. | Controls spacing, padding, alignment, and resizing. |
| Useful for anchored elements. | Useful for dynamic content structures. |
56. When to Use Constraints
- Anchored buttons
- Floating controls
- Sidebar positioning
- Corner icons
- Centered controls
- Regular-frame layouts
- Parent-relative positioning
- Elements that need specific edge relationships
57. When to Use Auto Layout Instead
- Buttons with dynamic labels
- Lists
- Forms
- Navigation groups
- Cards with changing content
- Content sections
- Dynamic rows and columns
- Components driven by content
58. Using Constraints with Auto Layout
Constraints and Auto Layout can work together, but their roles are different. Auto Layout manages the flow and resizing of objects inside an Auto Layout structure. A child object normally cannot use ordinary constraints unless it is configured to ignore the Auto Layout flow.
59. Ignore Auto Layout
Figma provides an Ignore Auto Layout option for objects that should remain inside an Auto Layout frame but should not participate in its normal flow. Such an object can then use constraint-style positioning relative to its parent.
60. Example: Floating Element in Auto Layout
Auto Layout Frame
├── Header
├── Content
├── Footer
└── Floating Button
↓
Ignore Auto Layout
↓
Right + Bottom positioning
61. Constraints and Resizing
Constraints become especially useful when the parent frame is resized. The selected constraint determines which edge, center, or proportional relationship the child maintains.
62. Small Parent to Large Parent
Before
┌──────────────────────┐
│ ● │
└──────────────────────┘
After Resize
┌────────────────────────────────┐
│ ● │
└────────────────────────────────┘
Right constraint maintains the right-side relationship.
63. Constraint Behavior Depends on Position
The same constraint can produce different visual results depending on the initial position and size of the layer. Designers should resize the parent frame and verify the actual behavior instead of assuming the result from the constraint name alone.
64. Left and Right with Width Changes
When a layer is attached to both left and right sides of a regular parent frame, its width can respond to changes in the parent's width while preserving its relationships with both edges.
65. Top and Bottom with Height Changes
When a layer is attached to both top and bottom sides of a regular parent frame, its height can respond to changes in the parent's height while maintaining those edge relationships.
66. Scale Behavior
Scale is useful when an element should preserve proportional relationships as the parent changes size. It affects both position and size proportionally.
67. Constraints and Aspect Ratio
Constraints define positioning and resizing relationships, while image or object aspect-ratio requirements should be considered separately. A constraint alone does not automatically solve every image-cropping or aspect-ratio requirement.
68. Constraints and Layout Guides
Layout guides provide visual alignment references, while constraints define how objects respond to parent resizing. Combining them can create more structured and predictable layouts.
69. Column Layout Guide
Column guides can help align cards, content areas, navigation, and other objects. Constraints can then define how those objects respond when the parent frame changes.
70. Stretch Layout Guide
A stretch layout guide can adapt to the size of the parent frame. Constraints can then operate in relation to the guide's columns or rows.
71. Fixed Layout Guide
A fixed layout guide uses defined rows or columns. Constraints continue to reference the parent frame rather than treating the fixed guide as the parent.
72. Constraints with Grid-Based Design
Constraints can complement grid-based design by maintaining the relationship between objects and the overall frame while layout guides provide visual alignment.
73. Responsive Header Example
Header
├── Logo
│ └── Left + Center
├── Navigation
│ └── Center
└── Account
└── Right + Center
74. Responsive Dashboard Example
Dashboard
├── Sidebar
│ └── Left + Top/Bottom
├── Main Content
│ └── Left + Right
└── Floating Action
└── Right + Bottom
75. Responsive Modal Example
Modal
├── Title
│ └── Top + Left
├── Content
│ └── Left + Right
└── Close
└── Top + Right
76. Responsive Video Card Example
Video Card
├── Thumbnail
│ └── Left + Right
└── Play Icon
└── Center + Center
77. Responsive Login Screen Example
A login screen can use constraints for decorative elements or anchored controls inside a regular frame, while Auto Layout can be used for the actual form fields and content structure.
78. Responsive Landing Page Example
A landing page can combine layout guides, constraints, frames, and Auto Layout. Constraints can control decorative or anchored elements while Auto Layout handles content-driven sections.
79. Constraints in Components
Components can contain frames and layers with appropriate layout behavior. Constraints can be useful when a component includes an element that needs a specific relationship with its parent frame.
80. Constraints in Component Instances
When working with component instances, designers should understand which properties are inherited from the main component and which properties can be adjusted at the instance level.
81. Constraints and Variants
Variants should be used when there is a meaningful alternative state or structure. Constraints should not be replaced with unnecessary variants simply to handle ordinary resizing behavior.
82. Avoid Excessive Variants
Creating separate variants for every small width change can make a design system difficult to maintain. Use constraints and Auto Layout for normal resizing behavior and variants for meaningful structural differences.
83. Constraints in Design Systems
Constraints can help standardize the behavior of reusable components. A design system should clearly document which elements are edge-aligned, centered, stretched, or proportionally scaled.
84. Constraint Documentation
Important constraint behavior should be documented for designers and developers. Documentation can include the parent frame, edge relationships, resizing behavior, and exceptions.
85. Constraint Naming Strategy
Use clear frame and layer names so that the intended constraint relationship is easy to understand.
Header / Logo
Header / Navigation
Header / Profile
Screen / Floating Action
Modal / Close Button
Sidebar / Navigation
86. Constraint Workflow
Create Parent Frame
↓
Add Child Layer
↓
Select Child Layer
↓
Open Constraints
↓
Set Horizontal Constraint
↓
Set Vertical Constraint
↓
Resize Parent
↓
Observe Behavior
↓
Adjust Constraint
↓
Test Multiple Sizes
87. How to Apply Constraints
- Create or select a parent frame.
- Add the required child layer.
- Select the child layer.
- Open the Position section in the right sidebar.
- Locate Constraints.
- Choose the horizontal behavior.
- Choose the vertical behavior.
- Resize the parent frame.
- Check the result.
- Adjust the constraints if necessary.
88. Step-by-Step: Right Constraint
- Create a frame.
- Add a button inside the frame.
- Position the button near the right edge.
- Select the button.
- Open Constraints.
- Set horizontal constraint to Right.
- Resize the parent frame horizontally.
- Verify that the button remains attached to the right side.
89. Step-by-Step: Bottom Constraint
- Create a screen frame.
- Add a floating button.
- Place it near the bottom edge.
- Select the button.
- Set the vertical constraint to Bottom.
- Resize the screen vertically.
- Verify its bottom relationship.
90. Step-by-Step: Center Constraint
- Create a frame.
- Add an icon.
- Place it in the center.
- Select the icon.
- Set horizontal constraint to Center.
- Set vertical constraint to Center.
- Resize the parent.
- Verify that the icon remains centered.
91. Step-by-Step: Left and Right Constraint
- Create a regular parent frame.
- Add a content container.
- Place it between the left and right edges.
- Select the content container.
- Set horizontal constraints to Left and Right.
- Resize the parent.
- Verify the content container responds horizontally.
92. Step-by-Step: Top and Bottom Constraint
- Create a regular parent frame.
- Add a sidebar or vertical panel.
- Align it between the top and bottom edges.
- Select the panel.
- Set vertical constraints to Top and Bottom.
- Resize the parent vertically.
- Verify the panel's behavior.
93. Constraint Testing
Always test constraints by resizing the parent frame. A constraint should be evaluated based on actual behavior rather than only on the selected setting.
94. Test Small Sizes
Resize the parent to a smaller dimension and check whether elements overlap, become too small, or move unexpectedly.
95. Test Large Sizes
Resize the parent to a larger dimension and check whether anchored elements maintain their intended relationships and whether stretched elements become excessively large.
96. Test Intermediate Sizes
Intermediate widths are important because layout problems can appear between standard desktop, tablet, and mobile dimensions.
97. Test Different Content
Constraints primarily control positional and resizing relationships. Content behavior should also be tested, especially when constraints are combined with Auto Layout or text layers.
98. Test Nested Frames
When multiple frames are nested, resize different parent levels to understand how each layer responds.
99. Constraint Debugging
Unexpected Behavior
↓
Check Parent Frame
↓
Check Child Layer
↓
Check Horizontal Constraint
↓
Check Vertical Constraint
↓
Check Layer Position
↓
Check Auto Layout
↓
Resize Parent Again
↓
Problem Solved
100. Common Constraint Mistakes
- Applying constraints without understanding the parent frame.
- Expecting constraints to control content flow.
- Using constraints where Auto Layout is more suitable.
- Forgetting to test parent resizing.
- Using incorrect edge relationships.
- Using Scale when edge anchoring is required.
- Ignoring text wrapping.
- Creating unnecessary variants for resizing.
- Not testing intermediate dimensions.
- Ignoring nested frame behavior.
101. Mistake: Using Constraints for Everything
Constraints are not a replacement for Auto Layout. Use constraints for parent-relative positioning and resizing behavior, while Auto Layout is generally better for content-driven structures.
102. Mistake: Ignoring Parent Structure
Constraints are based on the parent-child relationship. If the layer is placed inside the wrong frame, the constraint behavior may not match the intended design.
103. Mistake: Not Testing Resizing
A constraint should always be tested by changing the parent frame's dimensions. Static inspection alone is not enough.
104. Mistake: Overusing Scale
Scale can be useful for proportional behavior, but it should not be used automatically. Edge constraints or Auto Layout may provide more appropriate behavior depending on the interface.
105. Mistake: Fixed Content with Responsive Expectations
A constraint can control a layer's relationship to its parent, but it does not automatically make every text box or content structure responsive. Text resizing and Auto Layout may also be required.
106. Best Practices
- Use frames as clear parent containers.
- Understand the parent-child hierarchy.
- Choose constraints based on intended behavior.
- Use Left for left-anchored elements.
- Use Right for right-anchored elements.
- Use Top for top-anchored elements.
- Use Bottom for bottom-anchored elements.
- Use Center for centered elements.
- Use Left and Right for appropriate horizontal stretching.
- Use Top and Bottom for appropriate vertical stretching.
- Use Scale only when proportional behavior is intended.
- Use Auto Layout for content-driven structures.
- Test multiple parent sizes.
- Document important behavior.
107. Constraints Decision Guide
| Requirement | Recommended Approach |
| Stay attached to left | Left constraint |
| Stay attached to right | Right constraint |
| Stay attached to top | Top constraint |
| Stay attached to bottom | Bottom constraint |
| Stay centered | Center constraint |
| Stretch horizontally | Left + Right |
| Stretch vertically | Top + Bottom |
| Maintain proportional behavior | Scale |
| Dynamic content flow | Auto Layout |
108. Constraints vs Responsive Frames
Responsive Frames can use several Figma features together. Constraints are one part of the responsive layout system and are particularly useful for controlling the behavior of child layers inside regular frames.
109. Constraints vs Adaptive Design
Constraints can support responsive behavior within a layout, while adaptive design may use separate layout states for different screen categories. A designer can use constraints inside each adaptive layout state to control individual elements.
110. Constraints and Mobile Design
Mobile interfaces frequently use constraints for floating buttons, centered icons, bottom navigation elements, and other anchored controls.
111. Constraints and Tablet Design
Tablet layouts can use constraints to preserve relationships while the available width and height vary across devices.
112. Constraints and Desktop Design
Desktop interfaces can use constraints for sidebars, content panels, floating controls, header actions, and other parent-relative elements.
113. Constraints in Web Design
Constraints can help designers model how UI elements should respond when a website frame changes size. They are particularly useful when communicating layout behavior to developers.
114. Constraints in App Design
Mobile application screens often contain controls that need to remain attached to specific edges or centered within containers. Constraints can help model these relationships.
115. Practical Project: Responsive Login Screen
Create a login screen using a regular frame and apply constraints to key elements.
Login Screen
├── Logo
│ └── Top + Center
├── Login Card
│ └── Center + Center
└── Help Button
└── Right + Bottom
116. Practical Project: Responsive Dashboard
Create a dashboard with a sidebar, main content area, and floating action button.
Dashboard
├── Sidebar
│ └── Left + Top/Bottom
├── Main Content
│ └── Left + Right
└── Action Button
└── Right + Bottom
117. Practical Project: Video Player
Create a video player with a responsive thumbnail and centered play button.
Video Player
├── Video Frame
│ └── Left + Right
└── Play Button
└── Center + Center
118. Practical Project: Modal Window
Create a modal with a close icon in the top-right corner, a content area, and an action area.
Modal
├── Close
│ └── Right + Top
├── Content
│ └── Left + Right
└── Actions
└── Left + Right
119. Practical Project: Responsive Sidebar
Create a desktop sidebar that maintains its left position and stretches vertically with its parent frame.
Sidebar
Horizontal → Left
Vertical → Top + Bottom
120. Practical Project: Floating Action Button
Create a floating action button that remains in the bottom-right corner of a mobile application screen.
- Create a mobile screen frame.
- Add a circular action button.
- Position it near the bottom-right.
- Select the button.
- Set horizontal constraint to Right.
- Set vertical constraint to Bottom.
- Resize the screen.
- Verify its position.
121. Practical Project: Centered Video Control
Create a play button that stays centered regardless of changes to the video frame dimensions.
- Create a video frame.
- Add a play icon.
- Place the icon at the center.
- Apply Center horizontally.
- Apply Center vertically.
- Resize the video frame.
- Verify the icon remains centered.
122. Developer Handoff
Constraints are valuable during developer handoff because they communicate intended relationships between interface elements and their containers.
Designers should document important behavior such as whether an element is left-aligned, right-aligned, centered, stretched, or proportionally scaled.
123. Constraint Specification Table
| Element | Horizontal | Vertical | Purpose |
| Logo | Left | Center | Remain aligned with the left side. |
| Profile Icon | Right | Center | Remain aligned with the right side. |
| Sidebar | Left | Top + Bottom | Maintain full-height positioning. |
| Floating Button | Right | Bottom | Remain in bottom-right. |
| Play Icon | Center | Center | Remain centered. |
| Content Panel | Left + Right | Top | Expand horizontally. |
124. Constraints Quality Checklist
- Parent frame is clearly defined.
- Child layer is correctly nested.
- Horizontal constraint is intentional.
- Vertical constraint is intentional.
- Layer position is correct before resizing.
- Parent resizing has been tested.
- Small sizes have been tested.
- Large sizes have been tested.
- Intermediate sizes have been tested.
- Text behavior has been tested.
- Images have been tested.
- Auto Layout interaction has been checked.
- Nested frames have been checked.
125. Complete Constraints Workflow
Understand Layout
↓
Create Parent Frame
↓
Create Child Layers
↓
Establish Hierarchy
↓
Select Child Layer
↓
Choose Horizontal Constraint
↓
Choose Vertical Constraint
↓
Resize Parent
↓
Observe Behavior
↓
Test Multiple Sizes
↓
Combine with Auto Layout if Required
↓
Document Behavior
↓
Developer Handoff
126. Quick Revision
| Term | Meaning |
| Constraint | Rule defining how a child layer responds to parent resizing. |
| Parent Frame | Container used as the reference for child behavior. |
| Child Layer | Layer nested inside the parent frame. |
| Left | Maintains relationship with the left edge. |
| Right | Maintains relationship with the right edge. |
| Left + Right | Maintains both horizontal edge relationships. |
| Top | Maintains relationship with the top edge. |
| Bottom | Maintains relationship with the bottom edge. |
| Top + Bottom | Maintains both vertical edge relationships. |
| Center | Maintains a centered relationship. |
| Scale | Maintains proportional position and size behavior. |
| Auto Layout | Manages content flow, spacing, padding, and resizing. |
| Layout Guide | Visual alignment structure for layouts. |
127. Interview Questions
1. What are Constraints in Figma?
Constraints are rules that define how a child layer responds when its parent frame is resized.
2. Why are Constraints important?
They help maintain predictable positioning and resizing behavior across different frame dimensions and screen sizes.
3. What are the main horizontal constraints?
The main horizontal options are Left, Right, Left and Right, Center, and Scale.
4. What are the main vertical constraints?
The main vertical options are Top, Bottom, Top and Bottom, Center, and Scale.
5. What does the Left constraint do?
It maintains the layer's relationship with the left side of its parent frame.
6. What does the Right constraint do?
It maintains the layer's relationship with the right side of its parent frame.
7. What does the Left and Right constraint do?
It maintains relationships with both horizontal edges and can allow the layer to grow or shrink as the parent width changes.
8. What does Center constraint do?
It keeps the layer positioned relative to the center of its parent.
9. What does Scale constraint do?
It allows the layer's position and size to respond proportionally as the parent changes.
10. What does Bottom constraint do?
It maintains the layer's relationship with the bottom edge of the parent frame.
11. Can constraints be used with Auto Layout?
Yes, but normal child layers in an Auto Layout frame generally use Auto Layout behavior instead of ordinary constraints. A child can be configured to ignore the Auto Layout flow when independent positioning is required.
12. What is the difference between Constraints and Auto Layout?
Constraints primarily define parent-relative positioning and resizing behavior, while Auto Layout manages content flow, spacing, padding, alignment, and dynamic resizing.
13. Can constraints be applied to top-level layers?
Constraints require a parent frame to reference, so a top-level layer directly on the canvas does not have a parent frame for ordinary constraint behavior.
14. How do you keep a button at the bottom-right?
Place the button inside a suitable parent frame and use Right horizontally and Bottom vertically.
15. How do you keep an icon centered?
Use Center horizontally and Center vertically.
16. How do you make a sidebar stretch vertically?
Inside a suitable regular parent frame, use Left horizontally and Top + Bottom vertically when that behavior matches the intended design.
17. Why should constraints be tested?
Because the actual result depends on the layer's initial position, size, parent structure, and other layout settings. Resizing the parent verifies the intended behavior.
18. What is Ignore Auto Layout?
It allows a child object to remain inside an Auto Layout frame while being excluded from the normal Auto Layout flow, enabling independent positioning behavior.
19. What is the role of layout guides with constraints?
Layout guides provide visual alignment references, while constraints define how objects respond to parent resizing. Together they can provide more granular layout control.
20. Should constraints replace responsive design?
No. Constraints are one part of a responsive design workflow. Frames, Auto Layout, resizing properties, components, variants, layout guides, and appropriate testing may also be required.
128. Constraints Debugging Checklist
- Check whether the layer has a parent frame.
- Check the parent frame type.
- Check horizontal constraint.
- Check vertical constraint.
- Check the layer's initial position.
- Check the layer's dimensions.
- Check whether Auto Layout is involved.
- Check Ignore Auto Layout when appropriate.
- Check nested frames.
- Resize the parent frame.
- Test small dimensions.
- Test large dimensions.
- Test intermediate dimensions.
- Check overflow and overlap.
129. Key Takeaways
- Constraints define how supported child layers respond to parent-frame resizing.
- Constraints use horizontal and vertical axes.
- Horizontal options include Left, Right, Left and Right, Center, and Scale.
- Vertical options include Top, Bottom, Top and Bottom, Center, and Scale.
- Constraints are useful for anchored elements.
- Right + Bottom is useful for bottom-right floating controls.
- Center + Center is useful for centered controls.
- Left + Top/Bottom can be useful for full-height sidebars.
- Constraints and Auto Layout solve different layout problems.
- Auto Layout is generally better for content-driven structures.
- Ignore Auto Layout can allow independent positioning inside an Auto Layout frame.
- Layout guides can complement constraints.
- Testing parent resizing is essential.
- Constraints should be used intentionally rather than everywhere.
130. Conclusion
Constraints in Figma are an important tool for controlling how layers behave when their parent frames change size. They allow designers to establish clear relationships between interface elements and the edges or center of their containers.
Understanding Left, Right, Left and Right, Top, Bottom, Top and Bottom, Center, and Scale constraints makes it easier to build predictable responsive layouts. Common examples include anchoring buttons, positioning sidebars, centering icons, maintaining modal controls, and creating floating actions.
Constraints become even more powerful when combined with Frames, Auto Layout, nested layouts, components, variants, and layout guides. The key is to use each feature for the problem it solves best: constraints for parent-relative behavior and Auto Layout for content-driven flow and resizing.
By practicing constraints with real projects such as dashboards, login screens, modals, video players, navigation bars, sidebars, and mobile interfaces, designers can create flexible and maintainable Figma designs that communicate layout behavior clearly to developers.
For structured Figma learning, visit JustAcademy Figma Training and Register for Figma Course Demo.