Tile
The following page documents visual specifications such as color, typography, and structure.
Color
Element | Property | Color token |
---|---|---|
Tile:background | background-color | $layer * |
Tile border | border | $border-tile * |
Icon | svg | $icon-interactive |
Checkbox icon | svg | $icon-primary |
Checkmark icon | svg | $icon-primary |
Chevron icon | svg | $icon-primary |
Interactive states
Element | Property | Color token |
---|---|---|
Tile:hover | background-color | $layer-hover * |
Tile:focus | border | $focus |
Tile:selected | border | $border-inverse |
Tile:disabled | border | $border-disabled |
Icon:disabled (or pictogram) | svg | $icon-disabled |
Text:disabled | text color | $text-disabled |
Base tile
Base tile doesn’t have a border. It’s not interactive, but can have interactive elements. Base tile only has the enabled state.
Clickable tile
Clickable tile has four states: enabled, hover, focus, and disabled.
Selectable tiles
Selectable tiles have five states: enabled, hover, focus, selected, and disabled.
Expandable tiles
Expandable tiles have three states: enabled, hover, and focus.
Typography
The default token for the title is $body-compact-01
, although it can be
altered as needed by the product teams.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Tile | 14 / 0.875 | Regular / 400 | $body-compact-01 |
Description | 14 / 0.875 | Regular / 400 | $body-compact-01 |
Structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tile | min-height | 64 / 4 | – |
min-width | 128 / 8 | – | |
padding (minimum) | 16 / 1 | $spacing-05 |
Proportions for grid
Percentage | XL 1600-1200 | L 1200-992 | M 992-768 | S 768-576 | XS 576-0 |
---|---|---|---|---|---|
100% | |||||
1/2 | |||||
2/3 | |||||
1/3 | |||||
1/4 | |||||
1/6 |
AI presence
The following are the unique styles applied to the components when the AI label is present. Unless specified, all other tokens in the components remain the same as the non-AI variants.
For more information on the AI style elements, see the Carbon for AI guidelines.
Element | Property | Token / Size |
---|---|---|
Tile:background | background-color | $layer * |
box-shadow | $ai-drop-shadow | |
inner-shadow | $ai-inner-shadow | |
Linear-gradient:background | start | $ai-aura-start |
top | $ai-aura-stop | |
Linear-gradient:border | start | $ai-border-start |
stop | $ai-border-stop | |
AI label | size | mini |
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.