New to Kendo UI for Angular? Start a free 30-day trial
Customizing Badge
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-badge-bg | var( --kendo-component-bg, initial ) | ||
Description
The background color of the Badge. | |||
$kendo-badge-text | var( --kendo-component-text, initial ) | ||
Description
The text color of the Badge. | |||
$kendo-badge-border | var( --kendo-component-border, initial ) | ||
Description
The border color of the Badge. | |||
$kendo-badge-border-width | 1px | ||
Description
The border width of the Badge. | |||
$kendo-badge-font-weight | var( --kendo-font-weight, normal ) | ||
Description
The font weight of the Badge. | |||
$kendo-badge-sm-padding-x | map.get( $kendo-spacing, 0.5 ) | ||
Description
Horizontal padding of the small Badge. | |||
$kendo-badge-md-padding-x | map.get( $kendo-spacing, 1 ) | ||
Description
Horizontal padding of the medium Badge. | |||
$kendo-badge-lg-padding-x | map.get( $kendo-spacing, 1.5 ) | ||
Description
Horizontal padding of the large Badge. | |||
$kendo-badge-sm-padding-y | map.get( $kendo-spacing, 0.5 ) | ||
Description
Vertical padding of the small Badge. | |||
$kendo-badge-md-padding-y | map.get( $kendo-spacing, 1 ) | ||
Description
Vertical padding of the medium Badge. | |||
$kendo-badge-lg-padding-y | map.get( $kendo-spacing, 1.5 ) | ||
Description
Vertical padding of the large Badge. | |||
$kendo-badge-sm-font-size | var( --kendo-font-size-xs, inherit ) | ||
Description
The font size of the small Badge. | |||
$kendo-badge-md-font-size | var( --kendo-font-size-xs, inherit ) | ||
Description
The font size of the medium Badge. | |||
$kendo-badge-lg-font-size | var( --kendo-font-size-xs, inherit ) | ||
Description
The font size of the large Badge. | |||
$kendo-badge-sm-line-height | var( --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-height | var( --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-height | var( --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-width | calc( #{$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-width | calc( #{$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-width | calc( #{$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: neutral,
tertiary: tertiary,
) | ||
Description
The theme variations for the Badge. | |||
$kendo-badge-theme-colors | () | ||
Description
The theme colors map for the Badge variations. |