Skip to main content

Buttons

Buttons trigger actions and guide users through workflows. Consistent button styling helps users understand the importance and impact of actions.

Button Variants

Primary Button

Primary Button
Hover State
Active State
Disabled
Use for: Main actions, form submissions, CTAs

Secondary Button

Secondary Button
Hover State
Disabled
Use for: Alternative actions, less prominent CTAs

Tertiary / Outline Button

Outline Button
Hover State
Disabled
Use for: Tertiary actions, cancel buttons, less emphasis

Ghost Button

Ghost Button
Hover State
Use for: Minimal emphasis, icon buttons, toolbar actions

Semantic Buttons

Success Button

Success
Success Outline
Use for: Confirm actions, save success, positive outcomes

Warning Button

Warning
Warning Outline
Use for: Caution actions, proceed with care

Danger / Destructive Button

Danger
Danger Outline
Use for: Delete actions, destructive operations, critical warnings
Always use confirmation dialogs before destructive actions. Never use danger buttons for primary CTAs.

Button Sizes

Small
Medium (Default)
Large

Button with Icons

+ Add Member
Download
Guidelines:
  • Icons should be 16-20px depending on button size
  • Left icon for actions (Add, Create, Download)
  • Right icon for navigation (Next, External link)
  • Icon-only buttons need aria-label for accessibility

Button Groups

Left
Center
Right
Use for: Related actions, segmented controls, toggle groups

Button States

Loading State

Loading…

Accessibility

Keyboard Navigation

All buttons must be focusable and activatable with Enter or Space keys.

Focus Visible

Focus states must be clearly visible with a ring outline.

Contrast

Button text must have minimum 4.5:1 contrast ratio with background.

Touch Target

Minimum touch target size of 44x44px for mobile.

Do’s and Don’ts

Do

  • Use clear, action-oriented labels
  • Place primary button on the right
  • Use one primary button per section
  • Disable buttons during loading
  • Show loading state for async actions

Don't

  • Don’t use vague labels like “Click here”
  • Don’t use multiple primary buttons together
  • Don’t disable without explanation
  • Don’t hide important actions in menus
  • Don’t use red for non-destructive actions