Button Hierarchy
A visual emphasis system—typically Primary, Secondary, and Ghost—that communicates action priority and guides user decisions
Table of Contents
Interactive Playground
Tap or drag to interact with the demoWhat is Button Hierarchy?
A visual emphasis system—typically Primary, Secondary, and Ghost—that communicates action priority and guides user decisions. It is a core concept in UI Components within UI / UX.
Core Principles
Button Hierarchy uses deliberate visual contrast to signal which action matters most when multiple choices appear together. Design systems typically organize buttons into three emphasis tiers—Primary (Solid), Secondary (Outlined or Tonal), and Tertiary / Ghost (Text-only)—alongside a dedicated Destructive variant for irreversible actions.
When every button shares the same fill and weight, users hesitate, scan longer, and make more accidental clicks.
Practical Takeaways
- Stick to one Primary per section or dialog: Multiple solid CTAs compete for attention. If two actions carry equal weight, downgrade both to Secondary or consolidate secondary options into a split button.
- Reserve solid Destructive styles for confirmation: Use Ghost or subtle Danger styling in lists or toolbars to prevent accidental clicks, escalating to a solid Destructive button only inside the confirmation dialog.
- Don't rely on color alone: Pair fill treatment, border weight, and typography weight so hierarchy remains clear for color-blind users while meeting WCAG contrast targets.
Notable Examples
- Checkout footers: A single solid
Complete PurchasePrimary button paired with an outlinedBackand ghostCancel. - Document toolbars:
PublishorSharestyled as Primary whilePreview,History, andMorestay Ghost. - Destructive modals: A solid red
Delete Projectaction contrasted against a neutralCancelbutton.