New to Kendo UI for Angular? Start a free 30-day trial
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 | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The spacing between the text and the icons of the Chip. | |||
$kendo-chip-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The horizontal padding of the Chip. | |||
$kendo-chip-sm-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The horizontal padding of the small Chip. | |||
$kendo-chip-md-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The horizontal padding of the medium Chip. | |||
$kendo-chip-lg-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The horizontal padding of the large Chip. | |||
$kendo-chip-padding-y | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The vertical padding of the Chip. | |||
$kendo-chip-sm-padding-y | Number | k-map-get( $kendo-spacing, 0.5 ) | 2px |
Description
The vertical padding of the small Chip. | |||
$kendo-chip-md-padding-y | Number | k-map-get( $kendo-spacing, 1 ) | 4px |
Description
The vertical padding of the medium Chip. | |||
$kendo-chip-lg-padding-y | Number | k-map-get( $kendo-spacing, 1.5 ) | 6px |
Description
The vertical padding of the large Chip. | |||
$kendo-chip-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the Chip. | |||
$kendo-chip-sm-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the small Chip. | |||
$kendo-chip-md-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the medium Chip. | |||
$kendo-chip-lg-font-size | Number | $kendo-font-size-md | 14px |
Description
The font size of the large Chip. | |||
$kendo-chip-line-height | Number | k-math-div( 18, 14 ) | 1.2857142857 |
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.2857142857 |
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.2857142857 |
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.2857142857 |
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} + #{$kendo-chip-padding-y * 2} + #{$kendo-chip-border-width * 2} ) | calc(1.2857142857em + 8px + 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: 4px, padding-y: 2px, font-size: 14px, line-height: 1.2857142857), md: (padding-x: 4px, padding-y: 4px, font-size: 14px, line-height: 1.2857142857), lg: (padding-x: 4px, padding-y: 6px, font-size: 14px, line-height: 1.2857142857)) |
Description
The map with the sizes of the Chip. | |||
$kendo-chip-base-bg | Color | if($kendo-enable-color-system, k-color( base-subtle ), if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black)) | #000000 |
Description
The base background 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": #000000, "error": #f31700, "info": #0058e9, "warning": #ffc000, "success": #37b400) |
Description
The theme colors map for the Chip. | |||
$kendo-chip-solid-bg | Color | if($kendo-enable-color-system, k-color( base-subtle ), if( $kendo-is-dark-theme, $kendo-button-bg, k-try-tint( $kendo-chip-base-bg, 92% ))) | #ebebeb |
Description
The base background color of the solid Chip. | |||
$kendo-chip-solid-text | Color | $kendo-button-text | rgba(0, 0, 0, 0.87) |
Description
The base text color of the solid Chip. | |||
$kendo-chip-solid-border | Color | $kendo-chip-solid-bg | #ebebeb |
Description
The base border color of the solid Chip. | |||
$kendo-chip-solid-shadow | Null | null | null |
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 | Color | if($kendo-enable-color-system, k-color( base-subtle-active ), k-try-tint( $kendo-chip-base-bg, 80% )) | #cccccc |
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 | Color | if($kendo-enable-color-system, k-color( base-subtle-hover ), k-try-tint( $kendo-chip-base-bg, 84% )) | #d6d6d6 |
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 | Color | if($kendo-enable-color-system, k-color( base-subtle-active ), k-try-tint( $kendo-chip-base-bg, 76% )) | #c2c2c2 |
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 | Color | $kendo-component-bg | #ffffff |
Description
The base background color of the outline Chip. | |||
$kendo-chip-outline-text | Color | $kendo-chip-solid-text | rgba(0, 0, 0, 0.87) |
Description
The base text color of the outline Chip. | |||
$kendo-chip-outline-border | Color | $kendo-chip-outline-text | rgba(0, 0, 0, 0.87) |
Description
The base border color of the outline Chip. | |||
$kendo-chip-outline-shadow | Null | null | null |
Description
The base shadow of the outline Chip. | |||
$kendo-chip-outline-hover-bg | Color | if($kendo-enable-color-system, k-color( base-subtle-hover ), k-try-tint( $kendo-chip-base-bg, 92% )) | #ebebeb |
Description
The base background color of the hovered outline Chip. | |||
$kendo-chip-outline-hover-text | Color | if($kendo-enable-color-system, k-color( base-on-subtle ), k-contrast-color( $kendo-chip-outline-hover-bg )) | black |
Description
The base text color of the hovered outline Chip. | |||
$kendo-chip-outline-selected-bg | Color | if($kendo-enable-color-system, k-color( base-subtle-active ), k-try-tint( $kendo-chip-base-bg, 84% )) | #d6d6d6 |
Description
The base background color of the selected outline Chip. | |||
$kendo-chip-outline-selected-text | Color | $kendo-chip-outline-hover-text | black |
Description
The base text color of the selected outline Chip. | |||
$kendo-chip-list-sizes | Map | (
sm: k-map-get( $kendo-spacing, 1 ),
md: k-map-get( $kendo-spacing, 1 ),
lg: k-map-get( $kendo-spacing, 1 )
) | (sm: 4px, md: 4px, lg: 4px) |
Description
The sizes of the Chip list. |