Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Courses, tutorials, projects – Figma Learn
  • Courses
  • Figma Design for beginners

FD4B: Create the button

Written by Figma Man

Updated at June 19th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Administration – Figma Learn
    Manage files and projects Manage a team Manage your account Manage a Figma organization Manage Enterprise plan settings and permissions Billing Manage Figma in a school
  • Figma Design – Figma Learn
    Create prototypes Import and export Create designs Tour the interface Dev Mode Work together in files Build design systems Figma Draw
  • Get started – Figma Learn
    Set up your account Layers 101
  • FigJam – Figma Learn
    Import and export Run meetings Work on boards Tour the interface
  • Community – Figma Learn
    Explore the Community Creator tools and resources
  • Help – Figma Learn
    Troubleshoot Common questions Work with support
  • Work across Figma – Figma Learn
    Figma AI Work across Figma
  • Courses, tutorials, projects – Figma Learn
    Courses Projects
  • Figma Slides – Figma Learn
    Create and edit slides Present slide decks Tour the interface Import and export
  • Figma Buzz – Figma Learn
    Templates in Figma Buzz Create and edit assets in Figma Buzz Overview
  • Figma Make – Figma Learn
    Tour the interface Work with Figma Make
  • Figma Sites – Figma Learn
    Design a site Create webpages and breakpoints Make your site interactive Preview and publish a site Tour the interface
+ More

Table of Contents

Create a text layer Add auto layout Style the button Adjust the auto layout properties Turn the button into a main component Check your knowledge

Now that we know more about auto layout, let's use it to create a button.

This is the button we're going to build.png

Create a text layer

We’ll start by adding a new text layer that will serve as our button’s label.

  1. Enable the Text tool.
  2. Click on the canvas and type Button.
  3. Leave the font family set to Inter or choose another font you like.
  4. Use the Typography section to change the following:
    • Set the Font weight to Semi Bold
    • Set the Font size to 18
    • Set the Line height to Auto
    • Set the Alignment set to Center

Create a text layer for your button label.png

Add auto layout

Now we're ready to apply auto layout.

  1. Select the text layer.
  2. Press Shift A. Figma will automatically create a new frame around the text layer with auto layout applied.
  3. Double-click on the frame name and rename it to Button.

Apply auto layout.png

Style the button

We’ll adjust the auto layout properties shortly, but first let’s style our button:

  1. Select the text layer inside the Button frame.
  2. Type F in the field next to the color swatch in the Fill section, and press Enter. Figma will take the single F we entered, and assume we want to set the hex code to #FFFFFF, which sets the fill to pure white.
  3. Select the Button frame.
  4. Click the plus in the Fill section to add a fill.
  5. Type 0 (zero) in the field and press Enter. Just like before, Figma takes the zero we entered and fills out the rest of the field with zeroes, which changes the fill to black.
  6. Change the Corner radius to 8 in the Appearance section of the right sidebar.

Style your button (1).png

Tip: Interested in learning more about button design best practices? Check out our Design your first button project.

Adjust the auto layout properties

When you select the Button frame, you may notice that the section in the right sidebar changed to Auto layout and includes some additional properties. The Dimensions fields also changed and are now Resizing fields.

In addition to being able to set a fixed width and height for the frame, we now have the option to set the parent frame to Hug contents, which means that it will automatically resize as the button label grows or shrinks. Because we’ll use this button element again in different contexts, we’ll leave the resizing properties set to Hug contents for maximum flexibility. That way, if we need to change the button’s label, or translate it into a different language, we wont have to worry about manually resizing it.

Test it! See what happens when you change the button label to “Continue” or “Next”.

Button label demo.gif

We'll adjust some of the other auto layout properties to customize how our button looks:

  1. Set the Horizontal gap between objects to 10.
  2. Set the Horizontal padding to 16 and the Vertical padding to 10.

Configure the auto layout properties

You may be wondering why Figma set the padding to 10 when we added auto layout. Figma automatically used our Big nudge preference, which is set to 10. If we had an existing frame around the text layer before applying auto layout, Figma would maintain the distance we had between the text layer and frame instead. Learn more about nudge settings.

Turn the button into a main component

Since our final design will include several buttons, we'll turn this button into a main component.

  1. Select the Button frame.
  2. Click Create component in the right sidebar.

Turn your button into a main component.png

You’ll notice the button is now inside a purple bounding box and the icon in the Layers section has also changed to a four diamonds icon. This indicates the layer is a main component. In the next chapter, we'll learn more about components and how we can use them to speed up our design workflows.

Check your knowledge

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • FD4B: Advocate sidebar: The differences between sections, groups, and frames
  • FD4B: Advocate sidebar: Auto layout tips and tricks
  • FD4B: Create a frame using frame presets
  • FD4B: Create the section heading, paragraph text, and quote block
  • FD4B: Prototyping fundamentals
  • Blog
  • Best practices
  • QR code generator
  • Color wheel
  • Colors
  • Color picker
  • Color palettes
  • Color palette generator
  • Color contrast checker
  • Font Library
  • Templates
  • Developers
  • Integrations
  • Affiliate program
  • Resource library
  • Reports and insights
  • Support
  • Status
  • Legal and privacy
  • Modern slavery statement
  • Climate disclosure statement
  • COMPARE
  • Sketch
  • Adobe XD
  • Framer
  • Miro
  • COMPANY
  • Events
  • Customers
  • Careers
  • Newsroom
Expand