Skip to main content
london
Jan 25, 2022 7:00 PM UTC

Add Margins To Auto Layout

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.

45 replies

Noah_Greer
Mar 24, 2024 9:31 PM UTC

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
Mar 26, 2024 11:04 PM UTC

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
Mar 28, 2024 2:24 PM UTC

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
Mar 29, 2024 11:53 AM UTC

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
Mar 29, 2024 11:58 AM UTC

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
Apr 9, 2024 11:42 AM UTC

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
Jul 9, 2024 1:22 AM UTC

really need this feature!

Carlos_Fonseca
Aug 8, 2024 2:53 AM UTC

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

MG17
New Participant
Aug 19, 2024 1:16 PM UTC

Push.

Plus some characters to reach the min am0unt.

Andy_Thelwell
Sep 27, 2024 8:58 AM UTC

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