New to Kendo UI for Vue? Start a free 30-day trial

Customizing Cologradient

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-color-gradient-spacerStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The spacer of the ColorGradient.
$kendo-color-gradient-widthNumber260px260px
Description
The width of the ColorGradient.
$kendo-color-gradient-border-widthNumber2px2px
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-4, 1rem)
Description
The vertical padding of the ColorGradient.
$kendo-color-gradient-padding-xCalculationcalc( #{$kendo-color-gradient-spacer} / 2 )calc(var(--kendo-spacing-4, 1rem) / 2)
Description
The horizontal padding of the ColorGradient.
$kendo-color-gradient-spacingString$kendo-color-gradient-spacervar(--kendo-spacing-4, 1rem)
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-textStringvar( --kendo-component-text, initial )var(--kendo-component-text, initial)
Description
The text color of the ColorGradient.
$kendo-color-gradient-bgStringvar( --kendo-component-bg, initial )var(--kendo-component-bg, initial)
Description
The background color of the ColorGradient.
$kendo-color-gradient-borderStringvar( --kendo-component-border, initial )var(--kendo-component-border, initial)
Description
The border color of the ColorGradient.
$kendo-color-gradient-shadowStringvar( --kendo-box-shadow-depth-2, none )var(--kendo-box-shadow-depth-2, none)
Description
The box shadow of the ColorGradient.
$kendo-color-gradient-focus-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 10%, transparent), k-get-theme-color-var( neutral-20 ))color-mix(in srgb, var(--kendo-color-border, #8a8886) 10%, transparent)
Description
The border color of the focused ColorGradient.
$kendo-color-gradient-focus-shadowStringvar( --kendo-box-shadow-depth-3, none )var(--kendo-box-shadow-depth-3, none)
Description
The box shadow of the focused ColorGradient.
$kendo-color-gradient-canvas-border-widthNumber00
Description
The width of the border around the ColorGradient canvas.
$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-spacingCalculationcalc( #{$kendo-color-gradient-spacer} / 2 )calc(var(--kendo-spacing-4, 1rem) / 2)
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-canvas-rectangle-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 ))color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)
Description
The border color of the ColorGradient canvas hsv rectangle.
$kendo-color-gradient-canvas-draghandle-shadowStringvar( --kendo-box-shadow-depth-2, none )var(--kendo-box-shadow-depth-2, none)
Description
The box shadow of the ColorGradient canvas drag handle.
$kendo-color-gradient-slider-track-sizeNumber20px20px
Description
The width of the ColorGradient slider.
$kendo-color-gradient-slider-border-radiusStringk-border-radius(md)var(--kendo-border-radius-md, 0.25rem)
Description
The border radius of the ColorGradient slider.
$kendo-color-gradient-slider-border-widthNumberif($kendo-enable-color-system, 0, 1px)0
Description
The width of the border around the ColorGradient slider.
$kendo-color-gradient-slider-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 ))color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)
Description
The color of the border around the ColorGradient slider.
$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-slider-alpha-bgrString"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC""data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC"
Description
The background image of the ColorGradient alpha slider.
$kendo-color-gradient-draghandle-widthNumber20px20px
Description
The width of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-heightNumber20px20px
Description
The height of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-border-widthNumber2px2px
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-borderStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The color of the border around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowStringif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))var(--kendo-color-border, #8a8886)
Description
The color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-shadowStringvar( --kendo-box-shadow-depth-2, none )var(--kendo-color-border, #8a8886)
Description
The box shadow of the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-focus-borderStringif($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white)var(--kendo-color-app-surface, #ffffff)
Description
The color of the border around the focused ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-focus-shadowStringif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))var(--kendo-color-base-emphasis, #605e5c)
Description
The focus color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-draghandle-hover-shadowStringif($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 ))var(--kendo-color-base-emphasis, #605e5c)
Description
The hover color of the outline around the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-offset-yNumber( -1 * math.div( $kendo-color-gradient-draghandle-height, 2 ) )-10px
Description
The vertical offset of the ColorGradient canvas drag handle.
$kendo-color-gradient-canvas-draghandle-offset-xNumber( -1 * math.div( $kendo-color-gradient-draghandle-width, 2 ) )-10px
Description
The horizontal offset of the ColorGradient canvas drag handle.
$kendo-color-gradient-input-widthNumber48px48px
Description
The width of the ColorGradient input.
$kendo-color-gradient-input-spacingCalculationcalc( #{$kendo-color-gradient-spacer} / 4 )calc(var(--kendo-spacing-4, 1rem) / 4)
Description
The spacing between the ColorGradient inputs.
$kendo-color-gradient-input-label-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the ColorGradient input labels.
$kendo-color-gradient-input-label-spacingCalculationcalc( #{$kendo-color-gradient-spacer} / 4 )calc(var(--kendo-spacing-4, 1rem) / 4)
Description
The spacing between the ColorGradient inputs and their labels.
$kendo-color-gradient-input-label-textStringvar( --kendo-subtle-text, inherit )var(--kendo-subtle-text, inherit)
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-spacingCalculationcalc( #{$kendo-color-gradient-spacer} / 1.5 )calc(var(--kendo-spacing-4, 1rem) / 1.5)
Description
The spacing between the items in the ColorGradient contrast tool.

In this article

Not finding the help you need?