Structured list
The following page documents visual specifications such as color, typography, structure, and size.
Color
Structured lists have a transparent background layer. Optionally, you can apply a background color to a structured list. Structured lists with a background color are only available in the hang alignment.
Default color
Element | Property | Color token |
---|---|---|
Header | background-color | transparent |
Header: text | text color |
|
Row | background-color | transparent |
Row: text | text color |
|
Divider | border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Default structured list color](/static/8d628427f814d9e9f3e31f7d56e308af/3cbba/structured-list-style-color-default-transparent.png)
Default structured list color
Selectable color
Selectable structured list has an available feature flag.
Element | Property | Color token |
---|---|---|
Header | background-color | transparent |
Header: text | text color |
|
Row | background-color | transparent |
Row: text | text color |
|
Divider | border-bottom |
|
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Selectable structured list color with the feature flag enabled](/static/9eb2d6938d2f35ead5393e34e6c74df5/3cbba/structured-list-style-color-selectable-flag-enabled.png)
![Selectable structured list color with the feature flag disabled](/static/ef7adb84a9c15dce681a9605bf4075d8/3cbba/structured-list-style-color-selectable-flag-disabled.png)
State | Element | Property | Color token |
---|---|---|---|
Enabled (selected) | Row | background-color |
|
Row: text | text color |
| |
Hover | Row | background-color |
|
Row: text | text color |
| |
Hover (selected) | Row | background-color |
|
Row: text | text color |
| |
Focus | Row | border |
|
Focus (selected) | Row | background-color |
|
Row: text | text color |
| |
Border | border |
| |
Disabled | |||
Row: text | text color |
| |
Icon | svg |
| |
Disabled (selected) | Row | background-color |
|
Row: text | text color |
| |
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Selectable structured list interactive states with the feature flag enabled](/static/884e5ae7d534ac3304ddcc9c5756f097/3cbba/structured-list-style-interactive-color-selectable-flag-enabled.png)
![Selectable structured list interactive states with the feature flag disabled](/static/c5eb686e0686ae65d2d2dfb5e0bf8aa8/3cbba/structured-list-style-interactive-color-selectable-flag-disabled.png)
With background color
Element | Property | Color token |
---|---|---|
Header | background-color |
|
Row | background-color |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Selectable structured list color with the feature flag enabled](/static/5dfa999e5c5a5849913a78a5b87a384d/3cbba/structured-list-style-color-selectable-background-flag-enabled.png)
![Selectable structured list color with the feature flag disabled](/static/850ded826f10392a310485d725498819/3cbba/structured-list-style-color-selectable-background-flag-disabled.png)
![Selectable structured list interactive states with the feature flag enabled](/static/bc8e8a53d15eac8ad91452b26e0178cc/3cbba/structured-list-style-interactive-color-selectable-background-flag-enabled.png)
![Selectable structured list interactive states with the feature flag disabled](/static/ba754addc695965023c2d1b4e99e0d6a/3cbba/structured-list-style-interactive-color-selectable-background-flag-disabled.png)
Typography
Structured list header and row text should use sentence-case capitalization. All typography is left aligned.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Header text | 14 / 0.875 | SemiBold / 600 |
|
Row text | 14 / 0.875 | Regular / 400 |
|
Structure
Default structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-width | 500 / 31.25 | – |
Header: text | padding-top | 16 / 1 |
|
padding-bottom | 8 / 0.5 |
| |
padding-right | 16 / 1 |
| |
padding-left (hang) | 16 / 1 |
| |
padding-left (flush) | 0px | – | |
Row: text | padding-top | 16 / 1 |
|
padding-bottom | 24 / 1.5 |
| |
padding-right | 16 / 1 |
| |
padding-left (hang) | 16 / 1 |
| |
padding-left (flush) | 0px | – |
![Spacing and measurements for default structured list with hang and flush alignment | px / rem.](/static/bc4720d837a6bcd3a2f468eb8c1fd8b7/3cbba/structured-list-style-structure.png)
Spacing and measurements for default structured list with hang and flush alignment | px / rem.
Selectable structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Container | min-width | 500 / 31.25 | – |
Header: text | padding-top | 16 / 1 |
|
padding-bottom | 8 / 0.5 |
| |
padding-right | 16 / 1 |
| |
padding-left, padding-right | 16 / 1 |
| |
Row: text | padding-top | 16 / 1 |
|
padding-bottom | 24 / 1.5 |
| |
padding-left, padding-right | 16 / 1 |
| |
Icon | height, width | 16px | – |
padding-left, padding-right | 16 / 1 |
|
![Structure and spacing measurements for selectable structured list with a feature flag | px / rem.](/static/7f1c852d80c1cbf87d2f30e4a3dc5192/3cbba/structured-list-style-structure-selectable-flag-enabled.png)
Structure and spacing measurements for selectable structured list with a feature flag | px / rem.
Size
There are two structured list height sizes: default and condensed.
Element | Size | Height (px/rem) |
---|---|---|
Row | Default | 60 / 3.75 |
Condensed | 36 / 2.25 |
![Structured list sizes | px / rem](/static/ce65db49610345780877202fdb6e12ea/3cbba/structured-list-style-size.png)
Structured list sizes | px / rem
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.