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-tick-size | Null | null | null |
Description
The default size of the Slider tick. | |||
$kendo-slider-alt-size | Number | 30px | 30px |
Description
The default size of the Slider's track wrap. | |||
$kendo-slider-font-family | List | $kendo-font-family | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" |
Description
The font family of the Slider. | |||
$kendo-slider-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the Slider. | |||
$kendo-slider-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the Slider. | |||
$kendo-slider-button-offset | Number | 10px | 10px |
Description
The offset of the Slider Buttons. | |||
$kendo-slider-button-size | Number | ($kendo-slider-alt-size - 2) | 28px |
Description
The size of the Slider Buttons. | |||
$kendo-slider-button-spacing | Number | ($kendo-slider-button-size + $kendo-slider-button-offset) | 38px |
Description
The spacing of the Slider Buttons. | |||
$kendo-slider-button-focus-shadow | List | $kendo-button-focus-shadow | 0 0 0 0.25rem rgba(228, 231, 235, 0.5) |
Description
The shadow of the focused Slider Buttons. | |||
$kendo-slider-track-thickness | Number | 4px | 4px |
Description
The thickness of the Slider track. | |||
$kendo-slider-draghandle-size | Number | 14px | 14px |
Description
The size of the Slider drag handle. | |||
$kendo-slider-draghandle-border-width | Number | 1px | 1px |
Description
The border width of the Slider drag handle. | |||
$kendo-slider-draghandle-active-scale | Number | 1 | 1 |
Description
The transition scale of the active Slider drag handle. | |||
$kendo-slider-draghandle-active-size | Null | null | null |
Description
The size of the active Slider drag handle. | |||
$kendo-slider-draghandle-bg | Color | $kendo-color-primary | #0d6efd |
Description
The background color of the Slider drag handle. | |||
$kendo-slider-draghandle-text | Color | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-color-primary )) | white |
Description
The text color of the Slider drag handle. | |||
$kendo-slider-draghandle-border | Color | $kendo-color-primary | #0d6efd |
Description
The border color of the Slider drag handle. | |||
$kendo-slider-draghandle-gradient | Null | null | null |
Description
The gradient of the Slider drag handle. | |||
$kendo-slider-draghandle-hover-bg | Color | if($kendo-enable-color-system, k-color( primary-hover ), k-try-darken( $kendo-color-primary, 7.5% )) | #025ce2 |
Description
The background color of the hovered Slider drag handle. | |||
$kendo-slider-draghandle-hover-text | Color | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-color-primary )) | white |
Description
The text color of the hovered Slider drag handle. | |||
$kendo-slider-draghandle-hover-border | Color | if($kendo-enable-color-system, k-color( primary-hover ), k-try-darken( $kendo-color-primary, 10% )) | #0257d5 |
Description
The border color of the hovered Slider drag handle. | |||
$kendo-slider-draghandle-hover-gradient | Null | null | null |
Description
The gradient of the hovered Slider drag handle. | |||
$kendo-slider-draghandle-pressed-bg | Color | if($kendo-enable-color-system, k-color( primary-active ), k-try-darken( $kendo-color-primary, 10% )) | #0257d5 |
Description
The background color of the active Slider drag handle. | |||
$kendo-slider-draghandle-pressed-text | Color | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-color-primary )) | white |
Description
The text color of the active Slider drag handle. | |||
$kendo-slider-draghandle-pressed-border | Color | if($kendo-enable-color-system, k-color( primary-active ), k-try-darken( $kendo-color-primary, 12.5% )) | #0252c9 |
Description
The border color of the active Slider drag handle. | |||
$kendo-slider-draghandle-pressed-gradient | Null | null | null |
Description
The gradient of the active Slider drag handle. | |||
$kendo-slider-draghandle-focus-shadow | List | 0 0 0 3px if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 50%, transparent), rgba( $kendo-color-primary, .5 )) | 0 0 0 3px rgba(13, 110, 253, 0.5) |
Description
The shadow of the focused Slider drag handle. | |||
$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-draghandle-transition-speed | Number | .4s | 0.4s |
Description
The transition speed of the Slider drag handle. | |||
$kendo-slider-draghandle-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 drag handle. | |||
$kendo-slider-track-bg | Color | $gray-200 | #e9ecef |
Description
The background color of the Slider track. | |||
$kendo-slider-selection-bg | Color | $kendo-selected-bg | #0d6efd |
Description
The background color of the Slider's track selection. | |||
$kendo-slider-disabled-opacity | Null | null | null |