Customizing Avatar

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-avatar-border-widthNumber1px1px
Description
The border width of the Avatar.
$kendo-avatar-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Avatar.
$kendo-avatar-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the Avatar.
$kendo-avatar-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the Avatar.
$kendo-avatar-sizesMap( sm: k-spacing(4), md: k-spacing(8), lg: k-spacing(16) )
  • sm: var(--kendo-spacing-4, 1rem)
  • md: var(--kendo-spacing-8, 2rem)
  • lg: var(--kendo-spacing-16, 4rem)
Description
The sizes map of the Avatar.
$kendo-avatar-theme-colorsMap$kendo-theme-colors
  • primary: var(--kendo-color-primary, #ff6358)
  • secondary: var(--kendo-color-secondary, #666666)
  • tertiary: var(--kendo-color-tertiary, #03a9f4)
  • info: var(--kendo-color-info, #0058e9)
  • success: var(--kendo-color-success, #37b400)
  • warning: var(--kendo-color-warning, #ffc000)
  • error: var(--kendo-color-error, #f31700)
  • dark: var(--kendo-color-dark, #3d3d3d)
  • light: var(--kendo-color-light, #ebebeb)
  • inverse: var(--kendo-color-dark, #3d3d3d)
Description
The theme colors map of the Avatar.

In this article

Not finding the help you need?