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, #0d6efd)
  • secondary: var(--kendo-color-secondary, #6c757d)
  • tertiary: var(--kendo-color-tertiary, #6f42c1)
  • info: var(--kendo-color-info, #0dcaf0)
  • success: var(--kendo-color-success, #198754)
  • warning: var(--kendo-color-warning, #ffc107)
  • error: var(--kendo-color-error, #dc3545)
  • dark: var(--kendo-color-dark, #212529)
  • light: var(--kendo-color-light, #f8f9fa)
  • inverse: var(--kendo-color-dark, #212529)
Description
The theme colors map of the Avatar.

In this article

Not finding the help you need?