Buttons in UX/UI Design: Click Me If You Can
As designers, we often hear that buttons are a crucial part of any interface and that you can't get anywhere without them. But why, and how true is that? Let's figure it out together.

Buttons are some of the biggest stars in the design world. They can be small or big, round or square, but their main purpose is to be visible and ready for action. Without buttons, an interface would be like a door without a handle: you're ready to walk in, but you don't know how. You sort of understand what's going on and where you are (as the first heuristic says), but what do you do next?
Imagine you open the Booking app to buy a plane ticket. You pick a flight, enter your details, and then realize there's no “Buy” button. And no, it's not your mistake: you entered everything correctly. So what do you do? Most likely, you find another site and book your tickets there. All because you didn't have that decision point: a button.

Without buttons, you couldn't buy anything in the Apple Store
Interaction types and our heroes: buttons
Want to buy something you don't need from an online store at 3 a.m.? Click a button. Looking for help and instructions in a new app? Find the right button! Or maybe you want to remove an item from your cart? Oh yes, you need a button again.
“So many buttons!” you might say. But it's important to understand that they don't all carry the same weight. By importance and type of interaction, buttons fall into three categories: primary, secondary, and lower-priority tertiary. Let's see what kind of creatures these are!
Primary button
Primary buttons are the ones that nudge the user toward the main action, whether that's “Submit” on a sign-up form or “Buy” in an online store. They should stand out from the rest of the interface and grab attention. Not by taking up the whole screen, of course, but not by hiding in the shadows either. Think of the “Reserve” button on the Airbnb website: it's the one that stands out among the other options to guide the user to the main action.

The “Reserve” button on the Airbnb website is a textbook example of a primary button
To make a primary button truly noticeable, use bright, saturated colors that stand out. This matters especially in dark-theme interfaces, where styling elements comes with a few nuances of its own. And of course, don't forget that the button needs to contrast with the other interface elements. You can check that with our tools on the Color Contrast Checker page.
Secondary button
Secondary buttons are the quiet type. They don't shout “click me” the way primary buttons do, but they still do an important job. Take the YouTube interface: the “Upload video” button is primary, while “Cancel” and “Close” are secondary. They're always within reach if the user changes their mind.

YouTube often uses secondary buttons to create contrast with the main action
The design of secondary buttons should be more restrained so they don't overshadow the main action. At the same time, it's important that all of the element's states (active, disabled, hover, and so on) are clearly visible.
Tertiary button
These are like the options you probably won't even remember until you really need them. They usually handle actions the user is unlikely to perform often, such as “Cancel subscription” or “Delete account.”

A tertiary button in the Slack app
It's important that these buttons don't distract the user from the main action and don't look too much like the important elements. You don't want to accidentally hit something like “Delete all” when you just meant to “Save” (and that already smacks of dark patterns).
Who's the boss? Unpacking the visual hierarchy of buttons
Icon button
Because they're so compact, icon buttons can be very useful. In the Instagram app, for example, the “Save” button is a small bookmark. An icon like that triggers an instant association and lets the user quickly understand what will happen when they tap it.

Our website has quite a few icon buttons
And it's not just Instagram! Our Academy website uses plenty of icon buttons too. Have you noticed yet?
Text button
Text buttons are like a good black coffee: simple yet effective (and a lifesaver at just the right moment). They consist of text only, with no icons, borders, or bright fills. That means they carry less visual weight and work best for less important actions.
Take the Medium website interface, for example. Here, text buttons are used to go to other pages or for actions like “Read later.” They don't pull attention away, which is perfect for this context.

Text buttons in the Medium mobile app
One important thing: when you design text buttons, be sure to add an invisible container the same size as the one on your other buttons. That keeps the spacing consistent.
Outlined button
Also known as ghost buttons, these consist of just a border and a text label. They carry more visual weight than text buttons but still don't stand out too much. You'll find a good example in the Pinterest interface, where an outlined button is used for the “Follow” action.

The “Follow” button on Pinterest is an example of an outlined button
Raised button
If you want to give a button a little “lift” and visual weight, raised buttons are a great choice! They stand out thanks to shadows, which make the button more noticeable. Think of the “Add to Cart” button on the Amazon website: it clearly stands out, and the shadow makes it look raised, which underscores its importance in the shopping process.

Buttons on Amazon have subtle shadows that make them look raised
But remember: don't get carried away with effects! Too many shadows can overload the interface and confuse the user. And how do you create the perfect shadow? We've already shared those secrets in our Instagram post and shown them in practice.
Flat button
These buttons don't use shadows or 3D effects, yet they still look like buttons thanks to their shape and color. In the Spotify app, for example, the “Play” button has a flat style that fits perfectly into the overall design.

In Spotify, the “Play” button has a flat design
But here's the catch! A button like this can simply get lost among the other interface elements. To avoid that, make it bright and noticeable with contrasting colors or an outline. That way, users definitely won't miss important actions!
Split button
These don't just perform one main action; they also offer extra functions in a single click. In Microsoft Word, for example, when you click the “Save” button, it not only commits your changes but also opens a menu with options such as “Save a Copy” or “Save in a different format.”

The “Save” button not only commits the change but also opens a menu with options
But don't forget that it's best to limit the number of options to prevent choice paralysis. Follow Miller's law, which says that the optimal number of items in a list for people to take in is 7 (plus or minus 2).
Toggle button
If you need to combine several functions (usually 2 or 3) into one button without hiding any of them, toggle buttons are your best friend. They always work in groups inside a single container, which makes it easy for the user to see that only one of the options can be selected.
A good example is the Spotify interface when you choose a playback mode. There, toggle buttons let you pick between “Repeat,” “Shuffle,” and “Normal.” As soon as you turn on one mode, the others switch off automatically, and that's really convenient!

Playback modes in the Spotify app
Menu button
If you need to group similar actions of equal importance but don't want them getting in the way of other elements, a menu button is a great choice. These buttons open a list of available actions with a single click, which saves space and simplifies the interface.

Gmail makes heavy use of the menu button
Floating action button
Floating action buttons (FABs for short) became real stars of the design world thanks to Google's Material Design. These buttons are like the little superheroes of the interface: always within reach, ready to help at the moments that matter. They're usually round or square with rounded corners and typically contain only an icon. You'll see them anchored to an edge or corner of the screen.

A FAB in Google Calendar
In the Google Calendar app, for example, you've surely noticed the “Add event” button with its bright plus sign. It's a great example of a FAB that prompts users to act. The key is to use only one such button per page so you don't overload the interface.
Buttons aren't just important
Buttons aren't just little boxes with text. They're what gives users confidence that they're on the right track. Want your interface to work? Make your buttons big, noticeable, and, above all, clear.
Source: Uxcel
Article updated
.jpg&w=3840&q=75)
%2520-%2520hover.jpg&w=3840&q=75)



