Anatomy

  1. Track: a surface-sunken pill with a 4px inset.
  2. Segments: buttons 36px tall, each with a one-word label.
  3. Selected segment: surface fill, 1px outline border, shadow-1, the label in ink at weight 600.

Measurements

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

ClassPropertyValue
k-segpadding4px (space-xs)
border-radius999px (radius-pill)
gap2px
max-width100%

Tokens used

Design tokenIn kanso-uiLightDark
surface-sunken--kui-color-surface-sunken#f0f0f0#262626
surface--kui-color-kanso-surface#ffffff#1c1c1c
outline--kui-color-outline#8a8a8a#8c8c8c
ink--kui-color-ink#1a1a1a#ececec
ink-muted--kui-color-ink-muted#5c5c5c#b3b3b3
shadow-1--kui-shadow-kanso-10px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.04)0px 1px 2px 0px rgba(0, 0, 0, 0.5)
radius-pill--kui-radius-kanso-pill999px999px
space-xs--kui-spacing-kanso-xs4px4px
space-sm--kui-spacing-kanso-sm8px8px
space-lg--kui-spacing-kanso-lg16px16px
state-hover--kui-state-layer-opacity-kanso-hover0.080.08
state-pressed--kui-state-layer-opacity-kanso-pressed0.120.12
focus-ring--kui-color-focus-ring#1a1a1a#ececec
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