New to Kendo UI for Angular? Start a free 30-day trial
Customizing Chat
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-chat-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Chat. | |||
$kendo-chat-padding-y | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the Chat. | |||
$kendo-chat-width | Number | 500px | 500px |
Description
The width of the Chat. | |||
$kendo-chat-height | Number | 600px | 600px |
Description
The height of the Chat. | |||
$kendo-chat-border-width | Number | 1px | 1px |
Description
The border width of the Chat. | |||
$kendo-chat-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Chat. | |||
$kendo-chat-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Chat. | |||
$kendo-chat-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Chat. | |||
$kendo-chat-item-spacing-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal spacing between the items of the Chat. | |||
$kendo-chat-item-spacing-y | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The vertical spacing between the items of the Chat. | |||
$kendo-chat-message-list-padding-x | String | $kendo-chat-padding-x | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Chat message list. | |||
$kendo-chat-message-list-padding-y | String | $kendo-chat-padding-y | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the Chat message list. | |||
$kendo-chat-message-list-spacing | String | $kendo-chat-item-spacing-y | var(--kendo-spacing-4, 1rem) |
Description
The spacing of the Chat message list. | |||
$kendo-chat-timestamp-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Chat timestamp. | |||
$kendo-chat-timestamp-line-height | String | var( --kendo-line-height-lg, normal ) | var(--kendo-line-height-lg, normal) |
Description
The line height of the Chat timestamp. | |||
$kendo-chat-timestamp-transform | String | uppercase | uppercase |
Description
The text transform of the Chat timestamp. | |||
$kendo-chat-timestamp-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #757575) |
Description
The text color of the Chat timestamp. | |||
$kendo-chat-timestamp-bg | Null | null | null |
Description
The background color of the Chat timestamp. | |||
$kendo-chat-message-meta-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Chat message meta text. | |||
$kendo-chat-message-meta-line-height | String | var( --kendo-line-height-lg, normal ) | var(--kendo-line-height-lg, normal) |
Description
The line height of the Chat message meta text. | |||
$kendo-chat-author-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Chat author text. | |||
$kendo-chat-author-line-height | String | var( --kendo-line-height-lg, normal ) | var(--kendo-line-height-lg, normal) |
Description
The line height of the Chat author text. | |||
$kendo-chat-bubble-padding-x | String | k-spacing(3) | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Chat bubble message. | |||
$kendo-chat-bubble-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Chat bubble message. | |||
$kendo-chat-bubble-spacing | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The spacing of the Chat bubble message. | |||
$kendo-chat-bubble-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the Chat bubble message. | |||
$kendo-chat-bubble-border-radius | Number | 12px | 12px |
Description
The border radius of the Chat bubble message. | |||
$kendo-chat-bubble-border-radius-sm | Number | 2px | 2px |
Description
The border radius of the Chat small bubble message | |||
$kendo-chat-avatar-size | Number | 32px | 32px |
Description
The size of the Chat Avatar. | |||
$kendo-chat-avatar-spacing | String | $kendo-chat-item-spacing-x | var(--kendo-spacing-2, 0.5rem) |
Description
The spacing of the Chat Avatar. | |||
$kendo-chat-toolbar-padding-x | String | $kendo-toolbar-md-padding-x | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Chat Toolbar. | |||
$kendo-chat-toolbar-padding-y | String | $kendo-toolbar-md-padding-y | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Chat Toolbar. | |||
$kendo-chat-toolbar-spacing | String | $kendo-toolbar-md-spacing | var(--kendo-spacing-2, 0.5rem) |
Description
The spacing of the Chat Toolbar. | |||
$kendo-chat-toolbar-bg | String | if($kendo-enable-color-system, k-color( surface ), k-try-shade( $kendo-button-bg, .5 )) | var(--kendo-color-surface, #f5f5f5) |
Description
The background color of the Chat Toolbar. | |||
$kendo-chat-toolbar-text | String | $kendo-toolbar-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the Chat Toolbar. | |||
$kendo-chat-toolbar-border | String | inherit | inherit |
Description
The border color of the Chat Toolbar. | |||
$kendo-chat-quick-reply-padding-x | String | k-spacing(3) | var(--kendo-spacing-3, 0.75rem) |
Description
The horizontal padding of the Chat quick reply. | |||
$kendo-chat-quick-reply-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Chat quick reply. | |||
$kendo-chat-quick-reply-spacing | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The spacing of the Chat quick reply. | |||
$kendo-chat-quick-reply-line-height | Number | $kendo-chat-bubble-line-height | 1.4285714286 |
Description
The line height of the Chat quick reply. | |||
$kendo-chat-bg | String | $kendo-app-bg | var(--kendo-color-app-surface, #ffffff) |
Description
The background color of the Chat. | |||
$kendo-chat-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the Chat. | |||
$kendo-chat-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.12)) |
Description
The border color of the Chat. | |||
$kendo-chat-bubble-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Chat bubble. | |||
$kendo-chat-bubble-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the Chat bubble. | |||
$kendo-chat-bubble-border | String | $kendo-chat-bubble-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The border color of the Chat bubble. | |||
$kendo-chat-bubble-shadow | String | $box-shadow-depth-1 | var(--kendo-elevation-1, 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 2px 1px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)) |
Description
The box shadow of the Chat bubble. | |||
$kendo-chat-bubble-hover-shadow | String | $box-shadow-depth-2 | var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the hovered Chat bubble. | |||
$kendo-chat-bubble-selected-shadow | String | $box-shadow-depth-3 | var(--kendo-elevation-3, 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 3px 0px rgba(0, 0, 0, 0.12), 0px 3px 4px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the selected Chat bubble. | |||
$kendo-chat-alt-bubble-bg | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The background color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-text | String | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-chat-alt-bubble-bg )) | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-border | String | $kendo-chat-alt-bubble-bg | var(--kendo-color-primary, #3f51b5) |
Description
The border color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-shadow | String | $box-shadow-depth-1 | var(--kendo-elevation-1, 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 2px 1px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-hover-shadow | String | $box-shadow-depth-2 | var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the hovered Chat alt bubble. | |||
$kendo-chat-alt-bubble-selected-shadow | String | $box-shadow-depth-3 | var(--kendo-elevation-3, 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 3px 0px rgba(0, 0, 0, 0.12), 0px 3px 4px 0px rgba(0, 0, 0, 0.14)) |
Description
The shadow of the selected Chat alt bubble. | |||
$kendo-chat-quick-reply-bg | Color | transparent | transparent |
Description
The background color of the Chat quick reply. | |||
$kendo-chat-quick-reply-text | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The text color of the Chat quick reply. | |||
$kendo-chat-quick-reply-border | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The border color of the Chat quick reply. | |||
$kendo-chat-quick-reply-hover-bg | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The background color of the hovered Chat quick reply. | |||
$kendo-chat-quick-reply-hover-text | String | $kendo-color-primary-contrast | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the hovered Chat quick reply. | |||
$kendo-chat-quick-reply-hover-border | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The border color of the hovered Chat quick reply. | |||
$kendo-chat-quick-reply-shadow-blur | Null | null | null |
Description
The shadow blur of the focused Chat quick reply. | |||
$kendo-chat-quick-reply-shadow-spread | Null | null | null |
Description
The shadow spread of the focused Chat quick reply. | |||
$kendo-chat-quick-reply-shadow-opacity | Number | 0 | 0 |
Description
The shadow opacity of the focused Chat quick reply. |