Skip to main content

Color

ClassPropertySCSSHEX
.bx--toast-notificationbackground-color$ui-01#ffffff
.bx--toast-notification__title
.bx--inline-notification__title
color$text-01#152935
.bx--toast-notification__subtitle
.bx--inline-notification__subtitle
color$text-02#5a6872
.bx--toast-notification__icon
.bx--inline-notification__close-icon
fill$ui-05#5a6872
.bx--toast-notification--error
.bx--inline-notification--error
border-left$support-01#e0182d
.bx--toast-notification--info
.bx--inline-notification--info
border-left$support-04#5aaafa
.bx--toast-notification--success
.bx--inline-notification--success
border-left$support-02#5aa700
.bx--toast-notification--warning
.bx--inline-notification--warning
border-left$support-03#efc100

Typography

Notification titles should not exceed more than three words. Notification text should be set in sentence case with only the first word capitalized.

ClassFont-size (px/rem)Font-weightType style
.bx--toast-notification__title
.bx--inline-notification__title
14 / 0.875Semi-Bold / 600.bx--type-zeta
.bx--toast-notification__subtitle
.bx--inline-notification__subtitle
14 / 0.875Normal / 400-

Layer

ClassLayer, ElevationBox-shadow
.bx--toast-notificationOverlay, 80 4px 8px 0 rgba(0, 0, 0, 0.1)

Structure

Toast Notification

PropertyPropertypx / remSpacing token
.bx--inline-notificationmin-height40 / 2.5-
.bx--inline-notificationmax-height56 / 3.5-
.bx--toast-notificationwidth270 / 16.875-
.bx--toast-notificationmargin-right16 / 1$spacing-md
.bx--toast-notificationmargin-bottom8 / 0.5$spacing-xs
.bx--toast-notificationpadding-top, padding-right, padding-left16 / 1$spacing-md
.bx--toast-notificationpadding-bottom8 / 0.5$spacing-xs
.bx--toast-notification__titlepadding-bottom2 / 0.125$spacing-2xs
.bx--toast-notification__subtitlemargin-bottom16 / 1$spacing-md

Structure and spacing for a toast notification Structure and spacing measurements for a Toast Notification | px / rem

Inline Notification

The width of an Inline Notification will vary based on content.

PropertyPropertypx / remSpacing token
.bx--inline-notificationmin-height40 / 2.5-
.bx--inline-notification__close-icon vvheight, width10 / 0.625-
.bx--inline-notification--info
.bx--inline-notification--error
.bx--inline-notification--success
.bx--inline-notification--warning
border1px-
.bx--inline-notification--info
.bx--inline-notification--error
.bx--inline-notification--success
.bx--inline-notification--warning
border-left6px-
.bx--inline-notification__text-wrappermargin-left, margin-right16 / 1$spacing-md
.bx--inline-notificationmargin-top, margin-bottom16 / 1$spacing-md
.bx--inline-notificationpadding-top, padding-bottom12 / 0.75$spacing-sm
.bx--inline-notificationpadding-left, padding-left16 / 1$spacing-md

Structure and spacing for an inline notification Structure and spacing measurements for a Inline Notification | px / rem