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-sizeNumber32px32px
Description
The size of the cells in the Calendar.
$kendo-calendar-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the Calendar.
$kendo-calendar-textString$kendo-component-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the Calendar.
$kendo-calendar-borderString$kendo-component-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
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 header in the Calendar.
$kendo-calendar-header-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the header in the Calendar.
$kendo-calendar-header-border-widthNumber1px1px
Description
The border width of the header in the Calendar.
$kendo-calendar-header-bgString$kendo-component-header-bgvar(--kendo-color-surface, #fafafa)
Description
The background color of the header in the Calendar.
$kendo-calendar-header-textString$kendo-component-header-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the header in the Calendar.
$kendo-calendar-header-borderString$kendo-component-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the header in the Calendar.
$kendo-calendar-header-gradientNull$kendo-component-header-gradientnull
Description
The gradient of the header in the Calendar.
$kendo-calendar-header-shadowList0 1px 3px 1px rgba(black, .1)0 1px 3px 1px rgba(0, 0, 0, 0.1)
Description
The shadow of the header in the Calendar.
$kendo-calendar-nav-gapNullnullnull
Description
The gap between the items in the navigation of the Calendar.
$kendo-calendar-footer-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the footer in the Calendar.
$kendo-calendar-footer-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the footer in the Calendar.
$kendo-calendar-cell-padding-xNumber.25em0.25em
Description
The horizontal padding of the cells in the Calendar.
$kendo-calendar-cell-padding-yNumber$kendo-calendar-cell-padding-x0.25em
Description
The vertical padding of the cells in the Calendar.
$kendo-calendar-cell-line-heightString$kendo-calendar-line-heightvar(--kendo-line-height, normal)
Description
The line height of the cells in the Calendar.
$kendo-calendar-cell-border-radiusStringk-border-radius(md)var(--kendo-border-radius-md, 0.25rem)
Description
The border radius of the cells in the Calendar.
$kendo-calendar-header-cell-padding-xNullnullnull
Description
The horizontal padding of the header cells in the Calendar.
$kendo-calendar-header-cell-padding-yNullnullnull
Description
The vertical padding of the header cells in the Calendar.
$kendo-calendar-header-cell-widthNumber$kendo-calendar-cell-size32px
Description
The width of the header cells in the Calendar.
$kendo-calendar-header-cell-heightNumber$kendo-calendar-cell-size32px
Description
The height of the header cells in the Calendar.
$kendo-calendar-header-cell-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the header cells in the Calendar.
$kendo-calendar-header-cell-line-heightNumber22
Description
The line height of the header cells in the Calendar.
$kendo-calendar-header-cell-bgNullnullnull
Description
The background color of the header cells in the Calendar.
$kendo-calendar-header-cell-textString$kendo-subtle-textvar(--kendo-color-subtle, #666666)
Description
The text color of the header cells in the Calendar.
$kendo-calendar-header-cell-opacityNullnullnull
Description
The opacity of the header cells in the Calendar.
$kendo-calendar-caption-padding-xStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the caption in the Calendar.
$kendo-calendar-caption-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the caption in the Calendar.
$kendo-calendar-caption-heightNumber$kendo-calendar-cell-size32px
Description
The height of the caption in the Calendar.
$kendo-calendar-caption-font-sizeNullnullnull
Description
The font size of the caption in the Calendar.
$kendo-calendar-caption-line-heightNullnullnull
Description
The line height of the caption in the Calendar.
$kendo-calendar-caption-font-weightStringvar( --kendo-font-weight-bold, normal )var(--kendo-font-weight-bold, normal)
Description
The font weight of the caption in the Calendar.
$kendo-calendar-week-number-font-sizeNumber$kendo-font-size-sm0.75rem
Description
The font size of the week number cells in the Calendar.
$kendo-calendar-view-widthNumber($kendo-calendar-cell-size * 8)256px
Description
The width of the Calendar view.
$kendo-calendar-view-heightNumber($kendo-calendar-cell-size * 7)224px
Description
The height of the Calendar view.
$kendo-calendar-view-gapStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The gap between the items in the Calendar view.
$kendo-calendar-weekend-bgNullnullnull
Description
The background color of the weekend cells in the Calendar.
$kendo-calendar-weekend-textNullnullnull
Description
The text color of the weekend cells in the Calendar.
$kendo-calendar-today-styleStringcolorcolor
Description
The style of the current day in the Calendar.
$kendo-calendar-today-colorString$kendo-color-primaryvar(--kendo-color-primary, #ff6358)
Description
The color of the current day in the Calendar.
$kendo-calendar-week-number-bgNullnullnull
Description
The background color of the week number cells in the Calendar.
$kendo-calendar-week-number-textString$kendo-calendar-header-cell-textvar(--kendo-color-subtle, #666666)
Description
The text color of the week number cells in the Calendar.
$kendo-calendar-other-month-bgNullnullnull
Description
The background color of the preceding/subsequent month cells in the Calendar.
$kendo-calendar-other-month-textString$kendo-calendar-header-cell-textvar(--kendo-color-subtle, #666666)
Description
The text color of the preceding/subsequent month cells in the Calendar.
$kendo-calendar-cell-bgNullnullnull
Description
The background color of the cells in the Calendar.
$kendo-calendar-cell-textNullnullnull
Description
The text color of the cells in the Calendar.
$kendo-calendar-cell-borderNullnullnull
Description
The border color of the cells in the Calendar.
$kendo-calendar-cell-gradientNullnullnull
Description
The gradient of the cells in the Calendar.
$kendo-calendar-cell-hover-bgString$kendo-hover-bgvar(--kendo-color-base-hover, #ebebeb)
Description
The background color of the hovered cells in the Calendar.
$kendo-calendar-cell-hover-textString$kendo-hover-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the hovered cells in the Calendar.
$kendo-calendar-cell-hover-borderString$kendo-hover-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the hovered cells in the Calendar.
$kendo-calendar-cell-hover-gradientNullnullnull
Description
The gradient of the hovered cells in the Calendar.
$kendo-calendar-cell-selected-bgString$kendo-selected-bgvar(--kendo-color-primary, #ff6358)
Description
The background color of the selected cells in the Calendar.
$kendo-calendar-cell-selected-textString$kendo-selected-textvar(--kendo-color-on-primary, #ffffff)
Description
The text color of the selected cells in the Calendar.
$kendo-calendar-cell-selected-borderString$kendo-selected-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the selected cells in the Calendar.
$kendo-calendar-cell-selected-gradientNullnullnull
Description
The gradient of the selected cells in the Calendar.
$kendo-calendar-cell-selected-hover-bgString$kendo-selected-hover-bgvar(--kendo-color-primary-hover, #ea5a51)
Description
The background color of the selected and hovered cells in the Calendar.
$kendo-calendar-cell-selected-hover-textString$kendo-selected-hover-textvar(--kendo-color-on-primary, #ffffff)
Description
The text color of the selected and hovered cells in the Calendar.
$kendo-calendar-cell-selected-hover-borderNullnullnull
Description
The border color of the selected and hovered cells in the Calendar.
$kendo-calendar-cell-selected-hover-gradientNullnullnull
Description
The gradient of the selected and hovered cells in the Calendar.
$kendo-calendar-cell-focus-shadowListinset 0 0 0 2px rgba( $kendo-color-black, .08 )inset 0 0 0 2px rgba(0, 0, 0, 0.08)
Description
The shadow of the focused cells in the Calendar.
$kendo-calendar-cell-selected-focus-shadowList$kendo-calendar-cell-focus-shadowinset 0 0 0 2px rgba(0, 0, 0, 0.08)
Description
The shadow of the selected and focused cells in the Calendar.
$kendo-calendar-navigation-widthNumber5em5em
Description
The width of the Calendar navigation.
$kendo-calendar-navigation-item-heightNumber2em2em
Description
The height of the items in the Calendar navigation.
$kendo-calendar-navigation-bgString$kendo-calendar-header-bgvar(--kendo-color-surface, #fafafa)
Description
The background color of the Calendar navigation.
$kendo-calendar-navigation-textString$kendo-calendar-header-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the Calendar navigation.
$kendo-calendar-navigation-borderString$kendo-calendar-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the Calendar navigation.
$kendo-calendar-navigation-hover-textString$kendo-link-hover-textvar(--kendo-color-primary-hover, #ea5a51)
Description
The text color of the hovered items in the Calendar navigation.
$kendo-infinite-calendar-header-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the header in the Infinite Calendar.
$kendo-infinite-calendar-header-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the header in the Infinite Calendar.
$kendo-infinite-calendar-view-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the Calendar view in the Infinite Calendar.
$kendo-infinite-calendar-view-padding-yStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The vertical padding of the Calendar view in the Infinite Calendar.
$kendo-infinite-calendar-view-heightNumber( $kendo-calendar-cell-size * 9 )288px
Description
The height of the Calendar view in the Infinite Calendar.
$kendo-calendar-range-cell-border-radiusStringk-border-radius(lg)var(--kendo-border-radius-lg, 0.375rem)
Description
The border radius of the range cells in the Multiview Calendar.
$kendo-calendar-sm-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the small Calendar.
$kendo-calendar-sm-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the small Calendar.
$kendo-calendar-sm-cell-sizeNumber28px28px
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-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-sizeNumber32px32px
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-lg-font-sizeStringvar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)
Description
The font size of the large Calendar.
$kendo-calendar-lg-line-heightStringvar( --kendo-line-height-lg, normal )var(--kendo-line-height-lg, normal)
Description
The line height of the large Calendar.
$kendo-calendar-lg-cell-sizeNumber40px40px
Description
The size of the cells in the large Calendar.
$kendo-calendar-lg-cell-padding-xStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the cells in the large Calendar.
$kendo-calendar-lg-cell-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding 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 ), 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 ), 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 ) )
  • sm: "font-size":"var(--kendo-font-size, inherit)","line-height":"var(--kendo-line-height, normal)","cell-size":"28px","cell-padding-x":"var(--kendo-spacing-0\\.5, 0.125rem)","cell-padding-y":"var(--kendo-spacing-0\\.5, 0.125rem)"
  • md: "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)"
  • lg: "font-size":"var(--kendo-font-size-lg, inherit)","line-height":"var(--kendo-line-height-lg, normal)","cell-size":"40px","cell-padding-x":"var(--kendo-spacing-2, 0.5rem)","cell-padding-y":"var(--kendo-spacing-2, 0.5rem)"
Description
The sizes Map of the Calendar.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support