New to Kendo UI for Vue? 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 | String | var( --kendo-component-bg, initial ) | var(--kendo-component-bg, initial) |
Description
The background color of the Badge. | |||
$kendo-badge-text | String | var( --kendo-component-text, initial ) | var(--kendo-component-text, initial) |
Description
The text color of the Badge. | |||
$kendo-badge-border | String | var( --kendo-component-border, initial ) | var(--kendo-component-border, initial) |
Description
The border color of the Badge. | |||
$kendo-badge-border-width | Number | 1px | 1px |
Description
The border width of the Badge. | |||
$kendo-badge-font-weight | String | var( --kendo-font-weight, normal ) | var(--kendo-font-weight, normal) |
Description
The font weight of the Badge. | |||
$kendo-badge-sm-padding-x | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
Horizontal padding of the small Badge. | |||
$kendo-badge-md-padding-x | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
Horizontal padding of the medium Badge. | |||
$kendo-badge-lg-padding-x | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
Horizontal padding of the large Badge. | |||
$kendo-badge-sm-padding-y | String | k-spacing(0.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
Vertical padding of the small Badge. | |||
$kendo-badge-md-padding-y | String | k-spacing(1) | var(--kendo-spacing-1, 0.25rem) |
Description
Vertical padding of the medium Badge. | |||
$kendo-badge-lg-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
Vertical padding of the large Badge. | |||
$kendo-badge-sm-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the small Badge. | |||
$kendo-badge-md-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the medium Badge. | |||
$kendo-badge-lg-font-size | String | var( --kendo-font-size-xs, inherit ) | var(--kendo-font-size-xs, inherit) |
Description
The font size of the large Badge. | |||
$kendo-badge-sm-line-height | String | var( --kendo-line-height-xs, normal ) | 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 | String | var( --kendo-line-height-xs, normal ) | 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 | String | var( --kendo-line-height-xs, normal ) | 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 | Calculation | calc( #{$kendo-badge-sm-line-height} * 1em + #{$kendo-badge-sm-padding-y} * 2 + #{$kendo-badge-border-width} * 2 ) | calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-0\.5, 0.125rem) * 2 + 1px * 2) |
Description
The calculated minimum width of the small circular Badge. | |||
$kendo-badge-md-min-width | Calculation | calc( #{$kendo-badge-md-line-height} * 1em + #{$kendo-badge-md-padding-y} * 2 + #{$kendo-badge-border-width} * 2 ) | calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 1px * 2) |
Description
The calculated minimum width of the medium circular Badge. | |||
$kendo-badge-lg-min-width | Calculation | calc( #{$kendo-badge-lg-line-height} * 1em + #{$kendo-badge-lg-padding-y} * 2 + #{$kendo-badge-border-width} * 2 ) | calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 1px * 2) |
Description
The calculated minimum width of the large circular Badge. | |||
$kendo-badge-sizes | Map | (
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
)
) | (sm: (padding-x: var(--kendo-spacing-0\.5, 0.125rem), padding-y: var(--kendo-spacing-0\.5, 0.125rem), font-size: var(--kendo-font-size-xs, inherit), line-height: var(--kendo-line-height-xs, normal), min-width: calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-0\.5, 0.125rem) * 2 + 1px * 2)), md: (padding-x: var(--kendo-spacing-1, 0.25rem), padding-y: var(--kendo-spacing-1, 0.25rem), font-size: var(--kendo-font-size-xs, inherit), line-height: var(--kendo-line-height-xs, normal), min-width: calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 1px * 2)), lg: (padding-x: var(--kendo-spacing-1\.5, 0.375rem), padding-y: var(--kendo-spacing-1\.5, 0.375rem), font-size: var(--kendo-font-size-xs, inherit), line-height: var(--kendo-line-height-xs, normal), min-width: calc(var(--kendo-line-height-xs, normal) * 1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 1px * 2))) |
Description
The sizes map for the Badge. | |||
$kendo-badge-brand-colors | Map | (
primary: primary,
error: error,
success: success,
info: info,
secondary: if($kendo-enable-color-system, secondary, neutral),
tertiary: tertiary,
) | (primary: primary, error: error, success: success, info: info, secondary: secondary, tertiary: tertiary) |
Description
The theme variations for the Badge. | |||
$kendo-badge-theme-colors | Map | () | (solid: (primary: (bg: var(--kendo-color-primary, #0078d4), text: var(--kendo-color-on-primary, #ffffff), border: var(--kendo-color-primary, #0078d4)), error: (bg: var(--kendo-color-error, #c2666b), text: var(--kendo-color-on-error, #ffffff), border: var(--kendo-color-error, #c2666b)), success: (bg: var(--kendo-color-success, #55a554), text: var(--kendo-color-on-success, #ffffff), border: var(--kendo-color-success, #55a554)), info: (bg: var(--kendo-color-info, #0a7eff), text: var(--kendo-color-on-info, #ffffff), border: var(--kendo-color-info, #0a7eff)), secondary: (bg: var(--kendo-color-secondary, #979593), text: var(--kendo-color-on-secondary, #ffffff), border: var(--kendo-color-secondary, #979593)), tertiary: (bg: var(--kendo-color-tertiary, #2b88d8), text: var(--kendo-color-on-tertiary, #ffffff), border: var(--kendo-color-tertiary, #2b88d8)), warning: (bg: var(--kendo-color-warning, #ffc80a), text: var(--kendo-color-on-warning, #323130), border: var(--kendo-color-warning, #ffc80a)), dark: (bg: var(--kendo-color-dark, #323130), text: var(--kendo-color-on-dark, #ffffff), border: var(--kendo-color-dark, #323130)), light: (bg: var(--kendo-color-light, #d2d0ce), text: var(--kendo-color-on-light, #323130), border: var(--kendo-color-light, #d2d0ce))), outline: (primary: (bg: transparent, text: var(--kendo-color-primary, #0078d4), border: var(--kendo-color-primary, #0078d4)), error: (bg: transparent, text: var(--kendo-color-error, #c2666b), border: var(--kendo-color-error, #c2666b)), success: (bg: transparent, text: var(--kendo-color-success, #55a554), border: var(--kendo-color-success, #55a554)), info: (bg: transparent, text: var(--kendo-color-info, #0a7eff), border: var(--kendo-color-info, #0a7eff)), secondary: (bg: transparent, text: var(--kendo-color-secondary, #979593), border: var(--kendo-color-secondary, #979593)), tertiary: (bg: transparent, text: var(--kendo-color-tertiary, #2b88d8), border: var(--kendo-color-tertiary, #2b88d8)), warning: (bg: transparent, text: var(--kendo-color-warning, #ffc80a), border: var(--kendo-color-warning, #ffc80a)), dark: (bg: transparent, text: var(--kendo-color-dark, #323130), border: var(--kendo-color-dark, #323130)), light: (bg: transparent, text: var(--kendo-color-light, #d2d0ce), border: var(--kendo-color-light, #d2d0ce)))) |
Description
The theme colors map for the Badge variations. |