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

  1. Eyebrow: where this sits in the queue, "Now · 1 of 3".
  2. Status badge: what makes it urgent, "1 h 32 late", in caution with the schedule icon. Nothing urgent, no badge.
  3. Lead: the kind of thing as an icon in a paper disc.
  4. Title and meta: the item in t-title, its detail in kui-color-on-spotlight-muted.
  5. Main action: one pill in kui-color-spotlight-button, the verb for this kind of thing ("Mark as done", "Start", "Mark as paid").
  6. Other actions: two at most, side by side, one tonal on kui-color-spotlight-tonal and one outlined in kui-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 Snackbar confirms 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.