Variants and sizes

  • Default, k-card: for phones. 24px corners and shadow-1.
  • Web, k-card--web: 20px corners for web layouts; nothing else changes.
  • Flush, k-card--flush: no padding, and the content is clipped to the corners. Pair it with k-card__head and a k-list.
  • Flat, k-card--flat: no shadow, a 1px divider border instead. Use it on surface, inside a sheet or a dialog, where a shadow does not read, and for quiet records such as the last payment.

States

A card is not a control. It has a rest state only and does not lift or change on hover. When a card opens a detail, make its title a link and keep other actions as their own buttons; don't make the whole card one button. Focus rings belong to the controls inside. In a flush card, draw a row's focus ring inside the row, because the card clips anything outside its corners.

Do and don’t

Do

  • Put one object in a card and give it a title.

  • Keep the timeline and statements flat on paper.

  • Use the flush variant, with its header row, when a short list belongs to the card's object.

Don’t

  • Nest a card inside a card.

  • Wrap each row of a list in its own card.

  • Use the 24px phone corners on the web, or the 20px web corners on phones.

  • Raise a card with a bigger shadow to make it urgent; the urgent thing is the spotlight.

What you provide

  • The title and its heading level.
  • The content: a meter, a figure, a list of rows or text.
  • For a flush card, the header title ("Payments since 20 Nov") and an optional count ("5").
  • The platform, which picks k-card or k-card--web.