Customizing Notification
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-notification-group-gap | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The row-gap between the elements in the Notification group. | |||
$kendo-notification-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Notification. | |||
$kendo-notification-padding-y | String | k-spacing(3.5) | var(--kendo-spacing-3\.5, 0.875rem) |
Description
The vertical padding of the Notification. | |||
$kendo-notification-border-width | Number | 0px | 0px |
Description
The width of the border around the Notification. | |||
$kendo-notification-border-radius | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The border radius of the Notification. | |||
$kendo-notification-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Notification. | |||
$kendo-notification-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Notification. | |||
$kendo-notification-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the Notification. | |||
$kendo-notification-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Notification. | |||
$kendo-notification-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the Notification. | |||
$kendo-notification-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.12)) |
Description
The border color of the Notification. | |||
$kendo-notification-shadow | String | $kendo-popup-shadow | var(--kendo-elevation-4, 0px 2px 4px 0px rgba(0, 0, 0, 0.2), 0px 1px 10px 0px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14)) |
Description
The box shadow of the Notification. | |||
$kendo-notification-icon-spacing | String | $kendo-icon-spacing | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal spacing of the Notification icon. | |||
$kendo-notification-theme-colors | Map | $kendo-theme-colors | ("primary": var(--kendo-color-primary, #3f51b5), "secondary": var(--kendo-color-secondary, #e51a5f), "tertiary": var(--kendo-color-tertiary, #00695c), "info": var(--kendo-color-info, #0058e9), "success": var(--kendo-color-success, #37b400), "warning": var(--kendo-color-warning, #ffc000), "error": var(--kendo-color-error, #f31700), "dark": var(--kendo-color-dark, #424242), "light": var(--kendo-color-light, #f5f5f5), "inverse": var(--kendo-color-dark, #424242)) |
Description
The theme colors map for the Notification. | |||
$kendo-notification-theme | Map | notification-theme( $kendo-notification-theme-colors ) | ("inverse": (color: var(--kendo-color-on-inverse, #ffffff), background-color: var(--kendo-color-dark, #424242), border: var(--kendo-color-dark, #424242)), "light": (color: var(--kendo-color-on-light, #000000), background-color: var(--kendo-color-light, #f5f5f5), border: var(--kendo-color-light, #f5f5f5)), "dark": (color: var(--kendo-color-on-dark, #ffffff), background-color: var(--kendo-color-dark, #424242), border: var(--kendo-color-dark, #424242)), "error": (color: var(--kendo-color-on-error, #ffffff), background-color: var(--kendo-color-error, #f31700), border: var(--kendo-color-error, #f31700)), "warning": (color: var(--kendo-color-on-warning, #000000), background-color: var(--kendo-color-warning, #ffc000), border: var(--kendo-color-warning, #ffc000)), "success": (color: var(--kendo-color-on-success, #ffffff), background-color: var(--kendo-color-success, #37b400), border: var(--kendo-color-success, #37b400)), "info": (color: var(--kendo-color-on-info, #ffffff), background-color: var(--kendo-color-info, #0058e9), border: var(--kendo-color-info, #0058e9)), "tertiary": (color: var(--kendo-color-on-tertiary, #ffffff), background-color: var(--kendo-color-tertiary, #00695c), border: var(--kendo-color-tertiary, #00695c)), "secondary": (color: var(--kendo-color-on-secondary, #ffffff), background-color: var(--kendo-color-secondary, #e51a5f), border: var(--kendo-color-secondary, #e51a5f)), "primary": (color: var(--kendo-color-on-primary, #ffffff), background-color: var(--kendo-color-primary, #3f51b5), border: var(--kendo-color-primary, #3f51b5))) |
Description
The generated theme colors map for the Notification. |