Feedback
Sheet
A sheet holds a short task over the page, such as adding an entry at the current time, without leaving it: it rises from the bottom on phones and opens from the side on wide windows.
In kanso-ui as Sheet
Anatomy
- Scrim (
k-scrim) over the page. - Container (
k-sheet):surface,radius-3xlon its top corners,shadow-3. - Handle (
k-sheet__handle): shows that the sheet can be dragged. - Title (
k-sheet__title), with a Close icon button beside it (k-sheet__head). - Content: here a kind switch (
k-seg k-seg--fill) and a field (k-field). - Main action: full width, in ink (
k-btn k-btn--ink k-btn--block).
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
surface | --kui-color-kanso-surface | #ffffff | #1c1c1c |
ink | --kui-color-ink | #1a1a1a | #ececec |
ink-muted | --kui-color-ink-muted | #5c5c5c | #b3b3b3 |
outline | --kui-color-outline | #8a8a8a | #8c8c8c |
on-ink | --kui-color-on-ink | #fafafa | #121212 |
scrim | --kui-color-scrim | rgba(0, 0, 0, 0.4) | rgba(0, 0, 0, 0.6) |
shadow-3 | --kui-shadow-kanso-3 | 0px 8px 24px 0px rgba(0, 0, 0, 0.12), 0px 24px 56px 0px rgba(0, 0, 0, 0.14) | 0px 12px 40px 0px rgba(0, 0, 0, 0.7) |
radius-3xl | --kui-radius-kanso-3xl | 28px | 28px |
space-xl | --kui-spacing-kanso-xl | 20px | 20px |
space-2xl | --kui-spacing-kanso-2xl | 24px | 24px |
space-lg | --kui-spacing-kanso-lg | 16px | 16px |
font-voice | --kui-typography-font-family-voice | 'Roboto Serif', 'Iowan Old Style', Georgia, serif | 'Roboto Serif', 'Iowan Old Style', Georgia, serif |