Notification
Color
Low contrast
![Low contrast notifications Low contrast notifications](/static/4c9c0697723f50385813194163686080/3cbba/notification-style-1-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/65bb8794dd0755ba2e6dd0d26083ba55/3cbba/notification-style-2-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
Notification text should be set in sentence case with only the first word 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/54b4480ec85472c5c174125e074b441e/3cbba/notification-style-3-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/14a4be6baafe14664276f0ea146f6a82/3cbba/notification-style-3-inline.png)
Structure and spacing measurements for a inline notification | px / rem