Customizing Cologradient
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-color-gradient-spacer | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The spacer of the ColorGradient. | |||
$kendo-color-gradient-width | Number | 260px | 260px |
Description
The width of the ColorGradient. | |||
$kendo-color-gradient-border-width | Number | 2px | 2px |
Description
The width of the border around the ColorGradient. | |||
$kendo-color-gradient-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the ColorGradient. | |||
$kendo-color-gradient-padding-y | String | $kendo-color-gradient-spacer | var(--kendo-spacing-4, 1rem) |
Description
The vertical padding of the ColorGradient. | |||
$kendo-color-gradient-padding-x | Calculation | calc( #{$kendo-color-gradient-spacer} / 2 ) | calc(var(--kendo-spacing-4, 1rem) / 2) |
Description
The horizontal padding of the ColorGradient. | |||
$kendo-color-gradient-spacing | String | $kendo-color-gradient-spacer | var(--kendo-spacing-4, 1rem) |
Description
The spacing between the sections of the ColorGradient. | |||
$kendo-color-gradient-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the ColorGradient. | |||
$kendo-color-gradient-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the ColorGradient. | |||
$kendo-color-gradient-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the ColorGradient. | |||
$kendo-color-gradient-text | String | var( --kendo-component-text, initial ) | var(--kendo-component-text, initial) |
Description
The text color of the ColorGradient. | |||
$kendo-color-gradient-bg | String | var( --kendo-component-bg, initial ) | var(--kendo-component-bg, initial) |
Description
The background color of the ColorGradient. | |||
$kendo-color-gradient-border | String | var( --kendo-component-border, initial ) | var(--kendo-component-border, initial) |
Description
The border color of the ColorGradient. | |||
$kendo-color-gradient-shadow | String | var( --kendo-box-shadow-depth-2, none ) | var(--kendo-box-shadow-depth-2, none) |
Description
The box shadow of the ColorGradient. | |||
$kendo-color-gradient-focus-border | String | if($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-shadow | String | var( --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-width | Number | 0 | 0 |
Description
The width of the border around the ColorGradient canvas. | |||
$kendo-color-gradient-canvas-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the ColorGradient canvas. | |||
$kendo-color-gradient-canvas-spacing | Calculation | calc( #{$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-height | Number | 180px | 180px |
Description
The height the ColorGradient canvas hsv rectangle. | |||
$kendo-color-gradient-canvas-rectangle-border | String | if($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-shadow | String | var( --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-size | Number | 20px | 20px |
Description
The width of the ColorGradient slider. | |||
$kendo-color-gradient-slider-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the ColorGradient slider. | |||
$kendo-color-gradient-slider-border-width | Number | if($kendo-enable-color-system, 0, 1px) | 0 |
Description
The width of the border around the ColorGradient slider. | |||
$kendo-color-gradient-slider-border | String | if($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-size | Number | 180px | 180px |
Description
The height of the ColorGradient vertical slider. | |||
$kendo-color-gradient-slider-horizontal-size | Number | 100% | 100% |
Description
The width of the ColorGradient horizontal slider. | |||
$kendo-color-gradient-slider-alpha-bgr | String | "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-width | Number | 20px | 20px |
Description
The width of the ColorGradient canvas drag handle. | |||
$kendo-color-gradient-draghandle-height | Number | 20px | 20px |
Description
The height of the ColorGradient canvas drag handle. | |||
$kendo-color-gradient-draghandle-border-width | Number | 2px | 2px |
Description
The width of the border around the ColorGradient canvas drag handle. | |||
$kendo-color-gradient-draghandle-outline-width | Number | 1px | 1px |
Description
The width of the outline around the ColorGradient canvas drag handle. | |||
$kendo-color-gradient-draghandle-border | String | if($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-shadow | String | if($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-shadow | String | var( --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-border | String | if($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-shadow | String | if($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-shadow | String | if($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-y | Number | ( -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-x | Number | ( -1 * math.div( $kendo-color-gradient-draghandle-width, 2 ) ) | -10px |
Description
The horizontal offset of the ColorGradient canvas drag handle. | |||
$kendo-color-gradient-input-width | Number | 48px | 48px |
Description
The width of the ColorGradient input. | |||
$kendo-color-gradient-input-spacing | Calculation | calc( #{$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-size | String | var( --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-spacing | Calculation | calc( #{$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-text | String | var( --kendo-subtle-text, inherit ) | var(--kendo-subtle-text, inherit) |
Description
The text color of the ColorGradient input labels. | |||
$kendo-color-gradient-contrast-ratio-font-weight | String | var( --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-spacing | Calculation | calc( #{$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. |