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 | 1px | 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 | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the Input components. | |||
$kendo-input-sm-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the small Input components. | |||
$kendo-input-md-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the medium Input components. | |||
$kendo-input-lg-padding-x | String | k-spacing(4) | var(--kendo-spacing-4, 1rem) |
Description
The horizontal padding of the large Input components. | |||
$kendo-input-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the Input components. | |||
$kendo-input-sm-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The vertical padding of the small Input components. | |||
$kendo-input-md-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the medium Input components. | |||
$kendo-input-lg-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 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 the Input components. | |||
$kendo-input-font-size | String | var( --kendo-font-size-lg, inherit ) | var(--kendo-font-size-lg, inherit) |
Description
The font size of the Input components. | |||
$kendo-input-sm-font-size | String | var( --kendo-font-size-lg, inherit ) | var(--kendo-font-size-lg, inherit) |
Description
The font size of the small Input components. | |||
$kendo-input-md-font-size | String | var( --kendo-font-size-lg, inherit ) | var(--kendo-font-size-lg, inherit) |
Description
The font size of the medium Input components. | |||
$kendo-input-lg-font-size | String | var( --kendo-font-size-lg, inherit ) | var(--kendo-font-size-lg, inherit) |
Description
The font size of the large Input components. | |||
$kendo-input-line-height | Number | 1.25 | 1.25 |
Description
The line height of the Input components. | |||
$kendo-input-sm-line-height | Number | 1.25 | 1.25 |
Description
The line height of the small Input components. | |||
$kendo-input-md-line-height | Number | 1.25 | 1.25 |
Description
The line height of the medium Input components. | |||
$kendo-input-lg-line-height | Number | 1.5 | 1.5 |
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: 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-bg | String | if($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-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the Input components. | |||
$kendo-input-border | String | if($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-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 | String | $kendo-input-text | var(--kendo-color-on-app-surface, #212121) |
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 | Null | null | null |
Description
The background color of the focused Input components. | |||
$kendo-input-focus-text | Null | null | null |
Description
The text color of the focused Input components. | |||
$kendo-input-focus-border | String | $kendo-color-primary | var(--kendo-color-primary, #3f51b5) |
Description
The border color of the focused Input components. | |||
$kendo-input-focus-shadow | Null | null | null |
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 | String | if($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-text | String | if($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-border | String | if($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-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-input-text | var(--kendo-color-on-app-surface, #212121) |
Description
The text color of the outline Input components. | |||
$kendo-input-outline-border | String | $kendo-input-border | color-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-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 | String | $kendo-input-hover-border | var(--kendo-color-on-app-surface, #212121) |
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, #3f51b5) |
Description
The border color of the outline focused Input components. | |||
$kendo-input-outline-focus-shadow | Null | $kendo-input-focus-shadow | null |
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, #212121) |
Description
The text color of the flat Input components. | |||
$kendo-input-flat-border | String | $kendo-input-border | color-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-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 | String | $kendo-input-hover-border | var(--kendo-color-on-app-surface, #212121) |
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, #3f51b5) |
Description
The border color of the flat focused Input components. | |||
$kendo-input-flat-focus-shadow | Null | $kendo-input-focus-shadow | null |
Description
The shadow of the flat focused Input components. | |||
$kendo-input-placeholder-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #757575) |
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(0, 0, 0, 0.12)) |
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, #757575) |
Description
The text color of the Input prefix. | |||
$kendo-input-suffix-text | String | $kendo-subtle-text | var(--kendo-color-subtle, #757575) |
Description
The text color of the Input suffix. | |||
$kendo-input-invalid-border | String | $kendo-invalid-border | var(--kendo-color-error, #f31700) |
Description
The border color of the invalid Input components. | |||
$kendo-input-invalid-shadow | Null | $kendo-invalid-shadow | null |
Description
The shadow of the invalid Input components. |