Customizing Gantt

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-gantt-border-width1px
Description
The border width of the Gantt.
$kendo-gantt-font-familyvar( --kendo-font-family, initial )
Description
The font family of the Gantt.
$kendo-gantt-font-sizevar( --kendo-font-size, initial )
Description
The font size of the Gantt.
$kendo-gantt-line-heightvar( --kendo-line-height, initial )
Description
The line height of the Gantt.
$kendo-gantt-bgvar( --kendo-component-bg, inherit )
Description
The background color of the Gantt.
$kendo-gantt-textvar( --kendo-component-text, inherit )
Description
The text color of the Gantt.
$kendo-gantt-bordervar( --kendo-component-border, inherit )
Description
The border color of the Gantt.
$kendo-gantt-nonwork-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 4%, transparent), rgba( $kendo-color-black, .04 ))
Description
The background color of the Gantt non-working days.
$kendo-gantt-nonwork-textinherit
Description
The text color of the Gantt non-working days.
$kendo-gantt-nonwork-borderinherit
Description
The border color of the Gantt non-working days.
$kendo-gantt-line-size2px
Description
The size of the Gantt connecting lines.
$kendo-gantt-line-fillblack
Description
The background fill color of the Gantt connecting lines.
$kendo-gantt-line-selected-fillif($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-120 ))
Description
The background fill of the selected Gantt connecting lines.
$kendo-gantt-dot-size8px
Description
The size of the Gantt task dot.
$kendo-gantt-dot-spacingk-spacing(0.5)
Description
The spacing of the Gantt task dot.
$kendo-gantt-dot-bgif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
The background color of the Gantt task dot.
$kendo-gantt-dot-borderif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
The border color of the Gantt task dot.
$kendo-gantt-dot-hover-bgif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The background color of the hovered Gantt task dot.
$kendo-gantt-dot-hover-borderif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
The border color of the hovered Gantt task dot.
$kendo-gantt-milestone-bg$kendo-gantt-text
Description
The background color of the Gantt milestone.
$kendo-gantt-milestone-border$kendo-gantt-text
Description
The border color of the Gantt milestone.
$kendo-gantt-milestone-selected-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The background color of the selected Gantt milestone.
$kendo-gantt-milestone-selected-borderif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The border color of the selected Gantt milestone.
$kendo-gantt-summary-bgif($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-110 ))
Description
The background color of the Gantt summary.
$kendo-gantt-summary-progress-bgif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))
Description
The background color of the Gantt summary progress.
$kendo-gantt-summary-selected-bgif($kendo-enable-color-system, k-color( primary-subtle-active ), k-get-theme-color-var( primary-50 ))
Description
The background color of the selected Gantt summary.
$kendo-gantt-summary-progress-selected-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The background color of the selected Gantt summary progress.
$kendo-gantt-task-border-width0px
Description
The border width of the Gantt task.
$kendo-gantt-task-padding-xk-spacing(2)
Description
The horizontal padding of the Gantt task.
$kendo-gantt-task-padding-yk-spacing(1)
Description
The vertical padding of the Gantt task.
$kendo-gantt-task-bgif($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-110 ))
Description
The background color of the Gantt task.
$kendo-gantt-task-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The text color of the Gantt task.
$kendo-gantt-task-borderinherit
Description
The border color of the Gantt task.
$kendo-gantt-task-progress-bgif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))
Description
The background color of the Gantt task progress.
$kendo-gantt-task-progress-hover-bgif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))
Description
The background color of the hovered Gantt task progress.
$kendo-gantt-task-selected-bgif($kendo-enable-color-system, k-color( primary-subtle-active ), k-get-theme-color-var( primary-50 ))
Description
The background color of selected the Gantt task.
$kendo-gantt-task-selected-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The text color of the selected Gantt task.
$kendo-gantt-task-selected-bordertransparent
Description
The border color of the selected Gantt task.
$kendo-gantt-task-progress-selected-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The background color of the selected Gantt task progress.
$kendo-gantt-task-actions-padding-y$kendo-padding-md-y
Description
The vertical padding of the Gantt task actions.
$kendo-gantt-task-actions-padding-x$kendo-padding-md-x
Description
The horizontal padding of the Gantt task actions.
$kendo-gantt-planned-margin-y.45em
Description
The vertical margin of the Gantt task planned line.
$kendo-gantt-planned-border-width2px
Description
The border width of the Gantt task planned line.
$kendo-gantt-planned-line-height.85em
Description
The line height of the Gantt task planned line.
$kendo-gantt-planned-dependency-margin-y.65em
Description
The vertical margin of the Gantt planned dependencies.
$kendo-gantt-planned-moment-width6px
Description
The default width of the Gantt planned line dot.
$kendo-gantt-planned-moment-height$kendo-gantt-planned-moment-width
Description
The default height of the Gantt planned line dot.
$kendo-gantt-planned-moment-border-radiuscalc( ( #{$kendo-gantt-planned-border-width * 2} + #{$kendo-gantt-planned-moment-width} ) / 2 )
Description
The border radius of the Gantt planned line dot.
$kendo-gantt-planned-moment-left-margin-xcalc( #{$kendo-gantt-planned-border-width} / 2 - #{$kendo-gantt-planned-moment-border-radius} )
Description
The horizontal margin of the Gantt planned line dot.
$kendo-gantt-planned-milestone-moment-margin-xmath.div( $kendo-gantt-planned-moment-width, 2 )
Description
The horizontal margin of the Gantt milestone planned line dot.
$kendo-gantt-planned-duration-height$kendo-gantt-planned-border-width
Description
The default height of the Gantt planned line.
$kendo-gantt-planned-duration-hover-heightcalc( #{$kendo-gantt-planned-border-width} + 1px )
Description
The height of the hovered Gantt planned line.
$kendo-gantt-planned-single-drag-hint-top0
Description
The top position of the Gantt drag hint.
$kendo-gantt-planned-summary-drag-hint-top.5em
Description
The top position of the Gantt summary drag hint.
$kendo-gantt-planned-milestone-drag-hint-top.3em
Description
The top position of the Gantt planned milestone drag hint.
$kendo-gantt-planned-offset-resize-handler-margin-x1.4em
Description
The horizontal offset of the Gantt delayed task resize handler.
$kendo-gantt-planned-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The text color of the Gantt planned Tooltip.
$kendo-gantt-planned-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The background color of the Gantt planned Tooltip.
$kendo-gantt-planned-borderif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The border color of the Gantt planned Tooltip.
$kendo-gantt-delayed-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The text color of the Gantt delayed task.
$kendo-gantt-delayed-bgif($kendo-enable-color-system, k-color( error-emphasis ), k-get-theme-color-var( error-160 ))
Description
The background color of the Gantt delayed task.
$kendo-gantt-delayed-bg-lighterif($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( error-110))
Description
The complement background color of the Gantt delayed task.
$kendo-gantt-delayed-hover-bgif($kendo-enable-color-system, k-color( error-on-subtle ), k-get-theme-color-var( error-190 ))
Description
The background color of the hovered Gantt delayed task.
$kendo-gantt-advanced-bgif($kendo-enable-color-system, k-color( success-emphasis ), k-get-theme-color-var( success-160 ))
Description
The background color of the Gantt advanced task.
$kendo-gantt-advanced-bg-lighterif($kendo-enable-color-system, k-color( success ), k-get-theme-color-var( success-110 ))
Description
The complement background color of the Gantt advanced task.
$kendo-gantt-advanced-hover-bgif($kendo-enable-color-system, k-color( success-on-subtle ), k-get-theme-color-var( success-190 ))
Description
The background color of the hovered Gantt advanced task.
$kendo-gantt-action-on-offset-textif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
The text color of the Gantt delayed task action.
$kendo-gantt-offset-resize-handler-top50%
Description
The top position of the Gantt delayed task resize handler.
$kendo-gantt-validation-tooltip-width200px
Description
The default width of the Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-label-width50px
Description
The default width of the Gantt validation Tooltip label.
$kendo-gantt-validation-tooltip-bordervar( --kendo-component-border, inherit )
Description
The border color of the Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-valid-borderif($kendo-enable-color-system, k-color( success ), k-get-theme-color-var( success-100 ))
Description
The border color of the valid Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-invalid-borderif($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( error-100 ))
Description
The border color of the invalid Gantt validation Tooltip.

In this article

Not finding the help you need?