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

Customizing Gantt

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-gantt-border-width1px
Description
Border width of the gantt.
$kendo-gantt-font-familyvar( --kendo-font-family, initial )
Description
Font family of the gantt.
$kendo-gantt-font-sizevar( --kendo-font-size, initial )
Description
Font size of the gantt.
$kendo-gantt-line-heightvar( --kendo-line-height, initial )
Description
Line height of the gantt.
$kendo-gantt-bgvar( --kendo-component-bg, inherit )
Description
Background color of the gantt.
$kendo-gantt-textvar( --kendo-component-text, inherit )
Description
Text color of the gantt.
$kendo-gantt-bordervar( --kendo-component-border, inherit )
Description
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
Background color of the gantt non-working days.
$kendo-gantt-nonwork-textinherit
Description
Text color of the gantt non-working days.
$kendo-gantt-nonwork-borderinherit
Description
Border color of the gantt non-working days.
$kendo-gantt-line-size2px
Description
Size of the gantt connecting lines.
$kendo-gantt-line-fillblack
Description
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
Selected background fill of the gantt connecting lines.
$kendo-gantt-dot-size8px
Description
Size of the gantt task dot.
$kendo-gantt-dot-spacingmap.get( $kendo-spacing, 0.5 )
Description
Spacing of the gantt task dot.
$kendo-gantt-dot-bgif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
Background color of the gantt task dot.
$kendo-gantt-dot-borderif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
Border color of the gantt task dot.
$kendo-gantt-dot-hover-bgif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
Hover background color of the gantt task dot.
$kendo-gantt-dot-hover-borderif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
Hover border color of the gantt task dot.
$kendo-gantt-milestone-bg$kendo-gantt-text
Description
Background color of the gantt milestone.
$kendo-gantt-milestone-border$kendo-gantt-text
Description
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
Selected background color of the gantt milestone.
$kendo-gantt-milestone-selected-borderif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
Selected border color of the gantt milestone.
$kendo-gantt-summary-bgif($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-110 ))
Description
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
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
Selected background color of the gantt summary.
$kendo-gantt-summary-progress-selected-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
Selected background color of the gantt summary progress.
$kendo-gantt-task-border-width0px
Description
Border width of the gantt task.
$kendo-gantt-task-padding-xmap.get( $kendo-spacing, 2 )
Description
Horizontal padding of the gantt task.
$kendo-gantt-task-padding-ymap.get( $kendo-spacing, 1 )
Description
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
Background color of the gantt task.
$kendo-gantt-task-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
Text color of the gantt task.
$kendo-gantt-task-borderinherit
Description
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
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
Background hover color of the 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
Selected background color of the gantt task.
$kendo-gantt-task-selected-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
Selected text color of the gantt task.
$kendo-gantt-task-selected-bordertransparent
Description
Selected border color of the gantt task.
$kendo-gantt-task-progress-selected-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
Selected background color of the gantt task progress.
$kendo-gantt-task-actions-padding-y$kendo-padding-md-y
Description
Vertical padding of the gantt task actions.
$kendo-gantt-task-actions-padding-x$kendo-padding-md-x
Description
Horizontal padding of the gantt task actions.
$kendo-gantt-planned-margin-y.45em
Description
Vertical margin of the gantt task planned line.
$kendo-gantt-planned-border-width2px
Description
Border width of the gantt task planned line.
$kendo-gantt-planned-line-height.85em
Description
Line height of the gantt task planned line.
$kendo-gantt-planned-dependency-margin-y.65em
Description
Vertical margin of the gantt planned dependencies.
$kendo-gantt-planned-moment-width6px
Description
Default width of the gantt planned line dot.
$kendo-gantt-planned-moment-height$kendo-gantt-planned-moment-width
Description
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
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
Horizontal margin of the gantt planned line dot.
$kendo-gantt-planned-milestone-moment-margin-xmath.div( $kendo-gantt-planned-moment-width, 2 )
Description
Horizontal margin of the gantt milestone planned line dot.
$kendo-gantt-planned-duration-height$kendo-gantt-planned-border-width
Description
Default height of the gantt planned line.
$kendo-gantt-planned-duration-hover-heightcalc( #{$kendo-gantt-planned-border-width} + 1px )
Description
Hover height of the gantt planned line.
$kendo-gantt-planned-single-drag-hint-top0
Description
Top position of the gantt drag hint.
$kendo-gantt-planned-summary-drag-hint-top.5em
Description
Top position of the gantt summary drag hint.
$kendo-gantt-planned-milestone-drag-hint-top.3em
Description
Top position of the gantt planned milestone drag hint.
$kendo-gantt-planned-offset-resize-handler-margin-x1.4em
Description
of the gantt.
$kendo-gantt-planned-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
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
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
Border color of the gantt planned tooltip.
$kendo-gantt-delayed-textif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
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
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
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
Background hover color of the gantt delayed task.
$kendo-gantt-advanced-bgif($kendo-enable-color-system, k-color( success-emphasis ), k-get-theme-color-var( success-160 ))
Description
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
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
Background hover color of the gantt advanced task.
$kendo-gantt-action-on-offset-textif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)
Description
Text color of the gantt delayed task action.
$kendo-gantt-offset-resize-handler-top50%
Description
Top position of the gantt delayed task resize handler.
$kendo-gantt-validation-tooltip-width200px
Description
Default width of the gantt validation tooltip.
$kendo-gantt-validation-tooltip-label-width50px
Description
Default width of the gantt validation tooltip label.
$kendo-gantt-validation-tooltip-bordervar( --kendo-component-border, inherit )
Description
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
Border color of the gantt validation tooltip in valid state.
$kendo-gantt-validation-tooltip-invalid-borderif($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( error-100 ))
Description
Border color of the gantt validation tooltip in invalid state.

In this article

Not finding the help you need?