Status
Meter
A meter shows how much of a known total is done or used, such as focus minutes against the day's goal, items done or each person's share in a project.
In kanso-ui as Meter
Anatomy
- Label, on the left of the head (
k-meter__head). - Value in figures, on the right (
k-meter__value), its unit in plain text (k-figure__unit). - Track (
k-meter__track). - Fill, or one segment per item (
k-meter__fill). - Caption, optional (
k-meter__caption). - 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.
| Class | Property | Value |
|---|---|---|
k-meter | gap | 6px |
min-width | 0 |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
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 |