Content
List item
A list item is one row of a list that sits flat on paper, such as a payment in a statement, an entry in the timeline or a project in a web list.
In kanso-ui as ListItem
Variants and sizes
- Statement row: avatar, title, meta "30 Nov · You paid 212.40", trail "+106.20" in
k-figure--positive. An ordinary payment out staysink: "−11.95". - Time-led row:
k-item__time"15:00", the title, a meta line withk-mark--square is-nextand "Task · Home". - Compact,
k-item--compact: 44px (size-row-compact), for one-line rows on the web. - Selected,
k-item--selected:accent-softfill andon-accent-softtext, for the row whose detail is open. - Inset list,
k-list--inset: rows and hairlines start 16px in from the edge.
States
- Rest: flat on
paper. - Hover and pressed, on rows that are links or buttons: a
surface-sunkenfill. - Focus: the 2px
focus-ring, 2px outside the row. - Selected: the
accent-softfill, a semibold title andaria-current. The fill is only 1.2:1 againstpaperin light, so the weight carries the state without colour. - Status, in the timeline: the mark's shape is the type (circle event, pill session, diamond payment, square task) and its fill the state (filled done, outlined next,
cautionlate,accentnow); the meta line says it in words, "Task · 1 h 32 late". - No disabled state: leave out a row that can't be used.
Do and don’t
Do
Keep rows flat on
paper, with hairlines between them.Sign every amount, with the real minus sign: "−11.95".
Keep times in the lead column, in mono.
Write the state in words beside the mark.
Don’t
Put each row in its own card.
Colour an amount that has no sign.
Put two things in the trail.
What you provide
- The lead: the person's initial and style, or the time.
- The title, the meta text and, in the timeline, the mark's type and state.
- The trailing amount as a number with its sign rule, or nothing.
- For rows that open something: the link or handler, and which row is selected.