Skip to main content

Color

Form inputs come in two different colors. The default input color is $field-01 and is used on $ui-01 page backgrounds. The light version input color is $field-02 and is used on $ui-02 page backgrounds. For full color specs, refer to each specific component.

Example of form fields in the two colors Example of light fields with $field-02 (left) and the default version with $field-01 (right)

States

Active: Placeholder text should remain when the user clicks into the text input and gets a cursor. Once the user starts typing the hint text is replaced with the user input text.

Help text: Help text appears below the label when the input is active. Help text remains visible while the input is focused and disappears after focus away.

Error: Error messages appear below the input field and are always present while invalid.

Disabled: Disabled state appears at 50% opacity and has a .not-allowed cursor on hover.

Typography

Form headings and labels should be set in sentence case with the first letter of the first word capitalized. Please refer to the Text Input, Dropdown, Checkbox, Radio button, Toggle, Button pages for specific typography details on each component.

PropertyFont-size (px/rem)Font-weightType style
Heading28 / 1.75Light / 300.bx--type-beta
.bx--label14 / 0.875Semi-Bold / 600.bx--type-zeta
.bx--text-input14 / 0.875Normal / 400-
.bx--text-input::placeholder14 / 0.875Normal / 400-
.bx--form-requirement12 / 0.75Normal / 40.bx--type-caption
.bx--form__helper-text12 / 0.75Normal / 400.bx--type-caption

Structure

Forms are made up of several different components. The order in which these elements are arranged is flexible, but should always follow the spacing guidelines below.

Forms can be one column or two. The width of each column varies based on the content and layout of the design. On mobile, forms can only have one column.

All icons can be found on the iconography library page.

Space betweenPropertypx / remSpacing token
Inputsmargin-bottom24 / 1.5$spacing-lg
Non-input componentsmargin-bottom32 / 2$spacing-xl
Grid gutter-20 / 1.25-

Structure and spacing measurements for a double column form Structure and spacing measurements for a double column Form | px / rem



Structure and spacing measurements for a single column form

Structure and spacing measurements for a single column Form | px / rem