New to Kendo UI for Angular? Start a free 30-day trial
Customizing Checkbox
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-checkbox-border-width | Number | 1px | 1px |
Description
The border width of the CheckBox. | |||
$kendo-checkbox-sm-size | String | k-spacing(3) | var(--kendo-spacing-3, 0.75rem) |
Description
The size of a small CheckBox. | |||
$kendo-checkbox-md-size | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The size of a medium CheckBox. | |||
$kendo-checkbox-lg-size | String | k-spacing(5) | var(--kendo-spacing-5, 1.25rem) |
Description
The size of a large CheckBox. | |||
$kendo-checkbox-sm-glyph-size | String | k-spacing(2.5) | var(--kendo-spacing-2\.5, 0.625rem) |
Description
The glyph size of a small CheckBox. | |||
$kendo-checkbox-md-glyph-size | String | k-spacing(3.5) | var(--kendo-spacing-3\.5, 0.875rem) |
Description
The glyph size of a medium CheckBox. | |||
$kendo-checkbox-lg-glyph-size | String | k-spacing(4.5) | var(--kendo-spacing-4\.5, 1.125rem) |
Description
The glyph size of a large CheckBox. | |||
$kendo-checkbox-sm-ripple-size | Number | 300% | 300% |
Description
The ripple size of a small CheckBox. | |||
$kendo-checkbox-md-ripple-size | Number | 300% | 300% |
Description
The ripple size of a medium CheckBox. | |||
$kendo-checkbox-lg-ripple-size | Number | 300% | 300% |
Description
The ripple size of a large CheckBox. | |||
$kendo-checkbox-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the CheckBox. | |||
$kendo-checkbox-text | Null | null | null |
Description
The text color of the CheckBox. | |||
$kendo-checkbox-border | String | $kendo-component-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the CheckBox. | |||
$kendo-checkbox-hover-bg | Null | null | null |
Description
The background color of the hovered CheckBox. | |||
$kendo-checkbox-hover-text | Null | null | null |
Description
The text color of the hovered CheckBox. | |||
$kendo-checkbox-hover-border | Null | null | null |
Description
The border color of the hovered CheckBox. | |||
$kendo-checkbox-checked-bg | String | $kendo-color-primary | var(--kendo-color-primary, #ff6358) |
Description
The background color of the checked CheckBox. | |||
$kendo-checkbox-checked-text | String | if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-checkbox-checked-bg )) | var(--kendo-color-on-primary, #ffffff) |
Description
The text color of the checked CheckBox. | |||
$kendo-checkbox-checked-border | String | $kendo-checkbox-checked-bg | var(--kendo-color-primary, #ff6358) |
Description
The border color of the checked CheckBox. | |||
$kendo-checkbox-indeterminate-bg | String | $kendo-checkbox-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the indeterminate CheckBox. | |||
$kendo-checkbox-indeterminate-text | String | $kendo-checkbox-checked-bg | var(--kendo-color-primary, #ff6358) |
Description
The text color of the indeterminate CheckBox. | |||
$kendo-checkbox-indeterminate-border | String | $kendo-checkbox-border | var(--kendo-color-border, rgba(0, 0, 0, 0.08)) |
Description
The border color of the indeterminate CheckBox. | |||
$kendo-checkbox-focus-border | Null | null | null |
Description
The border color of the focused CheckBox. | |||
$kendo-checkbox-focus-shadow | List | 0 0 0 2px rgba(0, 0, 0, .06) | 0 0 0 2px rgba(0, 0, 0, 0.06) |
Description
The box shadow of the focused CheckBox. | |||
$kendo-checkbox-focus-checked-border | Null | null | null |
Description
The border color of the focused and checked CheckBox. | |||
$kendo-checkbox-focus-checked-shadow | List | 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 30%, transparent), rgba( $kendo-color-primary, .3 )) | 0 0 0 2px color-mix(in srgb, var(--kendo-color-primary, #ff6358) 30%, transparent) |
Description
The box shadow of the focused and checked CheckBox. | |||
$kendo-checkbox-disabled-bg | Null | null | null |
Description
The background color of the disabled CheckBox. | |||
$kendo-checkbox-disabled-text | Null | null | null |
Description
The text color of the disabled CheckBox. | |||
$kendo-checkbox-disabled-border | Null | null | null |
Description
The border color of the disabled CheckBox. | |||
$kendo-checkbox-disabled-checked-bg | Null | null | null |
Description
The background color of the disabled and checked CheckBox. | |||
$kendo-checkbox-disabled-checked-text | Null | null | null |
Description
The text color of the disabled and checked CheckBox. | |||
$kendo-checkbox-disabled-checked-border | Null | null | null |
Description
The border color of the disabled and checked CheckBox. | |||
$kendo-checkbox-invalid-bg | Null | null | null |
Description
The background color of an invalid CheckBox. | |||
$kendo-checkbox-invalid-text | String | $kendo-invalid-text | var(--kendo-color-error, #f31700) |
Description
The text color of an invalid CheckBox. | |||
$kendo-checkbox-invalid-border | String | $kendo-invalid-border | var(--kendo-color-error, #f31700) |
Description
The border color of an invalid CheckBox. | |||
$kendo-checkbox-indicator-type | String | image | image |
Description
The type of the CheckBox indicator. | |||
$kendo-checkbox-glyph-font-family | List | "WebComponentsIcons", monospace | "WebComponentsIcons", monospace |
Description
The font family of the CheckBox indicator glyph. | |||
$kendo-checkbox-checked-glyph | String | "\e118" | "\e118" |
Description
The glyph of the CheckBox indicator. | |||
$kendo-checkbox-indeterminate-glyph | String | "\e121" | "\e121" |
Description
The glyph of the indeterminate CheckBox indicator. | |||
$kendo-checkbox-checked-image | String | k-escape-svg( url("data:image/svg+xml,") ) | url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='var%28--kendo-color-on-primary, %23ffffff%29' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/%3e%3c/svg%3e") |
Description
The image for a checked CheckBox indicator. | |||
$kendo-checkbox-indeterminate-image | String | k-escape-svg( url("data:image/svg+xml,") ) | url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='var%28--kendo-color-primary, %23ff6358%29' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M4,8 h8'/%3e%3c/svg%3e") |
Description
The image for a indeterminate CheckBox indicator. | |||
$kendo-checkbox-label-margin-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal margin of the CheckBox inside a label. | |||
$kendo-checkbox-list-spacing | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The spacing between the items in a horizontal CheckBox list. | |||
$kendo-checkbox-list-item-padding-x | String | k-spacing(0) | var(--kendo-spacing-0, 0px) |
Description
The horizontal padding of the CheckBox list items. | |||
$kendo-checkbox-list-item-padding-y | String | $kendo-list-md-item-padding-y | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the CheckBox list items. | |||
$kendo-checkbox-ripple-bg | String | $kendo-checkbox-checked-bg | var(--kendo-color-primary, #ff6358) |
Description
The background color of the CheckBox' ripple. | |||
$kendo-checkbox-ripple-opacity | Number | .25 | 0.25 |
Description
The opacity of the CheckBox' ripple. |