Fluent Theme

Apply the perfect look and feel to your apps with the styles supported by the Telerik and Kendo UI Fluent theme.

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.

VariableDefault ValueComputed ValueValue
kendo-enable-typographyfalseDefault: falseComputed:
Description: Global typography styles for the Kendo Default theme.
kendo-font-family-monospaceSFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospaceDefault: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospaceComputed:
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.

VariableDefault ValueComputed ValueValue

Component Variables

The component Sass variables are dedicated to a specific UI component and control its styles.

VariableDefault ValueComputed ValueValue

Color-System Variables

The color-system Sass variables control the theme styles related to color.

VariableDefault ValueComputed ValueValue

Charts Variables

The Chart Sass variables are specific to the Chart UI component. They do not affect other components.

VariableDefault ValueComputed ValueValue
kendo-series-aif($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-bif($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-cif($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-dif($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-eif($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-fif($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-aDefault: $kendo-series-aComputed:
Description: The series colors in order: base, light, dark, lighter, darker
kendo-chart-border-width0px defaultDefault: 0px defaultComputed:
Description: The border width of the chart component.
kendo-chart-font-familyvar( --kendo-font-family, inherit )Default: var( --kendo-font-family, inherit )Computed:
Description: The font-family of the chart component.
kendo-chart-font-sizevar( --kendo-font-size, inherit )Default: var( --kendo-font-size, inherit )Computed:
Description: The font-size of the chart component.
kendo-chart-line-heightvar( --kendo-line-height, normal )Default: var( --kendo-line-height, normal )Computed:
Description: The line-height of the chart component.
kendo-chart-tooltip-font-sizevar( --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-heightvar( --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-sizevar( --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-sizevar( --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-weightvar( --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-linesif($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-linesif($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.6Default: .6Computed:
Description: The opacity of the chart area.
kendo-chart-area-inactive-opacity.1Default: .1Computed:
Description: The inactive opacity of the chart area.
kendo-chart-line-inactive-opacity.3Default: .3Computed:
Description: The inactive opacity of the chart line.
kendo-chart-bgvar( --kendo-component-bg, initial )Default: var( --kendo-component-bg, initial )Computed:
Description: The background color of the chart component.
kendo-chart-textvar( --kendo-component-text, initial )Default: var( --kendo-component-text, initial )Computed:
Description: The text color of the chart component.
kendo-chart-bordervar( --kendo-component-border, initial )Default: var( --kendo-component-border, initial )Computed:
Description: The border color of the chart component.
kendo-chart-tooltip-colorif($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-inverseif($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-backgroundif($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-colorif($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-backgroundvar( --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-bordertransparentDefault: transparentComputed:
Description: The border color of the chart shared crosshair tooltip.
kendo-chart-notes-backgroundif($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-backgroundDefault: $kendo-chart-notes-backgroundComputed:
Description: The border color of the chart notes.
kendo-chart-notes-lines$kendo-chart-notes-backgroundDefault: $kendo-chart-notes-backgroundComputed:
Description: The background color of the chart note lines.
kendo-chart-handle-bgif($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-textDefault: $kendo-chart-textComputed:
Description: The text color of the chart handle.
kendo-chart-handle-border$kendo-chart-handle-bgDefault: $kendo-chart-handle-bgComputed:
Description: The border color of the chart handle.
kendo-chart-handle-hover-bgvar( --kendo-hover-bg, initial )Default: var( --kendo-hover-bg, initial )Computed:
Description: The hover background color of the chart handle.
kendo-chart-handle-hover-textvar( --kendo-hover-text, initial )Default: var( --kendo-hover-text, initial )Computed:
Description: The hover text color of the chart handle.
kendo-chart-handle-hover-bordervar( --kendo-hover-border, initial )Default: var( --kendo-hover-border, initial )Computed:
Description: The hover border color of the chart handle.
kendo-color-error-bars-backgroundif($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-size24pxDefault: 24pxComputed:
Description: The size of the selection handle of the chart component.
kendo-selection-border-colorvar( --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-familyvar( --kendo-font-family, inherit )Default: var( --kendo-font-family, inherit )Computed:
Description: The font-family of the treemap.
kendo-treemap-font-sizevar( --kendo-font-size, inherit )Default: var( --kendo-font-size, inherit )Computed:
Description: The font-size of the treemap.
kendo-treemap-line-heightvar( --kendo-line-height, normal )Default: var( --kendo-line-height, normal )Computed:
Description: The line-height of the treemap.
kendo-treemap-bgvar( --kendo-component-bg, initial )Default: var( --kendo-component-bg, initial )Computed:
Description: The background color of the treemap.
kendo-treemap-textvar( --kendo-component-text, initial )Default: var( --kendo-component-text, initial )Computed:
Description: The text color of the treemap.
kendo-treemap-bordervar( --kendo-component-border, initial )Default: var( --kendo-component-border, initial )Computed:
Description: The border color of the treemap.
kendo-treemap-title-bgif($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-textif($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-bordervar( --kendo-component-border, initial )Default: var( --kendo-component-border, initial )Computed:
Description: The border color of the treemap title.