Sass Variables
The Telerik and Kendo UI Switch enables you to configure and customize its appearance through the available Sass variables.
Variable | Default Value | Computed Value | Value |
---|---|---|---|
kendo-switch-font-family | null | null | Default: null Computed: null |
Description: The font family of the Switch. | |||
kendo-switch-track-border-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The border width of the Switch track. | |||
kendo-switch-thumb-border-width | 1px | 1px | Default: 1px Computed: 1px |
Description: The border width of the Switch thumb. | |||
kendo-switch-label-text-transform | uppercase | uppercase | Default: uppercase Computed: uppercase |
Description: The text transform of the Switch label. | |||
kendo-switch-label-display | inline | inline | Default: inline Computed: inline |
Description: The display of the Switch label. | |||
kendo-switch-sizes | (
sm: ( font-size: 10px, track-width: 52px, track-height: 26px, thumb-width: 26px, thumb-height: 26px, thumb-offset: 0px, label-offset: 4px ),
md: ( font-size: 10px, track-width: 60px, track-height: 30px, thumb-width: 30px, thumb-height: 30px, thumb-offset: 0px, label-offset: 6px ),
lg: ( font-size: 10px, track-width: 68px, track-height: 34px, thumb-width: 34px, thumb-height: 34px, thumb-offset: 0px, label-offset: 8px )
) | (sm: (font-size: 10px, track-width: 52px, track-height: 26px, thumb-width: 26px, thumb-height: 26px, thumb-offset: 0px, label-offset: 4px), md: (font-size: 10px, track-width: 60px, track-height: 30px, thumb-width: 30px, thumb-height: 30px, thumb-offset: 0px, label-offset: 6px), lg: (font-size: 10px, track-width: 68px, track-height: 34px, thumb-width: 34px, thumb-height: 34px, thumb-offset: 0px, label-offset: 8px)) | Default: (
sm: ( font-size: 10px, track-width: 52px, track-height: 26px, thumb-width: 26px, thumb-height: 26px, thumb-offset: 0px, label-offset: 4px ),
md: ( font-size: 10px, track-width: 60px, track-height: 30px, thumb-width: 30px, thumb-height: 30px, thumb-offset: 0px, label-offset: 6px ),
lg: ( font-size: 10px, track-width: 68px, track-height: 34px, thumb-width: 34px, thumb-height: 34px, thumb-offset: 0px, label-offset: 8px )
) Computed: (sm: (font-size: 10px, track-width: 52px, track-height: 26px, thumb-width: 26px, thumb-height: 26px, thumb-offset: 0px, label-offset: 4px), md: (font-size: 10px, track-width: 60px, track-height: 30px, thumb-width: 30px, thumb-height: 30px, thumb-offset: 0px, label-offset: 6px), lg: (font-size: 10px, track-width: 68px, track-height: 34px, thumb-width: 34px, thumb-height: 34px, thumb-offset: 0px, label-offset: 8px)) |
Description: The map with the different Switch sizes. | |||
kendo-switch-off-track-bg | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) | Default: $kendo-component-bg Computed: var(--kendo-color-surface-alt, #ffffff) |
Description: The background of the track when the Switch is not checked. | |||
kendo-switch-off-track-text | $kendo-component-text | var(--kendo-color-on-app-surface, #3d3d3d) | Default: $kendo-component-text Computed: var(--kendo-color-on-app-surface, #3d3d3d) |
Description: The text color of the track when the Switch is not checked. | |||
kendo-switch-off-track-border | if($kendo-enable-color-system, k-color( border ), k-try-shade( $kendo-switch-off-track-bg, 8% )) | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) | Default: if($kendo-enable-color-system, k-color( border ), k-try-shade( $kendo-switch-off-track-bg, 8% )) Computed: var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description: The border color of the track when the Switch is not checked. | |||
kendo-switch-off-track-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the Switch is not checked. | |||
kendo-switch-off-track-hover-bg | null | null | Default: null Computed: null |
Description: The background of the track when the hovered Switch is not checked. | |||
kendo-switch-off-track-hover-text | null | null | Default: null Computed: null |
Description: The text color of the track when the hovered Switch is not checked. | |||
kendo-switch-off-track-hover-border | null | null | Default: null Computed: null |
Description: The border color of the track when the hovered Switch is not checked. | |||
kendo-switch-off-track-hover-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the hovered Switch is not checked. | |||
kendo-switch-off-track-focus-bg | null | null | Default: null Computed: null |
Description: The background of the track when the focused Switch is not checked. | |||
kendo-switch-off-track-focus-text | null | null | Default: null Computed: null |
Description: The text color of the track when the focused Switch is not checked. | |||
kendo-switch-off-track-focus-border | null | null | Default: null Computed: null |
Description: The border color of the track when the focused Switch is not checked. | |||
kendo-switch-off-track-focus-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the focused Switch is not checked. | |||
kendo-switch-off-track-focus-ring | 2px solid if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), rgba( if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black ) , .08 )) | 2px solid color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent) | Default: 2px solid if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), rgba( if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black ) , .08 )) Computed: 2px solid color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent) |
Description: The ring around the track when the focused Switch is not checked. | |||
kendo-switch-off-track-disabled-bg | null | null | Default: null Computed: null |
Description: The background of the track when the disabled Switch is not checked. | |||
kendo-switch-off-track-disabled-text | null | null | Default: null Computed: null |
Description: The text color of the track when the disabled Switch is not checked. | |||
kendo-switch-off-track-disabled-border | null | null | Default: null Computed: null |
Description: The border color of the track when the disabled Switch is not checked. | |||
kendo-switch-off-track-disabled-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the disabled Switch is not checked. | |||
kendo-switch-off-thumb-bg | $kendo-base-bg | var(--kendo-color-surface, #fafafa) | Default: $kendo-base-bg Computed: var(--kendo-color-surface, #fafafa) |
Description: The background of the thumb when the Switch is not checked. | |||
kendo-switch-off-thumb-text | $kendo-base-text | var(--kendo-color-on-app-surface, #3d3d3d) | Default: $kendo-base-text Computed: var(--kendo-color-on-app-surface, #3d3d3d) |
Description: The text color of the thumb when the Switch is not checked. | |||
kendo-switch-off-thumb-border | $kendo-base-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) | Default: $kendo-base-border Computed: var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description: The border color of the thumb when the Switch is not checked. | |||
kendo-switch-off-thumb-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the thumb when the Switch is not checked. | |||
kendo-switch-off-thumb-hover-bg | null | null | Default: null Computed: null |
Description: The background of the thumb when the hovered Switch is not checked. | |||
kendo-switch-off-thumb-hover-text | null | null | Default: null Computed: null |
Description: The text color of the thumb when the hovered Switch is not checked. | |||
kendo-switch-off-thumb-hover-border | null | null | Default: null Computed: null |
Description: The border color of the thumb when the hovered Switch is not checked. | |||
kendo-switch-off-thumb-hover-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the thumb when the hovered Switch is not checked. | |||
kendo-switch-on-track-bg | $kendo-color-primary | var(--kendo-color-primary, #ff6358) | Default: $kendo-color-primary Computed: var(--kendo-color-primary, #ff6358) |
Description: The background of the track when the Switch is checked. | |||
kendo-switch-on-track-text | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-switch-on-track-bg )) | var(--kendo-color-on-primary, #ffffff) | Default: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-switch-on-track-bg )) Computed: var(--kendo-color-on-primary, #ffffff) |
Description: The text color of the track when the Switch is checked. | |||
kendo-switch-on-track-border | $kendo-switch-on-track-bg | var(--kendo-color-primary, #ff6358) | Default: $kendo-switch-on-track-bg Computed: var(--kendo-color-primary, #ff6358) |
Description: The border color of the track when the Switch is checked. | |||
kendo-switch-on-track-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the Switch is checked. | |||
kendo-switch-on-track-hover-bg | null | null | Default: null Computed: null |
Description: The background of the track when the hovered Switch is checked. | |||
kendo-switch-on-track-hover-text | null | null | Default: null Computed: null |
Description: The text color of the track when the hovered Switch is checked. | |||
kendo-switch-on-track-hover-border | null | null | Default: null Computed: null |
Description: The border color of the track when the hovered Switch is checked. | |||
kendo-switch-on-track-hover-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the hovered Switch is checked. | |||
kendo-switch-on-track-focus-bg | null | null | Default: null Computed: null |
Description: The background of the track when the focused Switch is checked. | |||
kendo-switch-on-track-focus-text | null | null | Default: null Computed: null |
Description: The text color of the track when the focused Switch is checked. | |||
kendo-switch-on-track-focus-border | null | null | Default: null Computed: null |
Description: The border color of the track when the focused Switch is checked. | |||
kendo-switch-on-track-focus-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the focused Switch is checked. | |||
kendo-switch-on-track-focus-ring | 2px solid if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-switch-on-track-border, .25 )) | 2px solid color-mix(in srgb, var(--kendo-color-primary, #ff6358) 25%, transparent) | Default: 2px solid if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-switch-on-track-border, .25 )) Computed: 2px solid color-mix(in srgb, var(--kendo-color-primary, #ff6358) 25%, transparent) |
Description: The ring around the track when the focused Switch is checked. | |||
kendo-switch-on-track-disabled-bg | null | null | Default: null Computed: null |
Description: The background of the track when the disabled Switch is checked. | |||
kendo-switch-on-track-disabled-text | null | null | Default: null Computed: null |
Description: The text color of the track when the disabled Switch is checked. | |||
kendo-switch-on-track-disabled-border | null | null | Default: null Computed: null |
Description: The border color of the track when the disabled Switch is checked. | |||
kendo-switch-on-track-disabled-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the track when the disabled Switch is checked. | |||
kendo-switch-on-thumb-bg | $kendo-base-bg | var(--kendo-color-surface, #fafafa) | Default: $kendo-base-bg Computed: var(--kendo-color-surface, #fafafa) |
Description: The background of the thumb when the Switch is checked. | |||
kendo-switch-on-thumb-text | $kendo-base-text | var(--kendo-color-on-app-surface, #3d3d3d) | Default: $kendo-base-text Computed: var(--kendo-color-on-app-surface, #3d3d3d) |
Description: The text color of the thumb when the Switch is checked. | |||
kendo-switch-on-thumb-border | $kendo-base-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) | Default: $kendo-base-border Computed: var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description: The border color of the thumb when the Switch is checked. | |||
kendo-switch-on-thumb-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the thumb when the Switch is checked. | |||
kendo-switch-on-thumb-hover-bg | null | null | Default: null Computed: null |
Description: The background of the thumb when the hovered Switch is checked. | |||
kendo-switch-on-thumb-hover-text | null | null | Default: null Computed: null |
Description: The text color of the thumb when the hovered Switch is checked. | |||
kendo-switch-on-thumb-hover-border | null | null | Default: null Computed: null |
Description: The border color of the thumb when the hovered Switch is checked. | |||
kendo-switch-on-thumb-hover-gradient | null | null | Default: null Computed: null |
Description: The background gradient of the thumb when the hovered Switch is checked. |