Anatomy

  1. Label (k-field__label): above the field, always visible.
  2. Field (k-field__input on a native <select>): the chosen option in ink.
  3. Trail icon (k-field__trail): expand_more at 20px in ink. It is decorative and lets taps through to the select.
  4. Helper text (k-field__help, optional).
  5. Option list: drawn by the platform, a sheet or a wheel on phones and a dropdown on the web.

Measurements

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

ClassPropertyValue
k-fieldgap6px
min-width0

Tokens used

Design tokenIn kanso-uiLightDark
paper--kui-color-paper#fafafa#121212
surface--kui-color-kanso-surface#ffffff#1c1c1c
ink--kui-color-ink#1a1a1a#ececec
ink-muted--kui-color-ink-muted#5c5c5c#b3b3b3
outline--kui-color-outline#8a8a8a#8c8c8c
critical--kui-color-critical#b3261e#f2b8b5
focus-ring--kui-color-focus-ring#1a1a1a#ececec
radius-md--kui-radius-kanso-md12px12px
size-control-lg--kui-sizing-kanso-control-lg48px48px
size-control-md--kui-sizing-kanso-control-md40px40px
size-icon-md--kui-sizing-kanso-icon-md20px20px
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