Content
Spotlight card
The spotlight card holds the one thing that needs the person now, such as a late task, with the actions that resolve it; a screen never has more than one.
Designed, coming to kanso-ui
Anatomy
- Container (
k-spot):spotlightfill,radius-3xl(28px),space-xl(20px) padding. - Top row (
k-spot__top): the eyebrow (k-spot__eyebrow) and the late badge (k-badge--caution). - Lead (
k-spot__lead): a 56px (size-avatar-lg) paper disc with the item's icon,checklist. - Title (
k-spot__title): Roboto Serif Light 32px. - Meta (
k-spot__meta): "Task · was due at 13:00". - Main action: "Mark as done", a full-width 56px paper pill.
- Secondary actions (
k-spot__actions), two up: "Remind me later" and "Skip".
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-spot | border-radius | 28px (radius-3xl) |
padding | 20px (space-xl) | |
gap | 16px (space-lg) | |
min-width | 0 |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
spotlight | --kui-color-spotlight | #1a1a1a | #2b2b2b |
on-spotlight | --kui-color-on-spotlight | #ffffff | #ffffff |
on-spotlight-muted | --kui-color-on-spotlight-muted | rgba(255, 255, 255, 0.8) | rgba(255, 255, 255, 0.8) |
spotlight-button | --kui-color-spotlight-button | #fafafa | #ffffff |
on-spotlight-button | --kui-color-on-spotlight-button | #1a1a1a | #1a1a1a |
spotlight-tonal | --kui-color-spotlight-tonal | rgba(255, 255, 255, 0.16) | rgba(255, 255, 255, 0.14) |
spotlight-line | --kui-color-spotlight-line | rgba(255, 255, 255, 0.6) | rgba(255, 255, 255, 0.6) |
caution-soft | --kui-color-caution-soft | #ffe7cc | #4a2a00 |
on-caution-soft | --kui-color-on-caution-soft | #5c2e00 | #ffddb3 |
radius-3xl | --kui-radius-kanso-3xl | 28px | 28px |
space-xl | --kui-spacing-kanso-xl | 20px | 20px |
size-avatar-lg | --kui-sizing-kanso-avatar-lg | 56px | 56px |
size-control-xl | --kui-sizing-kanso-control-xl | 56px | 56px |
size-control-lg | --kui-sizing-kanso-control-lg | 48px | 48px |
state-hover | --kui-state-layer-opacity-kanso-hover | 0.08 | 0.08 |
state-pressed | --kui-state-layer-opacity-kanso-pressed | 0.12 | 0.12 |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |
font-plain | --kui-typography-font-family-plain | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif | 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif |