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

Customizing Slider

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-slider-sizeNumber200px200px
Description
The default size of the Slider.
$kendo-slider-alt-sizeNumber26px26px
Description
The default size of the Slider's track wrap.
$kendo-slider-spacingStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The spacing of the Slider.
$kendo-slider-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Slider.
$kendo-slider-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the Slider.
$kendo-slider-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the Slider.
$kendo-slider-textStringinheritinherit
Description
The text color of the Slider.
$kendo-slider-track-sizeStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The size of the Slider track.
$kendo-slider-track-border-radiusStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The border radius of the Slider track.
$kendo-slider-track-bgStringif($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-borderStringinheritinherit
Description
The border color of the Slider track.
$kendo-slider-track-hover-bgStringif($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-borderStringinheritinherit
Description
The border color of the hovered Slider track.
$kendo-slider-track-focus-bgStringif($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-borderStringinheritinherit
Description
The border color of the focused Slider track.
$kendo-slider-selection-bgStringif($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-sizeNumber16px16px
Description
The default size of the Slider thumb.
$kendo-slider-thumb-border-widthStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The default border width of the Slider thumb.
$kendo-slider-thumb-border-radiusNumber999em999em
Description
The border radius of the Slider thumb.
$kendo-slider-thumb-active-scaleNullnullnull
Description
The transition scale of the active Slider thumb.
$kendo-slider-thumb-active-sizeNullnullnull
Description
The size of the active Slider thumb.
$kendo-slider-thumb-bgStringvar( --kendo-component-bg, transparent )var(--kendo-component-bg, transparent)
Description
The background color of the Slider thumb.
$kendo-slider-thumb-textStringinheritinherit
Description
The text color of the Slider thumb.
$kendo-slider-thumb-borderStringif($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-gradientColortransparenttransparent
Description
The gradient of the Slider thumb.
$kendo-slider-thumb-hover-bgString$kendo-slider-thumb-bgvar(--kendo-component-bg, transparent)
Description
The background color of the hovered Slider thumb.
$kendo-slider-thumb-hover-textStringinheritinherit
Description
The text color of the hovered Slider thumb.
$kendo-slider-thumb-hover-borderStringif($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-gradientColortransparenttransparent
Description
The gradient of the hovered Slider thumb.
$kendo-slider-thumb-active-bgString$kendo-slider-thumb-hover-bgvar(--kendo-component-bg, transparent)
Description
The background color of the active Slider thumb.
$kendo-slider-thumb-active-textStringinheritinherit
Description
The text color of the active Slider thumb.
$kendo-slider-thumb-active-borderStringif($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-gradientColortransparenttransparent
Description
The gradient of the active Slider thumb.
$kendo-slider-thumb-focus-bgString$kendo-slider-thumb-hover-bgvar(--kendo-component-bg, transparent)
Description
The background color of the focused Slider thumb.
$kendo-slider-thumb-focus-textStringinheritinherit
Description
The text color of the focused Slider thumb.
$kendo-slider-thumb-focus-borderString$kendo-slider-thumb-active-bordervar(--kendo-color-primary-active, #005a9e)
Description
The border color of the focused Slider thumb.
$kendo-slider-thumb-focus-gradientColortransparenttransparent
Description
The gradient of the focused Slider thumb.
$kendo-slider-disabled-textStringif($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-bgStringif($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-bgStringif($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-borderStringif($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-speedNumber.3s0.3s
Description
The transition speed of the Slider.
$kendo-slider-transition-functionStringease-outease-out
Description
The transition function of the Slider.
$kendo-slider-thumb-transition-speedNumber.4s0.4s
Description
The transition speed of the Slider thumb.
$kendo-slider-thumb-transition-functionStringcubic-bezier(.25, .8, .25, 1)cubic-bezier(0.25, 0.8, 0.25, 1)
Description
The transition function of the Slider thumb.

In this article

Not finding the help you need?