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

Customizing Slider

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-slider-size200px
Description
The default size of the Slider.
$kendo-slider-alt-size26px
Description
The default size of the Slider's track wrap.
$kendo-slider-spacingmap.get( $kendo-spacing, 2 )
Description
The spacing of the Slider.
$kendo-slider-font-familyvar( --kendo-font-family, inherit )
Description
The font family of the Slider.
$kendo-slider-font-sizevar( --kendo-font-size-sm, inherit )
Description
The font size of the Slider.
$kendo-slider-line-heightvar( --kendo-line-height, normal )
Description
The line height of the Slider.
$kendo-slider-textinherit
Description
The text color of the Slider.
$kendo-slider-track-sizemap.get( $kendo-spacing, 1 )
Description
The size of the Slider track.
$kendo-slider-track-border-radiusmap.get( $kendo-spacing, 0.5 )
Description
The border radius of the Slider track.
$kendo-slider-track-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
The background color of the Slider track.
$kendo-slider-track-borderinherit
Description
The border color of the Slider track.
$kendo-slider-track-hover-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
The background color of the hovered Slider track.
$kendo-slider-track-hover-borderinherit
Description
The border color of the hovered Slider track.
$kendo-slider-track-focus-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
The background color of the focused Slider track.
$kendo-slider-track-focus-borderinherit
Description
The border color of the focused Slider track.
$kendo-slider-selection-bgif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The background color of the Slider's track selection.
$kendo-slider-thumb-size16px
Description
The default size of the Slider thumb.
$kendo-slider-thumb-border-widthmap.get( $kendo-spacing, 0.5 )
Description
The default border width of the Slider thumb.
$kendo-slider-thumb-border-radius999em
Description
The border radius of the Slider thumb.
$kendo-slider-thumb-active-scalenull
Description
The transition scale of the active Slider thumb.
$kendo-slider-thumb-active-sizenull
Description
The size of the active Slider thumb.
$kendo-slider-thumb-bgvar( --kendo-component-bg, transparent )
Description
The background color of the Slider thumb.
$kendo-slider-thumb-textinherit
Description
The text color of the Slider thumb.
$kendo-slider-thumb-borderif($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ))
Description
The border color of the Slider thumb.
$kendo-slider-thumb-gradienttransparent
Description
The gradient of the Slider thumb.
$kendo-slider-thumb-hover-bg$kendo-slider-thumb-bg
Description
The background color of the hovered Slider thumb.
$kendo-slider-thumb-hover-textinherit
Description
The text color of the hovered Slider thumb.
$kendo-slider-thumb-hover-borderif($kendo-enable-color-system, k-color( primary-hover ), k-get-theme-color-var( primary-120 ))
Description
The border color of the hovered Slider thumb.
$kendo-slider-thumb-hover-gradienttransparent
Description
The gradient of the hovered Slider thumb.
$kendo-slider-thumb-active-bg$kendo-slider-thumb-hover-bg
Description
The background color of the active Slider thumb.
$kendo-slider-thumb-active-textinherit
Description
The text color of the active Slider thumb.
$kendo-slider-thumb-active-borderif($kendo-enable-color-system, k-color( primary-active ), k-get-theme-color-var( primary-130 ))
Description
The border color of the active Slider thumb.
$kendo-slider-thumb-active-gradienttransparent
Description
The gradient of the active Slider thumb.
$kendo-slider-thumb-focus-bg$kendo-slider-thumb-hover-bg
Description
The background color of the focused Slider thumb.
$kendo-slider-thumb-focus-textinherit
Description
The text color of the focused Slider thumb.
$kendo-slider-thumb-focus-border$kendo-slider-thumb-active-border
Description
The border color of the focused Slider thumb.
$kendo-slider-thumb-focus-gradienttransparent
Description
The gradient of the focused Slider thumb.
$kendo-slider-disabled-textif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 70%, transparent), k-get-theme-color-var( neutral-130 ))
Description
The text color of the disabled Slider.
$kendo-slider-track-disabled-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 6%, transparent), k-get-theme-color-var( neutral-20 ))
Description
The background color of the disabled Slider track.
$kendo-slider-selection-disabled-bgif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 46%, transparent), k-get-theme-color-var( neutral-90 ))
Description
The background color of the disabled Slider's track selection.
$kendo-slider-thumb-disabled-borderif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 28%, transparent), k-get-theme-color-var( neutral-60 ))
Description
The background color of the disabled Slider thumb.
$kendo-slider-transition-speed.3s
Description
The transition speed of the Slider.
$kendo-slider-transition-functionease-out
Description
The transition function of the Slider.
$kendo-slider-thumb-transition-speed.4s
Description
The transition speed of the Slider thumb.
$kendo-slider-thumb-transition-functioncubic-bezier(.25, .8, .25, 1)
Description
The transition function of the Slider thumb.

In this article

Not finding the help you need?