New to Kendo UI for Angular? Start a free 30-day trial
Customizing Gantt
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-gantt-border-width | Number | 1px | 1px |
Description
The border width of the Gantt. | |||
$kendo-gantt-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Gantt. | |||
$kendo-gantt-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Gantt. | |||
$kendo-gantt-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Gantt. | |||
$kendo-gantt-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Gantt. | |||
$kendo-gantt-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The text color of the Gantt. | |||
$kendo-gantt-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Gantt. | |||
$kendo-gantt-treelist-bg | Null | null | null |
Description
The background color of the Gantt TreeList. | |||
$kendo-gantt-treelist-text | Null | null | null |
Description
The text color of the Gantt TreeList. | |||
$kendo-gantt-treelist-border | Null | null | null |
Description
The border color of the Gantt TreeList. | |||
$kendo-gantt-nonwork-bg | String | if($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-text | Null | null | null |
Description
The text color of the Gantt non-working days. | |||
$kendo-gantt-nonwork-border | Null | null | null |
Description
The border color of the Gantt non-working days. | |||
$kendo-gantt-line-size | Number | 2px | 2px |
Description
The size of the Gantt connecting lines. | |||
$kendo-gantt-line-fill | String | if($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-fill | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background fill of the selected Gantt connecting lines. | |||
$kendo-gantt-dot-size | Number | 8px | 8px |
Description
The size of the Gantt task dot. | |||
$kendo-gantt-dot-spacing | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The spacing of the Gantt task dot. | |||
$kendo-gantt-dot-bg | String | $kendo-gantt-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The background color of the Gantt task dot. | |||
$kendo-gantt-dot-border | Null | null | null |
Description
The border color of the Gantt task dot. | |||
$kendo-gantt-dot-hover-bg | String | $kendo-gantt-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the hovered Gantt task dot. | |||
$kendo-gantt-dot-hover-border | String | $kendo-gantt-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The border color of the hovered Gantt task dot. | |||
$kendo-gantt-milestone-bg | String | $kendo-gantt-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The background color of the Gantt milestone. | |||
$kendo-gantt-milestone-border | String | $kendo-gantt-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the Gantt milestone. | |||
$kendo-gantt-milestone-selected-bg | String | $kendo-selected-bg | var(--kendo-color-primary, #ff6358) |
Description
The background color of the selected Gantt milestone. | |||
$kendo-gantt-milestone-selected-border | String | $kendo-selected-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the selected Gantt milestone. | |||
$kendo-gantt-summary-bg | String | if($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-bg | String | if($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-bg | String | if($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-bg | String | $kendo-selected-bg | var(--kendo-color-primary, #ff6358) |
Description
The background color of the selected Gantt summary progress. | |||
$kendo-gantt-task-border-width | Number | 0px | 0px |
Description
The border width of the Gantt task. | |||
$kendo-gantt-task-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the Gantt task. | |||
$kendo-gantt-task-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Gantt task. | |||
$kendo-gantt-task-bg | String | if($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-text | String | if($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-border | Null | null | null |
Description
The border color of the Gantt task. | |||
$kendo-gantt-task-progress-bg | String | $kendo-gantt-text | var(--kendo-color-on-app-surface, #3d3d3d) |
Description
The background color of the Gantt task progress. | |||
$kendo-gantt-task-selected-bg | String | if($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-text | String | $kendo-selected-text | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the selected Gantt task. | |||
$kendo-gantt-task-selected-border | Null | null | null |
Description
The border color of the selected Gantt task. | |||
$kendo-gantt-task-progress-selected-bg | String | $kendo-selected-bg | var(--kendo-color-primary, #ff6358) |
Description
The background color of the selected Gantt task progress. | |||
$kendo-gantt-planned-margin-y | Number | .35em | 0.35em |
Description
The vertical margin of the Gantt task planned line. | |||
$kendo-gantt-planned-border-width | Number | 2px | 2px |
Description
The border width of the Gantt task planned line. | |||
$kendo-gantt-planned-line-height | Number | .75em | 0.75em |
Description
The line height of the Gantt task planned line. | |||
$kendo-gantt-planned-dependency-margin-y | Number | .55em | 0.55em |
Description
The vertical margin of the Gantt planned dependencies. | |||
$kendo-gantt-planned-moment-width | Number | 6px | 6px |
Description
The default width of the Gantt planned line dot. | |||
$kendo-gantt-planned-moment-height | Number | $kendo-gantt-planned-moment-width | 6px |
Description
The default height of the Gantt planned line dot. | |||
$kendo-gantt-planned-moment-border-radius | Calculation | calc( ( #{$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-x | Calculation | calc( #{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-x | Number | k-math-div( $kendo-gantt-planned-moment-width, 2 ) | 3px |
Description
The horizontal margin of the Gantt milestone planned line dot. | |||
$kendo-gantt-planned-duration-height | Number | $kendo-gantt-planned-border-width | 2px |
Description
The default height of the Gantt planned line. | |||
$kendo-gantt-planned-duration-hover-height | Calculation | calc( #{$kendo-gantt-planned-border-width} + 1px ) | calc(2px + 1px) |
Description
The height of the hovered Gantt planned line. | |||
$kendo-gantt-planned-single-drag-hint-top | Number | 0 | 0 |
Description
The top position of the Gantt drag hint. | |||
$kendo-gantt-planned-summary-drag-hint-top | Number | .5em | 0.5em |
Description
The top position of the Gantt summary drag hint. | |||
$kendo-gantt-planned-milestone-drag-hint-top | Number | .3em | 0.3em |
Description
The top position of the Gantt planned milestone drag hint. | |||
$kendo-gantt-rtl-milestone-wrap-margin-x | Number | -2.4em | -2.4em |
Description
The horizontal margin of the Gantt milestone wrap. | |||
$kendo-gantt-rtl-milestone-planned-moment-margin-x | Number | .2em | 0.2em |
Description
The horizontal margin of the Gantt milestone line dot. | |||
$kendo-gantt-rtl-milestone-dot-start-margin-x | Number | -.1em | -0.1em |
Description
The horizontal margin of the Gantt milestone task dot. | |||
$kendo-gantt-planned-offset-resize-handler-margin-x | Number | 1.4em | 1.4em |
Description
The horizontal offset of the Gantt delayed task resize handler. | |||
$kendo-gantt-planned-bg | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background color of the Gantt planned Tooltip. | |||
$kendo-gantt-planned-border | String | $kendo-gantt-planned-bg | var(--kendo-color-primary, #ff6358) |
Description
The border color of the Gantt planned Tooltip. | |||
$kendo-gantt-delayed-bg | String | $kendo-color-error | var(--kendo-color-error, #f31700) |
Description
The background color of the Gantt delayed task. | |||
$kendo-gantt-delayed-bg-lighter | String | if($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-bg | String | $kendo-color-success | var(--kendo-color-success, #37b400) |
Description
The background color of the Gantt advanced task. | |||
$kendo-gantt-advanced-bg-lighter | String | if($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-text | Color | #000000 | #000000 |
Description
The text color of the Gantt delayed task action. | |||
$kendo-gantt-offset-resize-handler-top | Number | 50% | 50% |
Description
The top position of the Gantt delayed task resize handler. | |||
$kendo-gantt-validation-tooltip-width | Number | 200px | 200px |
Description
The default width of the Gantt validation Tooltip. | |||
$kendo-gantt-validation-tooltip-label-width | Number | 50px | 50px |
Description
The default width of the Gantt validation Tooltip label. | |||
$kendo-gantt-validation-tooltip-border | Color | #656565 | #656565 |
Description
The border color of the Gantt validation Tooltip. | |||
$kendo-gantt-validation-tooltip-valid-border | String | $kendo-color-success | var(--kendo-color-success, #37b400) |
Description
The border color of the valid Gantt validation Tooltip. | |||
$kendo-gantt-validation-tooltip-invalid-border | String | $kendo-color-error | var(--kendo-color-error, #f31700) |
Description
The border color of the invalid Gantt validation Tooltip. |