Notification
Color
Low contrast
![Low contrast notifications 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 | $text-primary |
Subtitle | text color | $text-primary |
Close button | fill | $icon-primary |
Error | background-color | $notification-error-background-color |
border-left | $support-error | |
svg | $support-error | |
Success | background-color. | $notification-success-background-color |
border-left | $support-success | |
svg | $support-success | |
Warning | background-color | $notification-warning-background-color |
border-left | $support-warning | |
svg | $support-warning | |
Information | background-color | $notification-info-background-color |
border-left | $support-info | |
svg | $support-info |
High contrast
![High contrast notifications in the White theme 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 | $text-inverse |
Subtitle | text color | $text-inverse |
Close button | fill | $icon-inverse |
Background | background-color | $background-inverse |
Error | border-left | $support-error-inverse |
svg | $support-error-inverse | |
Success | border-left | $support-success-inverse |
svg | $support-success-inverse | |
Warning | border-left | $support-warning-inverse |
svg | $support-warning-inverse | |
Information | border-left | $support-info-inverse |
svg | $support-info-inverse |
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 | $heading-compact-01 |
Subtitle | 14 / 0.875 | Regular / 400 | $body-compact-01 |
Structure
Toast notification
Element | Property | px / rem | Spacing token |
---|---|---|---|
Notification | width | 288 / 18 | – |
border-left | 3px | – | |
padding-right | 16 / 1 | $spacing-05 | |
Title | margin-top | 16 / 1 | $spacing-05 |
Subtitle | margin-bottom | 24 / 1.5 | $spacing-06 |
Details | padding-right | 16 / 1 | $spacing-05 |
Caption | margin-bottom | 16 / 1 | $spacing-05 |
Close button | height, width | 48 / 3 | – |
Close icon | margin-top, margin-right | 16 / 1 | $spacing-05 |
![Structure and spacing for a toast notification 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 notification
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 | $spacing-09 |
border-left | 3px | – | |
Details | margin-left, margin-right | 16 / 1 | $spacing-05 |
Text-wrapper | padding-top, padding-bottom | 12 / 0.75 | $spacing-04 |
Icon | margin-right | 16 / 1 | $spacing-05 |
Close button | height, width | 48 / 3 | – |
Close icon | icon size | 16 x 16 | – |
![Structure and spacing for an inline notification 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