Skip to main content
Sean_Sands
Mar 16, 2021 9:00 PM UTC

Define default padding for Auto Layout (or set to 0)

  1. Describe the problem your experiencing and how your idea helps solve this
    When you create an autolayout frame, it always defaults to 10px. Many design systems call for an 8px grid and in many cases, users don’t want ANY padding especially where edge-to-edge designs are concerned.

  2. Ask questions to bring the community into the conversation
    What are everyone’s thoughts about the following solutions?:

  • Default autolayout padding based on the big nudge amount in your settings
  • Allow for tokenization of padding/margin grids and offer up autolayout parameters based upon those tokens
  • Allow users to override the padding to 0px at the creation of the autolayout frame by using an alternative key command like ctrl+shift+a (command on mac)

    78 replies

    Maty
    Active Member
    Sep 10, 2021 9:06 AM UTC

    This could be solved easily by adding a setup function like the “set default nudge size”.

    Sean_Sands
    Sep 10, 2021 2:41 PM UTC

    You CAN set a default nudge, but currently you cannot tie that to the default autolayout padding functions. Ideally, you could set default nudge and autolayout parameters independently.

    MishaSavranski
    New Member
    Oct 11, 2021 4:05 PM UTC

    And a +1 from me

    Patrick_Schrodter
    Jan 19, 2022 4:02 PM UTC

    Also from 12 Points from Germany for setting 0px as a default!

    Jon_Peters
    Jan 29, 2022 7:58 AM UTC

    I’ve tried to adjust my workflow to use the current defaults and still 99% of the time I use 0 and some factor of 4 as my defaults and then typically centered both horizontally and vertically. I really need this to be an independent configuration like tomorrow. Pleeeaassse.

    Bill_Hess
    Feb 4, 2022 4:36 PM UTC
    1. It seems that Autolayout was changed for when a single object is selected. In this case, 10px padding is added to the autolayout frame.

    2. I often start autolayout by selecting an object and then adding more objects to that frame. Figma has started adding 10px padding this this case, which shifts the position of the object. Autolayout doesn’t add padding when more than one object is selected. Why do that in this case, especially with an arbitrary 10px padding.

    3. Why does autolayout add 10px padding when only one object is selected? It’s annoying that Figma shifts the object’s position on the larger frame and this behavior is inconsistent with autolayout with multiple objects selected.

    Mark_Chitty
    New Member
    Feb 16, 2022 6:13 PM UTC

    +1 for:

    • Default Auto layout padding & spacing = 0px
    • New app settings (like Big nudge setting) for:
      • Auto layout padding
      • Auto layout spacing
    • Extra key combo (Ctrl/Cmd+Shift+A) to set padding & spacing = app setting value

    Thanks @Gleb for the Frame > Auto-layout shortcut hack in the meantime 👍

    Ben25
    Mar 21, 2022 9:38 AM UTC

    Hi, I would like to simply be able to set the default Paddings and Spacings myself.

    Jordyn_Ferri
    Apr 26, 2022 5:58 PM UTC

    manually define (just like nudge setting)

    Sean_Sands
    May 2, 2022 7:09 PM UTC

    Especially if they can be defined by a token or other programmatic value.