1. Home
  2. Foundations
  3. 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.

ShapeDoneNextLateNow
Circle · First kindDoneNextLateNow
Pill · Second kindDoneNextLateNow
Diamond · Third kindDoneNextLateNow
Square · Fourth kindDoneNextLateNow
  • radius-2xl

    24px

  • radius-3xl

    28px

  • radius-lg

    16px

  • radius-md

    12px

  • radius-pill

    999px

  • radius-sm

    8px

  • radius-xl

    20px

  • radius-xs

    4px

Corners

TokenValueShapes
kui-radius-kanso-xs4pxSmall marks and meter segments.
kui-radius-kanso-sm8pxTooltips, group avatars, thumbnails.
kui-radius-kanso-md12pxText fields, menus, snackbars, inline alerts, navigation pane items.
kui-radius-kanso-lg16pxThe FAB; cards in a dense web grid.
kui-radius-kanso-xl20pxCards on the web.
kui-radius-kanso-2xl24pxCards on phones.
kui-radius-kanso-3xl28pxThe spotlight card, dialogs, the top of a sheet.
kui-radius-kanso-pill999pxEvery 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.

ShapeCornerStands for
CirclefullA product's first kind of thing
Pillhalf the heightIts second
Diamondkui-radius-kanso-xs, turned 45°Its third
Squarekui-radius-kanso-xsIts fourth

A product might map them to an event, a session, a payment and a task.

StateLooks
DoneFilled kui-color-ink
NextInk outline, empty
LateFilled kui-color-caution
NowFilled 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.