Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Constraints | Prototyping
UI/UX with Figma
course content

Зміст курсу

UI/UX with Figma

UI/UX with Figma

1. Figma Basic Tools
2. Creating and Organizing Objects
3. Creating Visuals
4. Prototyping
5. Submitting Work

book
Constraints

Constraints define how layers respond when you resize their parent frames, enabling responsive designs for different screen sizes and devices. Objects within a frame are called child objects, while the frame itself is the parent frame.

Constraints have horizontal (x-axis) and vertical (y-axis) settings. By default, objects are constrained to the top and left edges of their parent frame.

Horizontal Constraints:

  • Left: keeps the object positioned relative to the left side;
  • Right: positions relative to the right side;
  • Left + Right: The object's size adjusts with the frame along the x-axis;
  • Center: keeps the object centered horizontally;
  • Scale: adjusts the object's size and position proportionally to the frame.

Vertical Constraints:

  • Top: positions relative to the top edge;
  • Bottom: positions relative to the bottom edge;
  • Top + Bottom: the object's size adjusts with the frame along the y-axis;
  • Center: keeps the object vertically centered;
  • Scale: similar to horizontal scaling but for the y-axis.

Constraints can also be set visually using the constraints box in the design panel.

Using Constraints for Responsive Design

  • Align objects (e.g., text, buttons, images) with layout grids for precise positioning;
  • Adjust constraints for each object based on how it should behave when the frame is resized;
  • Ensure groups or masked objects behave as intended by nesting them into frames and reapplying constraints. Shortcut is CTRL + ALT + G (Windows), or Command + Option + G (Mac);
  • Test responsiveness by resizing the parent frame to ensure no distortion or misalignment occurs.

1. What do constraints in Figma primarily control?

2. What happens when you apply the "Scale" constraint to an object?

What do constraints in Figma primarily control?

What do constraints in Figma primarily control?

Виберіть правильну відповідь

What happens when you apply the "Scale" constraint to an object?

What happens when you apply the "Scale" constraint to an object?

Виберіть правильну відповідь

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 4
We're sorry to hear that something went wrong. What happened?
some-alt