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

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-widthNumber$input-border-width1px
Description
The border width of the Input components.
$kendo-input-border-radiusNullnullnull
Description
The border radius of the Input components.
$kendo-input-padding-xNumber$input-padding-x0.75rem
Description
The horizontal padding of the Input components.
$kendo-input-sm-padding-xNumber$input-padding-x-sm0.5rem
Description
The horizontal padding of the small Input components.
$kendo-input-md-padding-xNumber$input-padding-x0.75rem
Description
The horizontal padding of the medium Input components.
$kendo-input-lg-padding-xNumber$input-padding-x-lg1rem
Description
The horizontal padding of the large Input components.
$kendo-input-padding-yNumber$input-padding-y0.375rem
Description
The vertical padding of input components.
$kendo-input-sm-padding-yNumber$input-padding-y-sm0.25rem
Description
The vertical padding of the small Input components.
$kendo-input-md-padding-yNumber$input-padding-y0.375rem
Description
The vertical padding of the medium Input components.
$kendo-input-lg-padding-yNumber$input-padding-y-lg0.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 input components.
$kendo-input-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of input components.
$kendo-input-sm-font-sizeStringvar( --kendo-font-size-sm, inherit )!defaultvar(--kendo-font-size-sm, inherit)
Description
The font size of the small Input components.
$kendo-input-md-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the medium Input components.
$kendo-input-lg-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the large Input components.
$kendo-input-line-heightNumber$input-line-height1.5
Description
The line height of input components.
$kendo-input-sm-line-heightNumberk-math-div( 20, 14 )1.4285714286
Description
The line height of the small Input components.
$kendo-input-md-line-heightStringvar( --kendo-line-height, normal)var(--kendo-line-height, normal)
Description
The line height of the medium Input components.
$kendo-input-lg-line-heightStringvar( --kendo-line-height, normal)var(--kendo-line-height, normal)
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: $kendo-input-sm-padding-y, button-padding-y: $kendo-input-sm-padding-y ), 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: $kendo-input-md-padding-y, button-padding-y: $kendo-input-md-padding-y ), 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: $kendo-input-lg-padding-y, button-padding-y: $kendo-input-lg-padding-y ) )(sm: (padding-x: 0.5rem, padding-y: 0.25rem, font-size: var(--kendo-font-size-sm, inherit), line-height: 1.4285714286, button-padding-x: 0.25rem, button-padding-y: 0.25rem), md: (padding-x: 0.75rem, padding-y: 0.375rem, font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), button-padding-x: 0.375rem, button-padding-y: 0.375rem), lg: (padding-x: 1rem, padding-y: 0.5rem, font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), button-padding-x: 0.5rem, button-padding-y: 0.5rem))
Description
The sizes map for the Input components.
$kendo-input-bgString$input-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the Input components.
$kendo-input-textString$input-colorvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the Input components.
$kendo-input-borderString$input-border-colorvar(--kendo-color-border-alt, #ced4da)
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-borderNullnullnull
Description
The border color of the hovered Input components.
$kendo-input-hover-shadowNullnullnull
Description
The shadow of the hovered Input components.
$kendo-input-focus-bgString$input-focus-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the focused Input components.
$kendo-input-focus-textString$input-focus-colorvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the focused Input components.
$kendo-input-focus-borderString$input-focus-border-colorvar(--kendo-color-primary-emphasis, #6ea8fe)
Description
The border color of the focused Input components.
$kendo-input-focus-shadowList$input-focus-box-shadow0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
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-bgNullnullnull
Description
The background color of the disabled Input components.
$kendo-input-disabled-textNullnullnull
Description
The text color of the disabled Input components.
$kendo-input-disabled-borderNullnullnull
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-base-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the outline Input components.
$kendo-input-outline-borderStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 50%, transparent), rgba( $kendo-base-text, .5 ))color-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 50%, 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-borderNullnullnull
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-emphasis, #6ea8fe)
Description
The border color of the outline focused Input components.
$kendo-input-outline-focus-shadowList$kendo-input-focus-shadow0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
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, #212529)
Description
The text color of the flat Input components.
$kendo-input-flat-borderString$kendo-input-bordervar(--kendo-color-border-alt, #ced4da)
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-borderNull$kendo-input-hover-bordernull
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-emphasis, #6ea8fe)
Description
The border color of the flat focused Input components.
$kendo-input-flat-focus-shadowList$kendo-input-focus-shadow0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
Description
The shadow of the flat focused Input components.
$kendo-input-placeholder-textString$input-placeholder-colorvar(--kendo-color-subtle, #606970)
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, #dee2e6)
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, #606970)
Description
The text color of the Input prefix.
$kendo-input-suffix-textString$kendo-subtle-textvar(--kendo-color-subtle, #606970)
Description
The text color of the Input suffix.
$kendo-input-invalid-borderString$kendo-invalid-bordervar(--kendo-color-error, #dc3545)
Description
The border color of the invalid Input components.
$kendo-input-invalid-shadowList$kendo-invalid-shadow0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-error, #dc3545) 25%, transparent)
Description
The shadow of the invalid Input components.

In this article

Not finding the help you need?