Journal

How to design a button hierarchy that makes the next step obvious

A practical guide to ranking primary, secondary, tertiary and destructive buttons so people always know what to do next.

How to design a button hierarchy that makes the next step obvious

Most screens ask people to do one thing. Sign up, save the draft, book the call, pay the invoice. Yet a lot of interfaces present that one thing alongside four other buttons that look almost the same, and then the team wonders why conversion is flat or why support keeps getting "where do I click?" emails.

Button hierarchy is the fix. It is the visual ranking that tells people which action matters most, which ones are optional, and which ones are risky. It is a small system, but once you set it up properly it makes every new screen easier to design and easier to use. Here is how we approach it.

Start with one primary action per view

Before you touch colour or size, decide what the screen is for. Write it down as a single verb: "Publish", "Continue", "Send invoice". That verb becomes your primary button, and there should be only one of it in any given view or section.

If you find two actions fighting for the top spot, that is usually a product question, not a visual one. Either the screen is doing two jobs and should be split, or one of the actions is really secondary and you need the team to agree on that. Settle it in words first. Styling will not solve an unclear goal.

If everything is emphasised, nothing is. One filled button per view is a rule worth breaking only when you can explain why.

Define three or four levels, not ten

Most products need a short ladder of button styles. More than that and people stop being able to tell them apart. A practical set looks like this:

  • Primary: a solid fill in your brand or action colour. The one thing you want people to do.
  • Secondary: an outline or a tinted fill. A real alternative, such as "Save draft" next to "Publish".
  • Tertiary: a text-only button or link style. Low-stakes options like "Cancel", "Skip" or "Learn more".
  • Destructive: a red variant, used only when the action deletes, removes or cannot be undone.

Each level should be clearly different from the one next to it when you squint at the screen. A quick test: blur a screenshot or step back from your monitor. If you can still tell which button is primary, the hierarchy works.

Use weight, not just colour

Colour alone is a fragile signal. Some people do not see your brand colour the way you do, screens vary, and dark mode changes the contrast between fills and backgrounds. Build the difference between levels from several cues at once:

  • Fill: solid for primary, outline or subtle tint for secondary, none for tertiary.
  • Contrast: the primary label should have the strongest contrast against its fill.
  • Size and padding: keep heights consistent within a group, but you can give the primary button more horizontal padding.
  • Position: people expect the main action in a predictable spot, which we cover below.

For accessibility, WCAG asks for a 3:1 contrast ratio for the visual boundaries of interface components, which matters for outline buttons in particular. A pale grey border on white often fails it. Check your secondary style in both light and dark themes.

Write labels that say what happens

A strong hierarchy can still fail if the labels are vague. "OK", "Submit" and "Yes" force people to reread the dialog to know what they are agreeing to. Use the verb plus the object instead:

  1. "Delete project" instead of "Yes".
  2. "Send invoice" instead of "Submit".
  3. "Keep editing" instead of "Cancel" when cancelling would leave the page.

Matching labels also helps. If the dialog title says "Archive this client?", the primary button should say "Archive client", not "Confirm". People scan buttons before they read body text, so the label should make sense on its own.

Place buttons where people look for them

Consistency beats any single "correct" placement. Pick a pattern and use it everywhere in the product. A few conventions that hold up well:

  • In forms and multi-step flows, put the primary action at the end of the content, aligned with the fields, so the eye lands on it after the last input.
  • In dialogs, group the actions together in one corner and keep the primary button in the same position on every dialog.
  • On mobile, a full-width primary button at the bottom of the screen is easy to reach with a thumb. Keep secondary actions as text buttons above or below it.
  • Do not put a destructive action directly next to the primary one with the same style. Separate them with space or move the destructive action to a less prominent spot.

Handle destructive and disabled states with care

Destructive buttons deserve their own rules. Red should mean "this removes something", so do not use red for anything else, such as promotions or general highlights. When an action cannot be undone, make the destructive button the primary in a confirmation dialog, and name the thing being deleted in the label.

Disabled buttons are trickier than they look. A greyed-out "Continue" with no explanation leaves people guessing. Where you can, keep the button active and show what is missing when it is pressed, such as highlighting the empty required field. If you do disable it, add a short hint nearby that says what unlocks it.

Size buttons for real fingers and cursors

Hierarchy breaks down if the low-priority actions are too small to hit. WCAG 2.2 sets a minimum target size of 24 by 24 CSS pixels, and Apple's guidelines recommend at least 44 by 44 points for touch. Text buttons often fall below this because the visible label is small. Give them invisible padding so the tappable area is larger than the text.

Also keep enough space between adjacent buttons. Two small targets packed together are where accidental taps happen, and accidental taps on "Delete" are the ones people remember.

Turn it into components, then audit

Once you have the levels, build them as a single button component with variants for level, size and state: default, hover, pressed, focused, loading and disabled. In Figma that means one component set; in Framer, one component with variants and a property for the label. Designers then pick a level instead of restyling a rectangle every time.

Every few months, take screenshots of your main flows and lay them side by side. Look for screens with two primary buttons, tertiary actions styled as secondary, or red used for non-destructive actions. These drift in slowly as new features ship, and a short audit catches them before they confuse people.

Conclusion

Good button hierarchy is mostly a set of decisions made once: one primary action per view, a short ladder of styles, labels that name the outcome, consistent placement, and clear rules for destructive actions. Get those right and the next step on every screen becomes obvious, which is exactly what your users and your conversion numbers need.

Oybek Ruziev

Designer & Framer developer · AidanCreates

Keep reading

All posts