Customizing Cologradient

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-color-gradient-spacermap.get( $kendo-spacing, 4 )
Description
The spacer of the ColorGradient.
$kendo-color-gradient-width260px
Description
The width of the ColorGradient.
$kendo-color-gradient-border-width2px
Description
The width of the border around the ColorGradient.
$kendo-color-gradient-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
The border radius of the ColorGradient.
$kendo-color-gradient-padding-y$kendo-color-gradient-spacer
Description
The vertical padding of the ColorGradient.
$kendo-color-gradient-padding-xmath.div( $kendo-color-gradient-spacer, 2 )
Description
The horizontal padding of the ColorGradient.
$kendo-color-gradient-spacing$kendo-color-gradient-spacer
Description
The spacing between the sections of the ColorGradient.
$kendo-color-gradient-font-familyvar( --kendo-font-family, inherit )
Description
The font family of the ColorGradient.
$kendo-color-gradient-font-sizevar( --kendo-font-size, inherit )
Description
The font size of the ColorGradient.
$kendo-color-gradient-line-heightvar( --kendo-line-height, normal )
Description
The line height of the ColorGradient.
$kendo-color-gradient-textvar( --kendo-component-text, initial )
Description
The text color of the ColorGradient.
$kendo-color-gradient-bgvar( --kendo-component-bg, initial )
Description
The background color of the ColorGradient.
$kendo-color-gradient-bordervar( --kendo-component-border, initial )
Description
The border color of the ColorGradient.
$kendo-color-gradient-shadowvar( --kendo-box-shadow-depth-2, none )
Description
The box shadow of the ColorGradient.
$kendo-color-gradient-focus-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 10%, transparent), k-get-theme-color-var( neutral-20 ))
Description
The border color of the focused ColorGradient.
$kendo-color-gradient-focus-shadowvar( --kendo-box-shadow-depth-3, none )
Description
The box shadow of the focused ColorGradient.
$kendo-color-gradient-canvas-border-width0
Description
The width of the border around the ColorGradient canvas.
$kendo-color-gradient-canvas-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
The border radius of the ColorGradient canvas.
$kendo-color-gradient-canvas-spacingmath.div( $kendo-color-gradient-spacer, 2 )
Description
The spacing between the items of the ColorGradient canvas.
$kendo-color-gradient-canvas-rectangle-height180px
Description
The height the ColorGradient canvas hsv rectangle.
$kendo-color-gradient-canvas-rectangle-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 ))
Description
The border color of the ColorGradient canvas hsv rectangle.
$kendo-color-gradient-canvas-draghandle-shadowvar( --kendo-box-shadow-depth-2, none )
Description
The box shadow of the ColorGradient canvas drag handle.
$kendo-color-gradient-slider-track-size20px
Description
The width of the ColorGradient slider.
$kendo-color-gradient-slider-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
The border radius of the ColorGradient slider.
$kendo-color-gradient-slider-border-widthif($kendo-enable-color-system, 0, 1px)
Description
The width of the border around the ColorGradient slider.
$kendo-color-gradient-slider-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 ))
Description
The color of the border around the ColorGradient slider.
$kendo-color-gradient-slider-vertical-size180px
Description
The height of the ColorGradient vertical slider.
$kendo-color-gradient-slider-horizontal-size100%
Description
The width of the ColorGradient horizontal slider.
$kendo-color-gradient-slider-alpha-bgr"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC"
Description
The background image of the ColorGradient alpha slider.
$kendo-color-gradient-draghandle-width20px
Description
The width of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-height20px
Description
The height of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-border-width2px
Description
The width of the border around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-outline-width1px
Description
The width of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-borderif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The color of the border around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))
Description
The color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowvar( --kendo-box-shadow-depth-2, none )
Description
The box shadow of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-focus-borderif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)
Description
The color of the border around the focused ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-focus-shadowif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))
Description
The focus color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-hover-shadowif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))
Description
The hover color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-offset-y( -1 * math.div( $kendo-color-gradient-draghandle-height, 2 ) )
Description
The vertical offset of the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-offset-x( -1 * math.div( $kendo-color-gradient-draghandle-width, 2 ) )
Description
The horizontal offset of the ColorGradient canvas drag handle.
$kendo-color-gradient-input-width48px
Description
The width of the ColorGradient input.
$kendo-color-gradient-input-spacingmath.div( $kendo-color-gradient-spacer, 4 )
Description
The spacing between the ColorGradient inputs.
$kendo-color-gradient-input-label-font-sizevar( --kendo-font-size-sm, inherit )
Description
The font size of the ColorGradient input labels.
$kendo-color-gradient-input-label-spacingmath.div( $kendo-color-gradient-spacer, 4 )
Description
The spacing between the ColorGradient inputs and their labels.
$kendo-color-gradient-input-label-textvar( --kendo-subtle-text, inherit )
Description
The text color of the ColorGradient input labels.
$kendo-color-gradient-contrast-ratio-font-weightvar( --kendo-font-weight-bold, normal )
Description
The font weight of the ColorGradient contrast ratio text.
$kendo-color-gradient-contrast-spacingmath.div( $kendo-color-gradient-spacer, 1.5 )
Description
The spacing between the items in the ColorGradient contrast tool.

In this article

Not finding the help you need?