New to Kendo UI for AngularStart a free 30-day trial

Customizing Calendar

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-calendar-border-widthNumber1px1px
Description
The width of the border around the Calendar.
$kendo-calendar-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Calendar.
$kendo-calendar-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the Calendar.
$kendo-calendar-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the Calendar.
$kendo-calendar-cell-sizeNumber28px28px
Description
The size of the calendar cell.
$kendo-calendar-bgStringvar( --kendo-component-bg, initial)var(--kendo-component-bg, initial)
Description
The background color of the Calendar.
$kendo-calendar-textStringvar( --kendo-component-text, initial)var(--kendo-component-text, initial)
Description
The text color of the Calendar.
$kendo-calendar-borderStringvar( --kendo-component-border, initial)var(--kendo-component-border, initial)
Description
The border color of the Calendar.
$kendo-calendar-header-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the calendar header.
$kendo-calendar-header-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the calendar header.
$kendo-calendar-header-border-widthNumber1px1px
Description
Width of the bottom border of the calendar header.
$kendo-calendar-header-bgStringif($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 ))var(--kendo-color-surface, #faf9f8)
Description
The background color of the calendar header.
$kendo-calendar-header-textString$kendo-calendar-textvar(--kendo-component-text, initial)
Description
The text color of the calendar header.
$kendo-calendar-header-borderString$kendo-calendar-bordervar(--kendo-component-border, initial)
Description
The border color of the calendar header.
$kendo-calendar-nav-gapStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The spacing between the navigation buttons of the Calendar.
$kendo-calendar-footer-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the calendar footer.
$kendo-calendar-footer-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the calendar footer.
$kendo-calendar-cell-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the calendar cell.
$kendo-calendar-cell-padding-xStringk-spacing(1.5)var(--kendo-spacing-1\.5, 0.375rem)
Description
The horizontal padding of the calendar cell.
$kendo-calendar-cell-padding-yString$kendo-calendar-cell-padding-xvar(--kendo-spacing-1\.5, 0.375rem)
Description
The vertical padding of the calendar cell.
$kendo-calendar-cell-line-heightString$kendo-calendar-line-heightvar(--kendo-line-height, normal)
Description
The line height of the calendar cell.
$kendo-calendar-cell-border-radiusStringvar( --kendo-border-radius-md, 0)var(--kendo-border-radius-md, 0)
Description
The border radius of the calendar cell.
$kendo-calendar-header-cell-padding-xStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The horizontal padding of the calendar header cell.
$kendo-calendar-header-cell-padding-yStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
Th vertical padding of the calendar header cell.
$kendo-calendar-header-cell-widthNumber$kendo-calendar-cell-size28px
Description
The width of the calendar header cell.
$kendo-calendar-header-cell-heightNumber$kendo-calendar-cell-size28px
Description
The height of the calendar header cell.
$kendo-calendar-header-cell-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the calendar header cell.
$kendo-calendar-header-cell-line-heightNumber22
Description
The line height of the calendar header cell.
$kendo-calendar-header-cell-bgStringinheritinherit
Description
The background color of the calendar header cell.
$kendo-calendar-header-cell-textStringinheritinherit
Description
The text color of the calendar header cell.
$kendo-calendar-caption-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the calendar captions.
$kendo-calendar-caption-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the calendar captions.
$kendo-calendar-caption-heightNumber$kendo-calendar-cell-size28px
Description
The height of the calendar captions.
$kendo-calendar-caption-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the calendar captions.
$kendo-calendar-caption-line-heightStringnormalnormal
Description
The line height of the calendar captions.
$kendo-calendar-caption-font-weightStringboldbold
Description
Font weight of the calendar captions.
$kendo-calendar-caption-colorString$kendo-subtle-textvar(--kendo-color-subtle, #605e5c)
Description
The text color of the calendar captions.
$kendo-calendar-view-widthNumber($kendo-calendar-cell-size * 7)196px
Description
The width of the Calendar view.
$kendo-calendar-view-heightNumber($kendo-calendar-cell-size * 7)196px
Description
The height of the Calendar view.
$kendo-calendar-view-padding-block-endStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The bottom padding of Calendar views.
$kendo-calendar-view-gapStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The spacing between the views in the multiview Calendar.
$kendo-calendar-weekend-bgStringinheritinherit
Description
The background color of the calendar weekend cell.
$kendo-calendar-weekend-textStringinheritinherit
Description
The text color of the calendar weekend cell.
$kendo-calendar-today-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the calendar today cell.
$kendo-calendar-today-bgStringif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))var(--kendo-color-primary, #0078d4)
Description
The background color of the calendar today cell.
$kendo-calendar-today-hover-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the calendar today cell when hovered.
$kendo-calendar-today-hover-bgStringif($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-120 ))var(--kendo-color-primary-hover, #106ebe)
Description
The background color of the calendar today cell when hovered.
$kendo-calendar-today-border-radiusNumber9999px9999px
Description
The border radius of the calendar today cell.
$kendo-calendar-week-number-bgStringinheritinherit
Description
The background color of the calendar week number cell.
$kendo-calendar-week-number-textStringvar( --kendo-subtle-text, inherit )var(--kendo-subtle-text, inherit)
Description
The text color of the calendar week number cell.
$kendo-calendar-other-month-bgStringinheritinherit
Description
The background color of the other months calendar cells.
$kendo-calendar-other-month-textStringvar( --kendo-disabled-text, inherit )var(--kendo-disabled-text, inherit)
Description
The text color of the other months calendar cells.
$kendo-calendar-cell-bgStringinheritinherit
Description
The background color of the calendar cells.
$kendo-calendar-cell-textStringinheritinherit
Description
The text color of the calendar cells.
$kendo-calendar-cell-hover-bgStringvar( --kendo-hover-bg, inherit )var(--kendo-hover-bg, inherit)
Description
The background color of the calendar cells when hovered.
$kendo-calendar-cell-hover-textStringvar( --kendo-hover-text, inherit )var(--kendo-hover-text, inherit)
Description
The text color of the calendar cells when hovered.
$kendo-calendar-cell-selected-bgStringvar( --kendo-selected-bg, inherit )var(--kendo-selected-bg, inherit)
Description
The background color of the selected calendar cell.
$kendo-calendar-cell-selected-textStringvar( --kendo-selected-text, inherit )var(--kendo-selected-text, inherit)
Description
The text color of the selected calendar cell.
$kendo-calendar-cell-selected-borderStringvar( --kendo-selected-border, inherit )var(--kendo-selected-border, inherit)
Description
The border color of the selected calendar cell.
$kendo-calendar-cell-selected-shadowListinset 0 0 0 1px $kendo-calendar-cell-selected-borderinset 0 0 0 1px var(--kendo-selected-border, inherit)
Description
The shadow of the selected calendar cell.
$kendo-calendar-cell-selected-hover-bgStringvar( --kendo-selected-hover-bg, inherit )var(--kendo-selected-hover-bg, inherit)
Description
The background color of the selected calendar cell when hovered.
$kendo-calendar-cell-selected-hover-textStringvar( --kendo-selected-hover-text, inherit )var(--kendo-selected-hover-text, inherit)
Description
The text color of the selected calendar cell when hovered.
$kendo-calendar-cell-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 shadow of the selected calendar cell when focused.
$kendo-calendar-cell-selected-focus-shadowList$kendo-calendar-cell-focus-shadowinset 0 0 0 1px var(--kendo-color-base-emphasis, #605e5c)
Description
The shadow of the selected calendar cell when selected and focused.
$kendo-calendar-navigation-widthNumber5em5em
Description
The width of the navigation in the infinite Calendar.
$kendo-calendar-navigation-item-heightNumber2em2em
Description
The height of the navigation items in the infinite Calendar.
$kendo-calendar-navigation-bgStringif($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 ))var(--kendo-color-surface, #faf9f8)
Description
The background color of the navigation in the infinite Calendar.
$kendo-calendar-navigation-textString$kendo-calendar-header-textvar(--kendo-component-text, initial)
Description
The text color of the navigation in the infinite Calendar.
$kendo-calendar-navigation-borderString$kendo-calendar-header-bordervar(--kendo-component-border, initial)
Description
The border color of the navigation in the infinite Calendar.
$kendo-calendar-navigation-hover-textString$kendo-link-hover-textvar(--kendo-color-primary-hover, #106ebe)
Description
The text color of the hovered items in the calendar navigation.
$kendo-infinite-calendar-header-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The background color of the navigation in the infinite Calendar.
$kendo-infinite-calendar-header-padding-yListk-spacing(3) k-spacing(1)var(--kendo-spacing-3, 0.75rem) var(--kendo-spacing-1, 0.25rem)
Description
The background color of the navigation in the infinite Calendar.
$kendo-infinite-calendar-view-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the infinite Calendar.
$kendo-infinite-calendar-view-padding-yStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The vertical padding of the infinite Calendar.
$kendo-infinite-calendar-view-heightNumber( $kendo-calendar-cell-size * 9 )252px
Description
The height of the infinite Calendar view.
$kendo-calendar-range-bgStringif($kendo-enable-color-system, k-color( base-active ), k-get-theme-color-var( neutral-30 ))var(--kendo-color-base-active, #edebe9)
Description
The background color of the range selection in the Calendar.
$kendo-calendar-range-textStringinheritinherit
Description
The text color of the range selection in the Calendar.
$kendo-calendar-range-borderStringif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))var(--kendo-color-base-emphasis, #605e5c)
Description
The border color of the range selection in the Calendar.
$kendo-calendar-start-range-hover-shadowListinset 1px -1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )), inset 0 1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))inset 1px -1px 0 0 var(--kendo-color-base-emphasis, #605e5c), inset 0 1px 0 0 var(--kendo-color-base-emphasis, #605e5c)
Description
The shadow of the hovered start range selection in the Calendar.
$kendo-calendar-mid-range-hover-shadowListinset 0 -1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )), inset 0 1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))inset 0 -1px 0 0 var(--kendo-color-base-emphasis, #605e5c), inset 0 1px 0 0 var(--kendo-color-base-emphasis, #605e5c)
Description
The shadow of the hovered mid range selection in the Calendar.
$kendo-calendar-end-range-hover-shadowListinset -1px -1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )), inset 0 1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))inset -1px -1px 0 0 var(--kendo-color-base-emphasis, #605e5c), inset 0 1px 0 0 var(--kendo-color-base-emphasis, #605e5c)
Description
The shadow of the hovered end range selection in the Calendar.
$kendo-calendar-start-end-range-hover-shadowListinset 1px -1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )), inset -1px 1px 0 0 if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))inset 1px -1px 0 0 var(--kendo-color-base-emphasis, #605e5c), inset -1px 1px 0 0 var(--kendo-color-base-emphasis, #605e5c)
Description
The shadow of the hovered start-end range selection in the Calendar.
$kendo-calendar-sm-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the small Calendar.
$kendo-calendar-sm-line-heightStringvar( --kendo-line-height-sm, normal )var(--kendo-line-height-sm, normal)
Description
The line height of the small Calendar.
$kendo-calendar-sm-cell-sizeNumber24px24px
Description
The size of the cells in the small Calendar.
$kendo-calendar-sm-cell-padding-xStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The horizontal padding of the cells in the small Calendar.
$kendo-calendar-sm-cell-padding-yStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The vertical padding of the cells in the small Calendar.
$kendo-calendar-sm-cell-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the cells in the small Calendar.
$kendo-calendar-md-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the medium Calendar.
$kendo-calendar-md-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the medium Calendar.
$kendo-calendar-md-cell-sizeNumber28px28px
Description
The size of the cells in the medium Calendar.
$kendo-calendar-md-cell-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the cells in the medium Calendar.
$kendo-calendar-md-cell-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the cells in the medium Calendar.
$kendo-calendar-md-cell-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the cells in the medium Calendar.
$kendo-calendar-lg-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the large Calendar.
$kendo-calendar-lg-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the large Calendar.
$kendo-calendar-lg-cell-sizeNumber32px32px
Description
The size of the cells in the large Calendar.
$kendo-calendar-lg-cell-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the cells in the large Calendar.
$kendo-calendar-lg-cell-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the cells in the large Calendar.
$kendo-calendar-lg-cell-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the cells in the large Calendar.
$kendo-calendar-sizesMap( sm: ( font-size: $kendo-calendar-sm-font-size, line-height: $kendo-calendar-sm-line-height, cell-size: $kendo-calendar-sm-cell-size, cell-padding-x: $kendo-calendar-sm-cell-padding-y, cell-padding-y: $kendo-calendar-sm-cell-padding-x, cell-font-size: $kendo-calendar-sm-cell-font-size ), md: ( font-size: $kendo-calendar-md-font-size, line-height: $kendo-calendar-md-line-height, cell-size: $kendo-calendar-md-cell-size, cell-padding-x: $kendo-calendar-md-cell-padding-y, cell-padding-y: $kendo-calendar-md-cell-padding-x, cell-font-size: $kendo-calendar-md-cell-font-size ), lg: ( font-size: $kendo-calendar-lg-font-size, line-height: $kendo-calendar-lg-line-height, cell-size: $kendo-calendar-lg-cell-size, cell-padding-x: $kendo-calendar-lg-cell-padding-y, cell-padding-y: $kendo-calendar-lg-cell-padding-x, cell-font-size: $kendo-calendar-lg-cell-font-size ) )
  • sm: "font-size":"var(--kendo-font-size-sm, inherit)","line-height":"var(--kendo-line-height-sm, normal)","cell-size":"24px","cell-padding-x":"var(--kendo-spacing-0\\.5, 0.125rem)","cell-padding-y":"var(--kendo-spacing-0\\.5, 0.125rem)","cell-font-size":"var(--kendo-font-size-sm, inherit)"
  • md: "font-size":"var(--kendo-font-size, inherit)","line-height":"var(--kendo-line-height, normal)","cell-size":"28px","cell-padding-x":"var(--kendo-spacing-1, 0.25rem)","cell-padding-y":"var(--kendo-spacing-1, 0.25rem)","cell-font-size":"var(--kendo-font-size-sm, inherit)"
  • lg: "font-size":"var(--kendo-font-size, inherit)","line-height":"var(--kendo-line-height, normal)","cell-size":"32px","cell-padding-x":"var(--kendo-spacing-1, 0.25rem)","cell-padding-y":"var(--kendo-spacing-1, 0.25rem)","cell-font-size":"var(--kendo-font-size, inherit)"
Description
The sizes Map of the Calendar.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support