Variables
The Telerik and Kendo UI Fluent theme employs SASS variables and CSS custom properties (known as CSS variables) that you can use to customize the theme.
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 like
$kendo-color-primary
,$kendo-color-secondary
,$kendo-color-success
,$kendo-color-error
. - Variables affecting all UI components—For example,
$kendo-component-text
,$kendo-component-bg
. - 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-component-bg
and $kendo-grid-bg
variables. In this case, consider that the $kendo-grid-bg
variable references $kendo-component-bg
.
SASS Variables
The Telerik and Kendo UI Fluent theme uses the Sass Module System, so you can customize its variables by using either of the following two approaches:
-
Configuration with
with
@use "index.scss" as kendo-theme with ( $kendo-component-bg: #f7f7f7, $kendo-component-text: #1f2328, $kendo-input-solid-bg: #f0f0f0 ) @include kendo-theme.config(); @include kendo-theme.styles();
-
Direct assignment
@use "index.scss" as kendo-theme; kendo-theme.$kendo-component-bg: #f7f7f7; kendo-theme.$kendo-component-text: #1f2328; kendo-theme.$kendo-input-solid-bg: #f0f0f0; @include kendo-theme.config(); @include kendo-theme.styles();
CSS Variables
If you intend to customize the theme variables, you don't have to compile the theme. The Telerik and Kendo UI Fluent theme also provides custom CSS properties that allow you to customize the theme after compiling or even dynamically at runtime.
Global Variables
The global variables and the variables affecting all UI components are exposed at the root element level so you can customize them by using the following approach:
:root {
--kendo-component-bg: #f7f7f7;
--kendo-component-text: #1f2328;
}
Component Variables
The variables that affect individual UI components are also exposed in the theme so you can customize them as well:
:root {
--kendo-input-solid-bg: #f0f0f0;
}
List of Variables
The following tables represent the variables in the Telerik and Kendo UI Fluent theme by the type of styles that they control.
Typography Variables
The typography Sass variables set the styles related to fonts and text.
Variable | Default Value | Computed Value | Value |
---|---|---|---|
kendo-enable-typography | false |
| Default: false Computed:
|
Description: Global typography styles for the Kendo Default theme. | |||
kendo-font-family-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", monospace Computed:
|
Description: Font family for monospaced text. Used for styling the code. |
Common Variables
The common Sass variables control a wide range of styles that are not related to a specific UI component.
Variable | Default Value | Computed Value | Value |
---|
Component Variables
The component Sass variables are dedicated to a specific UI component and control its styles.
Variable | Default Value | Computed Value | Value |
---|
Color-System Variables
The color-system Sass variables control the theme styles related to color.
Variable | Default Value | Computed Value | Value |
---|
Charts Variables
The Chart Sass variables are specific to the Chart UI component. They do not affect other components.
Variable | Default Value | Computed Value | Value |
---|---|---|---|
kendo-series-a | if($kendo-enable-color-system, k-color( series-a ), k-get-theme-color-var( series-a-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-a ), k-get-theme-color-var( series-a-100 )) Computed:
|
Description: The first base series color and its light and dark shades. | |||
kendo-series-b | if($kendo-enable-color-system, k-color( series-b ), k-get-theme-color-var( series-b-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-b ), k-get-theme-color-var( series-b-100 )) Computed:
|
Description: The second base series color and its light and dark shades. | |||
kendo-series-c | if($kendo-enable-color-system, k-color( series-c ), k-get-theme-color-var( series-c-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-c ), k-get-theme-color-var( series-c-100 )) Computed:
|
Description: The third base series color and its light and dark shades. | |||
kendo-series-d | if($kendo-enable-color-system, k-color( series-d ), k-get-theme-color-var( series-d-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-d ), k-get-theme-color-var( series-d-100 )) Computed:
|
Description: The fourth base series color and its light and dark shades. | |||
kendo-series-e | if($kendo-enable-color-system, k-color( series-e ), k-get-theme-color-var( series-e-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-e ), k-get-theme-color-var( series-e-100 )) Computed:
|
Description: The fifth base series color and its light and dark shades. | |||
kendo-series-f | if($kendo-enable-color-system, k-color( series-f ), k-get-theme-color-var( series-f-100 )) |
| Default: if($kendo-enable-color-system, k-color( series-f ), k-get-theme-color-var( series-f-100 )) Computed:
|
Description: The sixth base series color and its light and dark shades. | |||
kendo-series-1 | $kendo-series-a |
| Default: $kendo-series-a Computed:
|
Description: The series colors in order: base, light, dark, lighter, darker | |||
kendo-chart-border-width | 0px default |
| Default: 0px default Computed:
|
Description: The border width of the chart component. | |||
kendo-chart-font-family | var( --kendo-font-family, inherit ) |
| Default: var( --kendo-font-family, inherit ) Computed:
|
Description: The font-family of the chart component. | |||
kendo-chart-font-size | var( --kendo-font-size, inherit ) |
| Default: var( --kendo-font-size, inherit ) Computed:
|
Description: The font-size of the chart component. | |||
kendo-chart-line-height | var( --kendo-line-height, normal ) |
| Default: var( --kendo-line-height, normal ) Computed:
|
Description: The line-height of the chart component. | |||
kendo-chart-tooltip-font-size | var( --kendo-font-size-sm, inherit ) |
| Default: var( --kendo-font-size-sm, inherit ) Computed:
|
Description: The font-size of the tooltip of the chart component. | |||
kendo-chart-tooltip-line-height | var( --kendo-line-height-sm, normal ) |
| Default: var( --kendo-line-height-sm, normal ) Computed:
|
Description: The line-height of the tooltip of the chart component. | |||
kendo-chart-title-font-size | var( --kendo-font-size-lg, inherit ) |
| Default: var( --kendo-font-size-lg, inherit ) Computed:
|
Description: The font-size of the title of the chart component. | |||
kendo-chart-pane-title-font-size | var( --kendo-font-size-lg, inherit ) |
| Default: var( --kendo-font-size-lg, inherit ) Computed:
|
Description: The font-size of the pane title of the chart component. | |||
kendo-chart-pane-title-font-weight | var( --kendo-font-weight, inherit ) |
| Default: var( --kendo-font-weight, inherit ) Computed:
|
Description: The font-weight of the pane title of the chart component. | |||
kendo-chart-major-lines | if($kendo-enable-color-system, rgba( k-color( border, true ), .16 ), k-get-theme-color-var( neutral-30 )) |
| Default: if($kendo-enable-color-system, rgba( k-color( border, true ), .16 ), k-get-theme-color-var( neutral-30 )) Computed:
|
Description: The color of the chart component major grid lines. | |||
kendo-chart-minor-lines | if($kendo-enable-color-system, rgba( k-color( border, true ), .16 ), k-get-theme-color-var( neutral-30 )) |
| Default: if($kendo-enable-color-system, rgba( k-color( border, true ), .16 ), k-get-theme-color-var( neutral-30 )) Computed:
|
Description: The color of the chart component minor grid lines. | |||
kendo-chart-area-opacity | .6 |
| Default: .6 Computed:
|
Description: The opacity of the chart area. | |||
kendo-chart-area-inactive-opacity | .1 |
| Default: .1 Computed:
|
Description: The inactive opacity of the chart area. | |||
kendo-chart-line-inactive-opacity | .3 |
| Default: .3 Computed:
|
Description: The inactive opacity of the chart line. | |||
kendo-chart-bg | var( --kendo-component-bg, initial ) |
| Default: var( --kendo-component-bg, initial ) Computed:
|
Description: The background color of the chart component. | |||
kendo-chart-text | var( --kendo-component-text, initial ) |
| Default: var( --kendo-component-text, initial ) Computed:
|
Description: The text color of the chart component. | |||
kendo-chart-border | var( --kendo-component-border, initial ) |
| Default: var( --kendo-component-border, initial ) Computed:
|
Description: The border color of the chart component. | |||
kendo-chart-tooltip-color | if($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white) |
| Default: if($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white) Computed:
|
Description: The text color of the chart tooltip. | |||
kendo-chart-tooltip-color-inverse | if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) |
| Default: if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) Computed:
|
Description: The inverse text color of the chart tooltip. | |||
kendo-chart-crosshair-background | if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) |
| Default: if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) Computed:
|
Description: The background color of the chart crosshairs. | |||
kendo-chart-crosshair-shared-tooltip-color | if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 )) |
| Default: if($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 )) Computed:
|
Description: The text color of the chart shared crosshair tooltip. | |||
kendo-chart-crosshair-shared-tooltip-background | var( --kendo-component-bg, initial ) |
| Default: var( --kendo-component-bg, initial ) Computed:
|
Description: The background color of the chart shared crosshair tooltip. | |||
kendo-chart-crosshair-shared-tooltip-border | transparent |
| Default: transparent Computed:
|
Description: The border color of the chart shared crosshair tooltip. | |||
kendo-chart-notes-background | if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )) |
| Default: if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )) Computed:
|
Description: The background color of the chart notes. | |||
kendo-chart-notes-border | $kendo-chart-notes-background |
| Default: $kendo-chart-notes-background Computed:
|
Description: The border color of the chart notes. | |||
kendo-chart-notes-lines | $kendo-chart-notes-background |
| Default: $kendo-chart-notes-background Computed:
|
Description: The background color of the chart note lines. | |||
kendo-chart-handle-bg | if($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 )) |
| Default: if($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 )) Computed:
|
Description: The background color of the chart handle. | |||
kendo-chart-handle-text | $kendo-chart-text |
| Default: $kendo-chart-text Computed:
|
Description: The text color of the chart handle. | |||
kendo-chart-handle-border | $kendo-chart-handle-bg |
| Default: $kendo-chart-handle-bg Computed:
|
Description: The border color of the chart handle. | |||
kendo-chart-handle-hover-bg | var( --kendo-hover-bg, initial ) |
| Default: var( --kendo-hover-bg, initial ) Computed:
|
Description: The hover background color of the chart handle. | |||
kendo-chart-handle-hover-text | var( --kendo-hover-text, initial ) |
| Default: var( --kendo-hover-text, initial ) Computed:
|
Description: The hover text color of the chart handle. | |||
kendo-chart-handle-hover-border | var( --kendo-hover-border, initial ) |
| Default: var( --kendo-hover-border, initial ) Computed:
|
Description: The hover border color of the chart handle. | |||
kendo-color-error-bars-background | if($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( neutral-110 )) |
| Default: if($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( neutral-110 )) Computed:
|
Description: The color of the chart error bars. | |||
kendo-selection-handle-size | 24px |
| Default: 24px Computed:
|
Description: The size of the selection handle of the chart component. | |||
kendo-selection-border-color | var( --kendo-component-border, initial ) |
| Default: var( --kendo-component-border, initial ) Computed:
|
Description: The color of the selection handle of the chart component. | |||
kendo-treemap-font-family | var( --kendo-font-family, inherit ) |
| Default: var( --kendo-font-family, inherit ) Computed:
|
Description: The font-family of the treemap. | |||
kendo-treemap-font-size | var( --kendo-font-size, inherit ) |
| Default: var( --kendo-font-size, inherit ) Computed:
|
Description: The font-size of the treemap. | |||
kendo-treemap-line-height | var( --kendo-line-height, normal ) |
| Default: var( --kendo-line-height, normal ) Computed:
|
Description: The line-height of the treemap. | |||
kendo-treemap-bg | var( --kendo-component-bg, initial ) |
| Default: var( --kendo-component-bg, initial ) Computed:
|
Description: The background color of the treemap. | |||
kendo-treemap-text | var( --kendo-component-text, initial ) |
| Default: var( --kendo-component-text, initial ) Computed:
|
Description: The text color of the treemap. | |||
kendo-treemap-border | var( --kendo-component-border, initial ) |
| Default: var( --kendo-component-border, initial ) Computed:
|
Description: The border color of the treemap. | |||
kendo-treemap-title-bg | if($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 )) |
| Default: if($kendo-enable-color-system, k-color( surface ), k-get-theme-color-var( neutral-10 )) Computed:
|
Description: The background color of the treemap title. | |||
kendo-treemap-title-text | if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) |
| Default: if($kendo-enable-color-system, k-color( on-app-surface ), $kendo-color-black) Computed:
|
Description: The text color of the treemap title. | |||
kendo-treemap-title-border | var( --kendo-component-border, initial ) |
| Default: var( --kendo-component-border, initial ) Computed:
|
Description: The border color of the treemap title. |