Tile
The following page documents visual specifications such as color, typography, structure, and AI presence.
Color
Base tile color
Element | Property | Color token |
---|---|---|
Container | background-color |
|
Text | text color |
|
![Base tile color](/static/af1596682ad408643c65312e1551e39a/3cbba/tile-style-color-base.png)
Base tile color
Clickable tile color
Clickable tiles have an available feature flag.
Element | Property | Color token |
---|---|---|
Container | background-color |
|
Text | text color |
|
Border (feature flag) | border |
|
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Clickable tile color with the feature flag enabled](/static/d2dfaa00bb0c25782a7b66e1490f2ff1/3cbba/tile-style-color-clickable-flag-enabled.png)
![Clickable tile color with the feature flag disabled](/static/1ae11e347e4397fe4b78216dedf5ae8b/3cbba/tile-style-color-clickable-flag-disabled.png)
State | Element | Property | Color token |
---|---|---|---|
Hover | Container | background-color |
|
Focus | Container | border |
|
Disabled | Container | border |
|
Text | text color |
| |
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Clickable tile interactive color with the feature flag enabled](/static/fc9ee1644ea4b7de29b31a59c5a71917/3cbba/tile-style-interactive-color-clickable-flag-enabled.png)
![Clickable tile interactive color with the feature flag disabled](/static/60dead4f53581882447b38fb81e7ef33/3cbba/tile-style-interactive-color-clickable-flag-disabled.png)
Selectable tile color
Selectable tiles have available feature flags.
Element | Property | Color token |
---|---|---|
Container | background-color |
|
Text | text color |
|
Border | border |
|
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Selectable tile color with the feature flag enabled](/static/a3986219946c7e4514f31148c83fd865/3cbba/tile-style-color-selectable-flag-enabled.png)
![Selectable tile color with the feature flag disabled](/static/8afddc6b43dbc14bf6e320c8203688c4/3cbba/tile-style-color-selectable-flag-disabled.png)
State | Element | Property | Color token |
---|---|---|---|
Hover | Container | background-color |
|
Hover selected | Container | background-color |
|
border |
| ||
Selected | Container | border |
|
Focus | Container | border |
|
Disabled | Container | border |
|
Text | text color |
| |
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Selectable tile interactive color with the feature flag enabled](/static/4cdb3f3fa10f5ae432333f8177e12468/3cbba/tile-style-interactive-color-single-select-flag-enabled.png)
![Selectable tile interactive color with the feature flag disabled](/static/9bab04c0fbcb8cb2f106e3e2e8a23083/3cbba/tile-style-interactive-color-single-select-flag-disabled.png)
Expandable tile color
Expandable tiles have an available feature flag.
Element | Property | Color token |
---|---|---|
Container | background-color |
|
text color |
| |
border |
| |
Icon | svg |
|
![Expandable tile color with the feature flag enabled](/static/bb8ec137d402325675aa35a9e9647785/3cbba/tile-style-color-expandable-flag-enabled.png)
![Expandable tile color with the feature flag disabled](/static/9e419fbd52733755bb9e92a4645e7312/3cbba/tile-style-color-expandable-flag-disabled.png)
State | Element | Property | Color token |
---|---|---|---|
Hover | Container | background-color |
|
Focus | Container | border |
|
Disabled | Container | border |
|
Text | text color |
| |
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Expandable tile interactive color without interactive elements and the feature flag enabled](/static/eb969f448096c4e0cfa98ef9aa7c6a84/3cbba/tile-style-interactive-color-expandable-flag-enabled.png)
![Expandable tile interactive color without interactive elements and the feature flag disabled](/static/b7025b418d05fb13972b73bee52263ec/3cbba/tile-style-interactive-color-expandable-flag-disabled.png)
![Expandable tile interactive color with interactive elements and feature flag enabled](/static/c2148e2cfa12f2c3e6aa234dc574db07/3cbba/tile-style-interactive-color-expandable-element-flag-enabled.png)
![Expandable tile interactive color with interactive elements and feature flag disabled](/static/936b8a86d483e1e295daf04190b70369/3cbba/tile-style-interactive-color-expandable-element-flag-disabled.png)
Typography
The default token for tile titles is
$body-compact-01
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Title | 14 / 0.875 | Regular / 400 |
|
Structure
Base tile structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-height | 64 / 4 | – |
min-width | 128 / 8 | – | |
Content | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
|
![Structure and spacing measurements for base tile | px / rem](/static/842237fd9d240977eb93a7acc32dc2a3/3cbba/tile-style-structure-base.png)
Structure and spacing measurements for base tile | px / rem
Clickable tile structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-height | 64 / 4 | – |
min-width | 128 / 8 | – | |
Content | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
| |
Icon | padding-top, padding-bottom | 12 / 0.75 |
|
padding-left, padding-right | 12 / 0.75 |
| |
size | 20px | – |
![Structure and spacing measurements for clickable tile with eth feature flag enabled | px / rem](/static/5366b5bc965d48d157af12a31ff2ed9e/3cbba/tile-style-structure-clickable.png)
Structure and spacing measurements for clickable tile with the feature flag enabled | px / rem
Selectable tile structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-height | 64 / 4 | – |
min-width | 128 / 8 | – | |
Content | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
| |
Icon | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
| |
size | 16px | – |
![Structure and spacing measurements for selectable tile with feature flags | px / rem](/static/b2d280a31d88837bc11891ea8cc43a60/3cbba/tile-style-structure-selectable.png)
Structure and spacing measurements for selectable tile with the feature flags enabled | px / rem
Expandable tile structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-height | 64 / 4 | – |
min-width | 128 / 8 | – | |
Content | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
| |
Icon | padding-top, padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
| |
size | 16px | – | |
Link | padding-bottom | 16 / 1 |
|
padding-left, padding-right | 16 / 1 |
|
![Structure and spacing measurements for expandable tile with the feature flag enabled | px / rem](/static/5664a0fe4997123eaa5a6a65cd8e1b00/3cbba/tile-style-structure-expandable.png)
Structure and spacing measurements for expandable tile with the feature flag enabled | 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 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 |
|
box-shadow |
| |
inner-shadow |
| |
Linear-gradient:background | start |
|
top |
| |
Linear-gradient:border | start |
|
stop |
| |
AI label | 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](/static/f4b7dba8e5a0da6cf03d36ad5feb88f9/3cbba/tile-style-AI-presence.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.