Variables
All Telerik and Kendo UI themes rely on Sass variables to store styling information. For more detailed information about Sass variables, take a look at the official Sass docs.
The Telerik and Kendo UI Default theme employs multiple variables that you can use to customize the theme.
For consistency, the name of each variable follows a pattern. All variables in the Telerik and Kendo UI themes begin with the kendo- prefix.
Depending on its purpose, the variable name ends with the following keywords: colors, spacing, bg, font-size, hover, focus, selected, disabled, and so on.
Variables by Scope
When it comes to the effect that a specific change in a variable's value causes, variables are not equal. Changing some values will have a much wider impact on the theme than changing others.
Depending on the extent of the styles that each variable controls, the variables fall into three main groups:
- Global variables—They control globally used theme colors and metrics like
$kendo-colors,$kendo-spacing,$kendo-border-radii,$kendo-elevation. - Variables affecting individual UI components—For example,
$kendo-grid-bg,$kendo-tabstrip-font-size.
Most component-level variables link to generic variables that are higher in the hierarchy. For instance, you can customize the background of the Grid component both through the $kendo-colors map and the $kendo-grid-bg variables. In this case, consider that the $kendo-grid-bg variable references a value from the $kendo-colors map.
List of Variables
The following tables represent the variables in the Telerik and Kendo UI Default theme by the type of styles that they control.
Color Variables
The following table represents the $kendo-colors Sass map of the Telerik and Kendo UI Default theme:
| Key | Value |
|---|---|
| Variable: kendo-colors | |
app-surface | #ffffff |
on-app-surface | #3d3d3d |
subtle | #666666 |
surface | #fafafa |
surface-alt | #ffffff |
border | rgba(0, 0, 0, 0.08) |
border-alt | rgba(0, 0, 0, 0.16) |
base-subtle | #ebebeb |
base-subtle-hover | #e0e0e0 |
base-subtle-active | #d6d6d6 |
base | #f5f5f5 |
base-hover | #ebebeb |
base-active | #d6d6d6 |
base-emphasis | #c2c2c2 |
base-on-subtle | #3d3d3d |
on-base | #3d3d3d |
base-on-surface | #3d3d3d |
primary-subtle | #ffeceb |
primary-subtle-hover | #ffdedb |
primary-subtle-active | #ffc8c4 |
primary | #ff6358 |
primary-hover | #ea5a51 |
primary-active | #d45349 |
primary-emphasis | #ff9d97 |
primary-on-subtle | #5c201c |
on-primary | #ffffff |
primary-on-surface | #ff6358 |
secondary-subtle | #fafafa |
secondary-subtle-hover | #f5f5f5 |
secondary-subtle-active | #ebebeb |
secondary | #666666 |
secondary-hover | #525252 |
secondary-active | #3d3d3d |
secondary-emphasis | #e0e0e0 |
secondary-on-subtle | #141414 |
on-secondary | #ffffff |
secondary-on-surface | #292929 |
tertiary-subtle | #d8f1fd |
tertiary-subtle-hover | #c5eafc |
tertiary-subtle-active | #a3dffb |
tertiary | #03a9f4 |
tertiary-hover | #039ae0 |
tertiary-active | #028ccb |
tertiary-emphasis | #61c9f9 |
tertiary-on-subtle | #023f5c |
on-tertiary | #ffffff |
tertiary-on-surface | #028ccb |
info-subtle | #d2e2fb |
info-subtle-hover | #bdd4f8 |
info-subtle-active | #80acf4 |
info | #0058e9 |
info-hover | #0052d6 |
info-active | #004ac2 |
info-emphasis | #6098f2 |
info-on-subtle | #002259 |
on-info | #ffffff |
info-on-surface | #004ac2 |
success-subtle | #dcf0d3 |
success-subtle-hover | #cbe9bf |
success-subtle-active | #b7e1a5 |
success | #37b400 |
success-hover | #32a500 |
success-active | #2d9600 |
success-emphasis | #81d15f |
success-on-subtle | #1c5a00 |
on-success | #ffffff |
success-on-surface | #2d9600 |
warning-subtle | #fff4d3 |
warning-subtle-hover | #ffeebd |
warning-subtle-active | #ffe79e |
warning | #ffc000 |
warning-hover | #eaaf00 |
warning-active | #d49f00 |
warning-emphasis | #ffd760 |
warning-on-subtle | #5e4700 |
on-warning | #3d3d3d |
warning-on-surface | #ffc000 |
error-subtle | #fcddda |
error-subtle-hover | #fbc8c3 |
error-subtle-active | #f98b80 |
error | #f31700 |
error-hover | #df1600 |
error-active | #ca1400 |
error-emphasis | #f76f60 |
error-on-subtle | #7a0c00 |
on-error | #ffffff |
error-on-surface | #ca1400 |
light-subtle | #fafafa |
light-subtle-hover | #f5f5f5 |
light-subtle-active | #ebebeb |
light | #ebebeb |
light-hover | #e0e0e0 |
light-active | #d6d6d6 |
light-emphasis | #d6d6d6 |
light-on-subtle | #141414 |
on-light | #000000 |
light-on-surface | #e0e0e0 |
dark-subtle | #c2c2c2 |
dark-subtle-hover | #adadad |
dark-subtle-active | #999999 |
dark | #3d3d3d |
dark-hover | #292929 |
dark-active | #1f1f1f |
dark-emphasis | #666666 |
dark-on-subtle | #1f1f1f |
on-dark | #ffffff |
dark-on-surface | #141414 |
inverse-subtle | #c2c2c2 |
inverse-subtle-hover | #adadad |
inverse-subtle-active | #999999 |
inverse | #3d3d3d |
inverse-hover | #292929 |
inverse-active | #1f1f1f |
inverse-emphasis | #666666 |
inverse-on-subtle | #1f1f1f |
on-inverse | #ffffff |
inverse-on-surface | #141414 |
series-a | #ff6358 |
series-a-bold | #bf4a42 |
series-a-bolder | #80322c |
series-a-subtle | #ffb1ac |
series-a-subtler | #ff8a82 |
series-b | #ffe162 |
series-b-bold | #bfa94a |
series-b-bolder | #807131 |
series-b-subtle | #fff0b1 |
series-b-subtler | #ffe989 |
series-c | #4cd180 |
series-c-bold | #399d60 |
series-c-bolder | #266940 |
series-c-subtle | #a6e8c0 |
series-c-subtler | #79dda0 |
series-d | #4b5ffa |
series-d-bold | #3847bc |
series-d-bolder | #26307d |
series-d-subtle | #a5affd |
series-d-subtler | #7887fb |
series-e | #ac58ff |
series-e-bold | #8142bf |
series-e-bolder | #562c80 |
series-e-subtle | #d6acff |
series-e-subtler | #c182ff |
series-f | #ff5892 |
series-f-bold | #bf426e |
series-f-bolder | #802c49 |
series-f-subtle | #ffacc9 |
series-f-subtler | #ff82ae |
| Description: The global default Colors map. | |
Spacing Variables
The following table represents the $kendo-spacing Sass map of the Telerik and Kendo UI Default theme:
| Step | CSS Variable | Value | Example |
|---|---|---|---|
| 0 | --kendo-spacing-0 | 0px | |
| 1px | --kendo-spacing-1px | 1px | |
| 0.5 | --kendo-spacing-0.5 | 0.125rem | |
| 1 | --kendo-spacing-1 | 0.25rem | |
| 1.5 | --kendo-spacing-1.5 | 0.375rem | |
| 2 | --kendo-spacing-2 | 0.5rem | |
| 2.5 | --kendo-spacing-2.5 | 0.625rem | |
| 3 | --kendo-spacing-3 | 0.75rem | |
| 3.5 | --kendo-spacing-3.5 | 0.875rem | |
| 4 | --kendo-spacing-4 | 1rem | |
| 4.5 | --kendo-spacing-4.5 | 1.125rem | |
| 5 | --kendo-spacing-5 | 1.25rem | |
| 5.5 | --kendo-spacing-5.5 | 1.375rem | |
| 6 | --kendo-spacing-6 | 1.5rem | |
| 6.5 | --kendo-spacing-6.5 | 1.625rem | |
| 7 | --kendo-spacing-7 | 1.75rem | |
| 7.5 | --kendo-spacing-7.5 | 1.875rem | |
| 8 | --kendo-spacing-8 | 2rem | |
| 9 | --kendo-spacing-9 | 2.25rem | |
| 10 | --kendo-spacing-10 | 2.5rem | |
| 11 | --kendo-spacing-11 | 2.75rem | |
| 12 | --kendo-spacing-12 | 3rem | |
| 13 | --kendo-spacing-13 | 3.25rem | |
| 14 | --kendo-spacing-14 | 3.5rem | |
| 15 | --kendo-spacing-15 | 3.75rem | |
| 16 | --kendo-spacing-16 | 4rem | |
| 17 | --kendo-spacing-17 | 4.25rem | |
| 18 | --kendo-spacing-18 | 4.5rem | |
| 19 | --kendo-spacing-19 | 4.75rem | |
| 20 | --kendo-spacing-20 | 5rem | |
| 21 | --kendo-spacing-21 | 5.25rem | |
| 22 | --kendo-spacing-22 | 5.5rem | |
| 23 | --kendo-spacing-23 | 5.75rem | |
| 24 | --kendo-spacing-24 | 6rem | |
| 25 | --kendo-spacing-25 | 7rem | |
| 26 | --kendo-spacing-26 | 8rem | |
| 27 | --kendo-spacing-27 | 9rem | |
| 28 | --kendo-spacing-28 | 10rem | |
| 29 | --kendo-spacing-29 | 11rem | |
| 30 | --kendo-spacing-30 | 12rem |
Typography Variables
The following table represents the typography Sass variables of the Telerik and Kendo UI Default theme:
| Variable | Default Value | Computed Value | Value | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kendo-font-size | 0.875rem | 0.875rem | Default: 0.875remComputed: 0.875rem | ||||||||||||||||||
| Description: The base font size across all components. | |||||||||||||||||||||
kendo-font-size-xxs | 0.5rem | 0.5rem | Default: 0.5remComputed: 0.5rem | ||||||||||||||||||
| Description: The extra extra small font size across all components. | |||||||||||||||||||||
kendo-font-size-xs | 0.625rem | 0.625rem | Default: 0.625remComputed: 0.625rem | ||||||||||||||||||
| Description: The extra small font size across all components. | |||||||||||||||||||||
kendo-font-size-sm | 0.75rem | 0.75rem | Default: 0.75remComputed: 0.75rem | ||||||||||||||||||
| Description: The small font size across all components. | |||||||||||||||||||||
kendo-font-size-md | $kendo-font-size | 0.875rem | Default: $kendo-font-sizeComputed: 0.875rem | ||||||||||||||||||
| Description: The medium font size across all components. | |||||||||||||||||||||
kendo-font-size-lg | 1rem | 1rem | Default: 1remComputed: 1rem | ||||||||||||||||||
| Description: The large font size across all components. | |||||||||||||||||||||
kendo-font-size-xl | 1.25rem | 1.25rem | Default: 1.25remComputed: 1.25rem | ||||||||||||||||||
| Description: The extra large font size across all components. | |||||||||||||||||||||
kendo-line-height | math.div( 20, 14 ) | 1.4285714286 | Default: math.div( 20, 14 )Computed: 1.4285714286 | ||||||||||||||||||
| Description: The base line height across all components. | |||||||||||||||||||||
kendo-line-height-xs | 1 | 1 | Default: 1Computed: 1 | ||||||||||||||||||
| Description: The extra small line height across all components. | |||||||||||||||||||||
kendo-line-height-sm | 1.25 | 1.25 | Default: 1.25Computed: 1.25 | ||||||||||||||||||
| Description: The small line height across all components. | |||||||||||||||||||||
kendo-line-height-md | $kendo-line-height | 1.4285714286 | Default: $kendo-line-heightComputed: 1.4285714286 | ||||||||||||||||||
| Description: The medium line height across all components. | |||||||||||||||||||||
kendo-line-height-lg | 1.5 | 1.5 | Default: 1.5Computed: 1.5 | ||||||||||||||||||
| Description: The large line height across all components. | |||||||||||||||||||||
kendo-line-height-em | calc( #{$kendo-line-height-md} * 1em ) | calc(1.4285714286 * 1em) | Default: calc( #{$kendo-line-height-md} * 1em )Computed: calc(1.4285714286 * 1em) | ||||||||||||||||||
| Description: The base line height in ems across all components. | |||||||||||||||||||||
kendo-font-weight | 400 | 400 | Default: 400Computed: 400 | ||||||||||||||||||
| Description: The base font weight across all components. | |||||||||||||||||||||
kendo-font-weight-thin | 100 | 100 | Default: 100Computed: 100 | ||||||||||||||||||
| Description: The thin font weight across all components. | |||||||||||||||||||||
kendo-font-weight-extra-light | 200 | 200 | Default: 200Computed: 200 | ||||||||||||||||||
| Description: The extra light font weight across all components. | |||||||||||||||||||||
kendo-font-weight-light | 300 | 300 | Default: 300Computed: 300 | ||||||||||||||||||
| Description: The light font weight across all components. | |||||||||||||||||||||
kendo-font-weight-normal | $kendo-font-weight | 400 | Default: $kendo-font-weightComputed: 400 | ||||||||||||||||||
| Description: The normal font weight across all components. | |||||||||||||||||||||
kendo-font-weight-medium | 500 | 500 | Default: 500Computed: 500 | ||||||||||||||||||
| Description: The medium font weight across all components. | |||||||||||||||||||||
kendo-font-weight-semibold | 600 | 600 | Default: 600Computed: 600 | ||||||||||||||||||
| Description: The semibold font weight across all components. | |||||||||||||||||||||
kendo-font-weight-bold | 700 | 700 | Default: 700Computed: 700 | ||||||||||||||||||
| Description: The bold font weight across all components. | |||||||||||||||||||||
kendo-font-weight-extra-bold | 800 | 800 | Default: 800Computed: 800 | ||||||||||||||||||
| Description: The extra bold font weight across all components. | |||||||||||||||||||||
kendo-font-weight-black | 900 | 900 | Default: 900Computed: 900 | ||||||||||||||||||
| Description: The most pronounced font weight across all components. | |||||||||||||||||||||
kendo-letter-spacing | null | null | Default: nullComputed: null | ||||||||||||||||||
| Description: The base letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-tightest | -.15px | -0.15px | Default: -.15pxComputed: -0.15px | ||||||||||||||||||
| Description: The tightest letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-tighter | -.10px | -0.1px | Default: -.10pxComputed: -0.1px | ||||||||||||||||||
| Description: Slightly looser than the tighter letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-tight | -.5px | -0.5px | Default: -.5pxComputed: -0.5px | ||||||||||||||||||
| Description: Moderately tight letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-normal | 0px | 0px | Default: 0pxComputed: 0px | ||||||||||||||||||
| Description: The normal letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-wide | .5px | 0.5px | Default: .5pxComputed: 0.5px | ||||||||||||||||||
| Description: Wide letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-wider | .10px | 0.1px | Default: .10pxComputed: 0.1px | ||||||||||||||||||
| Description: Slightly wider than the wide letter spacing across all components. | |||||||||||||||||||||
kendo-letter-spacing-widest | .15px | 0.15px | Default: .15pxComputed: 0.15px | ||||||||||||||||||
| Description: The widest letter spacing across all components. | |||||||||||||||||||||
kendo-font-family-sans | Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans | (Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans) | Default: Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill SansComputed: (Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans) | ||||||||||||||||||
| Description: The sans font family across all components. | |||||||||||||||||||||
kendo-font-family-serif | "Times New Roman", Georgia, Garamond, Palatino, Baskerville | ("Times New Roman", Georgia, Garamond, Palatino, Baskerville) | Default: "Times New Roman", Georgia, Garamond, Palatino, BaskervilleComputed: ("Times New Roman", Georgia, Garamond, Palatino, Baskerville) | ||||||||||||||||||
| Description: The serif font family across all components. | |||||||||||||||||||||
kendo-font-family-sans-serif | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" | (system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji") | Default: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"Computed: (system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji") | ||||||||||||||||||
| Description: The sans-serif font family across all components. | |||||||||||||||||||||
kendo-font-family-monospace | SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace | (SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace) | Default: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospaceComputed: (SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace) | ||||||||||||||||||
| Description: The monospace font family across all components. | |||||||||||||||||||||
kendo-font-family | inherit | inherit | Default: inheritComputed: inherit | ||||||||||||||||||
| Description: The base font family across all components. | |||||||||||||||||||||
kendo-font-sizes |
| Computed: (xxs: 0.5rem, xs: 0.625rem, sm: 0.75rem, md: 0.875rem, lg: 1rem, xl: 1.25rem) | |||||||||||||||||||
| Description: The font sizes map | |||||||||||||||||||||
kendo-line-heights |
| Computed: (xs: 1, sm: 1.25, md: 1.4285714286, lg: 1.5) | |||||||||||||||||||
| Description: The line heights map | |||||||||||||||||||||
kendo-font-weights |
| Computed: (thin: 100, extra-light: 200, light: 300, normal: 400, medium: 500, semibold: 600, bold: 700, extra-bold: 800, "black": 900) | |||||||||||||||||||
| Description: The font weights map | |||||||||||||||||||||
kendo-letter-spacings |
| Computed: (tightest: -0.15px, tighter: -0.1px, tight: -0.5px, normal: 0px, wide: 0.5px, wider: 0.1px, widest: 0.15px) | |||||||||||||||||||
| Description: The letter spacings map | |||||||||||||||||||||
kendo-font-families |
| Computed: (sans: (Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans), serif: ("Times New Roman", Georgia, Garamond, Palatino, Baskerville), sans-serif: (system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"), monospace: (SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace)) | |||||||||||||||||||
| Description: The font families map | |||||||||||||||||||||
Border Radii Variables
The following table represents the $kendo-border-radii Sass map of the Telerik and Kendo UI Default theme:
| Step | CSS Variable | Value | Example |
|---|---|---|---|
| none | --kendo-border-radius-none | 0px | |
| xs | --kendo-border-radius-xs | 1px | |
| sm | --kendo-border-radius-sm | 0.125rem | |
| md | --kendo-border-radius-md | 0.25rem | |
| lg | --kendo-border-radius-lg | 0.375rem | |
| xl | --kendo-border-radius-xl | 0.5rem | |
| xxl | --kendo-border-radius-xxl | 0.75rem | |
| xxxl | --kendo-border-radius-xxxl | 1rem | |
| full | --kendo-border-radius-full | 9999px |
Elevation Variables
The following table represents the $kendo-elevation Sass map of the Telerik and Kendo UI Default theme:
| Key | Value |
|---|---|
| Variable: kendo-elevation | |
1 | (0 2px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.12)) |
2 | (0 4px 6px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.12)) |
3 | (0 6px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12)) |
4 | (0 8px 10px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.12)) |
5 | (0 10px 12px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.12)) |
6 | (0 12px 14px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.12)) |
7 | (0 14px 16px rgba(0, 0, 0, 0.24), 0 4px 16px rgba(0, 0, 0, 0.12)) |
8 | (0 16px 18px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12)) |
9 | (0 32px 34px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.12)) |
| Description: The global default Elevation map. | |