Anatomy

  1. Label, on the left of the head (k-meter__head).
  2. Value in figures, on the right (k-meter__value), its unit in plain text (k-figure__unit).
  3. Track (k-meter__track).
  4. Fill, or one segment per item (k-meter__fill).
  5. Caption, optional (k-meter__caption).
  6. Marker, optional, on the thick meter (k-meter__marker).

Measurements

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

ClassPropertyValue
k-metergap6px
min-width0

Tokens used

Design tokenIn kanso-uiLightDark
accent--kui-color-accent#1a1a1a#ececec
ink--kui-color-ink#1a1a1a#ececec
on-ink--kui-color-on-ink#fafafa#121212
container--kui-color-container#e9e9e9#2b2b2b
caution--kui-color-caution#b25b00#ffb870
caution-stripe--kui-color-caution-stripe#ffc27a#7a4600
ink-muted--kui-color-ink-muted#5c5c5c#b3b3b3
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
font-mono--kui-typography-font-family-mono'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace