New to Kendo UI for Vue? 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 | Number | 16px | 16px |
Description
The horizontal padding of the Chat. | |||
$kendo-chat-padding-y | Number | 16px | 16px |
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 | List | $kendo-font-family | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" |
Description
The font family of the Chat. | |||
$kendo-chat-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the Chat. | |||
$kendo-chat-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the Chat. | |||
$kendo-chat-item-spacing-x | Number | 8px | 8px |
Description
The horizontal spacing between the items of the Chat. | |||
$kendo-chat-item-spacing-y | Number | 16px | 16px |
Description
The vertical spacing between the items of the Chat. | |||
$kendo-chat-message-list-padding-x | Number | $kendo-chat-padding-x | 16px |
Description
The horizontal padding of the Chat message list. | |||
$kendo-chat-message-list-padding-y | Number | $kendo-chat-padding-y | 16px |
Description
The vertical padding of the Chat message list. | |||
$kendo-chat-message-list-spacing | Number | $kendo-chat-item-spacing-y | 16px |
Description
The spacing of the Chat message list. | |||
$kendo-chat-timestamp-font-size | String | smaller | smaller |
Description
The font size of the Chat timestamp. | |||
$kendo-chat-timestamp-line-height | Null | null | null |
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 | Color | $kendo-subtle-text | #6c757d |
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-bubble-padding-x | Number | 16px | 16px |
Description
The horizontal padding of the Chat bubble message. | |||
$kendo-chat-bubble-padding-y | Number | 8px | 8px |
Description
The vertical padding of the Chat bubble message. | |||
$kendo-chat-bubble-spacing | Number | 2px | 2px |
Description
The spacing of the Chat bubble message. | |||
$kendo-chat-bubble-line-height | Number | 1.25 | 1.25 |
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 | Number | $kendo-chat-item-spacing-x | 8px |
Description
The spacing of the Chat Avatar. | |||
$kendo-chat-toolbar-padding-x | Number | $kendo-toolbar-md-padding-x | 0.5rem |
Description
The horizontal padding of the Chat Toolbar. | |||
$kendo-chat-toolbar-padding-y | Number | $kendo-toolbar-md-padding-y | 0.5rem |
Description
The vertical padding of the Chat Toolbar. | |||
$kendo-chat-toolbar-spacing | Number | $kendo-toolbar-md-spacing | 0.5rem |
Description
The spacing of the Chat Toolbar. | |||
$kendo-chat-toolbar-bg | Color | $kendo-toolbar-bg | #f8f9fa |
Description
The background color of the Chat Toolbar. | |||
$kendo-chat-toolbar-text | Color | $kendo-toolbar-text | #212529 |
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 | Number | 12px | 12px |
Description
The horizontal padding of the Chat quick reply. | |||
$kendo-chat-quick-reply-padding-y | Number | 8px | 8px |
Description
The vertical padding of the Chat quick reply. | |||
$kendo-chat-quick-reply-spacing | Number | 8px | 8px |
Description
The spacing of the Chat quick reply. | |||
$kendo-chat-quick-reply-line-height | Number | $kendo-chat-bubble-line-height | 1.25 |
Description
The line height of the Chat quick reply. | |||
$kendo-chat-bg | Color | $kendo-app-bg | #fafafa |
Description
The background color of the Chat. | |||
$kendo-chat-text | Color | $kendo-app-text | #212529 |
Description
The text color of the Chat. | |||
$kendo-chat-border | Color | $kendo-app-border | #dee2e6 |
Description
The border color of the Chat. | |||
$kendo-chat-bubble-bg | Color | $kendo-button-bg | #e4e7eb |
Description
The background color of the Chat bubble. | |||
$kendo-chat-bubble-text | Color | $kendo-button-text | #212529 |
Description
The text color of the Chat bubble. | |||
$kendo-chat-bubble-border | Color | $kendo-chat-bubble-bg | #e4e7eb |
Description
The border color of the Chat bubble. | |||
$kendo-chat-bubble-shadow | String | none | none |
Description
The box shadow of the Chat bubble. | |||
$kendo-chat-bubble-hover-shadow | String | none | none |
Description
The shadow of the hovered Chat bubble. | |||
$kendo-chat-bubble-selected-shadow | String | none | none |
Description
The shadow of the selected Chat bubble. | |||
$kendo-chat-alt-bubble-bg | Color | $kendo-color-primary | #0d6efd |
Description
The background color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-text | Color | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-chat-alt-bubble-bg )) | white |
Description
The text color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-border | Color | $kendo-chat-alt-bubble-bg | #0d6efd |
Description
The border color of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-shadow | String | none | none |
Description
The shadow of the Chat alt bubble. | |||
$kendo-chat-alt-bubble-hover-shadow | String | none | none |
Description
The shadow of the hovered Chat alt bubble. | |||
$kendo-chat-alt-bubble-selected-shadow | String | none | none |
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 | Color | $kendo-color-primary | #0d6efd |
Description
The text color of the Chat quick reply. | |||
$kendo-chat-quick-reply-border | Color | $kendo-color-primary | #0d6efd |
Description
The border color of the Chat quick reply. | |||
$kendo-chat-quick-reply-hover-bg | Color | $kendo-color-primary | #0d6efd |
Description
The background color of the hovered Chat quick reply. | |||
$kendo-chat-quick-reply-hover-text | Color | $kendo-color-primary-contrast | white |
Description
The text color of the hovered Chat quick reply. | |||
$kendo-chat-quick-reply-hover-border | Color | $kendo-color-primary | #0d6efd |
Description
The border color of the hovered Chat quick reply. |