Skip to main content
london
January 25, 2022

Add Margins To Auto Layout

  • January 25, 2022
  • 44 replies
  • 25591 views

Auto-Layout has padding (inner spacing), but no margins (outer spacing).

Currently the only 2 ways to add spacing is to:

  • Create a spacer element or
  • Wrap the items in another frame and apply gap spacing
    • This creates a lot of unnecessary frames, and sometimes creates nesting so deep it goes outside the layers panel.

Not sure if a technical limitation left this out of consideration in the first few versions of Auto Layout, but it would be much appreciated if it were included in a future version as it comes up as a significant limitation many times a day.

44 replies

Noah_Greer
March 24, 2024

I also agree that this would be very helpful! As someone who works with CSS regularly, I cannot accomplish certain things (such as adding spacing to a component with a background) in Figma as I would in CSS using margins without affecting their appearance. Margins would be a valued feature for me.

Lino_Ramirez
March 26, 2024

Bumping this because I’m also having this issue where devs are expecting to see margin-top instead of padding-top so it’s a little confusing (especially in a big team since they have to remember to not use “padding” property).

Elle1
New Member
March 28, 2024

Seems like a big big miss to not include margins! As the comment above mine states, it’s important for designers to be able to work with the same properties as devs do to cut down on confusion, double work, etc.

Travis2
Active Member
March 29, 2024

those of us that are using a CSS mental model

Not to mention, those developers using actual CSS to build the things we make in Figma!

Travis2
Active Member
March 29, 2024

I mean ideally, shouldn’t autolayout have a 1:1 relationship to flexbox? Wouldn’t it be easier for everyone if autolayout’s capabilities and options and values exactly matched flexbox (like adding margins)? We’re not designing in a vacuum - I don’t design stuff so that it looks good in Figma, I design it so that some developer can take it and build it.

Lia3
New Member
April 9, 2024

Absolutely agree. What’s the point of having an entirely unique type of object with different attributes/limitations/quirks when the obvious purpose/benefit is to mimic flexbox containers?

ahmadfawaid
New Participant
July 9, 2024

really need this feature!

Carlos_Fonseca
August 8, 2024

A cannot wait to see Figma allow using margins instead of creating nesting frames!!

MG17
New Participant
August 19, 2024

Push.

Plus some characters to reach the min am0unt.

Andy_Thelwell
September 27, 2024

It’s insane that this feature is missing. It’s a “screen layout 101” type of thing. Crazy that this does not exist already.