Customizing Notification

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-notification-group-gapStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The row-gap between the elements in the Notification group.
$kendo-notification-padding-xNumber$alert-padding-x1rem
Description
The horizontal padding of the Notification.
$kendo-notification-padding-yNumber$alert-padding-y1rem
Description
The vertical padding of the Notification.
$kendo-notification-border-widthNumber$alert-border-width1px
Description
The width of the border around the Notification.
$kendo-notification-border-radiusNumber$alert-border-radius0.375rem
Description
The border radius of the Notification.
$kendo-notification-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Notification.
$kendo-notification-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the Notification.
$kendo-notification-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the Notification.
$kendo-notification-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the Notification.
$kendo-notification-textString$kendo-component-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the Notification.
$kendo-notification-borderString$kendo-component-bordervar(--kendo-color-border, #dee2e6)
Description
The border color of the Notification.
$kendo-notification-shadowString$kendo-popup-shadowvar(--kendo-elevation-4, 0px 6px 13px rgba(0, 0, 0, 0.125))
Description
The box shadow of the Notification.
$kendo-notification-icon-spacingString$kendo-icon-spacingvar(--kendo-spacing-2, 0.5rem)
Description
The horizontal spacing of the Notification icon.
$kendo-notification-theme-colorsMap$kendo-theme-colors("primary": var(--kendo-color-primary, #0d6efd), "secondary": var(--kendo-color-secondary, #6c757d), "tertiary": var(--kendo-color-tertiary, #6f42c1), "info": var(--kendo-color-info, #0dcaf0), "success": var(--kendo-color-success, #146c43), "warning": var(--kendo-color-warning, #ffc107), "error": var(--kendo-color-error, #dc3545), "dark": var(--kendo-color-dark, #212529), "light": var(--kendo-color-light, #f8f9fa), "inverse": var(--kendo-color-dark, #212529))
Description
The theme colors map for the Notification.
$kendo-notification-themeMapnotification-theme( $kendo-notification-theme-colors )("inverse": (color: var(--kendo-color-inverse-on-subtle, #ffffff), background-color: var(--kendo-color-inverse-subtle, #6c757d), border: var(--kendo-color-inverse-emphasis, #343a40)), "light": (color: var(--kendo-color-light-on-subtle, #343a40), background-color: var(--kendo-color-light-subtle, #f8f9fa), border: var(--kendo-color-light-emphasis, #bdc4cb)), "dark": (color: var(--kendo-color-dark-on-subtle, #ffffff), background-color: var(--kendo-color-dark-subtle, #6c757d), border: var(--kendo-color-dark-emphasis, #343a40)), "error": (color: var(--kendo-color-error-on-subtle, #421015), background-color: var(--kendo-color-error-subtle, #f8d7da), border: var(--kendo-color-error-emphasis, #e35d6a)), "warning": (color: var(--kendo-color-warning-on-subtle, #523e02), background-color: var(--kendo-color-warning-subtle, #ffecb5), border: var(--kendo-color-warning-emphasis, #ffcd39)), "success": (color: var(--kendo-color-success-on-subtle, #08291a), background-color: var(--kendo-color-success-subtle, #d1e7dd), border: var(--kendo-color-success-emphasis, #479f76)), "info": (color: var(--kendo-color-info-on-subtle, #04414d), background-color: var(--kendo-color-info-subtle, #cff4fc), border: var(--kendo-color-info-emphasis, #3dd5f3)), "tertiary": (color: var(--kendo-color-tertiary-on-subtle, #21143b), background-color: var(--kendo-color-tertiary-subtle, #e2d9f3), border: var(--kendo-color-tertiary-emphasis, #a98eda)), "secondary": (color: var(--kendo-color-secondary-on-subtle, #212529), background-color: var(--kendo-color-secondary-subtle, #dee2e6), border: var(--kendo-color-secondary-emphasis, #8d959d)), "primary": (color: var(--kendo-color-primary-on-subtle, #052c65), background-color: var(--kendo-color-primary-subtle, #cfe2ff), border: var(--kendo-color-primary-emphasis, #6ea8fe)))
Description
The generated theme colors map for the Notification.

In this article

Not finding the help you need?