New to Kendo UI for Angular? Start a free 30-day trial
Customizing Switch
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-switch-font-family | Null | null | null |
Description
The font family of the Switch. | |||
$kendo-switch-track-border-width | Null | null | null |
Description
The border width of the Switch track. | |||
$kendo-switch-thumb-border-width | Null | null | null |
Description
The border width of the Switch thumb. | |||
$kendo-switch-label-text-transform | Null | null | null |
Description
The text transform of the Switch label. | |||
$kendo-switch-label-display | String | none | none |
Description
The display of the Switch label. | |||
$kendo-switch-sizes | Map | (
sm: ( font-size: null, track-width: 26px, track-height: 12px, thumb-width: 16px, thumb-height: 16px, thumb-offset: -2px, label-offset: 0px ),
md: ( font-size: null, track-width: 32px, track-height: 14px, thumb-width: 20px, thumb-height: 20px, thumb-offset: -3px, label-offset: 0px ),
lg: ( font-size: null, track-width: 38px, track-height: 16px, thumb-width: 24px, thumb-height: 24px, thumb-offset: -4px, label-offset: 0px )
) | (sm: (font-size: null, track-width: 26px, track-height: 12px, thumb-width: 16px, thumb-height: 16px, thumb-offset: -2px, label-offset: 0px), md: (font-size: null, track-width: 32px, track-height: 14px, thumb-width: 20px, thumb-height: 20px, thumb-offset: -3px, label-offset: 0px), lg: (font-size: null, track-width: 38px, track-height: 16px, thumb-width: 24px, thumb-height: 24px, thumb-offset: -4px, label-offset: 0px)) |
Description
The map with the different Switch sizes. | |||
$kendo-switch-off-track-bg | Color | rgba( if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black ), .38 ) | rgba(0, 0, 0, 0.38) |
Description
The background of the track when the Switch is not checked. | |||
$kendo-switch-off-track-text | Null | null | null |
Description
The text color of the track when the Switch is not checked. | |||
$kendo-switch-off-track-border | Null | null | null |
Description
The border color of the track when the Switch is not checked | |||
$kendo-switch-off-track-gradient | Null | null | null |
Description
The background gradient of the track when the Switch is not checked. | |||
$kendo-switch-off-track-hover-bg | Null | null | null |
Description
The background of the track when the hovered Switch is not checked. | |||
$kendo-switch-off-track-hover-text | Null | null | null |
Description
The text color of the track when the hovered Switch is not checked. | |||
$kendo-switch-off-track-hover-border | Null | null | null |
Description
The border color of the track when the hovered Switch is not checked. | |||
$kendo-switch-off-track-hover-gradient | Null | null | null |
Description
The background gradient of the track when the hovered Switch is not checked. | |||
$kendo-switch-off-track-focus-bg | Null | null | null |
Description
The background of the track when the focused Switch is not checked. | |||
$kendo-switch-off-track-focus-text | Null | null | null |
Description
The text color of the track when the focused Switch is not checked. | |||
$kendo-switch-off-track-focus-border | Null | null | null |
Description
The border color of the track when the focused Switch is not checked. | |||
$kendo-switch-off-track-focus-gradient | Null | null | null |
Description
The background gradient of the track when the focused Switch is not checked. | |||
$kendo-switch-off-track-focus-ring | Null | null | null |
Description
The ring around the track when the focused Switch is not checked. | |||
$kendo-switch-off-track-disabled-bg | Null | null | null |
Description
The background of the track when the disabled Switch is not checked. | |||
$kendo-switch-off-track-disabled-text | Null | null | null |
Description
The text color of the track when the disabled Switch is not checked. | |||
$kendo-switch-off-track-disabled-border | Null | null | null |
Description
The border color of the track when the disabled Switch is not checked. | |||
$kendo-switch-off-track-disabled-gradient | Null | null | null |
Description
The background gradient of the track when the disabled Switch is not checked. | |||
$kendo-switch-off-thumb-bg | Color | if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white ) | #ffffff |
Description
The background of the thumb when the Switch is not checked. | |||
$kendo-switch-off-thumb-text | Null | null | null |
Description
The text color of the thumb when the Switch is not checked. | |||
$kendo-switch-off-thumb-border | Null | null | null |
Description
The border color of the thumb when the Switch is not checked. | |||
$kendo-switch-off-thumb-gradient | Null | null | null |
Description
The background gradient of the thumb when the Switch is not checked. | |||
$kendo-switch-off-thumb-hover-bg | Null | null | null |
Description
The background of the thumb when the hovered Switch is not checked. | |||
$kendo-switch-off-thumb-hover-text | Null | null | null |
Description
The text color of the thumb when the hovered Switch is not checked. | |||
$kendo-switch-off-thumb-hover-border | Null | null | null |
Description
The border color of the thumb when the hovered Switch is not checked. | |||
$kendo-switch-off-thumb-hover-gradient | Null | null | null |
Description
The background gradient of the thumb when the hovered Switch is not checked. | |||
$kendo-switch-on-track-bg | Color | rgba( $kendo-color-primary, .54 ) | rgba(63, 81, 181, 0.54) |
Description
The background of the track when the Switch is checked. | |||
$kendo-switch-on-track-text | Null | null | null |
Description
The text color of the track when the Switch is checked. | |||
$kendo-switch-on-track-border | Null | null | null |
Description
The border color of the track when the Switch is checked. | |||
$kendo-switch-on-track-gradient | Null | null | null |
Description
The background gradient of the track when the Switch is checked. | |||
$kendo-switch-on-track-hover-bg | Null | null | null |
Description
The background of the track when the hovered Switch is checked. | |||
$kendo-switch-on-track-hover-text | Null | null | null |
Description
The text color of the track when the hovered Switch is checked. | |||
$kendo-switch-on-track-hover-border | Null | null | null |
Description
The border color of the track when the hovered Switch is checked. | |||
$kendo-switch-on-track-hover-gradient | Null | null | null |
Description
The background gradient of the track when the hovered Switch is checked. | |||
$kendo-switch-on-track-focus-bg | Null | null | null |
Description
The background of the track when the focused Switch is checked. | |||
$kendo-switch-on-track-focus-text | Null | null | null |
Description
The text color of the track when the focused Switch is checked. | |||
$kendo-switch-on-track-focus-border | Null | null | null |
Description
The border color of the track when the focused Switch is checked. | |||
$kendo-switch-on-track-focus-gradient | Null | null | null |
Description
The background gradient of the track when the focused Switch is checked. | |||
$kendo-switch-on-track-focus-ring | Null | null | null |
Description
The ring around the track when the focused Switch is checked. | |||
$kendo-switch-on-track-disabled-bg | Null | null | null |
Description
The background of the track when the disabled Switch is checked. | |||
$kendo-switch-on-track-disabled-text | Null | null | null |
Description
The text color of the track when the disabled Switch is checked. | |||
$kendo-switch-on-track-disabled-border | Null | null | null |
Description
The border color of the track when the disabled Switch is checked. | |||
$kendo-switch-on-track-disabled-gradient | Null | null | null |
Description
The background gradient of the track when the disabled Switch is checked. | |||
$kendo-switch-on-thumb-bg | Color | $kendo-color-primary | #3f51b5 |
Description
The background of the thumb when the Switch is checked. | |||
$kendo-switch-on-thumb-text | Null | null | null |
Description
The text color of the thumb when the Switch is checked. | |||
$kendo-switch-on-thumb-border | Null | null | null |
Description
The border color of the thumb when the Switch is checked. | |||
$kendo-switch-on-thumb-gradient | Null | null | null |
Description
The background gradient of the thumb when the Switch is checked. | |||
$kendo-switch-on-thumb-hover-bg | Null | null | null |
Description
The background of the thumb when the hovered Switch is checked. | |||
$kendo-switch-on-thumb-hover-text | Null | null | null |
Description
The text color of the thumb when the hovered Switch is checked. | |||
$kendo-switch-on-thumb-hover-border | Null | null | null |
Description
The border color of the thumb when the hovered Switch is checked. | |||
$kendo-switch-on-thumb-hover-gradient | Null | null | null |
Description
The background gradient of the thumb when the hovered Switch is checked. |