New to Kendo UI for Angular? Start a free 30-day trial

Customizing Drawer

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-drawer-bgStringvar( --kendo-component-bg, initial )var(--kendo-component-bg, initial)
Description
The background color of the Drawer.
$kendo-drawer-textStringvar( --kendo-component-text, initial )var(--kendo-component-text, initial)
Description
The text color of the Drawer.
$kendo-drawer-borderStringvar( --kendo-component-border, initial )var(--kendo-component-border, initial)
Description
The border color of the Drawer.
$kendo-drawer-border-widthNumber1px1px
Description
The border width of the Drawer.
$kendo-drawer-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Drawer.
$kendo-drawer-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the Drawer.
$kendo-drawer-line-heightStringvar( --kendo-line-height, inherit )var(--kendo-line-height, inherit)
Description
The line height of the Drawer.
$kendo-drawer-content-padding-xNullnullnull
Description
The horizontal padding of the Drawer content.
$kendo-drawer-content-padding-yNullnullnull
Description
The vertical padding of the Drawer content.
$kendo-drawer-scrollbar-widthNumber7px7px
Description
The width of the Drawer scrollbar.
$kendo-drawer-scrollbar-colorStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 46%, transparent), k-get-theme-color-var( neutral-90 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 46%, transparent)
Description
The color of the Drawer scrollbar.
$kendo-drawer-scrollbar-bgStringif($kendo-enable-color-system, k-color( base-subtle ), k-get-theme-color-var( neutral-40 ))var(--kendo-color-base-subtle, #edebe9)
Description
The background of the Drawer scrollbar.
$kendo-drawer-scrollbar-radiusNumber20px20px
Description
The border radius of the Drawer scrollbar.
$kendo-drawer-scrollbar-hover-colorStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 60%, transparent), k-get-theme-color-var( neutral-110 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 60%, transparent)
Description
The hover color of the Drawer scrollbar.
$kendo-drawer-item-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the Drawer item.
$kendo-drawer-item-padding-yStringvar( --kendo-padding-x, #{$kendo-padding-md-x} )var(--kendo-padding-x, var(--kendo-spacing-2, 0.5rem))
Description
The vertical padding of the Drawer item.
$kendo-drawer-item-font-sizeString$kendo-drawer-font-sizevar(--kendo-font-size, inherit)
Description
The font size of the Drawer item.
$kendo-drawer-item-line-heightStringvar( --kendo-line-height-lg, normal )var(--kendo-line-height-lg, normal)
Description
The line height of the Drawer item.
$kendo-drawer-item-level-padding-xString$kendo-drawer-item-padding-xvar(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the Drawer item in each level.
$kendo-drawer-item-level-countNumber55
Description
The count of the Drawer item levels.
$kendo-drawer-icon-padding-xStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The horizontal padding of the Drawer icon.
$kendo-drawer-icon-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the Drawer icon.
$kendo-drawer-mini-initial-widthCalculationcalc( 2 * #{$kendo-drawer-item-padding-x} + var( --kendo-icon-size, 1rem ) )calc(2 * var(--kendo-spacing-4, 1rem) + var(--kendo-icon-size, 1rem))
Description
The initial width of the mini Drawer.
$kendo-drawer-item-ripple-border-widthStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The border width of the Drawer item ripple.
$kendo-drawer-item-ripple-borderStringif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))var(--kendo-color-primary, #0078d4)
Description
The border color of the drawer item ripple
$kendo-drawer-item-bgString$kendo-drawer-bgvar(--kendo-component-bg, initial)
Description
The background color of the Drawer item.
$kendo-drawer-item-textString$kendo-drawer-textvar(--kendo-component-text, initial)
Description
The text color of the Drawer item.
$kendo-drawer-item-icon-textStringif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))var(--kendo-color-primary, #0078d4)
Description
The text color of the Drawer item icon.
$kendo-drawer-item-hover-bgString$kendo-drawer-item-bgvar(--kendo-component-bg, initial)
Description
The background color of the hovered Drawer item.
$kendo-drawer-item-hover-textStringif($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-110 ))var(--kendo-color-primary-hover, #106ebe)
Description
The text color of the hovered Drawer item.
$kendo-drawer-item-hover-icon-textStringif($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-110 ))var(--kendo-color-primary-hover, #106ebe)
Description
The text color of the hovered Drawer item icon.
$kendo-drawer-item-focus-bgString$kendo-drawer-item-bgvar(--kendo-component-bg, initial)
Description
The background color of the focused Drawer item.
$kendo-drawer-item-focus-textString$kendo-drawer-item-textvar(--kendo-component-text, initial)
Description
The text color of the focused Drawer item.
$kendo-drawer-item-focus-shadowListinset 0 0 0 1px if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130))inset 0 0 0 1px var(--kendo-color-base-emphasis, #605e5c)
Description
The box shadow of the focused Drawer item.
$kendo-drawer-item-focus-icon-textString$kendo-drawer-item-icon-textvar(--kendo-color-primary, #0078d4)
Description
The text color of the focused Drawer item icon.
$kendo-drawer-item-selected-font-weightStringvar( --kendo-font-weight-bold, normal )var(--kendo-font-weight-bold, normal)
Description
The font weight of the selected Drawer item.
$kendo-drawer-item-selected-bgStringvar( --kendo-selected-bg, initial )var(--kendo-selected-bg, initial)
Description
The background color of the selected Drawer item.
$kendo-drawer-item-selected-textStringif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)var(--kendo-color-on-app-surface, #323130)
Description
The text color of the selected Drawer item.
$kendo-drawer-item-selected-icon-textStringif($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-120 ))var(--kendo-color-primary-active, #005a9e)
Description
The text color of the selected Drawer item icon.
$kendo-drawer-item-selected-hover-bgStringvar( --kendo-selected-hover-bg, inherit )var(--kendo-selected-hover-bg, inherit)
Description
The background color of the selected and hovered Drawer item.
$kendo-drawer-item-selected-hover-textStringvar( --kendo-selected-hover-text, inherit )var(--kendo-selected-hover-text, inherit)
Description
The text color of the selected and hovered Drawer item.

In this article

Not finding the help you need?