Menu

Log in

Sign up

From beginner to master of web design, coding, infrastructure operation, business development and marketing

  • COURSES
  • HTML & CSS Introduction
  • HTML & CSS Coding with AI
  • Linux Introduction
  • Docker Basics
  • Git & GitHub Introduction
  • JavaScript Coding with AI
  • Django Introduction
  • AWS Basics
  • Figma Introduction
  • SEO Tutorial for Beginners
  • SEO with AI
  • OTHERS
  • About
  • Terms of Service
  • Privacy Policy

© 2024 D-Libro. All Rights Reserved

Figma IntroductionChapter 2. Figma Basic Tools

Figma Auto Layout: Create Responsive and Dynamic Designs

Figma Auto Layout: Create Responsive and Dynamic Designs

Figma Auto Layout

Figma’s Auto Layout feature is a game-changer for creating responsive and dynamic designs. Whether you’re building buttons, cards, or entire layouts, Auto Layout allows elements to automatically adjust and align based on content changes, making it easier to maintain consistency and efficiency in your design process.

In this section, we’ll cover the following topics.

  • Auto Layout Basic Settings
  • Auto Layout Container Constraint and Resizing Settings
  • Auto Layout Item Resizing Settings
  • Auto Layout Use Cases

Auto Layout Basic Settings

How to Initiate Auto Layout?

Auto Layout in Figma can be activated by selecting multiple objects or a frame and pressing Shift + A or by clicking the + button in the Auto Layout section on the right sidebar in the browser version (for the desktop version, select the auto layout icon). Once enabled, the position and alignment of items within the frame will be automatically adjusted according to the defined rules.

Basic setting of auto layout

Auto layout direction:

Figma Auto Layout Direction Settings

You can select horizontal, vertical, or wrap in the auto layout direction. You can choose between horizontal, vertical, or wrap directions for Auto Layout. This setting determines how your items are aligned within the frame.

Spacing:

Figma Auto Layout Spacing Settings

Spacing defines the distance between items in your layout. For horizontal layouts, it controls horizontal spacing, and for vertical layouts, it manages vertical spacing.

Padding:

Figma Auto Layout Padding Settings

Padding sets the distance between the content and the edges of the frame. You can specify different padding values for the top, bottom, left, and right sides of the frame.

Position Alignment:

there are two types of alignment. Packed and Space-Between. You can change the settings by double-click.

  • Packed: Aligns items to the selected edge. For example, selecting the top-left edge with the packed setting will align items to the top-left corner based on the defined padding and spacing

figma-auto-layout-position-alignment-settings-packed-id504110020510-img04

  • Space-Between: Distributes items evenly based on the selected direction. For horizontal layouts, items are spaced horizontally; for vertical layouts, you can align items to the top, center, or bottom.
Figma Auto Layout Position Alignment Settings - Packed

The illustrations below describe how position alignments work in horizontal and vertical auto layout settings.

Horizontal Auto Layout:

Figma Auto Layout - Horizontal Auto Layout

Vertical Auto Layout

Figma Auto Layout - Vertical Auto Layout

Auto Layout Container Constraint and Resizing Settings

When using Auto Layout, it’s important to configure the constraints and resizing settings for your frames. First, we explain how to manage constraint and resizing settings at the container level (parent frame).

Figma Auto Layout Container Constraint and Resizing - At Parent Element Level

Watch the video below.

Constraints: Hug contents

With the Hug Contents setting, the frame size automatically adjusts to fit its contents. The alignment settings won’t affect the positions of items since the frame resizes to accommodate them.

Watch the video below.

Constraints: Fixed

When the Fixed constraint is applied, items align according to the Auto Layout settings rather than the constraints. For nested frames within a parent frame, constraints like left or top determine their position.

Watch the video below.

Auto Layout Item Resizing Settings

You can also set resizing approaches at the item level (child element level). To change the setting, select the items in the auto layout frame you are working on. You can set different settings for width and height of each item.

Figma Auto Layout Container Constraint and Resizing - At Child Element Level

Fixed Width or Height

When you apply the Fixed setting to an item’s dimension, the dimension won’t change even when you change the size of the frame where the item is located.

Fill Container

When you select Fill Container, the item size follows the size of the frame. In this case, item sizes will be defined based on the padding and spacing settings.

Figma Auto Layout Container Constraint and Resizing - Fill Container

Auto Layout Use Cases

Auto Resize Button

Figma Auto Layout - Auto Resize Button

One of the most practical uses of Auto Layout is creating buttons that automatically resize based on their content. Here’s how to do it:

  1. Create a text object and type “Button”
  2. Press Shift + A to change the object to an auto layout frame
  3. Add the fill color of the frame and adjust the text color
  4. Adjust the edge of the object (add round)
  5. Add effects (e.g., add a drop shadow)

Watch the video below.

The created button can be auto resized. Watch the video below.

You can also enhance your button by adding an icon. Watch the video below.

Responsive Navigation Bar

Figma Auto Layout - Responsive Navigation Bar

Another common use case is creating a responsive navigation bar. By using the Space Between alignment, you can keep the brand logo centered while placing other icons at the edges. Watch the video below.

Responsive Card List

Figma Auto Layout - Responsive Card List

To create responsive list items, use nested frames and Auto Layout. Start by applying Auto Layout to one list item and adjusting its alignment and resizing settings. Then, duplicate the list item and group them within another Auto Layout frame. Set the sub-frames to Fill Container to ensure the list items adjust proportionally to the entire frame. Watch the video below.

More Topics to Explore

Practice Wireframe Design in Figma

Practice Wireframe Design in Figma

Figma Design File Structure and Toolbar

Figma Design File Structure and Toolbar

Practice Wireframe Design in Figma

Practice Wireframe Design in Figma

Figma Design File Structure and Toolbar

Figma Design File Structure and Toolbar

Tags:

Figma

App UI Design

Figma Introduction
Course Content

Chapter 1. Introduction To Figma

Figma Quick Start Guide

Figma User Interface (UI) and Version Control

Figma Plugins

Chapter 2. Figma Basic Tools

Figma Design File Structure and Toolbar

Figma Design Object Properties

Figma Layout and Object Alignment Tools

Constraints in Figma

Figma Auto Layout

Nested Frames in Figma

Masking and Boolean Operations in Figma

Figma Component Basics

Figma Component Variants and Interactive Components

Styles in Figma

Exporting Figma Designs and Slicing

Chapter 3. App UI Design Basics and Concept Design with Figma

App UI Design Basics: How To Design App UI

App UI Design Elements

App UI Design Principles

App Concept Design (Storyboard) with Figma

Chapter 4. Wireframing with Figma

Designing User Flows and Wireframe Layouts

Preparing Wireframe UI Components

Figma Screen Mirroring for Mobile and Tablet UI

Practice Wireframe Design in Figma

Chapter 5. Mockup Design with Figma

Color Themes and Text Styles in Mockups

Practice Mockup Design in Figma

Chapter 6. Prototyping Interactive Designs with Figma

How To Use Figma Prototype Features

Prototype Interaction Settings and Practice

Advanced Interaction Settings

Chapter 1. Introduction To Figma

Figma Quick Start Guide

Figma User Interface (UI) and Version Control

Figma Plugins

Chapter 2. Figma Basic Tools

Figma Design File Structure and Toolbar

Figma Design Object Properties

Figma Layout and Object Alignment Tools

Constraints in Figma

Figma Auto Layout

Nested Frames in Figma

Masking and Boolean Operations in Figma

Figma Component Basics

Figma Component Variants and Interactive Components

Styles in Figma

Exporting Figma Designs and Slicing

Chapter 3. App UI Design Basics and Concept Design with Figma

App UI Design Basics: How To Design App UI

App UI Design Elements

App UI Design Principles

App Concept Design (Storyboard) with Figma

Chapter 4. Wireframing with Figma

Designing User Flows and Wireframe Layouts

Preparing Wireframe UI Components

Figma Screen Mirroring for Mobile and Tablet UI

Practice Wireframe Design in Figma

Chapter 5. Mockup Design with Figma

Color Themes and Text Styles in Mockups

Practice Mockup Design in Figma

Chapter 6. Prototyping Interactive Designs with Figma

How To Use Figma Prototype Features

Prototype Interaction Settings and Practice

Advanced Interaction Settings

FAQ: Figma Auto Layout

What is Figma’s Auto Layout feature?

Figma’s Auto Layout feature allows elements within a design to automatically adjust and align based on content changes, making it ideal for creating responsive and dynamic designs such as buttons, cards, and layouts.

How do I initiate Auto Layout in Figma?

To activate Auto Layout, select multiple objects or a frame and press Shift + A or click the + button in the Auto Layout section on the right sidebar. This will enable Auto Layout, and elements will align automatically based on the defined rules.

What are the basic Auto Layout settings?

  • Direction: Choose between horizontal, vertical, or wrap layout directions to define how items are aligned within the frame.
  • Spacing: Controls the distance between items in the layout.
  • Padding: Sets the distance between the content and the edges of the frame.
  • Position Alignment: Options include Packed (aligns items to a selected edge) and Space-Between (evenly distributes items based on the direction).

How do container constraints and resizing settings work in Auto Layout?

  • Hug Contents: The frame size adjusts automatically to fit its contents, ignoring alignment settings.
  • Fixed: Items align according to Auto Layout settings, and constraints like left or top determine their position within nested frames.

How do I set resizing options for items within an Auto Layout frame?

You can control how items resize by selecting them within the Auto Layout frame:

  • Fixed Width or Height: The item’s dimension remains unchanged even when the frame is resized.
  • Fill Container: The item’s size adjusts to match the frame’s size, based on padding and spacing settings.