YouTube2Text

A Guide to Auto Layout: Best Practices, Tips & Tricks | Figma — Transcript

by Figma · 4,423 words · 608 segments · language en · Watch on YouTube

Full transcript

  1. 0:05hello everybody we are here today to
  2. 0:07talk about Auto layout this feature is
  3. 0:09one of the main features that made me
  4. 0:11fall in love with figma but I also know
  5. 0:13a lot of folks may feel the complete
  6. 0:15opposite of that auto layout can be
  7. 0:17really confusing and if it's not
  8. 0:19understood fully it can be super
  9. 0:20frustrating so my goal with this video
  10. 0:23is to get into all the nitty-gritty
  11. 0:24details of when to use it how to use it
  12. 0:27how to set it up and just general best
  13. 0:29practices when it comes to Auto layout
  14. 0:30so let's start with what the heck is
  15. 0:36it auto layout is a property that you
  16. 0:39can add to frames and components it lets
  17. 0:41you create designs that grow to fill or
  18. 0:44shrink to fit and Reflow as their
  19. 0:46contents change this can be incredibly
  20. 0:48helpful if you want to quickly add
  21. 0:49content to your designs while still
  22. 0:51maintaining the spacing and constraints
  23. 0:53you've put in place it allows your
  24. 0:55designs to grow or to shrink with the
  25. 0:57content that's added to maintain
  26. 0:59alignment as your designs evolve and to
  27. 1:01keep consistent padding and spacing
  28. 1:02between designs Auto lout is incredibly
  29. 1:05useful when it comes to something like
  30. 1:07text strings whether it be a button or a
  31. 1:09larger group of text adding Auto layout
  32. 1:11will allow your content to grow without
  33. 1:13overlapping onto the designs or getting
  34. 1:15cut off auto layout will also allow you
  35. 1:17to rearrange elements on a mobile page
  36. 1:19much easier while maintaining the
  37. 1:21spacing and it'll allow you to create
  38. 1:22responsive designs that grow and shrink
  39. 1:24to fit the space
  40. 1:28[Music]
  41. 1:39so first things first how do we add in
  42. 1:42Auto layout the first way is from the
  43. 1:44design panel on the right when I select
  44. 1:46a frame or multiple pieces of content
  45. 1:49you'll see an icon in the layout section
  46. 1:50of the design panel that says use Auto
  47. 1:52layout when hovering over that icon
  48. 1:55clicking on that will add Auto layout to
  49. 1:57our frame a key thing to note is that
  50. 1:59Auto layout has to be applied to a frame
  51. 2:02so even though figma allows us to add
  52. 2:05Auto layout to objects that are not in a
  53. 2:07frame you'll notice that when I add the
  54. 2:09auto layout it puts them in a frame
  55. 2:11basically that's just to say if you have
  56. 2:13Auto layout it's going to be applied to
  57. 2:15a frame whether or not you added that
  58. 2:17frame or figma had to add one for you
  59. 2:19you'll also see that when I add that
  60. 2:21auto layout the frame icon in the layers
  61. 2:23panel changes to an icon similar to that
  62. 2:26one in the design panel seeing this icon
  63. 2:29in the layer panel instead of the frame
  64. 2:31icon is a quick way to determine if Auto
  65. 2:33layout has been applied to something the
  66. 2:35next way to add Auto layout is via
  67. 2:37shortcuts which is the method I tend to
  68. 2:39use the most often there are two
  69. 2:41shortcuts add Auto layout which is shift
  70. 2:43a on both a Mac or a PC or suggest Auto
  71. 2:47layout which is shift control a on a Mac
  72. 2:50or Control Alt shift a on Windows add
  73. 2:54Auto layout or shift a is what I use to
  74. 2:57create small individual Auto layout
  75. 2:58groupings I create my text select it and
  76. 3:02use the shortcut shift a which both adds
  77. 3:05the frame around it and adds Auto layout
  78. 3:07to the frame and its content that helps
  79. 3:09save me a step from adding in the frame
  80. 3:11first adding the text and then adding
  81. 3:14the auto layout when I'm trying to add
  82. 3:16Auto layout to one individual piece of
  83. 3:18content like a text node when I select
  84. 3:20it the auto layout icon option doesn't
  85. 3:23even appear and the other Auto layout
  86. 3:25shortcut suggest Auto layout doesn't
  87. 3:27work so in this situation the add Auto
  88. 3:29layout shortcut shift a is key shift a
  89. 3:33is also a great shortcut to use as
  90. 3:35you're slowly building out your
  91. 3:36components and adding Auto layout to
  92. 3:38individual pieces as you go but where
  93. 3:40things start to get a little tricky is
  94. 3:42adding Auto layout to a full page or a
  95. 3:45larger components with multiple
  96. 3:46groupings with that when you have a ton
  97. 3:48of content adding a quick shift a to the
  98. 3:50whole frame or to the grouping may not
  99. 3:52get you exactly what you're trying to
  100. 3:53achieve honestly it may actually screw
  101. 3:55up your whole design like this when I
  102. 3:58add the shift a and I B it that's not at
  103. 4:01all what we expect to happen with this
  104. 4:02screen and that's because there are
  105. 4:05multiple different groupings of Auto
  106. 4:06layout that need to be nested within
  107. 4:08each other with different spacing and
  108. 4:10different directions so we either need
  109. 4:12to individually add Auto layout to each
  110. 4:14piece or we can work a little quicker by
  111. 4:16selecting everything and using the
  112. 4:19suggest Auto layout shortcut suggest
  113. 4:21Auto layout is figma doing its best job
  114. 4:23at guessing the multiple different
  115. 4:24groupings of Auto layout in your entire
  116. 4:26frame and adding those in the shortcut
  117. 4:29shift contr a on a Mac or Control Alt
  118. 4:32shift a on Windows will look at the
  119. 4:35entire grouping as a whole and guess
  120. 4:37which areas should be grouped together
  121. 4:39you can see when I use that shortcut
  122. 4:42here eight new auto layout frames are
  123. 4:44created and are highlighted on the
  124. 4:47layers panel with the blue dots now when
  125. 4:50I resize the screen it looks way more
  126. 4:52like I'd expect it to happen and it's
  127. 4:54almost exactly how I would have set it
  128. 4:55up if I made those eight frames manually
  129. 4:58it may not work completely perfectly
  130. 5:00every time like maybe I'd prefer these
  131. 5:03filters to actually stretch to fit the
  132. 5:05frame but it's a really great start to
  133. 5:07speed the process along if you expect to
  134. 5:10have tons of nested groupings you can
  135. 5:12start with the shortcut and then you can
  136. 5:14go and adjust things manually and then
  137. 5:15finally aside from the icon in the
  138. 5:17design panel and both the shortcuts both
  139. 5:20add Auto layout and suggested Auto
  140. 5:22layout can also be found in the menu
  141. 5:24that appears When selecting your content
  142. 5:26and right clicking under add Auto layout
  143. 5:29or more layout suggestions and then
  144. 5:31going to suggested Auto
  145. 5:38[Music]
  146. 5:46layout resizing is one of the first
  147. 5:49things that you'll see in the auto
  148. 5:50layout panel and potentially one of the
  149. 5:52trickier parts to understand when it
  150. 5:53comes to Auto layout when it comes to
  151. 5:55resizing it's important to understand
  152. 5:57the parent child relationship particular
  153. 5:59particularly when it comes to nesting
  154. 6:01Auto layout the parent is the container
  155. 6:04that the content is in and the child is
  156. 6:06the content so we have one parent and
  157. 6:09two children here but once you start
  158. 6:10nesting and putting multiple autolayout
  159. 6:12containers inside of each other a child
  160. 6:14can also become a parent so the button
  161. 6:17container is a child but it's also AAR
  162. 6:20parent to the text when you start to
  163. 6:23Nest changing the resizing on one could
  164. 6:25override the resizing on another and
  165. 6:27that's the tricky part so so let's break
  166. 6:30down each of the different resizing
  167. 6:32options let's start with fix because
  168. 6:34that's usually the simplest one to
  169. 6:36explain and also to understand anything
  170. 6:38set to a fixed height or a fixed width
  171. 6:41is set to that number and it's not going
  172. 6:43to change the resizing here can be
  173. 6:45applied to the child content or the
  174. 6:47parent container they're not dependent
  175. 6:49on each other setting the container to
  176. 6:51fix though May mean some content is
  177. 6:53Flowing outside of the container or even
  178. 6:55getting cut off if the clip content is
  179. 6:57on So to avoid is happening we may set
  180. 7:00either the horizontal or vertical
  181. 7:02resizing options to fixed but then set
  182. 7:05the others to hug or fill let's start
  183. 7:07with hug first the fixed and hug combo
  184. 7:10is usually the one that figma will
  185. 7:11default to when you're first adding Auto
  186. 7:13layout setting the resizing to hug is me
  187. 7:16saying I want to hug the contents of the
  188. 7:18container or in other words I want the
  189. 7:20parent which is the container to resize
  190. 7:23based on the size of the child which is
  191. 7:26the content within it we're going to
  192. 7:28apply the resizing to the container and
  193. 7:30the child content is going to determine
  194. 7:32the final size of the container so for
  195. 7:35example if I add a button where the
  196. 7:36content is never going to be the same
  197. 7:38it's always going to be different words
  198. 7:39I might set that parent container to hug
  199. 7:42so the button always has equal padding
  200. 7:44around the text no matter how long the
  201. 7:46text is how much text is added will
  202. 7:49determine the final size of the
  203. 7:52container I'm a big analogy person so I
  204. 7:54like to think of this one as a
  205. 7:57balloon as you fill the balloon with
  206. 7:59that balloon is going to expand with the
  207. 8:01more air you put in or deflate as you
  208. 8:03let the air
  209. 8:04out the amount of air or content you put
  210. 8:07into it determines the size of the
  211. 8:09balloon or in our case the container
  212. 8:12then we have fill setting resizing to
  213. 8:15fill is me saying I want to fill up the
  214. 8:17entire container with this content so
  215. 8:19the child content will fill the entire
  216. 8:22space available in the parent container
  217. 8:24and the parent container will
  218. 8:25automatically set to a fixed height or
  219. 8:27width so with that we're going to apply
  220. 8:29the resizing to the child content and
  221. 8:32the parent container is going to
  222. 8:33determine the final size of the
  223. 8:35container which is the opposite of how
  224. 8:37we would apply hug remember with hug we
  225. 8:39applied the resizing to the parent and
  226. 8:41the child determines the final size if
  227. 8:44you're not seeing Phil as an option for
  228. 8:45resizing it's likely because you're
  229. 8:47selected on the outermost parent
  230. 8:49container of the auto layouted frame
  231. 8:51instead of a child for fill you have to
  232. 8:54be selected on a child in order to fill
  233. 8:57the parent container if I have two stack
  234. 8:59buttons on a mobile screen I often want
  235. 9:01those to fill the screen so that they're
  236. 9:03the same width no matter what the text
  237. 9:05is in there for that I'll set the button
  238. 9:07to fill the screen and set the text to
  239. 9:10fill the button I'll also set the text
  240. 9:12above the button to be fill and now when
  241. 9:14I resize the frame both the buttons and
  242. 9:17the text above continue to fill the
  243. 9:19width of the frame so more
  244. 9:22analogies think of this one as filling a
  245. 9:25plastic cup we're adding liquid to this
  246. 9:27plastic cup as I add the liquid to the
  247. 9:29cup the liquid is spreading out as close
  248. 9:31as it can to the edges and then it's
  249. 9:34moving up within the constraints of the
  250. 9:35cup and I can squeeze the cup so it's
  251. 9:38slightly changing the shape and the
  252. 9:40liquid is still going to fill up as much
  253. 9:42of the cup as it can now because I've
  254. 9:44set this liquid to fill the container
  255. 9:46once it gets to the top it's going to
  256. 9:48overflow just like text would overflow
  257. 9:49out of the container if it was set to
  258. 9:51fill for the height and the width so the
  259. 9:53ways that we can fix this in figma to
  260. 9:55make our designs a little bit more
  261. 9:56realistic are either by adding
  262. 9:58truncation to the text which we can find
  263. 10:00in the type settings so that it
  264. 10:02truncates and doesn't flow out the
  265. 10:04container or by using different resizing
  266. 10:07types for the parent and the child and
  267. 10:09for the width and the height which is
  268. 10:10super common maybe I want to fill the
  269. 10:13width of a fixed container size with
  270. 10:15text but I want the container height to
  271. 10:17grow based on the amount of text I add
  272. 10:20for this I would use a combination of
  273. 10:22three resizing I'd set the parent
  274. 10:24container to a fixed width and the
  275. 10:26height to hug the contents while I'd set
  276. 10:28the child content to fill the container
  277. 10:31for width and the height to Auto height
  278. 10:33this the container grows as more text is
  279. 10:35added and I can change the set width of
  280. 10:37the container and the text will still
  281. 10:39fill up the full area and then finally
  282. 10:42aside from fixed hug and fill we also
  283. 10:44have the ability to add on a Min and a
  284. 10:46Max width and height in addition to what
  285. 10:49we set the resizing to Min and Max
  286. 10:51values can be added in the resizing drop
  287. 10:53downs as well we'll be able to see the
  288. 10:55Min and the max that we've added shown
  289. 10:57as red lines and when we resize
  290. 10:59something we won't be able to go beyond
  291. 11:02those bounds this is great if you're
  292. 11:04working with responsive content and you
  293. 11:05want to have flexibility but also add in
  294. 11:08a few constraints if we go back to our
  295. 11:10original button example we set it to hug
  296. 11:13because the text is always changing and
  297. 11:15we want to ensure the same padding but
  298. 11:17if the button says something as simple
  299. 11:19as go a button that's small may not give
  300. 11:21a big touch Target or honestly it may
  301. 11:23just not look quite right because it's
  302. 11:25so small giving a Min width ensures that
  303. 11:27even if the text is short the button
  304. 11:29size will never go beyond that set size
  305. 11:32and on the flip side we can add in a Max
  306. 11:34width as well so we know if the text
  307. 11:36starts to truncate we need to trim it
  308. 11:43[Music]
  309. 11:50down one thing you may notice is that
  310. 11:52the frame May shrink a bit in One
  311. 11:54Direction or another when you add Auto
  312. 11:56layout to a frame or honestly it may
  313. 11:58shrink a lot this is because of padding
  314. 12:01which is the space between the content
  315. 12:02and the border of the frame figma's
  316. 12:04initial goal when you first add Auto
  317. 12:06layout is to create equal horizontal
  318. 12:08padding and equal vertical padding
  319. 12:10around the contents of the frame so if
  320. 12:12your frame doesn't already have equal
  321. 12:14padding before you add the auto layout
  322. 12:16figma is going to see what is the
  323. 12:18smallest distance from the content
  324. 12:19within the frame to the left or right
  325. 12:21side of the frame and it'll do the same
  326. 12:23to see what's the smallest distance from
  327. 12:25the content in the frame to the top or
  328. 12:26bottom and it'll pick the smallest
  329. 12:28distance for each one top or bottom and
  330. 12:30left or right and it'll make the padding
  331. 12:32that distance on the left and right side
  332. 12:34and then on the top and bottom so let's
  333. 12:37look at this in Dev mode to make it
  334. 12:39super clear for left and right I have 27
  335. 12:42and 166 for top and bottom I have 138
  336. 12:46and 19 that means it'll update the
  337. 12:49horizontal padding to be 27 and the
  338. 12:51vertical padding to be 19 we add in the
  339. 12:54auto layout and yep that's exactly what
  340. 12:57it did you can change the horizontal and
  341. 12:59vertical padding by scrubbing the input
  342. 13:01field which is just clicking into the
  343. 13:02input field and dragging to the left and
  344. 13:04the right or by typing numbers into the
  345. 13:07input field you'll also see the variable
  346. 13:09icon when you hover over the input which
  347. 13:11allows you to pick from a library of
  348. 13:12variables if you have that set up and
  349. 13:14you can easily detach a variable by
  350. 13:16hovering over it again and clicking to
  351. 13:18detach you also don't have to keep equal
  352. 13:20horizontal and equal vertical padding
  353. 13:22you can update the individual padding
  354. 13:24right on the frame by hovering over the
  355. 13:26padding on the frame and holding down to
  356. 13:28expand or Shrink the padding area you
  357. 13:30can also click individual padding back
  358. 13:32in the layers panel and you'll be able
  359. 13:34to change each padding on its own in the
  360. 13:36input field and then finally there's my
  361. 13:38favorite method if you hold down command
  362. 13:41and click on either of the input Fields
  363. 13:43you'll now get one input field where you
  364. 13:45can type in all the individual padding
  365. 13:47you can also type in the horizontal and
  366. 13:49the vertical or just one number if you
  367. 13:51want it to be even padding all the way
  368. 13:53around
  369. 13:57[Music]
  370. 14:08in addition to padding we're also able
  371. 14:09to control the space or the gap between
  372. 14:12two objects within the frame so if that
  373. 14:15number is set to 24 that means
  374. 14:17everything in this Frame is 24 pixels
  375. 14:19apart like padding the Gap spacing can
  376. 14:22be adjusted right on the frame by
  377. 14:23dragging the padding handle and the
  378. 14:25layers panel by applying a variable by
  379. 14:28typing Direct ly onto the input field or
  380. 14:30by scrubbing the input field what's
  381. 14:32unique to Gap though is the value
  382. 14:34doesn't have to be just positive you can
  383. 14:36use a negative value if you want your
  384. 14:38content to be overlapping so something
  385. 14:40like a group of Avatar stacked on top of
  386. 14:42each other would use a negative value
  387. 14:44when you're working with negative values
  388. 14:46what's above versus what's below can be
  389. 14:48important to your design so this can be
  390. 14:50edited in the auto layout settings with
  391. 14:52the canvas stacking tool when it comes
  392. 14:55to the gap between content you'll also
  393. 14:57notice the option to select auto in the
  394. 14:59drop down menu instead of defining a set
  395. 15:02value while the set value determines the
  396. 15:04exact number of pixels between each
  397. 15:06piece of content and that number never
  398. 15:08changes Auto ensures that there's always
  399. 15:11a same number of pixels between the
  400. 15:13content but what that number is can
  401. 15:15easily change so as I grow and Shrink
  402. 15:18this Frame the spacing between each
  403. 15:20piece of the content is exactly the same
  404. 15:22but what that exact number is will
  405. 15:24change based on the number of items in
  406. 15:27the frame or the size of the frame Auto
  407. 15:29is great for something like a Navar
  408. 15:31where you don't really care what the
  409. 15:32spacing between the icons is you just
  410. 15:34want to make sure it's equal no matter
  411. 15:36how many or what size icons there are
  412. 15:38whereas I'd be far more likely to use a
  413. 15:39set number on a full page layout to
  414. 15:41ensure the spacing doesn't change if the
  415. 15:43frame grows or shrinks or more content
  416. 15:45is added
  417. 15:47[Music]
  418. 15:59next is direction direction is going to
  419. 16:01tell us what direction our Auto layout
  420. 16:03frame should flow in we have three
  421. 16:05options to start us out vertical
  422. 16:07horizontal and ramp and I say start us
  423. 16:09out because I find the majority of the
  424. 16:11time I'm never using just one you'll
  425. 16:13have multiple Auto layouts nested within
  426. 16:15each other and potentially all will have
  427. 16:17different directions to give you that
  428. 16:19desired final look that's where the
  429. 16:21suggested Auto layout shortcut can come
  430. 16:22in really handy since it will try to
  431. 16:24guess the different groupings of Auto
  432. 16:25layouts but since it won't always guess
  433. 16:27it 100% of the time it's important to
  434. 16:29also know how to manually add these in
  435. 16:31so vertical and horizontal are exactly
  436. 16:33what they sound like horizontal puts all
  437. 16:35of your contents in a frame going
  438. 16:36horizontally in one row and vertical
  439. 16:39puts all of your contents in a frame
  440. 16:41going vertically in one column wrap
  441. 16:43however gives the ability to put all of
  442. 16:45your contents in an auto layout frame
  443. 16:46that expands Beyond just a single row or
  444. 16:49column with wrap as I change the width
  445. 16:51of the frame the contents within the
  446. 16:53frame will flow horizontally and wrap to
  447. 16:55the next line and you'll notice with
  448. 16:57wrap instead of just one Gap option
  449. 16:59there are two directions so you have the
  450. 17:00ability to see horizontal and vertical
  451. 17:02Gap so while horizontal Auto layout
  452. 17:05would be great for a Navar and vertical
  453. 17:08Auto layout would be great for images on
  454. 17:10a mobile app wrap could be really great
  455. 17:12for a responsive design like the
  456. 17:13contents of a web page that you would
  457. 17:15expect to wrap to the next row as the
  458. 17:17page condenses
  459. 17:23[Music]
  460. 17:32alignment is another way to change up
  461. 17:33the appearance of your Frame Alignment
  462. 17:35is similar to how we use constraints
  463. 17:37outside a botle layout it's going to
  464. 17:38allow us to determine where your content
  465. 17:40is positioned in relation to the edge of
  466. 17:42the Frame Alignment can be adjusted in
  467. 17:44the design panel in a space which
  468. 17:45someone once described to me as a gram
  469. 17:47cracker and now I cannot unsee that we
  470. 17:50can click on the different points within
  471. 17:52the space to adjust where the content
  472. 17:53will be aligning double clicking on one
  473. 17:55of the points is also a quick way to
  474. 17:57change the Gap from a set number to Auto
  475. 17:59One tip if you're selecting different
  476. 18:01alignments but you're not really seeing
  477. 18:03a difference it may be because your
  478. 18:05frame is set to hug the contents so the
  479. 18:07only space between the contents and the
  480. 18:09edge of the frame is the padding you've
  481. 18:11selected if you extend the frame out a
  482. 18:14little bit that will give you a better
  483. 18:16idea of what the alignment would
  484. 18:17actually be and then you can always go
  485. 18:20and click resize to fit to make it go
  486. 18:22back to
  487. 18:23hug if you're using objects that have
  488. 18:25strokes or any text in your designs
  489. 18:27there's also a few additional settings
  490. 18:28for alignment if we go into the auto
  491. 18:30layout settings menu we have the options
  492. 18:32to determine if we want The Strokes to
  493. 18:34be included or excluded this will be the
  494. 18:37most obvious if your Strokes are added
  495. 18:38to the outside of your content because
  496. 18:40you won't really see a difference at all
  497. 18:41if The Strokes are inside your content
  498. 18:43since the edge of the content is the
  499. 18:45same as where the edge of the stroke is
  500. 18:47in this example we have multiple
  501. 18:48different text sizes and while they're
  502. 18:50technically aligned to the text box it's
  503. 18:52going to drive me bananas that they
  504. 18:54don't visually look aligned but with
  505. 18:56turning on aligned to text Baseline we
  506. 18:59can make that look much
  507. 19:04[Music]
  508. 19:14cleaner okay so hopefully at this point
  509. 19:17you're at a place where you're starting
  510. 19:18to understand Auto layout how it works
  511. 19:20how to add it in but what if you want
  512. 19:23Auto layout but also you don't want it
  513. 19:26kind of like a half and half situation
  514. 19:28let's take the example of a badge and an
  515. 19:30app icon these individual app icons here
  516. 19:33have Auto layout applied so that they
  517. 19:35can keep an even spacing between the app
  518. 19:37name and the app icon and then the full
  519. 19:39screen has Auto layout to keep even
  520. 19:41spacing between all of the apps and this
  521. 19:43is great until I want to add the badge
  522. 19:44to the corner of one of the apps when I
  523. 19:47pull the badge into the frame you can
  524. 19:49see it's immediately stuck onto the auto
  525. 19:51layout the blue indicator on the frame
  526. 19:53is showing me where it's going to go and
  527. 19:55none of those options are the corner of
  528. 19:57the app icons where I want to be so if I
  529. 19:59drop it in it's screwing up the position
  530. 20:01of all my apps and honestly I feel like
  531. 20:03they're just running away from me to
  532. 20:05taunt me and then even if I hold down
  533. 20:07command to really get into those nested
  534. 20:09levels to get into that individual app
  535. 20:12icon it's still just stacking it within
  536. 20:14that frames Auto layout now I could
  537. 20:16right click and remove the auto layout
  538. 20:18or I could even ungroup which would get
  539. 20:19rid of the auto layout in the frame that
  540. 20:21it was sitting in because I do believe
  541. 20:23that there's a time and a place to get
  542. 20:24rid of Auto layout but I don't actually
  543. 20:26want to do that because I do want Auto
  544. 20:28layout here I just also don't want it so
  545. 20:31what's the what's the answer here the
  546. 20:33great news is I can have both instead of
  547. 20:37removing the auto layout we're going to
  548. 20:38ignore the auto layout so when we're
  549. 20:41selected on the badge we're going to go
  550. 20:43up to positioning in the design
  551. 20:45panel and we're going to click ignore
  552. 20:48Auto layout you may also hear this
  553. 20:50referred to as absolute positioning and
  554. 20:52when I do that it keeps the badge on the
  555. 20:54frame that has the auto layout with the
  556. 20:56auto layout still applied but it also
  557. 20:59allows me to put the badge anywhere on
  558. 21:01the frame while ignoring the auto layout
  559. 21:03and I'm actually going to hold down
  560. 21:04command so that I can dig even deeper
  561. 21:07and place it into the individual app and
  562. 21:09then as I move the app around the badge
  563. 21:11still sticks with it and if you want to
  564. 21:14put it back to the auto layout for some
  565. 21:16reason I can just turn off ignore Auto
  566. 21:18layout
  567. 21:23[Music]
  568. 21:33Okay so we've learned all of the
  569. 21:34essential parts of Auto layout here and
  570. 21:36let's take a super quick look at what a
  571. 21:37screen might look like when we've
  572. 21:39applied all of these things so we can
  573. 21:41see all the different resizing coming
  574. 21:43into play here we have hug we have fill
  575. 21:46we have fixed and we have those going on
  576. 21:48with both horizontal and vertical we
  577. 21:50have multiple different groupings here
  578. 21:52we can see lots of nested Auto layout
  579. 21:54going on and we even have an absolute
  580. 21:56positioning here so that we can be a
  581. 21:58little bit more free of where we want
  582. 22:00this one piece to go we can see as we
  583. 22:02resize things are resizing as expected
  584. 22:05and things are working really nicely
  585. 22:08here so we did it we learned how to
  586. 22:10apply Auto layout Auto layout shortcuts
  587. 22:13padding defined Gap versus Auto gaps
  588. 22:15canvas stacking Define Direction and
  589. 22:17Alignment resizing and ignoring Auto
  590. 22:19layout that's so many things I think at
  591. 22:22first glance it seems like you just hit
  592. 22:24a button and everything magically Auto
  593. 22:26layouts but I think we found that there
  594. 22:28are really really a ton of pieces
  595. 22:29involved which is why it's actually far
  596. 22:31more complicated than it looks hopefully
  597. 22:33you're feeling far more confident in
  598. 22:35Auto layout after this and as far as
  599. 22:37additional resources go I would highly
  600. 22:38recommend checking out figma's help
  601. 22:40center and figma's auto layout
  602. 22:42playground which figma updates with each
  603. 22:43new release that can be found in the
  604. 22:45figma community and we'll make sure we
  605. 22:47add both the links to the playground and
  606. 22:49The Help Center below thanks for joining
  607. 22:51me and happy autoing now go get yourself
  608. 22:54a treat this was long you deserve it

About this transcript

This page contains the full transcript of A Guide to Auto Layout: Best Practices, Tips & Tricks | Figma by Figma, generated from the public captions YouTube serves with the video. The transcript has 4,423 words across 608 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.