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-widthNumber1px1px
Description
The border width of the Gantt.
$kendo-gantt-font-familyStringvar( --kendo-font-family, initial )var(--kendo-font-family, initial)
Description
The font family of the Gantt.
$kendo-gantt-font-sizeStringvar( --kendo-font-size, initial )var(--kendo-font-size, initial)
Description
The font size of the Gantt.
$kendo-gantt-line-heightStringvar( --kendo-line-height, initial )var(--kendo-line-height, initial)
Description
The line height of the Gantt.
$kendo-gantt-bgStringvar( --kendo-component-bg, inherit )var(--kendo-component-bg, inherit)
Description
The background color of the Gantt.
$kendo-gantt-textStringvar( --kendo-component-text, inherit )var(--kendo-component-text, inherit)
Description
The text color of the Gantt.
$kendo-gantt-borderStringvar( --kendo-component-border, inherit )var(--kendo-component-border, inherit)
Description
The border color of the Gantt.
$kendo-gantt-nonwork-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 4%, transparent), rgba( $kendo-color-black, .04 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 4%, transparent)
Description
The background color of the Gantt non-working days.
$kendo-gantt-nonwork-textStringinheritinherit
Description
The text color of the Gantt non-working days.
$kendo-gantt-nonwork-borderStringinheritinherit
Description
The border color of the Gantt non-working days.
$kendo-gantt-line-sizeNumber2px2px
Description
The size of the Gantt connecting lines.
$kendo-gantt-line-fillColorblackblack
Description
The background fill color of the Gantt connecting lines.
$kendo-gantt-line-selected-fillStringif($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-120 ))var(--kendo-color-primary-active, #005a9e)
Description
The background fill of the selected Gantt connecting lines.
$kendo-gantt-dot-sizeNumber8px8px
Description
The size of the Gantt task dot.
$kendo-gantt-dot-spacingStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The spacing of the Gantt task dot.
$kendo-gantt-dot-bgStringif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)var(--kendo-color-on-app-surface, #323130)
Description
The background color of the Gantt task dot.
$kendo-gantt-dot-borderStringif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)var(--kendo-color-on-app-surface, #323130)
Description
The border color of the Gantt task dot.
$kendo-gantt-dot-hover-bgStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The background color of the hovered Gantt task dot.
$kendo-gantt-dot-hover-borderStringif($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black)var(--kendo-color-on-app-surface, #323130)
Description
The border color of the hovered Gantt task dot.
$kendo-gantt-milestone-bgString$kendo-gantt-textvar(--kendo-component-text, inherit)
Description
The background color of the Gantt milestone.
$kendo-gantt-milestone-borderString$kendo-gantt-textvar(--kendo-component-text, inherit)
Description
The border color of the Gantt milestone.
$kendo-gantt-milestone-selected-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 selected Gantt milestone.
$kendo-gantt-milestone-selected-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 selected Gantt milestone.
$kendo-gantt-summary-bgStringif($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-110 ))var(--kendo-color-subtle, #605e5c)
Description
The background color of the Gantt summary.
$kendo-gantt-summary-progress-bgStringif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))var(--kendo-color-on-app-surface, #323130)
Description
The background color of the Gantt summary progress.
$kendo-gantt-summary-selected-bgStringif($kendo-enable-color-system, k-color( primary-subtle-active ), k-get-theme-color-var( primary-50 ))var(--kendo-color-primary-subtle-active, #abd1ef)
Description
The background color of the selected Gantt summary.
$kendo-gantt-summary-progress-selected-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 selected Gantt summary progress.
$kendo-gantt-task-border-widthNumber0px0px
Description
The border width of the Gantt task.
$kendo-gantt-task-padding-xStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the Gantt task.
$kendo-gantt-task-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the Gantt task.
$kendo-gantt-task-bgStringif($kendo-enable-color-system, k-color( subtle ), k-get-theme-color-var( neutral-110 ))var(--kendo-color-subtle, #605e5c)
Description
The background color of the Gantt task.
$kendo-gantt-task-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the Gantt task.
$kendo-gantt-task-borderStringinheritinherit
Description
The border color of the Gantt task.
$kendo-gantt-task-progress-bgStringif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))var(--kendo-color-on-app-surface, #323130)
Description
The background color of the Gantt task progress.
$kendo-gantt-task-progress-hover-bgStringif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))var(--kendo-color-on-app-surface, #323130)
Description
The background color of the hovered Gantt task progress.
$kendo-gantt-task-selected-bgStringif($kendo-enable-color-system, k-color( primary-subtle-active ), k-get-theme-color-var( primary-50 ))var(--kendo-color-primary-subtle-active, #abd1ef)
Description
The background color of selected the Gantt task.
$kendo-gantt-task-selected-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the selected Gantt task.
$kendo-gantt-task-selected-borderColortransparenttransparent
Description
The border color of the selected Gantt task.
$kendo-gantt-task-progress-selected-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 selected Gantt task progress.
$kendo-gantt-task-actions-padding-yString$kendo-padding-md-yvar(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the Gantt task actions.
$kendo-gantt-task-actions-padding-xString$kendo-padding-md-xvar(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the Gantt task actions.
$kendo-gantt-planned-margin-yNumber.45em0.45em
Description
The vertical margin of the Gantt task planned line.
$kendo-gantt-planned-border-widthNumber2px2px
Description
The border width of the Gantt task planned line.
$kendo-gantt-planned-line-heightNumber.85em0.85em
Description
The line height of the Gantt task planned line.
$kendo-gantt-planned-dependency-margin-yNumber.65em0.65em
Description
The vertical margin of the Gantt planned dependencies.
$kendo-gantt-planned-moment-widthNumber6px6px
Description
The default width of the Gantt planned line dot.
$kendo-gantt-planned-moment-heightNumber$kendo-gantt-planned-moment-width6px
Description
The default height of the Gantt planned line dot.
$kendo-gantt-planned-moment-border-radiusCalculationcalc( ( #{$kendo-gantt-planned-border-width * 2} + #{$kendo-gantt-planned-moment-width} ) / 2 )calc((4px + 6px) / 2)
Description
The border radius of the Gantt planned line dot.
$kendo-gantt-planned-moment-left-margin-xCalculationcalc( #{$kendo-gantt-planned-border-width} / 2 - #{$kendo-gantt-planned-moment-border-radius} )calc(2px / 2 - calc((4px + 6px) / 2))
Description
The horizontal margin of the Gantt planned line dot.
$kendo-gantt-planned-milestone-moment-margin-xNumbermath.div( $kendo-gantt-planned-moment-width, 2 )3px
Description
The horizontal margin of the Gantt milestone planned line dot.
$kendo-gantt-planned-duration-heightNumber$kendo-gantt-planned-border-width2px
Description
The default height of the Gantt planned line.
$kendo-gantt-planned-duration-hover-heightCalculationcalc( #{$kendo-gantt-planned-border-width} + 1px )calc(2px + 1px)
Description
The height of the hovered Gantt planned line.
$kendo-gantt-planned-single-drag-hint-topNumber00
Description
The top position of the Gantt drag hint.
$kendo-gantt-planned-summary-drag-hint-topNumber.5em0.5em
Description
The top position of the Gantt summary drag hint.
$kendo-gantt-planned-milestone-drag-hint-topNumber.3em0.3em
Description
The top position of the Gantt planned milestone drag hint.
$kendo-gantt-planned-offset-resize-handler-margin-xNumber1.4em1.4em
Description
The horizontal offset of the Gantt delayed task resize handler.
$kendo-gantt-planned-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the Gantt planned Tooltip.
$kendo-gantt-planned-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 Gantt planned Tooltip.
$kendo-gantt-planned-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 Gantt planned Tooltip.
$kendo-gantt-delayed-textStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The text color of the Gantt delayed task.
$kendo-gantt-delayed-bgStringif($kendo-enable-color-system, k-color( error-emphasis ), k-get-theme-color-var( error-160 ))var(--kendo-color-error-emphasis, #a4262c)
Description
The background color of the Gantt delayed task.
$kendo-gantt-delayed-bg-lighterStringif($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( error-110))var(--kendo-color-error, #c2666b)
Description
The complement background color of the Gantt delayed task.
$kendo-gantt-delayed-hover-bgStringif($kendo-enable-color-system, k-color( error-on-subtle ), k-get-theme-color-var( error-190 ))var(--kendo-color-error-on-subtle, #420f12)
Description
The background color of the hovered Gantt delayed task.
$kendo-gantt-advanced-bgStringif($kendo-enable-color-system, k-color( success-emphasis ), k-get-theme-color-var( success-160 ))var(--kendo-color-success-emphasis, #107c10)
Description
The background color of the Gantt advanced task.
$kendo-gantt-advanced-bg-lighterStringif($kendo-enable-color-system, k-color( success ), k-get-theme-color-var( success-110 ))var(--kendo-color-success, #55a554)
Description
The complement background color of the Gantt advanced task.
$kendo-gantt-advanced-hover-bgStringif($kendo-enable-color-system, k-color( success-on-subtle ), k-get-theme-color-var( success-190 ))var(--kendo-color-success-on-subtle, #063206)
Description
The background color of the hovered Gantt advanced task.
$kendo-gantt-action-on-offset-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 Gantt delayed task action.
$kendo-gantt-offset-resize-handler-topNumber50%50%
Description
The top position of the Gantt delayed task resize handler.
$kendo-gantt-validation-tooltip-widthNumber200px200px
Description
The default width of the Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-label-widthNumber50px50px
Description
The default width of the Gantt validation Tooltip label.
$kendo-gantt-validation-tooltip-borderStringvar( --kendo-component-border, inherit )var(--kendo-component-border, inherit)
Description
The border color of the Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-valid-borderStringif($kendo-enable-color-system, k-color( success ), k-get-theme-color-var( success-100 ))var(--kendo-color-success, #55a554)
Description
The border color of the valid Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-invalid-borderStringif($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( error-100 ))var(--kendo-color-error, #c2666b)
Description
The border color of the invalid Gantt validation Tooltip.

In this article

Not finding the help you need?