Status
Progress indicator
A progress indicator shows that the app is working on something the person asked for: a bar where the result will appear, or a spinner for a short wait in a small space.
In kanso-ui as ProgressIndicator
Anatomy
- Label: what is loading ("Loading files").
- Track (
k-progress): 4 px,container. - Bar (
k-progress__bar):accent. - Value, optional, in figures: "64%".
- Spinner (
k-spinner): acontainerring with anaccentarc.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-progress | height | 4px |
border-radius | 2px |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
accent | --kui-color-accent | #1a1a1a | #ececec |
container | --kui-color-container | #e9e9e9 | #2b2b2b |
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 |
--k-ease-standard | its own value | — | — |