Chips are elements that represent status, complementary information, or association between elements.
The chip component container states are enabled and disabled:
The chip action item has the following states: enabled, hover, focus, active and disabled:
| Component token | Element | Token | Value |
|---|---|---|---|
backgroundColor | Chip container | color-grey-200 | #e6e6e6 |
disabledBackgroundColor | Chip container:disabled | color-grey-100 | #f2f2f2 |
fontcolor | Label | color-black | #000000 |
disabledFontcolor | Label:disabled | color-grey-500 | #999999 |
focusColor | Focus outline | color-blue-600 | #0095ff |
iconColor | Icon | color-black | #000000 |
disabledIconColor | Icon:disabled | color-grey-500 | #999999 |
| Component token | Element | Token | Value |
|---|---|---|---|
backgroundColorOnDark | Chip container | color-grey-700 | #666666 |
disabledBackgroundColorOnDark | Chip container:disabled | color-grey-800 | #4d4d4d |
fontcolorOnDark | Label | color-white | #ffffff |
disabledfontcolorOnDark | Label:disabled | color-grey-500 | #999999 |
focusColorOnDark | Focus outline | color-blue-600 | #0095ff |
iconColorOnDark | Icon | color-white | #ffffff |
iconColorOnDark | Icon:disabled | color-grey-500 | #999999 |
| Property | Element | Core token | Value |
|---|---|---|---|
border-width | Chip container | border-width-0 | 0 |
border-style | Chip container | border-style-none | none |
border-radius | Chip container | border-radius-full | 9999px |
border-width | Focus border | border-width-2 | 2px |
border-style | Focus border | border-style-solid | solid |
border-radius | Focus border | border-radius-medium | 0.25rem / 4px |