Brand Design System
Element 4

Button

An interactive button element with multiple states, variants, and customizable styling. Buttons are used to trigger actions and navigate within the interface.

Overview

The Button element is one of the most fundamental interactive elements in Brand. It supports multiple visual states (normal, hover, active, disabled), can contain text and/or icons, and adapts to the current brand theme.

Live Preview

Code

1<button class="btn btn-primary">
2 Primary Button
3</button>
4
5<button class="btn btn-secondary">
6 Secondary Button
7</button>
8
9<button class="btn btn-primary" disabled>
10 Disabled
11</button>

Brand Properties

The following table shows all CRAFT Button properties with their default values and how they map to brand-specific values.

PropertyTypeBrand DefaultHoB ValueTAE Value
FontDropdownOpen SansOpen SansOpen Sans
WeightDropdownnormal (400)normal (400)bold (700)
SizeDropdown14px14px20px
Text Alignment4 optionscentercentercenter
Button Alignment3 optionscentercentercenter
Line HeightSliderAutoAutoAuto
Letter SpacingSlider0px0.5px0
Text Case2 optionsnoneuppercasenone
MarginsInput (px)000
Padding Top/BottomInput (px)121416
Padding Left/RightInput (px)62820
Corner RadiusInput (px)099999999
Background ColorColor picker (hex)#038012#038012#1A5129
Border StyleDropdownnonenonenone
Border WidthInput0px0px0px
Border ColorColor pickerrgb(0,0,0)rgb(0,0,0)rgb(0,0,0)
OpacitySlider100%100%100%
ShadowToggleOffOffOff
Hover BackgroundColor picker (hex)#195129#195129#5F982F
Hover Border ColorColor pickerrgb(255,255,255)rgb(255,255,255)rgb(255,255,255)
Hover Content ColorColor pickerrgb(255,255,255)#FFFFFF#FFFFFF
ActionDropdownSelect action--

Action Options

The Action dropdown provides the following options:

  • Select action - Default placeholder (no action)
  • Go to URL - Navigate to a specified URL
  • Go to Section - Scroll to a section on the page
  • Trigger event - Trigger a custom JavaScript event

Variants

Sizes

Styles

Full Width

Accessibility

  • Use semantic <button> element for actions
  • Use <a> element styled as button for navigation
  • Ensure minimum touch target of 44x44 pixels on mobile
  • Provide focus states for keyboard navigation
  • Use aria-disabled for disabled state accessibility
  • Ensure 4.5:1 color contrast ratio for text

Do's and Don'ts

Do

  • Use clear, action-oriented labels
  • Maintain consistent button styling across pages
  • Provide visual feedback on interaction
  • Use primary buttons sparingly for main CTAs

Don't

  • Use vague labels like "Click here"
  • Use too many primary buttons on one page
  • Make buttons look like regular text
  • Disable buttons without explanation

Unmapped Brand Values

The following brand-specific values are not directly mappable to CRAFT Button properties and may require custom implementation or CSS overrides.

HoB Unmapped Values

PropertyValueNotes
Primary Button Text Color#FFFFFFCRAFT uses Hover Content Color; need explicit text color property
Secondary Button BackgroundtransparentRequires separate secondary button configuration
Secondary Button Text#038012Requires separate secondary button configuration
Secondary Button Border1px solid #038012Requires separate secondary button configuration

TAE Unmapped Values

PropertyValueNotes
Primary Button Text Color#FFFFFFCRAFT uses Hover Content Color; need explicit text color property
Secondary Button BackgroundtransparentRequires separate secondary button configuration
Secondary Button Text#1A5129Requires separate secondary button configuration
Secondary Button Border1px solid #1A5129Requires separate secondary button configuration

Related Components