Button

Buttons are basic interface elements that initialize an action or function when the user interacts with them. The appearance of the button should suggest the user takes an action that leads to different scenarios. These elements that reinforce to the user the necessity to interact are called CTA (Call to Action) components, which basically are designed to capture user attention and improve the user experience within the application.

Specifications

Button design specifications
Button design specifications

States

The states are the different behaviors of the button component based on the interaction of the user. For the desktop version, we contemplate five different states by which can pass.

States: enabled, hover, focus, active and disabled.

Button states
Button states

Anatomy

Button anatomy
  1. 1.
    Container
  2. 2.
    Icon
  3. 3.
    Label

Design tokens

General

Spacing

Component tokenElementCore tokenValue
paddingLeftContainerspacing-030.5rem / 8px
paddingRightContainerspacing-030.5rem / 8px
paddingTopContainerspacing-030.5rem / 8px
paddingBottomContainerspacing-030.5rem / 8px

Size

The component width can adopt the following values:

WidthValue
small60px
medium240px
large480px
fillParent-
fitContent-

The component height is fixed:

HeightValue
min-height40px

Margin

MarginValue
xxsmall6px
xsmall16px
small24px
medium36px
large48px
xlarge64px
xxlarge100px

These values can be applied independently to each side of the component: top, bottom, left,right.

Typography

Component tokenPropertyCore tokenValue
labelFontLineHeightline-heightfont-leading-normal1.5 em
labelLetterSpacingletter-spacingfont-spacing-wide-010.025 em

Primary

Color

Component tokenElementCore tokenValue
primaryBackgroundColorButton containercolor-purple-700#5f249f
primaryFontColorLabelcolor-white#ffffff
primaryHoverBackgroundColorContainer fill:hovercolor-purple-800#4b1c7d
primaryActiveBackgroundColorContainer fill:activecolor-purple-900#321353
primaryDisabledBackgroundColorContainer fill:disabledcolor-grey-100#f2f2f2
primaryDisabledFontColorLabel:disabledcolor-grey-500#999999
primaryFocusBorderColorContainer border:focuscolor-blue-600#0095ff

Border

Component tokenElementCore tokenValue
primaryBorderThicknessContainerborder-width-00
primaryBorderStyleContainerborder-style-nonenone
primaryBorderRadiusContainerborder-radius-medium0.25rem / 4px

Typography

Component tokenElementCore tokenValue
primaryFontFamilyLabelfont-family-sans'Open Sans', sans-serif
primaryFontSizeLabelfont-scale-031 rem / 16px
primaryFontWeightLabelfont-regular400

Secondary

Color

Component tokenElementCore tokenValue
secondaryBackgroundColorContainer fillcolor-transparenttransparent
secondaryFontColorLabelcolor-purple-700#5f249f
secondaryBorderColorContainer bordercolor-purple-700#5f249f
secondaryHoverBackgroundColorContainer fill:hovercolor-purple-700#5f249f
secondaryHoverFontColorLabel:hovercolor-white#ffffff
secondaryActiveBackgroundColorContainer fill:activecolor-purple-900#321353
secondaryDisabledBackgroundColorContainer fill:disabledcolor-transparenttransparent
secondaryDisabledFontColorLabel:disabledcolor-grey-500#999999
secondaryFocusBorderColorContainer border:focuscolor-blue-600#0095ff
secondaryDisabledBorderColorContainer border:disabledcolor-grey-500#999999

Border

Component tokenElementCore tokenValue
secondaryBorderThicknessContainerborder-width-1 1px
secondaryBorderStyleContainerborder-style-solidsolid
secondaryBorderRadiusContainerborder-radius-medium0.25rem / 4px

Typography

Component tokenElementCore tokenValue
secondaryFontFamilyLabelfont-family-sans'Open Sans', sans-serif
secondaryFontSizeLabelfont-scale-0316px / 1 rem
secondaryFontWeightLabelfont-regular400

Text

Color

Component tokenElementCore tokenValue
textBackgroundColorContainer fillcolor-transparenttransparent
textFontColorLabelcolor-purple-700#5f249f
textHoverBackgroundColorContainer fill:hovercolor-purple-100#f2eafa
textActiveBackgroundColorContainer fill:activecolor-purple-200#e5d5f6
textDisabledBackgroundColorContainer fill:disabledcolor-transparenttransparent
textDisabledFontColorLabel:disabledcolor-grey-500#999999
textFocusBorderColorContainer border:focuscolor-blue-600#0095ff

Border

Component tokenElementCore tokenValue
textBorderThicknessContainerborder-width-00
textBorderStyleContainerborder-style-nonenone
textBorderRadiusContainerborder-radius-medium0.25rem / 4px

Typography

Component tokenElementCore tokenValue
textFontFamilyLabelfont-family-sans'Open Sans', sans-serif
textFontSizeLabelfont-scale-0316px / 1 rem
textFontWeightLabelfont-regular400

Accessibility