Content
Card
A card lifts one object off the paper, such as today's focus, a project's payments or a single payment, so the person reads it as one thing.
In kanso-ui as Card
Accessibility
- Mark a card up as
<article>or<section>witharia-labelledbyon its title, and make the title a heading at the level the page needs. - Give a count its noun for screen readers: "5" plus a visually hidden " payments" (
k-sr). - Keyboard: the card is not a tab stop; Tab moves through the links and buttons inside it in reading order.
- Contrast from tokens.json:
inkonsurface17.4:1 in light and 14.4:1 in dark;ink-mutedonsurface6.7:1 and 8.1:1. The shadow and the flat card'sdividerborder are decorative: a card is not a control, so its edge needs no 3:1, and the content carries the meaning. - Targets: controls inside a card keep 48px on phones (
size-control-lg) and 32px on the web (size-control-sm). - Motion: none. Cards don't move on hover or on scroll.