New to Kendo UI for Angular? Start a free 30-day trial
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(3) | var(--kendo-spacing-3, 0.75rem) |
Description
The row-gap between the elements in the Notification group. | |||
$kendo-notification-padding-x | Number | $alert-padding-x | 1rem |
Description
The horizontal padding of the Notification. | |||
$kendo-notification-padding-y | Number | $alert-padding-y | 1rem |
Description
The vertical padding of the Notification. | |||
$kendo-notification-border-width | Number | $alert-border-width | 1px |
Description
The width of the border around the Notification. | |||
$kendo-notification-border-radius | Number | $alert-border-radius | 0.375rem |
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-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Notification. | |||
$kendo-notification-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
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, #212529) |
Description
The text color of the Notification. | |||
$kendo-notification-border | String | $kendo-component-border | var(--kendo-color-border, rgba(33, 37, 41, 0.13)) |
Description
The border color of the Notification. | |||
$kendo-notification-shadow | String | $kendo-popup-shadow | var(--kendo-elevation-4, 0px 6px 13px rgba(0, 0, 0, 0.125)) |
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, #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-theme | Map | notification-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. |