Foundations
Shape and marks
Kanso uses shape for two things: corners that say how a thing behaves, and status marks that say what a thing is. Both keep the set small.
Morphs, marks and corners, live
A press tightens the corners
Pressed controls tighten slightly and spring back when released. Button does it today.
A toggle, selected
Either shape tightens while pressed, and a toggle trades one for the other once selected.
| Shape | Done | Next | Late | Now |
|---|---|---|---|---|
| Circle · First kind | Done | Next | Late | Now |
| Pill · Second kind | Done | Next | Late | Now |
| Diamond · Third kind | Done | Next | Late | Now |
| Square · Fourth kind | Done | Next | Late | Now |
radius-2xl24px
radius-3xl28px
radius-lg16px
radius-md12px
radius-pill999px
radius-sm8px
radius-xl20px
radius-xs4px
Corners
| Token | Value | Shapes |
|---|---|---|
kui-radius-kanso-xs | 4px | Small marks and meter segments. |
kui-radius-kanso-sm | 8px | Tooltips, group avatars, thumbnails. |
kui-radius-kanso-md | 12px | Text fields, menus, snackbars, inline alerts, navigation pane items. |
kui-radius-kanso-lg | 16px | The FAB; cards in a dense web grid. |
kui-radius-kanso-xl | 20px | Cards on the web. |
kui-radius-kanso-2xl | 24px | Cards on phones. |
kui-radius-kanso-3xl | 28px | The spotlight card, dialogs, the top of a sheet. |
kui-radius-kanso-pill | 999px | Every button, chip, badge, segmented control and the search field. |
The rule of thumb: what you press is a pill, what holds content has a clear corner, and the larger the container, the larger the corner.
Pressed controls tighten slightly and spring back when released: the FAB moves from radius-lg to radius-md. Button tightens while pressed today; the FAB takes it with its family.
The components still draw on Material Design's corners, kui-radius-none to kui-radius-xl (28px) with kui-radius-pill and kui-radius-circle, until each family takes Kanso's with its release.
Status marks
A status mark is a small shape that leads a row, a table cell or a meter. It is the system's way of telling kinds of thing apart without colour. StatusMark, the component that draws them, is coming; until then, a product that needs marks draws them in its own code from these rules.
| Shape | Corner | Stands for |
|---|---|---|
| Circle | full | A product's first kind of thing |
| Pill | half the height | Its second |
| Diamond | kui-radius-kanso-xs, turned 45° | Its third |
| Square | kui-radius-kanso-xs | Its fourth |
A product might map them to an event, a session, a payment and a task.
| State | Looks |
|---|---|
| Done | Filled kui-color-ink |
| Next | Ink outline, empty |
| Late | Filled kui-color-caution |
| Now | Filled kui-color-accent |
- Do pair each mark with its label ("Event · late"), and hide the mark from screen readers.
- Do keep a product's mapping the same everywhere. Another product maps its own four kinds to the same four shapes.
- Don't add new shapes for a fifth kind: use a word, or split the view.
- Don't use the marks as bullets or decoration.
Avatars
People are circles; groups are rounded squares (kui-radius-kanso-sm). A person keeps one avatar style everywhere: the signed-in person in ink, others in the tonal container, or accent-soft where a product needs them to stand out. Avatar draws people as circles at sm, md and lg, with a tone for its fill.