Customizing Badge

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-badge-bgvar( --kendo-component-bg, initial )
Description
The background color of the Badge.
$kendo-badge-textvar( --kendo-component-text, initial )
Description
The text color of the Badge.
$kendo-badge-bordervar( --kendo-component-border, initial )
Description
The border color of the Badge.
$kendo-badge-border-width1px
Description
The border width of the Badge.
$kendo-badge-font-weightvar( --kendo-font-weight, normal )
Description
The font weight of the Badge.
$kendo-badge-sm-padding-xmap.get( $kendo-spacing, 0.5 )
Description
Horizontal padding of the small Badge.
$kendo-badge-md-padding-xmap.get( $kendo-spacing, 1 )
Description
Horizontal padding of the medium Badge.
$kendo-badge-lg-padding-xmap.get( $kendo-spacing, 1.5 )
Description
Horizontal padding of the large Badge.
$kendo-badge-sm-padding-ymap.get( $kendo-spacing, 0.5 )
Description
Vertical padding of the small Badge.
$kendo-badge-md-padding-ymap.get( $kendo-spacing, 1 )
Description
Vertical padding of the medium Badge.
$kendo-badge-lg-padding-ymap.get( $kendo-spacing, 1.5 )
Description
Vertical padding of the large Badge.
$kendo-badge-sm-font-sizevar( --kendo-font-size-xs, inherit )
Description
The font size of the small Badge.
$kendo-badge-md-font-sizevar( --kendo-font-size-xs, inherit )
Description
The font size of the medium Badge.
$kendo-badge-lg-font-sizevar( --kendo-font-size-xs, inherit )
Description
The font size of the large Badge.
$kendo-badge-sm-line-heightvar( --kendo-line-height-xs, normal )
Description
The line height used along with the $kendo-font-size variable of the small Badge.
$kendo-badge-md-line-heightvar( --kendo-line-height-xs, normal )
Description
The line height used along with the $kendo-font-size variable of the medium Badge.
$kendo-badge-lg-line-heightvar( --kendo-line-height-xs, normal )
Description
The line height used along with the $kendo-font-size variable of the large Badge.
$kendo-badge-sm-min-widthcalc( #{$kendo-badge-sm-line-height} * 1em + #{$kendo-badge-sm-padding-y} * 2 + #{$kendo-badge-border-width} * 2 )
Description
The calculated minimum width of the small circular Badge.
$kendo-badge-md-min-widthcalc( #{$kendo-badge-md-line-height} * 1em + #{$kendo-badge-md-padding-y} * 2 + #{$kendo-badge-border-width} * 2 )
Description
The calculated minimum width of the medium circular Badge.
$kendo-badge-lg-min-widthcalc( #{$kendo-badge-lg-line-height} * 1em + #{$kendo-badge-lg-padding-y} * 2 + #{$kendo-badge-border-width} * 2 )
Description
The calculated minimum width of the large circular Badge.
$kendo-badge-sizes( sm: ( padding-x: $kendo-badge-sm-padding-x, padding-y: $kendo-badge-sm-padding-y, font-size: $kendo-badge-sm-font-size, line-height: $kendo-badge-sm-line-height, min-width: $kendo-badge-sm-min-width ), md: ( padding-x: $kendo-badge-md-padding-x, padding-y: $kendo-badge-md-padding-y, font-size: $kendo-badge-md-font-size, line-height: $kendo-badge-md-line-height, min-width: $kendo-badge-md-min-width ), lg: ( padding-x: $kendo-badge-lg-padding-x, padding-y: $kendo-badge-lg-padding-y, font-size: $kendo-badge-lg-font-size, line-height: $kendo-badge-lg-line-height, min-width: $kendo-badge-lg-min-width ) )
Description
The sizes map for the Badge.
$kendo-badge-brand-colors( primary: primary, error: error, success: success, info: info, secondary: if($kendo-enable-color-system, secondary, neutral), tertiary: tertiary, )
Description
The theme variations for the Badge.
$kendo-badge-theme-colors()
Description
The theme colors map for the Badge variations.

In this article

Not finding the help you need?