New to Kendo UI for Angular? Start a free 30-day trial

Customizing Chip

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-chip-border-widthNumber1px1px
Description
The width of the border around the Chip.
$kendo-chip-spacingStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The spacing between the text and the icons of the Chip.
$kendo-chip-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the Chip.
$kendo-chip-sm-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the small Chip.
$kendo-chip-md-padding-xString$kendo-chip-padding-xvar(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the medium Chip.
$kendo-chip-lg-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the large Chip.
$kendo-chip-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the Chip.
$kendo-chip-sm-padding-yStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The vertical padding of the small Chip.
$kendo-chip-md-padding-yString$kendo-chip-padding-yvar(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the medium Chip.
$kendo-chip-lg-padding-yStringk-spacing(1.5)var(--kendo-spacing-1\.5, 0.375rem)
Description
The vertical padding of the large Chip.
$kendo-chip-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the Chip.
$kendo-chip-sm-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the small Chip.
$kendo-chip-md-font-sizeString$kendo-chip-font-sizevar(--kendo-font-size, inherit)
Description
The font size of the medium Chip.
$kendo-chip-lg-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the large Chip.
$kendo-chip-line-heightNumber11
Description
The Chip's line height that is related to the $kendo-font-size.
$kendo-chip-sm-line-heightNumber$kendo-chip-line-height1
Description
The small Chip's line height that is related to the $kendo-font-size.
$kendo-chip-md-line-heightNumber$kendo-chip-line-height1
Description
The medium Chip's line height that is related to the $kendo-font-size.
$kendo-chip-lg-line-heightNumber$kendo-chip-line-height1
Description
The large Chip's line height that is related to the $kendo-font-size.
$kendo-chip-calc-sizeCalculationcalc( #{$kendo-chip-line-height * 1em} + calc( #{$kendo-chip-padding-y} * 2 ) + #{$kendo-chip-border-width * 2} )calc(1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px)
Description
The calculated height of the Chip.
$kendo-chip-sizesMap( 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, inherit), line-height: 1), 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), 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))
Description
The map with the sizes of the Chip.
$kendo-chip-base-bgStringif($kendo-enable-color-system, k-color( base-subtle ), $kendo-button-bg)var(--kendo-color-base-subtle, #ebebeb)
Description
The base background of the Chip.
$kendo-chip-theme-colorsMap( "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-subtle, #ebebeb), "error": var(--kendo-color-error, #f31700), "info": var(--kendo-color-info, #0058e9), "warning": var(--kendo-color-warning, #ffc000), "success": var(--kendo-color-success, #37b400))
Description
The theme colors map for the Chip.
$kendo-chip-solid-bgString$kendo-chip-base-bgvar(--kendo-color-base-subtle, #ebebeb)
Description
The base background color of the solid Chip.
$kendo-chip-solid-textString$kendo-button-textvar(--kendo-color-on-base, #3d3d3d)
Description
The base text color of the solid Chip.
$kendo-chip-solid-borderString$kendo-button-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The base border color of the solid Chip.
$kendo-chip-solid-shadowList0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) ))0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent)
Description
The base shadow of the solid Chip.
$kendo-chip-solid-gradientNull$kendo-button-gradientnull
Description
The base gradient of the solid Chip.
$kendo-chip-solid-focus-bgNullnullnull
Description
The base background color of the focused solid Chip.
$kendo-chip-solid-focus-textNullnullnull
Description
The base text color of the focused solid Chip.
$kendo-chip-solid-hover-bgStringif($kendo-enable-color-system, k-color( base-subtle-hover ), $kendo-button-hover-bg)var(--kendo-color-base-subtle-hover, #e0e0e0)
Description
The base background color of the hovered solid Chip.
$kendo-chip-solid-hover-textNullnullnull
Description
The base text color of the hovered solid Chip.
$kendo-chip-solid-selected-bgString$kendo-button-active-bgvar(--kendo-color-base-active, #d6d6d6)
Description
The base background color of the selected solid Chip.
$kendo-chip-solid-selected-textNullnullnull
Description
The base text color of the selected solid Chip.
$kendo-chip-outline-bgString$kendo-component-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The base background color of the outline Chip.
$kendo-chip-outline-textStringif($kendo-enable-color-system, k-color( base-on-surface ), $kendo-chip-solid-text)var(--kendo-color-base-on-surface, #3d3d3d)
Description
The base text color of the outline Chip.
$kendo-chip-outline-borderString$kendo-chip-outline-textvar(--kendo-color-base-on-surface, #3d3d3d)
Description
The base border color of the outline Chip.
$kendo-chip-outline-shadowList0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) ))0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent)
Description
The base shadow of the outline Chip.
$kendo-chip-outline-hover-bgString$kendo-chip-outline-textvar(--kendo-color-base-on-surface, #3d3d3d)
Description
The base background color of the hovered outline Chip.
$kendo-chip-outline-hover-textStringif($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $kendo-chip-outline-hover-bg ))var(--kendo-color-base, #f5f5f5)
Description
The base text color of the hovered outline Chip.
$kendo-chip-outline-selected-bgString$kendo-chip-outline-hover-bgvar(--kendo-color-base-on-surface, #3d3d3d)
Description
The base background color of the selected outline Chip.
$kendo-chip-outline-selected-textString$kendo-chip-outline-hover-textvar(--kendo-color-base, #f5f5f5)
Description
The base text color of the selected outline Chip.
$kendo-chip-list-sizesMap( 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.

In this article

Not finding the help you need?