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

Customizing Checkbox

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-checkbox-border-widthNumber1px1px
Description
The border width of the CheckBox.
$kendo-checkbox-sm-sizeStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The size of a small CheckBox.
$kendo-checkbox-md-sizeStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The size of a medium CheckBox.
$kendo-checkbox-lg-sizeStringk-spacing(5)var(--kendo-spacing-5, 1.25rem)
Description
The size of a large CheckBox.
$kendo-checkbox-sm-glyph-sizeStringk-spacing(2.5)var(--kendo-spacing-2\.5, 0.625rem)
Description
The glyph size of a small CheckBox.
$kendo-checkbox-md-glyph-sizeStringk-spacing(3.5)var(--kendo-spacing-3\.5, 0.875rem)
Description
The glyph size of a medium CheckBox.
$kendo-checkbox-lg-glyph-sizeStringk-spacing(4.5)var(--kendo-spacing-4\.5, 1.125rem)
Description
The glyph size of a large CheckBox.
$kendo-checkbox-sm-ripple-sizeNumber300%300%
Description
The ripple size of a small CheckBox.
$kendo-checkbox-md-ripple-sizeNumber300%300%
Description
The ripple size of a medium CheckBox.
$kendo-checkbox-lg-ripple-sizeNumber300%300%
Description
The ripple size of a large CheckBox.
$kendo-checkbox-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of CheckBox.
$kendo-checkbox-textNullnullnull
Description
The text color of CheckBox.
$kendo-checkbox-borderStringif($kendo-enable-color-system, k-color( border-alt ), if( k-is-light( $kendo-checkbox-bg ), $gray-400, $gray-600 ))var(--kendo-color-border-alt, #ced4da)
Description
The border color of CheckBox.
$kendo-checkbox-hover-bgNullnullnull
Description
The background color of the hovered CheckBox.
$kendo-checkbox-hover-textNullnullnull
Description
The text color of the hovered CheckBox.
$kendo-checkbox-hover-borderNullnullnull
Description
The border color of the hovered CheckBox.
$kendo-checkbox-checked-bgString$kendo-color-primaryvar(--kendo-color-primary, #0d6efd)
Description
The background color of the checked CheckBox.
$kendo-checkbox-checked-textStringif($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-checkbox-checked-bg ))var(--kendo-color-on-primary, #ffffff)
Description
The color of the checked CheckBox.
$kendo-checkbox-checked-borderString$kendo-checkbox-checked-bgvar(--kendo-color-primary, #0d6efd)
Description
The border color of the checked CheckBox.
$kendo-checkbox-indeterminate-bgString$kendo-checkbox-checked-bgvar(--kendo-color-primary, #0d6efd)
Description
The background color of the indeterminate CheckBox.
$kendo-checkbox-indeterminate-textString$kendo-checkbox-checked-textvar(--kendo-color-on-primary, #ffffff)
Description
The text color of the indeterminate CheckBox.
$kendo-checkbox-indeterminate-borderString$kendo-checkbox-checked-bordervar(--kendo-color-primary, #0d6efd)
Description
The border color of the indeterminate CheckBox.
$kendo-checkbox-focus-borderStringif($kendo-enable-color-system, k-color( primary-emphasis ), k-try-tint( $kendo-color-primary, 50% ))var(--kendo-color-primary-emphasis, #6ea8fe)
Description
The border color of the focused CheckBox.
$kendo-checkbox-focus-shadowList0 0 0 .25rem if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-color-primary, .25 ))0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
Description
The box shadow of the focused CheckBox.
$kendo-checkbox-focus-checked-borderString$kendo-checkbox-checked-bordervar(--kendo-color-primary, #0d6efd)
Description
The border color of the focused and checked CheckBox.
$kendo-checkbox-focus-checked-shadowList$kendo-checkbox-focus-shadow0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
Description
The box shadow of the focused and checked CheckBox.
$kendo-checkbox-disabled-bgNullnullnull
Description
The background color of the disabled CheckBox.
$kendo-checkbox-disabled-textNullnullnull
Description
The text color of the disabled CheckBox.
$kendo-checkbox-disabled-borderNullnullnull
Description
The border color of the disabled CheckBox.
$kendo-checkbox-disabled-checked-bgNullnullnull
Description
The background color of the disabled and checked CheckBox.
$kendo-checkbox-disabled-checked-textNullnullnull
Description
The text color of the disabled and checked CheckBox.
$kendo-checkbox-disabled-checked-borderNullnullnull
Description
The border color of the disabled and checked CheckBox.
$kendo-checkbox-invalid-bgNullnullnull
Description
The background color of the invalid CheckBox.
$kendo-checkbox-invalid-textString$kendo-invalid-textvar(--kendo-color-error, #dc3545)
Description
The text color of the invalid CheckBox.
$kendo-checkbox-invalid-borderString$kendo-invalid-bordervar(--kendo-color-error, #dc3545)
Description
The border color of the invalid CheckBox.
$kendo-checkbox-indicator-typeStringimageimage
Description
The type of the CheckBox indicator.
$kendo-checkbox-glyph-font-familyList"WebComponentsIcons", monospace"WebComponentsIcons", monospace
Description
The font family of the CheckBox indicator glyph.
$kendo-checkbox-checked-glyphString"\e118""\e118"
Description
The glyph of the CheckBox indicator.
$kendo-checkbox-indeterminate-glyphString"\e121""\e121"
Description
The glyph of the indeterminate CheckBox indicator.
$kendo-checkbox-checked-imageStringk-escape-svg( url("data:image/svg+xml,") )url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='var%28--kendo-color-on-primary, %23ffffff%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e")
Description
The image for a checked CheckBox indicator.
$kendo-checkbox-indeterminate-imageStringk-escape-svg( url("data:image/svg+xml,") )url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='var%28--kendo-color-on-primary, %23ffffff%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")
Description
The image for a indeterminate CheckBox indicator.
$kendo-checkbox-label-margin-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal margin of the CheckBox inside a label.
$kendo-checkbox-list-spacingStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The spacing between the items in a horizontal CheckBox list.
$kendo-checkbox-list-item-padding-xStringk-spacing(0)var(--kendo-spacing-0, 0px)
Description
The horizontal padding of the CheckBox list items.
$kendo-checkbox-list-item-padding-yString$kendo-list-md-item-padding-yvar(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the CheckBox list items
$kendo-checkbox-ripple-bgString$kendo-checkbox-checked-bgvar(--kendo-color-primary, #0d6efd)
Description
The background color of the CheckBox' ripple.
$kendo-checkbox-ripple-opacityNumber.250.25
Description
The opacity of the CheckBox' ripple.

In this article

Not finding the help you need?