New to Kendo UI for Vue? 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-familyList$kendo-font-familysystem-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
Description
The font family of input components.
$kendo-input-font-sizeNumber$kendo-font-size-md1rem
Description
The font size of input components.
$kendo-input-sm-font-sizeNumber$kendo-font-size-sm0.875rem
Description
The font size of the small Input components.
$kendo-input-md-font-sizeNumber$kendo-font-size-md1rem
Description
The font size of the medium Input components.
$kendo-input-lg-font-sizeNumber$kendo-font-size-md1rem
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-heightNumber$kendo-line-height-md1.5
Description
The line height of the medium Input components.
$kendo-input-lg-line-heightNumber$kendo-line-height-md1.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: $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: 0.875rem, 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: 1rem, line-height: 1.5, button-padding-x: 0.375rem, button-padding-y: 0.375rem), lg: (padding-x: 1rem, padding-y: 0.5rem, font-size: 1rem, line-height: 1.5, button-padding-x: 0.5rem, button-padding-y: 0.5rem))
Description
The sizes map for the Input components.
$kendo-input-bgColor$input-bg#ffffff
Description
The background color of the Input components.
$kendo-input-textColor$input-color#212529
Description
The text color of the Input components.
$kendo-input-borderColor$input-border-color#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-bgColor$input-focus-bg#ffffff
Description
The background color of the focused Input components.
$kendo-input-focus-textColor$input-focus-color#212529
Description
The text color of the focused Input components.
$kendo-input-focus-borderColor$input-focus-border-color#86b7fe
Description
The border color of the focused Input components.
$kendo-input-focus-shadowList$input-focus-box-shadow0 0 0 0.25rem rgba(13, 110, 253, 0.25)
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-textColor$kendo-base-text#212529
Description
The text color of the outline Input components.
$kendo-input-outline-borderColorif($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 50%, transparent), rgba( $kendo-base-text, .5 ))rgba(33, 37, 41, 0.5)
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-borderColor$kendo-input-focus-border#86b7fe
Description
The border color of the outline focused Input components.
$kendo-input-outline-focus-shadowList$kendo-input-focus-shadow0 0 0 0.25rem rgba(13, 110, 253, 0.25)
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-textColor$kendo-input-text#212529
Description
The text color of the flat Input components.
$kendo-input-flat-borderColor$kendo-input-border#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-borderColor$kendo-input-focus-border#86b7fe
Description
The border color of the flat focused Input components.
$kendo-input-flat-focus-shadowList$kendo-input-focus-shadow0 0 0 0.25rem rgba(13, 110, 253, 0.25)
Description
The shadow of the flat focused Input components.
$kendo-input-placeholder-textColor$input-placeholder-color#6c757d
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-yNumberk-map-get( $kendo-spacing, 0.5 )0.125rem
Description
The vertical margin of the clear value icon.
$kendo-input-values-margin-xNumber$kendo-input-values-margin-y0.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-textColor$kendo-component-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-textColor$kendo-subtle-text#6c757d
Description
The text color of the Input prefix.
$kendo-input-suffix-textColor$kendo-subtle-text#6c757d
Description
The text color of the Input suffix.
$kendo-input-invalid-borderColor$kendo-invalid-border#dc3545
Description
The border color of the invalid Input components.
$kendo-input-invalid-shadowList$kendo-invalid-shadow0 0 0 0.25rem rgba(220, 53, 69, 0.25)
Description
The shadow of the invalid Input components.

In this article

Not finding the help you need?