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, rgba(33, 37, 41, 0.13))
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, #198754)
  • 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, #495057)","border":"var(--kendo-color-inverse-emphasis, rgba(33, 37, 41, 0.4))"
  • light: "color":"var(--kendo-color-light-on-subtle, #495057)","background-color":"var(--kendo-color-light-subtle, #ffffff)","border":"var(--kendo-color-light-emphasis, rgba(33, 37, 41, 0.1))"
  • dark: "color":"var(--kendo-color-dark-on-subtle, #ffffff)","background-color":"var(--kendo-color-dark-subtle, #495057)","border":"var(--kendo-color-dark-emphasis, rgba(33, 37, 41, 0.4))"
  • error: "color":"var(--kendo-color-error-on-subtle, #58151c)","background-color":"var(--kendo-color-error-subtle, #f8d7da)","border":"var(--kendo-color-error-emphasis, rgba(220, 53, 69, 0.4))"
  • warning: "color":"var(--kendo-color-warning-on-subtle, #664d03)","background-color":"var(--kendo-color-warning-subtle, #fff3cd)","border":"var(--kendo-color-warning-emphasis, rgba(255, 193, 7, 0.4))"
  • success: "color":"var(--kendo-color-success-on-subtle, #0A3622)","background-color":"var(--kendo-color-success-subtle, #d1e7dd)","border":"var(--kendo-color-success-emphasis, rgba(25, 135, 84, 0.4))"
  • info: "color":"var(--kendo-color-info-on-subtle, #055160)","background-color":"var(--kendo-color-info-subtle, #cff4fc)","border":"var(--kendo-color-info-emphasis, rgba(13, 202, 240, 0.4))"
  • tertiary: "color":"var(--kendo-color-tertiary-on-subtle, #432874)","background-color":"var(--kendo-color-tertiary-subtle, #e2d9f3)","border":"var(--kendo-color-tertiary-emphasis, rgba(111, 66, 193, 0.4))"
  • secondary: "color":"var(--kendo-color-secondary-on-subtle, #2B2F32)","background-color":"var(--kendo-color-secondary-subtle, #dee2e6)","border":"var(--kendo-color-secondary-emphasis, rgba(108, 117, 125, 0.4))"
  • primary: "color":"var(--kendo-color-primary-on-subtle, #052c65)","background-color":"var(--kendo-color-primary-subtle, #cfe2ff)","border":"var(--kendo-color-primary-emphasis, rgba(13, 110, 253, 0.4))"
Description
The generated theme colors map for the Notification.

In this article

Not finding the help you need?