New to Kendo UI for AngularStart a free 30-day trial

Customizing ColorGradient

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-color-gradient-spacerStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The spacer of the ColorGradient.
$kendo-color-gradient-widthNumber272px272px
Description
The width of the ColorGradient.
$kendo-color-gradient-border-widthNumber1px1px
Description
The width of the border around the ColorGradient.
$kendo-color-gradient-border-radiusStringk-border-radius(md)var(--kendo-border-radius-md, 0.25rem)
Description
The border radius of the ColorGradient.
$kendo-color-gradient-padding-yString$kendo-color-gradient-spacervar(--kendo-spacing-3, 0.75rem)
Description
The vertical padding of the ColorGradient.
$kendo-color-gradient-padding-xString$kendo-color-gradient-padding-yvar(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the ColorGradient.
$kendo-color-gradient-gapString$kendo-color-gradient-spacervar(--kendo-spacing-3, 0.75rem)
Description
The spacing between the sections of the ColorGradient.
$kendo-color-gradient-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the ColorGradient.
$kendo-color-gradient-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the ColorGradient.
$kendo-color-gradient-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the ColorGradient.
$kendo-color-gradient-textString$kendo-component-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the ColorGradient.
$kendo-color-gradient-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the ColorGradient.
$kendo-color-gradient-borderString$kendo-component-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the ColorGradient.
$kendo-color-gradient-focus-borderNullnullnull
Description
The border color of the focused ColorGradient.
$kendo-color-gradient-focus-shadowStringk-elevation(3)var(--kendo-elevation-3, 0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12))
Description
The box shadow of the focused ColorGradient.
$kendo-color-gradient-canvas-border-radiusStringk-border-radius(md)var(--kendo-border-radius-md, 0.25rem)
Description
The border radius of the ColorGradient canvas.
$kendo-color-gradient-canvas-gapString$kendo-color-gradient-spacervar(--kendo-spacing-3, 0.75rem)
Description
The spacing between the items of the ColorGradient canvas.
$kendo-color-gradient-canvas-rectangle-heightNumber180px180px
Description
The height the ColorGradient canvas hsv rectangle.
$kendo-color-gradient-slider-track-sizeNumber10px10px
Description
The width of the ColorGradient slider.
$kendo-color-gradient-slider-border-radiusNumber10px10px
Description
The border radius of the ColorGradient slider.
$kendo-color-gradient-slider-draghandle-border-widthNumber3px3px
Description
The width of the border around the ColorGradient slider drag handle.
$kendo-color-gradient-slider-vertical-sizeNumber180px180px
Description
The height of the ColorGradient vertical slider.
$kendo-color-gradient-slider-horizontal-sizeNumber100%100%
Description
The width of the ColorGradient horizontal slider.
$kendo-color-gradient-draghandle-widthNumber14px14px
Description
The width of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-heightNumber14px14px
Description
The height of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-border-widthNumber1px1px
Description
The width of the border around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-outline-widthNumber1px1px
Description
The width of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-border-radiusNumber50%50%
Description
The border radius of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-textNullnullnull
Description
The text color of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-bgColortransparenttransparent
Description
The background color of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-borderColorrgba( $kendo-color-white, .8)rgba(255, 255, 255, 0.8)
Description
The color of the border around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowColorrgba( $kendo-color-black, .5 )rgba(0, 0, 0, 0.5)
Description
The color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-focus-shadowColor$kendo-color-black#000000
Description
The focus color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-hover-shadowColor$kendo-color-black#000000
Description
The hover color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowColork-elevation(2)rgba(0, 0, 0, 0.5)
Description
The box shadow of the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-margin-yNumber- k-math-div( $kendo-color-gradient-draghandle-height, 2 )-7px
Description
The vertical margin of the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-margin-xNumber- k-math-div( $kendo-color-gradient-draghandle-width, 2 )-7px
Description
The horizontal margin of the ColorGradient canvas drag handle.
$kendo-color-gradient-input-widthNumber46px46px
Description
The width of the ColorGradient input.
$kendo-color-gradient-input-gapCalculationcalc( #{$kendo-color-gradient-spacer} / 1.5 )calc(var(--kendo-spacing-3, 0.75rem) / 1.5)
Description
The spacing between the ColorGradient inputs.
$kendo-color-gradient-input-label-gapCalculationcalc( #{$kendo-color-gradient-spacer} / 3 )calc(var(--kendo-spacing-3, 0.75rem) / 3)
Description
The spacing between the ColorGradient inputs and their labels.
$kendo-color-gradient-input-label-textString$kendo-subtle-textvar(--kendo-color-subtle, #666666)
Description
The text color of the ColorGradient input labels.
$kendo-color-gradient-contrast-ratio-font-weightStringvar( --kendo-font-weight-bold, normal )var(--kendo-font-weight-bold, normal)
Description
The font weight of the ColorGradient contrast ratio text.
$kendo-color-gradient-contrast-spacerCalculationcalc( #{$kendo-color-gradient-spacer} / 1.5 )calc(var(--kendo-spacing-3, 0.75rem) / 1.5)
Description
The spacing between the items in the ColorGradient contrast tool.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support