Customizing Chip
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-chip-border-width | Number | 1px | 1px |
Description
The width of the border around the Chip. | |||
$kendo-chip-spacing | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The spacing between the text and the icons of the Chip. | |||
$kendo-chip-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the Chip. | |||
$kendo-chip-sm-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the small Chip. | |||
$kendo-chip-md-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the medium Chip. | |||
$kendo-chip-lg-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The horizontal padding of the large Chip. | |||
$kendo-chip-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the Chip. | |||
$kendo-chip-sm-padding-y | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The vertical padding of the small Chip. | |||
$kendo-chip-md-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
The vertical padding of the medium Chip. | |||
$kendo-chip-lg-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The vertical padding of the large Chip. | |||
$kendo-chip-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the Chip. | |||
$kendo-chip-sm-font-size | String | var( --kendo-font-size-sm, inherit ) | var(--kendo-font-size-sm, inherit) |
Description
The font size of the small Chip. | |||
$kendo-chip-md-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the medium Chip. | |||
$kendo-chip-line-height | Number | 1.25 | 1.25 |
Description
The Chip's line height that is related to the $kendo-font-size. | |||
$kendo-chip-sm-line-height | Number | $kendo-chip-line-height | 1.25 |
Description
The small Chip's line height that is related to the $kendo-font-size. | |||
$kendo-chip-md-line-height | Number | $kendo-chip-line-height | 1.25 |
Description
The medium Chip's line height that is related to the $kendo-font-size. | |||
$kendo-chip-lg-line-height | Number | $kendo-chip-line-height | 1.25 |
Description
The large Chip's line height that is related to the $kendo-font-size. | |||
$kendo-chip-calc-size | Calculation | calc( #{$kendo-chip-line-height * 1em} + calc( #{$kendo-chip-padding-y} * 2 ) + #{$kendo-chip-border-width * 2} ) | calc(1.25em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px) |
Description
The calculated height of the Chip. | |||
$kendo-chip-sizes | Map | (
sm: (
padding-x: $kendo-chip-sm-padding-x,
padding-y: $kendo-chip-sm-padding-y,
font-size: $kendo-chip-sm-font-size,
line-height: $kendo-chip-sm-line-height
),
md: (
padding-x: $kendo-chip-md-padding-x,
padding-y: $kendo-chip-md-padding-y,
font-size: $kendo-chip-md-font-size,
line-height: $kendo-chip-md-line-height
),
lg: (
padding-x: $kendo-chip-lg-padding-x,
padding-y: $kendo-chip-lg-padding-y,
font-size: $kendo-chip-lg-font-size,
line-height: $kendo-chip-lg-line-height
)
) | (sm: (padding-x: var(--kendo-spacing-1, 0.25rem), padding-y: var(--kendo-spacing-0\.5, 0.125rem), font-size: var(--kendo-font-size-sm, inherit), line-height: 1.25), md: (padding-x: var(--kendo-spacing-1, 0.25rem), padding-y: var(--kendo-spacing-1, 0.25rem), font-size: var(--kendo-font-size, inherit), line-height: 1.25), lg: (padding-x: var(--kendo-spacing-1, 0.25rem), padding-y: var(--kendo-spacing-1\.5, 0.375rem), font-size: var(--kendo-font-size, inherit), line-height: 1.25)) |
Description
The map with the sizes of the Chip. | |||
$kendo-chip-base-bg | String | $kendo-button-bg | var(--kendo-color-base, #dee2e6) |
Description
The base background color of the Chip. | |||
$kendo-chip-theme-colors | Map | (
"base": $kendo-chip-base-bg,
"error": k-map-get( $kendo-theme-colors, "error" ),
"info": k-map-get( $kendo-theme-colors, "info" ),
"warning": k-map-get( $kendo-theme-colors, "warning" ),
"success": k-map-get( $kendo-theme-colors, "success" )
) | ("base": var(--kendo-color-base, #dee2e6), "error": var(--kendo-color-error, #dc3545), "info": var(--kendo-color-info, #0dcaf0), "warning": var(--kendo-color-warning, #ffc107), "success": var(--kendo-color-success, #146c43)) |
Description
The theme colors map for the Chip. | |||
$kendo-chip-solid-bg | String | $kendo-chip-base-bg | var(--kendo-color-base, #dee2e6) |
Description
The base background color of the solid Chip. | |||
$kendo-chip-solid-text | String | $kendo-button-text | var(--kendo-color-on-base, #212529) |
Description
he base text color of the solid Chip. | |||
$kendo-chip-solid-border | String | $kendo-button-border | var(--kendo-color-base, #dee2e6) |
Description
The base border color of the solid Chip. | |||
$kendo-chip-solid-shadow | List | 0 0 0 2px rgba( $kendo-chip-base-bg, .16 ) | 0 0 0 2px rgba(var(--kendo-color-base, #dee2e6), 0.16) |
Description
The base shadow of the solid Chip. | |||
$kendo-chip-solid-gradient | Null | $kendo-button-gradient | null |
Description
The base gradient of the solid Chip. | |||
$kendo-chip-solid-focus-bg | Null | null | null |
Description
The base background color of the focused solid Chip. | |||
$kendo-chip-solid-focus-text | Null | null | null |
Description
The base text color of the focused solid Chip. | |||
$kendo-chip-solid-hover-bg | String | $kendo-button-hover-bg | var(--kendo-color-base-hover, #ced4da) |
Description
The base background color of the hovered solid Chip. | |||
$kendo-chip-solid-hover-text | Null | null | null |
Description
The base text color of the hovered solid Chip. | |||
$kendo-chip-solid-selected-bg | String | $kendo-button-active-bg | var(--kendo-color-base-active, #bdc4cb) |
Description
The base background color of the selected solid Chip. | |||
$kendo-chip-solid-selected-text | Null | null | null |
Description
The base text color of the selected solid Chip. | |||
$kendo-chip-outline-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
The base background color of the outline Chip. | |||
$kendo-chip-outline-text | String | $kendo-chip-solid-text | var(--kendo-color-on-base, #212529) |
Description
The base text color of the outline Chip. | |||
$kendo-chip-outline-border | String | $kendo-chip-outline-text | var(--kendo-color-on-base, #212529) |
Description
The base border color of the outline Chip. | |||
$kendo-chip-outline-shadow | List | 0 0 0 2px rgba( $kendo-chip-base-bg, .16 ) | 0 0 0 2px rgba(var(--kendo-color-base, #dee2e6), 0.16) |
Description
The base shadow of the outline Chip. | |||
$kendo-chip-outline-hover-bg | String | $kendo-chip-outline-text | var(--kendo-color-on-base, #212529) |
Description
The base background color of the hovered outline Chip. | |||
$kendo-chip-outline-hover-text | String | if($kendo-enable-color-system, k-color( base-subtle ), k-contrast-color( $kendo-chip-outline-hover-bg )) | var(--kendo-color-base-subtle, #e9ecef) |
Description
The base text color of the hovered outline Chip. | |||
$kendo-chip-outline-selected-bg | String | $kendo-chip-outline-hover-bg | var(--kendo-color-on-base, #212529) |
Description
The base background color of the selected outline Chip. | |||
$kendo-chip-outline-selected-text | String | $kendo-chip-outline-hover-text | var(--kendo-color-base-subtle, #e9ecef) |
Description
The base text color of the selected outline Chip. | |||
$kendo-chip-list-sizes | Map | (
sm: k-spacing(1),
md: k-spacing(1),
lg: k-spacing(1)
) | (sm: var(--kendo-spacing-1, 0.25rem), md: var(--kendo-spacing-1, 0.25rem), lg: var(--kendo-spacing-1, 0.25rem)) |
Description
The sizes of the Chip list. |