Patterns
Spotlight
The spotlight answers the first question a person brings to a Kanso product: what needs me right now? It is one spotlight card at the top of the main screen, with a queue behind it, in the product colour.
SpotlightCard is coming. Until it ships, a product builds the spotlight from Card, Text, Badge and Button on the spotlight colours, kui-color-spotlight and its on- tokens, which are in place in both themes and in every product's colour.
Structure
- Eyebrow: where this sits in the queue, "Now · 1 of 3".
- Status badge: what makes it urgent, "1 h 32 late", in caution with the
scheduleicon. Nothing urgent, no badge. - Lead: the kind of thing as an icon in a paper disc.
- Title and meta: the item in
t-title, its detail inkui-color-on-spotlight-muted. - Main action: one pill in
kui-color-spotlight-button, the verb for this kind of thing ("Mark as done", "Start", "Mark as paid"). - Other actions: two at most, side by side, one tonal on
kui-color-spotlight-tonaland one outlined inkui-color-spotlight-line.
Behaviour
- The queue is ordered by urgency: late first, then due soon, then everything due today. The spotlight shows the first; the rest follow in the timeline.
- The main action completes the item and brings the next one in with a spring. A
Snackbarconfirms with "Undo". - Swiping the card away is a shortcut for the second action; the buttons always stay.
- With nothing due, the spotlight disappears and the page title says so: "Nothing needs you". Never show an empty spotlight.
Rules
- Do keep one spotlight per screen, in the product colour.
- Do write the main action as the outcome, not "Done" for everything.
- Don't put more than three actions on it, or a form inside it: quick entry lives in a sheet.
- Don't use the spotlight for promotions or news.
Components
SpotlightCard (coming), Badge, Button, Snackbar.