Feedback
Empty state
An empty state takes the place of a list or page that has nothing in it yet: it says what is missing in plain words and offers the next step, such as "No files yet" with "Attach file".
In kanso-ui as EmptyState
Anatomy
- Container (
k-empty): a centred column, 32px above and below, 20px at the sides. - Marks (
k-empty__marks): the four status marks in their outlined "next" state, circle, pill, diamond and square (k-mark k-mark--lg … is-next). They are the only picture. - Title (
k-empty__title): what is missing, in the voice face (t-section, 22px light). - Body (
k-empty__body): one sentence on what will appear and why it helps,ink-muted, at most 320px wide. - Action: one button that starts the next step.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-empty | gap | 12px (space-md) |
padding | 32px (space-3xl) 20px (space-xl) |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
surface | --kui-color-kanso-surface | #ffffff | #1c1c1c |
paper | --kui-color-paper | #fafafa | #121212 |
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
accent | --kui-color-accent | #1a1a1a | #ececec |
on-accent | --kui-color-on-accent | #fafafa | #121212 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
shadow-1 | --kui-shadow-kanso-1 | 0px 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-2xl | --kui-radius-kanso-2xl | 24px | 24px |
radius-pill | --kui-radius-kanso-pill | 999px | 999px |
space-sm | --kui-spacing-kanso-sm | 8px | 8px |
space-md | --kui-spacing-kanso-md | 12px | 12px |
space-xl | --kui-spacing-kanso-xl | 20px | 20px |
space-3xl | --kui-spacing-kanso-3xl | 32px | 32px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |
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 |
t-section | --kui-typography-t-section-size | 22px | 22px |