New to Kendo UI for Angular? Start a free 30-day trial
Customizing Slider
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-slider-size | Number | 200px | 200px |
Description
The default size of the Slider. | |||
$kendo-slider-alt-size | Number | 26px | 26px |
Description
The default size of the Slider's track wrap. | |||
$kendo-slider-spacing | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The spacing of the Slider. | |||
$kendo-slider-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of the Slider. | |||
$kendo-slider-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the Slider. | |||
$kendo-slider-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the Slider. | |||
$kendo-slider-text | String | inherit | inherit |
Description
The text color of the Slider. | |||
$kendo-slider-track-size | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The size of the Slider track. | |||
$kendo-slider-track-border-radius | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The border radius of the Slider track. | |||
$kendo-slider-track-bg | String | if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-60 )) | var(--kendo-color-base-emphasis, #605e5c) |
Description
The background color of the Slider track. | |||
$kendo-slider-track-border | String | inherit | inherit |
Description
The border color of the Slider track. | |||
$kendo-slider-track-hover-bg | String | if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-60 )) | var(--kendo-color-base-emphasis, #605e5c) |
Description
The background color of the hovered Slider track. | |||
$kendo-slider-track-hover-border | String | inherit | inherit |
Description
The border color of the hovered Slider track. | |||
$kendo-slider-track-focus-bg | String | if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-60 )) | var(--kendo-color-base-emphasis, #605e5c) |
Description
The background color of the focused Slider track. | |||
$kendo-slider-track-focus-border | String | inherit | inherit |
Description
The border color of the focused Slider track. | |||
$kendo-slider-selection-bg | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The background color of the Slider's track selection. | |||
$kendo-slider-thumb-size | Number | 16px | 16px |
Description
The default size of the Slider thumb. | |||
$kendo-slider-thumb-border-width | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The default border width of the Slider thumb. | |||
$kendo-slider-thumb-border-radius | Number | 999em | 999em |
Description
The border radius of the Slider thumb. | |||
$kendo-slider-thumb-active-scale | Null | null | null |
Description
The transition scale of the active Slider thumb. | |||
$kendo-slider-thumb-active-size | Null | null | null |
Description
The size of the active Slider thumb. | |||
$kendo-slider-thumb-bg | String | var( --kendo-component-bg, transparent ) | var(--kendo-component-bg, transparent) |
Description
The background color of the Slider thumb. | |||
$kendo-slider-thumb-text | String | inherit | inherit |
Description
The text color of the Slider thumb. | |||
$kendo-slider-thumb-border | String | if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 )) | var(--kendo-color-primary, #0078d4) |
Description
The border color of the Slider thumb. | |||
$kendo-slider-thumb-gradient | Color | transparent | transparent |
Description
The gradient of the Slider thumb. | |||
$kendo-slider-thumb-hover-bg | String | $kendo-slider-thumb-bg | var(--kendo-component-bg, transparent) |
Description
The background color of the hovered Slider thumb. | |||
$kendo-slider-thumb-hover-text | String | inherit | inherit |
Description
The text color of the hovered Slider thumb. | |||
$kendo-slider-thumb-hover-border | String | if($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-120 )) | var(--kendo-color-primary-hover, #106ebe) |
Description
The border color of the hovered Slider thumb. | |||
$kendo-slider-thumb-hover-gradient | Color | transparent | transparent |
Description
The gradient of the hovered Slider thumb. | |||
$kendo-slider-thumb-active-bg | String | $kendo-slider-thumb-hover-bg | var(--kendo-component-bg, transparent) |
Description
The background color of the active Slider thumb. | |||
$kendo-slider-thumb-active-text | String | inherit | inherit |
Description
The text color of the active Slider thumb. | |||
$kendo-slider-thumb-active-border | String | if($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-130 )) | var(--kendo-color-primary-active, #005a9e) |
Description
The border color of the active Slider thumb. | |||
$kendo-slider-thumb-active-gradient | Color | transparent | transparent |
Description
The gradient of the active Slider thumb. | |||
$kendo-slider-thumb-focus-bg | String | $kendo-slider-thumb-hover-bg | var(--kendo-component-bg, transparent) |
Description
The background color of the focused Slider thumb. | |||
$kendo-slider-thumb-focus-text | String | inherit | inherit |
Description
The text color of the focused Slider thumb. | |||
$kendo-slider-thumb-focus-border | String | $kendo-slider-thumb-active-border | var(--kendo-color-primary-active, #005a9e) |
Description
The border color of the focused Slider thumb. | |||
$kendo-slider-thumb-focus-gradient | Color | transparent | transparent |
Description
The gradient of the focused Slider thumb. | |||
$kendo-slider-disabled-text | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 70%, transparent), k-get-theme-color-var( neutral-130 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 70%, transparent) |
Description
The text color of the disabled Slider. | |||
$kendo-slider-track-disabled-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 6%, transparent), k-get-theme-color-var( neutral-20 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 6%, transparent) |
Description
The background color of the disabled Slider track. | |||
$kendo-slider-selection-disabled-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 46%, transparent), k-get-theme-color-var( neutral-90 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 46%, transparent) |
Description
The background color of the disabled Slider's track selection. | |||
$kendo-slider-thumb-disabled-border | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #323130) 28%, transparent) |
Description
The background color of the disabled Slider thumb. | |||
$kendo-slider-transition-speed | Number | .3s | 0.3s |
Description
The transition speed of the Slider. | |||
$kendo-slider-transition-function | String | ease-out | ease-out |
Description
The transition function of the Slider. | |||
$kendo-slider-thumb-transition-speed | Number | .4s | 0.4s |
Description
The transition speed of the Slider thumb. | |||
$kendo-slider-thumb-transition-function | String | cubic-bezier(.25, .8, .25, 1) | cubic-bezier(0.25, 0.8, 0.25, 1) |
Description
The transition function of the Slider thumb. |