Skip to main content

Color

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.

ClassPropertySCSSHEX
.bx--search-inputbackground-color$field-01#f4f7fb
.bx--search--lightbackground-color$field-02#ffffff
.bx--search-inputtext color$text-01#152935
.bx--search-input::placeholdertext color$text-03#cdd1d4
.bx--search-magnifierfill$ui-05#5a6872

Example of Search using $field-01 and $field-02 Example of Search using $field-02 (top) and $field-01 (bottom)

Normal, hover, and input search states Examples of normal, hover, and input Search states

Typography

Search text should be set in sentence case, with only the first letter of the first word capitalized.

PropertyFont-sizeFont-weightType style
.bx--search-input14 / 0.875Semi-Bold / 600.bx--type-zeta
.bx--search-input:placeholder14 / 0.875Normal / 400-

Structure

The width of the Search field should appropriately fit the design and layout of content. Larger Search fields can include a filter button and a list/card view button.

ClassPropertypx / remSpacing token
.bx--search--lg .bx--search-inputheight40 / 2.5-
.bx--search--sm .bx--search-inputheight32 / 2-
.bx--search-magnifier
.bx--search-close
height, width16 / 1-
.bx--search-inputpadding-left, padding-right40 / 2.5$spacing-2xl

Structure and spacing measurements for regular search Structure and spacing measurements for Regular Search | px | rem

Structure and spacing measurements for small search Structure and spacing measurements for Small Search | px | rem