Live Demo

Anatomy

A button contains a call to action, container and can also include an icon sometimes.

Primary Button

  1. Text label
  2. Container
  3. Icon (optional)

Outlined button

  1. Text label
  2. Container
  3. Icon (optional)

Ghost button

  1. Text label
  2. Icon (optional)

Icon button

  1. Container (optional)
  2. Icon

Layout and spacing

Img
  • Item spacing: 8
  • Padding top: 8
  • Padding bottom: 8
  • Padding left: 16
  • Padding right: 16

States

Img
  1. Default
  2. Hover
  3. Active
  4. Disabled

Size and Shape

Img
  • Buttons can be displayed in Small,Medium and Large sizes..
  • By default, the width of a button should be defined by the length of the text.
  • Alternatively, a button can be set to a custom fixed width in order to maintain a consistent look across a page design.
  • Buttons can be built with a square or circle shape. The square shape maintains 3 pixel rounded corners.

Guidelines

Img

Choose a button size that's easily tappable, not too dominant

Img

Choose clear and action-oriented button labels that directly express the main purpose.

Img

Establish a clear hierarchy for buttons based on their importance and actions

Img

Same view must not have more than one primary button.

Copyright© Workhall 2023. All Rights Reserved.