Anatomy

  1. Pill (k-search): 44px, surface-sunken, radius-pill.
  2. Search icon: search at 20px in ink-muted, decorative.
  3. Input: an <input type="search"> whose placeholder names what can be found.
  4. Clear button: a 32px k-iconbtn k-iconbtn--sm with the close icon, named "Clear search", shown only while there is text.

Measurements

From the design’s stylesheet, each design token with the value kanso-ui gives it in light.

ClassPropertyValue
k-searchheight48px (size-control-lg)
padding0 16px (space-lg)
border-radius999px (radius-pill)
gap10px
min-width0
k-search--compactheight40px (size-control-md)

Tokens used

Design tokenIn kanso-uiLightDark
paper--kui-color-paper#fafafa#121212
surface-sunken--kui-color-surface-sunken#f0f0f0#262626
ink--kui-color-ink#1a1a1a#ececec
ink-muted--kui-color-ink-muted#5c5c5c#b3b3b3
focus-ring--kui-color-focus-ring#1a1a1a#ececec
radius-pill--kui-radius-kanso-pill999px999px
space-lg--kui-spacing-kanso-lg16px16px
size-control-sm--kui-sizing-kanso-control-sm32px32px
size-icon-md--kui-sizing-kanso-icon-md20px20px
state-hover--kui-state-layer-opacity-kanso-hover0.080.08
state-pressed--kui-state-layer-opacity-kanso-pressed0.120.12
font-plain--kui-typography-font-family-plain'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif