New to Kendo UI for AngularStart a free 30-day trial

Customizing Tooltip

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-tooltip-padding-yCalculationcalc( #{$kendo-padding-md-y} * .75 )calc(var(--kendo-spacing-1, 0.25rem) * 0.75)
Description
The vertical padding of the Tooltip.
$kendo-tooltip-padding-xCalculationcalc( #{$kendo-padding-md-x} / 2 )calc(var(--kendo-spacing-4, 1rem) / 2)
Description
The horizontal padding of the Tooltip.
$kendo-tooltip-border-widthNumber0px0px
Description
The width of the border around the Tooltip.
$kendo-tooltip-border-radiusStringk-border-radius(md)var(--kendo-border-radius-md, 0.25rem)
Description
The border radius of the Tooltip.
$kendo-tooltip-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the Tooltip.
$kendo-tooltip-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the Tooltip.
$kendo-tooltip-line-heightNumberk-math-div( 20, 14 )1.4285714286
Description
The line height of the Tooltip.
$kendo-tooltip-title-font-sizeCalculationcalc( var( --kendo-font-size-sm, .75rem ) * 1.25 )calc(var(--kendo-font-size-sm, 0.75rem) * 1.25)
Description
The font size of the Tooltip title.
$kendo-tooltip-title-line-heightStringvar( --kendo-line-height-xs, normal )var(--kendo-line-height-xs, normal)
Description
The line height of the Tooltip title.
$kendo-tooltip-callout-sizeNumber6px6px
Description
The size of the Tooltip callout.
$kendo-tooltip-bgColormaterial-color( gray, 700, .9 )rgba(97, 97, 97, 0.9)
Description
The default background of the Tooltip.
$kendo-tooltip-textColorget-base-contrast( gray, 700 )#ffffff
Description
The default text color of the Tooltip.
$kendo-tooltip-borderColor$kendo-tooltip-bgrgba(97, 97, 97, 0.9)
Description
The default border color of the Tooltip.
$kendo-tooltip-shadowString$box-shadow-depth-2var(--kendo-elevation-2, 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 3px 1px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14))
Description
The box-shadow of the Tooltip.
$kendo-tooltip-theme-colorsMap$kendo-theme-colors
  • primary: var(--kendo-color-primary, #3f51b5)
  • secondary: var(--kendo-color-secondary, #e51a5f)
  • tertiary: var(--kendo-color-tertiary, #00695c)
  • 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, #424242)
  • light: var(--kendo-color-light, #f5f5f5)
  • inverse: var(--kendo-color-dark, #424242)
Description
The theme colors map for the Tooltip.
$kendo-tooltip-themeMaptooltip-theme( $kendo-tooltip-theme-colors )
  • inverse: "color":"var(--kendo-color-on-inverse, #ffffff)","background-color":"var(--kendo-color-dark, #424242)","border":"var(--kendo-color-dark, #424242)"
  • light: "color":"var(--kendo-color-on-light, #000000)","background-color":"var(--kendo-color-light, #f5f5f5)","border":"var(--kendo-color-light, #f5f5f5)"
  • dark: "color":"var(--kendo-color-on-dark, #ffffff)","background-color":"var(--kendo-color-dark, #424242)","border":"var(--kendo-color-dark, #424242)"
  • error: "color":"var(--kendo-color-on-error, #ffffff)","background-color":"var(--kendo-color-error, #f31700)","border":"var(--kendo-color-error, #f31700)"
  • warning: "color":"var(--kendo-color-on-warning, #000000)","background-color":"var(--kendo-color-warning, #ffc000)","border":"var(--kendo-color-warning, #ffc000)"
  • success: "color":"var(--kendo-color-on-success, #ffffff)","background-color":"var(--kendo-color-success, #37b400)","border":"var(--kendo-color-success, #37b400)"
  • info: "color":"var(--kendo-color-on-info, #ffffff)","background-color":"var(--kendo-color-info, #0058e9)","border":"var(--kendo-color-info, #0058e9)"
  • tertiary: "color":"var(--kendo-color-on-tertiary, #ffffff)","background-color":"var(--kendo-color-tertiary, #00695c)","border":"var(--kendo-color-tertiary, #00695c)"
  • secondary: "color":"var(--kendo-color-on-secondary, #ffffff)","background-color":"var(--kendo-color-secondary, #e51a5f)","border":"var(--kendo-color-secondary, #e51a5f)"
  • primary: "color":"var(--kendo-color-on-primary, #ffffff)","background-color":"var(--kendo-color-primary, #3f51b5)","border":"var(--kendo-color-primary, #3f51b5)"
Description
The generated theme colors map for the Tooltip.
In this article
VariablesSuggested Links
Not finding the help you need?
Contact Support