Notification
Color
Low contrast
![Low contrast notifications](/static/dab75b82a51ac688067b2df11d4123dd/3cbba/notification-style-low-contrast.png)
Low contrast notifications in the White theme
Element | Property | Color token |
---|---|---|
Title | text color |
|
Subtitle | text color |
|
Close button | fill |
|
Error | background-color |
|
border-left |
| |
svg |
| |
Success | background-color. |
|
border-left |
| |
svg |
| |
Warning | background-color |
|
border-left |
| |
svg |
| |
Information | background-color |
|
border-left |
| |
svg |
|
High contrast
![High contrast notifications in the White theme](/static/54acc1523c862332c744e57bfd5364be/3cbba/notification-style-high-contrast.png)
High contrast notifications in the White theme
Element | Property | Color token |
---|---|---|
Title | text color |
|
Subtitle | text color |
|
Close button | fill |
|
Background | background-color |
|
Error | border-left |
|
svg |
| |
Success | border-left |
|
svg |
| |
Warning | border-left |
|
svg |
| |
Information | border-left |
|
svg |
|
Typography
Write notifications in sentence case, which means only the first word is capitalized. Notification titles should be concise and to the point.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Title | 14 / 0.875 | SemiBold / 600 |
|
Subtitle | 14 / 0.875 | Regular / 400 |
|
Structure
Toast
Element | Property | px / rem | Spacing token |
---|---|---|---|
Notification | width | 288 / 18 | – |
border-left | 3px | – | |
padding-right | 16 / 1 |
| |
Title | margin-top | 16 / 1 |
|
Subtitle | margin-bottom | 24 / 1.5 |
|
Details | padding-right | 16 / 1 |
|
Caption | margin-bottom | 16 / 1 |
|
Close button | height, width | 48 / 3 | – |
Close icon | margin-top, margin-right | 16 / 1 |
|
![Structure and spacing for a toast notification](/static/b61a831054df143fbcee32518b2b9b90/3cbba/notification-style-structure-toast.png)
Structure and spacing measurements for a toast notification | px / rem
Inline
The width of an inline notification will vary based on content or layout.
Element | Property | px / rem | Spacing token |
---|---|---|---|
Inline notification | min-height | 48 / 3 |
|
border-left | 3px | – | |
Details | margin-left, margin-right | 16 / 1 |
|
Text-wrapper | padding-top, padding-bottom | 12 / 0.75 |
|
Icon | margin-right | 16 / 1 |
|
Close button | height, width | 48 / 3 | – |
Close icon | icon size | 16 x 16 | – |
![Structure and spacing for an inline notification](/static/4b89e8a7f1476034774d21a4699f7c1b/3cbba/notification-style-structure-inline.png)
Structure and spacing measurements for an inline notification | px / rem
Callout
The width of a callout will vary based on content or layout.
Element | Property | px / rem | Spacing token |
---|---|---|---|
Callout | min-height | 48 / 3 |
|
border-left | 3px | – | |
Details | margin-left, margin-right | 16 / 1 |
|
Text-wrapper | padding-top, padding-bottom | 12 / 0.75 |
|
Icon | margin-right | 16 / 1 |
|
![Structure and spacing for a callout | px / rem](/static/fb098a57ccf85b0ba1f61d3d287aef9d/3cbba/notification-style-callout.png)
Structure and spacing for a callout | px / rem