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 |
* Denotes a contextual color token that will change values based on the layer it is placed on.
![State of the base tile State of the base tile](/static/de97b1ca44f3ccbb8dec423efebcd0bf/3cbba/tile-style-3.png)
The example shows layering tokens applied across layers in the Gray 100 theme.
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 |
* Denotes a contextual color token that will change values based on the layer it is placed on.
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.
![State of the base tile State of the base tile](/static/f6fd8677119e1d52774f8a6ed688e39d/3cbba/tile-style-5.png)
Clickable tile
Clickable tile has four states: enabled, hover, focus, and disabled.
![States of the clickable tile States of the clickable tile](/static/7f18904c9a7975d70cc7b1e134f4e944/3cbba/tile-style-6.png)
Selectable tiles
Selectable tiles have five states: enabled, hover, focus, selected, and disabled.
![States of the single-select tile States of the single-select tile](/static/0751f760072f59904c2026a1dc2b4c08/3cbba/tile-style-7.png)
![States of the multi-select tile States of the multi-select tile](/static/198ca5d1d87b1fa9581da9a0e54c2402/3cbba/tile-style-8.png)
Expandable tiles
Expandable tiles have three states: enabled, hover, and focus.
![States of the expandable tile States of the expandable tile](/static/773038a8bd478b660ccd2f0bdca2353b/3cbba/tile-style-9.png)
![States of the expandable tile with interactive elements States of the expandable tile with interactive elements](/static/83cf91a26ad75825662a63326364205f/3cbba/tile-style-10.png)
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 |
![Structure and measurements for tiles Structure and measurements for tiles](/static/18e52f24efe2044cc8d7992ff5a98150/3cbba/tile-style-11.png)
![Structure and measurements for single-select, multi-select, and expandable tiles Structure and measurements for single-select, multi-select, and expandable tiles](/static/8ec2880c125593f70b3a5459e96a512b/3cbba/tile-style-12.png)
Structure and spacing measurements for tile | px / rem
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 slug is present. Unless specified, all other tokens in the components remain the same as the non-AI variants.
More information about designing for AI guidelines is coming soon.
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 slug | size | mini |
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Structure and spacing measurements for tile with AI presence Structure and spacing measurements for tile with AI presence](/static/331b31d01b0aa9b54c70720cead6b0de/3cbba/tile-AI-presence-style.png)
Structure and spacing measurements for tile with AI presence
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.