Customizing Input

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-input-default-widthNumber100%100%
Description
The default width of the Input components.
$kendo-input-border-widthNumber1px1px
Description
The border width of the Input components.
$kendo-input-border-radiusNullnullnull
Description
The border radius of the Input components.
$kendo-input-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the Input components.
$kendo-input-sm-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the small Input components.
$kendo-input-md-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the medium Input components.
$kendo-input-lg-padding-xStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The horizontal padding of the large Input components.
$kendo-input-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Input components.
$kendo-input-sm-padding-yStringk-spacing(1.5)var(--kendo-spacing-1\.5, 0.375rem)
Description
The vertical padding of the small Input components.
$kendo-input-md-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the medium Input components.
$kendo-input-lg-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the large Input components.
$kendo-input-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Input components.
$kendo-input-font-sizeStringvar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)
Description
The font size of the Input components.
$kendo-input-sm-font-sizeStringvar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)
Description
The font size of the small Input components.
$kendo-input-md-font-sizeStringvar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)
Description
The font size of the medium Input components.
$kendo-input-lg-font-sizeStringvar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)
Description
The font size of the large Input components.
$kendo-input-line-heightNumber1.251.25
Description
The line height of the Input components.
$kendo-input-sm-line-heightNumber1.251.25
Description
The line height of the small Input components.
$kendo-input-md-line-heightNumber1.251.25
Description
The line height of the medium Input components.
$kendo-input-lg-line-heightNumber1.51.5
Description
The line height of the large Input components.
$kendo-input-sizesMap( sm: ( padding-x: $kendo-input-sm-padding-x, padding-y: $kendo-input-sm-padding-y, font-size: $kendo-input-sm-font-size, line-height: $kendo-input-sm-line-height, button-padding-x: k-spacing(1), button-padding-y: k-spacing(1) ), md: ( padding-x: $kendo-input-md-padding-x, padding-y: $kendo-input-md-padding-y, font-size: $kendo-input-md-font-size, line-height: $kendo-input-md-line-height, button-padding-x: k-spacing(1), button-padding-y: k-spacing(1) ), lg: ( padding-x: $kendo-input-lg-padding-x, padding-y: $kendo-input-lg-padding-y, font-size: $kendo-input-lg-font-size, line-height: $kendo-input-lg-line-height, button-padding-x: k-spacing(1), button-padding-y: k-spacing(1) ) )(sm: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-1\.5, 0.375rem), font-size: var(--kendo-font-size-lg, inherit), line-height: 1.25, button-padding-x: var(--kendo-spacing-1, 0.25rem), button-padding-y: var(--kendo-spacing-1, 0.25rem)), md: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-2, 0.5rem), font-size: var(--kendo-font-size-lg, inherit), line-height: 1.25, button-padding-x: var(--kendo-spacing-1, 0.25rem), button-padding-y: var(--kendo-spacing-1, 0.25rem)), lg: (padding-x: var(--kendo-spacing-4, 1rem), padding-y: var(--kendo-spacing-2, 0.5rem), font-size: var(--kendo-font-size-lg, inherit), line-height: 1.5, button-padding-x: var(--kendo-spacing-1, 0.25rem), button-padding-y: var(--kendo-spacing-1, 0.25rem)))
Description
The sizes map for the Input components.
$kendo-input-bgStringif($kendo-enable-color-system, k-color( surface ), k-try-shade( $kendo-component-bg, .5 ))var(--kendo-color-surface, #f5f5f5)
Description
The background color of the Input components.
$kendo-input-textString$kendo-component-textvar(--kendo-color-on-app-surface, #212121)
Description
The text color of the Input components.
$kendo-input-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 44%, transparent), rgba( $kendo-component-border, .38 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 44%, transparent)
Description
The border color of the Input components.
$kendo-input-shadowNullnullnull
Description
The shadow of the Input components.
$kendo-input-hover-bgNullnullnull
Description
The background color of the hovered Input components.
$kendo-input-hover-textNullnullnull
Description
The text color of the hovered Input components.
$kendo-input-hover-borderString$kendo-input-textvar(--kendo-color-on-app-surface, #212121)
Description
The border color of the hovered Input components.
$kendo-input-hover-shadowNullnullnull
Description
The shadow of the hovered Input components.
$kendo-input-focus-bgNullnullnull
Description
The background color of the focused Input components.
$kendo-input-focus-textNullnullnull
Description
The text color of the focused Input components.
$kendo-input-focus-borderString$kendo-color-primaryvar(--kendo-color-primary, #3f51b5)
Description
The border color of the focused Input components.
$kendo-input-focus-shadowNullnullnull
Description
The shadow of the focused Input components.
$kendo-input-selected-bgNullnullnull
Description
The background color of the selected Input components.
$kendo-input-selected-textNullnullnull
Description
The text color of the selected Input components.
$kendo-input-disabled-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 3%, transparent), k-try-shade( $kendo-component-bg, .25 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 3%, transparent)
Description
The background color of the disabled Input components.
$kendo-input-disabled-textStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 27%, transparent), $kendo-disabled-text)color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 27%, transparent)
Description
The text color of the disabled Input components.
$kendo-input-disabled-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 3%, transparent), rgba( $kendo-component-border, k-math-div( k-color-alpha( $kendo-component-border ), 2 ) ))color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 3%, transparent)
Description
The border color of the disabled Input components.
$kendo-input-disabled-gradientNullnullnull
Description
The gradient of the disabled Input components.
$kendo-input-disabled-shadowNullnullnull
Description
The shadow of the disabled Input components.
$kendo-input-outline-bgNullnullnull
Description
The background color of the outline Input components.
$kendo-input-outline-textString$kendo-input-textvar(--kendo-color-on-app-surface, #212121)
Description
The text color of the outline Input components.
$kendo-input-outline-borderString$kendo-input-bordercolor-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 44%, transparent)
Description
The border color of the outline Input components.
$kendo-input-outline-hover-bgNullnullnull
Description
The background color of the outline hovered Input components.
$kendo-input-outline-hover-textNullnullnull
Description
The text color of the outline hovered Input components.
$kendo-input-outline-hover-borderString$kendo-input-hover-bordervar(--kendo-color-on-app-surface, #212121)
Description
The border color of the outline hovered Input components.
$kendo-input-outline-focus-bgNullnullnull
Description
The background color of the outline focused Input components.
$kendo-input-outline-focus-textNullnullnull
Description
The text color of the outline focused Input components.
$kendo-input-outline-focus-borderString$kendo-input-focus-bordervar(--kendo-color-primary, #3f51b5)
Description
The border color of the outline focused Input components.
$kendo-input-outline-focus-shadowNull$kendo-input-focus-shadownull
Description
The shadow of the outline focused Input components.
$kendo-input-flat-bgNullnullnull
Description
The background color of the flat Input components.
$kendo-input-flat-textString$kendo-input-textvar(--kendo-color-on-app-surface, #212121)
Description
The text color of the flat Input components.
$kendo-input-flat-borderString$kendo-input-bordercolor-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 44%, transparent)
Description
The border color of the flat Input components.
$kendo-input-flat-hover-bgNullnullnull
Description
The background color of the flat hovered Input components.
$kendo-input-flat-hover-textNullnullnull
Description
The text color of the flat hovered Input components.
$kendo-input-flat-hover-borderString$kendo-input-hover-bordervar(--kendo-color-on-app-surface, #212121)
Description
The border color of the flat hovered Input components.
$kendo-input-flat-focus-bgNullnullnull
Description
The background color of the flat focused Input components.
$kendo-input-flat-focus-textNullnullnull
Description
The text color of the flat focused Input components.
$kendo-input-flat-focus-borderString$kendo-input-focus-bordervar(--kendo-color-primary, #3f51b5)
Description
The border color of the flat focused Input components.
$kendo-input-flat-focus-shadowNull$kendo-input-focus-shadownull
Description
The shadow of the flat focused Input components.
$kendo-input-placeholder-textString$kendo-subtle-textvar(--kendo-color-subtle, #757575)
Description
The text color of the Input placeholder.
$kendo-input-placeholder-opacityNumber11
Description
The opacity of the Input placeholder.
$kendo-input-clear-value-textNullnullnull
Description
The color of the Input clear value icon.
$kendo-input-clear-value-opacityNumber.50.5
Description
The opacity of the Input clear value icon.
$kendo-input-clear-value-hover-textNullnullnull
Description
The color of the hovered Input clear value icon.
$kendo-input-clear-value-hover-opacityNumber11
Description
The opacity of the hovered Input clear value icon.
$kendo-input-values-margin-yStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The vertical margin of the clear value icon.
$kendo-input-values-margin-xString$kendo-input-values-margin-yvar(--kendo-spacing-0\.5, 0.125rem)
Description
The horizontal margin of the clear value icon.
$kendo-input-button-widthNullnullnull
Description
The width of the Input button.
$kendo-input-button-border-widthNumber1px1px
Description
The border width of the Input button.
$kendo-input-spinner-widthNullnullnull
Description
The width of the Input spinner button.
$kendo-input-spinner-icon-offsetNullnullnull
Description
The icon offset of the Input spinner button.
$kendo-input-separator-textString$kendo-component-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
The color of the Input separator.
$kendo-input-separator-opacityNumber.50.5
Description
The opacity of the Input separator.
$kendo-input-prefix-textString$kendo-subtle-textvar(--kendo-color-subtle, #757575)
Description
The text color of the Input prefix.
$kendo-input-suffix-textString$kendo-subtle-textvar(--kendo-color-subtle, #757575)
Description
The text color of the Input suffix.
$kendo-input-invalid-borderString$kendo-invalid-bordervar(--kendo-color-error, #f31700)
Description
The border color of the invalid Input components.
$kendo-input-invalid-shadowNull$kendo-invalid-shadownull
Description
The shadow of the invalid Input components.

In this article

Not finding the help you need?