Selection
Chip
A small outlined pill that narrows a list, offers a related shortcut or holds a value someone typed: filter, assist and input chips.
In kanso-ui as Chip
Anatomy
- Container: a 32px pill with a 1px
outlineborder. - Leading icon, optional: 18px; the check of a selected filter, or the assist chip's icon.
- Label: 14px at weight 500, in sentence case.
- Remove button, input chips only: a 24px circle with
close.
Measurements
From the design’s stylesheet, each design token with the value kanso-ui gives it in light.
| Class | Property | Value |
|---|---|---|
k-chip | height | 32px |
padding | 0 12px (space-md) | |
border | 1px solid #8a8a8a (outline) | |
border-radius | 999px (radius-pill) | |
gap | 6px | |
font | 500 14px/20px font-plain | |
k-chip--input | padding-right | 4px |
Tokens used
| Design token | In kanso-ui | Light | Dark |
|---|---|---|---|
outline | --kui-color-outline | #8a8a8a | #8c8c8c |
ink | --kui-color-ink | #1a1a1a | #ececec |
on-ink | --kui-color-on-ink | #fafafa | #121212 |
focus-ring | --kui-color-focus-ring | #1a1a1a | #ececec |
radius-pill | --kui-radius-kanso-pill | 999px | 999px |
space-md | --kui-spacing-kanso-md | 12px | 12px |
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-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 |