Combining Layouts Grids & Constraints

Layout Grids and Constraints both play a role in affecting your layout as a frame is resized.

When you place a grid on a frame, Figma assumes that you want your designs to stay aligned to that grid. As a result, constraints work differently when used in conjunction with layout grids.

  • When working with stretchy grids, constraints are always based off of the nearest grid column or row. For example, if you set a “left and right” constraint on an item that lives inside a stretchy grid, its left and right coordinates will change as the grid column grows and shrinks.
  • When working with non-stretchy grids, we currently assume that your layout grid is more important than your constraint. In other words, if you align your items to a center grid, we will move those items to remain pinned to that centered grid, and ignore any constraint settings you may have on that item. NOTE: this behavior may change in the future.

This combination of behaviors between Layout Grids and Constraints holds even when you hide the grids. If you want to turn off this behavior, you need to delete the grids entirely from your frame.

Be sure to read "Grid Systems for Screen Design" on our Mediumpage for more information on the power of combining Layout Grids and Constraints. 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.