New to Kendo UI for AngularStart 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, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Gantt.
$kendo-gantt-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the Gantt.
$kendo-gantt-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the Gantt.
$kendo-gantt-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the Gantt.
$kendo-gantt-textString$kendo-component-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the Gantt.
$kendo-gantt-borderString$kendo-component-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the Gantt.
$kendo-gantt-treelist-bgNullnullnull
Description
The background color of the Gantt TreeList.
$kendo-gantt-treelist-textNullnullnull
Description
The text color of the Gantt TreeList.
$kendo-gantt-treelist-borderNullnullnull
Description
The border color of the Gantt TreeList.
$kendo-gantt-nonwork-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-base ) 3%, transparent), rgba( k-contrast-legacy( $kendo-gantt-bg ), .025 ))color-mix(in srgb, var(--kendo-color-on-base, #3d3d3d) 3%, transparent)
Description
The background color of the Gantt non-working days.
$kendo-gantt-nonwork-textNullnullnull
Description
The text color of the Gantt non-working days.
$kendo-gantt-nonwork-borderNullnullnull
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-fillStringif($kendo-enable-color-system, k-color( on-base ), k-contrast-legacy( $kendo-gantt-bg ))var(--kendo-color-on-base, #3d3d3d)
Description
The background fill color of the Gantt connecting lines.
$kendo-gantt-line-selected-fillString$kendo-color-primaryvar(--kendo-color-primary, #ff6358)
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(1)var(--kendo-spacing-1, 0.25rem)
Description
The spacing of the Gantt task dot.
$kendo-gantt-dot-bgString$kendo-gantt-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The background color of the Gantt task dot.
$kendo-gantt-dot-borderNullnullnull
Description
The border color of the Gantt task dot.
$kendo-gantt-dot-hover-bgString$kendo-gantt-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the hovered Gantt task dot.
$kendo-gantt-dot-hover-borderString$kendo-gantt-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The border color of the hovered Gantt task dot.
$kendo-gantt-milestone-bgString$kendo-gantt-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The background color of the Gantt milestone.
$kendo-gantt-milestone-borderString$kendo-gantt-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the Gantt milestone.
$kendo-gantt-milestone-selected-bgString$kendo-selected-bgvar(--kendo-color-primary, #ff6358)
Description
The background color of the selected Gantt milestone.
$kendo-gantt-milestone-selected-borderString$kendo-selected-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the selected Gantt milestone.
$kendo-gantt-summary-bgStringif($kendo-enable-color-system, k-color( subtle ), k-try-tint( $kendo-gantt-text, 1 ))var(--kendo-color-subtle, #666666)
Description
The background color of the Gantt summary.
$kendo-gantt-summary-progress-bgStringif($kendo-enable-color-system, k-color( on-base ), k-try-shade( $kendo-gantt-text, 5 ))var(--kendo-color-on-base, #3d3d3d)
Description
The background color of the Gantt summary progress.
$kendo-gantt-summary-selected-bgStringif($kendo-enable-color-system, k-color( primary-subtle-active ), k-try-tint( $kendo-selected-bg, 6 ))var(--kendo-color-primary-subtle-active, #ffc8c4)
Description
The background color of the selected Gantt summary.
$kendo-gantt-summary-progress-selected-bgString$kendo-selected-bgvar(--kendo-color-primary, #ff6358)
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-try-tint( $kendo-gantt-text, 2 ))var(--kendo-color-subtle, #666666)
Description
The background color of the Gantt task.
$kendo-gantt-task-textStringif($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $kendo-gantt-text ))var(--kendo-color-base, #f5f5f5)
Description
The text color of the Gantt task.
$kendo-gantt-task-borderNullnullnull
Description
The border color of the Gantt task.
$kendo-gantt-task-progress-bgString$kendo-gantt-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The background color of the Gantt task progress.
$kendo-gantt-task-selected-bgStringif($kendo-enable-color-system, k-color( primary-subtle-active ), k-try-tint( $kendo-selected-bg, 6 ))var(--kendo-color-primary-subtle-active, #ffc8c4)
Description
The background color of selected the Gantt task.
$kendo-gantt-task-selected-textString$kendo-selected-textvar(--kendo-color-on-primary, #ffffff)
Description
The text color of the selected Gantt task.
$kendo-gantt-task-selected-borderNullnullnull
Description
The border color of the selected Gantt task.
$kendo-gantt-task-progress-selected-bgString$kendo-selected-bgvar(--kendo-color-primary, #ff6358)
Description
The background color of the selected Gantt task progress.
$kendo-gantt-planned-margin-yNumber.35em0.35em
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.75em0.75em
Description
The line height of the Gantt task planned line.
$kendo-gantt-planned-dependency-margin-yNumber.55em0.55em
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( #{k-math-div( $kendo-gantt-planned-border-width, 2 )} - #{$kendo-gantt-planned-moment-border-radius} )calc(1px - calc((4px + 6px) / 2))
Description
The horizontal margin of the Gantt planned line dot.
$kendo-gantt-planned-milestone-moment-margin-xNumberk-math-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-rtl-milestone-wrap-margin-xNumber-2.4em-2.4em
Description
The horizontal margin of the Gantt milestone wrap.
$kendo-gantt-rtl-milestone-planned-moment-margin-xNumber.2em0.2em
Description
The horizontal margin of the Gantt milestone line dot.
$kendo-gantt-rtl-milestone-dot-start-margin-xNumber-.1em-0.1em
Description
The horizontal margin of the Gantt milestone task dot.
$kendo-gantt-planned-offset-resize-handler-margin-xNumber1.4em1.4em
Description
The horizontal offset of the Gantt delayed task resize handler.
$kendo-gantt-planned-bgString$kendo-color-primaryvar(--kendo-color-primary, #ff6358)
Description
The background color of the Gantt planned Tooltip.
$kendo-gantt-planned-borderString$kendo-gantt-planned-bgvar(--kendo-color-primary, #ff6358)
Description
The border color of the Gantt planned Tooltip.
$kendo-gantt-delayed-bgString$kendo-color-errorvar(--kendo-color-error, #f31700)
Description
The background color of the Gantt delayed task.
$kendo-gantt-delayed-bg-lighterStringif($kendo-enable-color-system, k-color( error-emphasis ), k-color-tint($kendo-gantt-delayed-bg, 5))var(--kendo-color-error-emphasis, #f76f60)
Description
The complement background color of the Gantt delayed task.
$kendo-gantt-advanced-bgString$kendo-color-successvar(--kendo-color-success, #37b400)
Description
The background color of the Gantt advanced task.
$kendo-gantt-advanced-bg-lighterStringif($kendo-enable-color-system, k-color( success-emphasis ), k-color-tint($kendo-gantt-advanced-bg, 5))var(--kendo-color-success-emphasis, #81d15f)
Description
The complement background color of the Gantt advanced task.
$kendo-gantt-action-on-offset-textColor#000000#000000
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-borderColor#656565#656565
Description
The border color of the Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-valid-borderString$kendo-color-successvar(--kendo-color-success, #37b400)
Description
The border color of the valid Gantt validation Tooltip.
$kendo-gantt-validation-tooltip-invalid-borderString$kendo-color-errorvar(--kendo-color-error, #f31700)
Description
The border color of the invalid Gantt validation Tooltip.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support