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
Secondary Button
Secondary Button
Hover State
Disabled
Tertiary / Outline Button
Outline Button
Hover State
Disabled
Ghost Button
Ghost Button
Hover State
Semantic Buttons
Success Button
Success
Success Outline
Warning Button
Warning
Warning Outline
Danger / Destructive Button
Danger
Danger Outline
Button Sizes
Small
Medium (Default)
Large
Button with Icons
+ Add Member
Download ↓
- 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-labelfor accessibility
Button Groups
Left
Center
Right
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