Lesson 7: Auto layout
Introduction to Auto Layout in Figma
Overview of the Lesson
- The session focuses on learning about Auto Layout in Figma, building on previous lessons where homework was reviewed and questions answered.
- The instructor emphasizes that while there is much to learn about Auto Layout, additional resources are available on their YouTube page for further exploration.
Importance of Auto Layout
- An example from a previous lesson illustrates how Auto Layout allows for dynamic resizing; copying menu items automatically adjusts the layout compared to manual adjustments without it.
- Demonstrating with buttons, the instructor shows how applying Auto Layout enables buttons to expand based on text content, enhancing usability across different contexts.
Applying Auto Layout
Initial Steps
- To apply Auto Layout, users can select an object and press Shift + A, which wraps it in an auto-layout frame.
- If starting with an existing frame, users can add Auto Layout through options in the right-hand panel by clicking a plus sign.
Understanding Resizing Options
- Two primary options for resizing are introduced: "hug" (the parent container resizes based on child content) and "fill" (the child fills the entire parent container).
- The "hug" analogy compares it to a balloon that expands as more air is added; similarly, the container grows with its contents.
Fill vs. Hug
Differences Explained
- In contrast to hugging contents, filling means that the child object will occupy all available space within its parent container.
- Users cannot select "fill" unless they are working within another auto-layouted container; this highlights the importance of proper nesting.
Fixed Size Option
- The fixed option sets a specific size for elements that will not change regardless of content size—similar to a glass that holds liquid but does not change shape.
Creating Nested Structures
Building Cards with Text
- The instructor demonstrates creating a card layout using rectangles and text elements while applying auto layout settings.
- Users can switch between vertical and horizontal layouts easily after applying auto layout by adjusting settings in the right panel.
Advanced Features
- New features like wrapping allow elements to maintain spacing even when resized—ideal for responsive design scenarios across devices.
Padding and Alignment Settings
Adjusting Spacing
- Vertical gaps between elements can be set either as fixed amounts or set to adjust automatically based on overall size changes.
Individual Padding Control
- Users have control over padding around elements; they can set uniform padding or customize individual sides as needed.
Advanced Alignment Techniques
Aligning Elements
- Elements within containers can be aligned centrally or adjusted towards any corner depending on design needs—this flexibility enhances visual organization.
Managing Nested Elements
- When nesting multiple auto layouts together, users may encounter conflicts where settings cancel each other out; experimentation is encouraged during design iterations.
Recommendations for Using Auto Layout
Best Practices
- It’s advised to play around with designs before applying auto layout extensively; adding it later helps maintain clarity during initial creative phases.
Removing Auto Layout
- To remove auto layout from an element while retaining its position, users can click the minus button next to auto layout settings in the right panel.
Absolute Positioning Feature
Adding Overlays Without Disruption
- For instances where overlays like badges need placement without affecting overall layout dynamics, using absolute positioning allows free movement outside standard constraints.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.





