New to Kendo UI for Angular? Start a free 30-day trial
Customizing Input
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-input-default-width | Number | 100% | 100% |
Description
The default width of the Input components. | |||
$kendo-input-border-width | Number | $input-border-width | 1px |
Description
The border width of the Input components. | |||
$kendo-input-border-radius | Null | null | null |
Description
The border radius of the Input components. | |||
$kendo-input-padding-x | Number | $input-padding-x | 0.75rem |
Description
The horizontal padding of the Input components. | |||
$kendo-input-sm-padding-x | Number | $input-padding-x-sm | 0.5rem |
Description
The horizontal padding of the small Input components. | |||
$kendo-input-md-padding-x | Number | $input-padding-x | 0.75rem |
Description
The horizontal padding of the medium Input components. | |||
$kendo-input-lg-padding-x | Number | $input-padding-x-lg | 1rem |
Description
The horizontal padding of the large Input components. | |||
$kendo-input-padding-y | Number | $input-padding-y | 0.375rem |
Description
The vertical padding of input components. | |||
$kendo-input-sm-padding-y | Number | $input-padding-y-sm | 0.25rem |
Description
The vertical padding of the small Input components. | |||
$kendo-input-md-padding-y | Number | $input-padding-y | 0.375rem |
Description
The vertical padding of the medium Input components. | |||
$kendo-input-lg-padding-y | Number | $input-padding-y-lg | 0.5rem |
Description
The vertical padding of the large Input components. | |||
$kendo-input-font-family | String | var( --kendo-font-family, inherit ) | var(--kendo-font-family, inherit) |
Description
The font family of input components. | |||
$kendo-input-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of input components. | |||
$kendo-input-sm-font-size | String | var( --kendo-font-size-sm, inherit )!default | var(--kendo-font-size-sm, inherit) |
Description
The font size of the small Input components. | |||
$kendo-input-md-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the medium Input components. | |||
$kendo-input-lg-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the large Input components. | |||
$kendo-input-line-height | Number | $input-line-height | 1.5 |
Description
The line height of input components. | |||
$kendo-input-sm-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the small Input components. | |||
$kendo-input-md-line-height | String | var( --kendo-line-height, normal) | var(--kendo-line-height, normal) |
Description
The line height of the medium Input components. | |||
$kendo-input-lg-line-height | String | var( --kendo-line-height, normal) | var(--kendo-line-height, normal) |
Description
The line height of the large Input components. | |||
$kendo-input-sizes | Map | (
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
)
) |
|
Description
The sizes map for the Input components. | |||
$kendo-input-bg | String | $input-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the Input components. | |||
$kendo-input-text | String | $input-color | var(--kendo-color-on-app-surface, #212529) |
Description
The text color of the Input components. | |||
$kendo-input-border | String | $input-border-color | var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2)) |
Description
The border color of the Input components. | |||
$kendo-input-shadow | Null | null | null |
Description
The shadow of the Input components. | |||
$kendo-input-hover-bg | Null | null | null |
Description
The background color of the hovered Input components. | |||
$kendo-input-hover-text | Null | null | null |
Description
The text color of the hovered Input components. | |||
$kendo-input-hover-border | Null | null | null |
Description
The border color of the hovered Input components. | |||
$kendo-input-hover-shadow | Null | null | null |
Description
The shadow of the hovered Input components. | |||
$kendo-input-focus-bg | String | $input-focus-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The background color of the focused Input components. | |||
$kendo-input-focus-text | String | $input-focus-color | var(--kendo-color-on-app-surface, #212529) |
Description
The text color of the focused Input components. | |||
$kendo-input-focus-border | String | $input-focus-border-color | var(--kendo-color-primary-emphasis, rgba(13, 110, 253, 0.4)) |
Description
The border color of the focused Input components. | |||
$kendo-input-focus-shadow | List | $input-focus-box-shadow | 0 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-bg | Null | null | null |
Description
The background color of the selected Input components. | |||
$kendo-input-selected-text | Null | null | null |
Description
The text color of the selected Input components. | |||
$kendo-input-disabled-bg | Null | null | null |
Description
The background color of the disabled Input components. | |||
$kendo-input-disabled-text | Null | null | null |
Description
The text color of the disabled Input components. | |||
$kendo-input-disabled-border | Null | null | null |
Description
The border color of the disabled Input components. | |||
$kendo-input-disabled-gradient | Null | null | null |
Description
The gradient of the disabled Input components. | |||
$kendo-input-disabled-shadow | Null | null | null |
Description
The shadow of the disabled Input components. | |||
$kendo-input-outline-bg | Null | null | null |
Description
The background color of the outline Input components. | |||
$kendo-input-outline-text | String | $kendo-base-text | var(--kendo-color-on-app-surface, #212529) |
Description
The text color of the outline Input components. | |||
$kendo-input-outline-border | String | if($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-bg | Null | null | null |
Description
The background color of the outline hovered Input components. | |||
$kendo-input-outline-hover-text | Null | null | null |
Description
The text color of the outline hovered Input components. | |||
$kendo-input-outline-hover-border | Null | null | null |
Description
The border color of the outline hovered Input components. | |||
$kendo-input-outline-focus-bg | Null | null | null |
Description
The background color of the outline focused Input components. | |||
$kendo-input-outline-focus-text | Null | null | null |
Description
The text color of the outline focused Input components. | |||
$kendo-input-outline-focus-border | String | $kendo-input-focus-border | var(--kendo-color-primary-emphasis, rgba(13, 110, 253, 0.4)) |
Description
The border color of the outline focused Input components. | |||
$kendo-input-outline-focus-shadow | List | $kendo-input-focus-shadow | 0 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-bg | Null | null | null |
Description
The background color of the flat Input components. | |||
$kendo-input-flat-text | String | $kendo-input-text | var(--kendo-color-on-app-surface, #212529) |
Description
The text color of the flat Input components. | |||
$kendo-input-flat-border | String | $kendo-input-border | var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2)) |
Description
The border color of the flat Input components. | |||
$kendo-input-flat-hover-bg | Null | null | null |
Description
The background color of the flat hovered Input components. | |||
$kendo-input-flat-hover-text | Null | null | null |
Description
The text color of the flat hovered Input components. | |||
$kendo-input-flat-hover-border | Null | $kendo-input-hover-border | null |
Description
The border color of the flat hovered Input components. | |||
$kendo-input-flat-focus-bg | Null | null | null |
Description
The background color of the flat focused Input components. | |||
$kendo-input-flat-focus-text | Null | null | null |
Description
The text color of the flat focused Input components. | |||
$kendo-input-flat-focus-border | String | $kendo-input-focus-border | var(--kendo-color-primary-emphasis, rgba(13, 110, 253, 0.4)) |
Description
The border color of the flat focused Input components. | |||
$kendo-input-flat-focus-shadow | List | $kendo-input-focus-shadow | 0 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-text | String | $input-placeholder-color | var(--kendo-color-subtle, #596169) |
Description
The text color of the Input placeholder. | |||
$kendo-input-placeholder-opacity | Number | 1 | 1 |
Description
The opacity of the Input placeholder. | |||
$kendo-input-clear-value-text | Null | null | null |
Description
The color of the Input clear value icon. | |||
$kendo-input-clear-value-opacity | Number | .5 | 0.5 |
Description
The opacity of the Input clear value icon. | |||
$kendo-input-clear-value-hover-text | Null | null | null |
Description
The color of the hovered Input clear value icon. | |||
$kendo-input-clear-value-hover-opacity | Number | 1 | 1 |
Description
The opacity of the hovered Input clear value icon. | |||
$kendo-input-values-margin-y | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The vertical margin of the clear value icon. | |||
$kendo-input-values-margin-x | String | $kendo-input-values-margin-y | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The horizontal margin of the clear value icon. | |||
$kendo-input-button-width | Null | null | null |
Description
The width of the Input button. | |||
$kendo-input-button-border-width | Number | 1px | 1px |
Description
The border width of the Input button. | |||
$kendo-input-spinner-width | Null | null | null |
Description
The width of the Input spinner button. | |||
$kendo-input-spinner-icon-offset | Null | null | null |
Description
The icon offset of the Input spinner button. | |||
$kendo-input-separator-text | String | $kendo-component-border | var(--kendo-color-border, rgba(33, 37, 41, 0.13)) |
Description
The color of the Input separator. | |||
$kendo-input-separator-opacity | Number | .5 | 0.5 |
Description
The opacity of the Input separator. | |||
$kendo-input-prefix-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #596169) |
Description
The text color of the Input prefix. | |||
$kendo-input-suffix-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #596169) |
Description
The text color of the Input suffix. | |||
$kendo-input-invalid-border | String | $kendo-invalid-border | var(--kendo-color-error, #dc3545) |
Description
The border color of the invalid Input components. | |||
$kendo-input-invalid-shadow | List | $kendo-invalid-shadow | 0 0 0 0.25rem color-mix(in srgb, var(--kendo-color-error, #dc3545) 25%, transparent) |
Description
The shadow of the invalid Input components. |