Material Theme

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

Color in the Telerik and Kendo UI Material Theme

The Color System is still in BETA and is disabled by default. Refer to the Usage section to learn how to enable it and start customizing the colors.

The color system in the Telerik and Kendo UI Material theme enables you to easily define and customize colors, allowing you to create a color theme that reflects your brand or style.

This article explains what are the predefined color values and how to customize them specifically in the Telerik and Kendo UI Material theme. To learn how the Telerik and Kendo UI design system implements colors through its color system, see the Color Overview article.

Predefined Theme Colors

The color system of the Telerik and Kendo UI Material theme is constructed by organizing all Color Swatches in a $kendo-colors Sass map, where the key is the color name (for example, on-primary) and the corresponding color value is taken from the theme's Color Palettes.

The $kendo-colors Sass map of the Telerik and Kendo UI Material theme is represented in the following table:

KeyValue
Variable: kendo-colors
app-surface
  •  #ffffff
on-app-surface
  •  #212121
subtle
  •  #757575
surface
  •  #f5f5f5
surface-alt
  •  #ffffff
border
  •  rgba(0, 0, 0, 0.12)
border-alt
  •  rgba(0, 0, 0, 0.15)
base-subtle
  •  #ebebeb
base-subtle-hover
  •  #d6d6d6
base-subtle-active
  •  #c2c2c2
base
  •  #ffffff
base-hover
  •  #ebebeb
base-active
  •  #d6d6d6
base-emphasis
  •  #adadad
base-on-subtle
  •  #212121
on-base
  •  #212121
base-on-surface
  •  #212121
primary-subtle
  •  #d1d5ee
primary-subtle-hover
  •  #c5cae8
primary-subtle-active
  •  #b5bde3
primary
  •  #3f51b5
primary-hover
  •  #3a4ba7
primary-active
  •  #354498
primary-emphasis
  •  #97a0d7
primary-on-subtle
  •  #161c3f
on-primary
  •  #ffffff
primary-on-surface
  •  #3f51b5
secondary-subtle
  •  #fbcdd9
secondary-subtle-hover
  •  #f9afc3
secondary-subtle-active
  •  #f79bb3
secondary
  •  #e51a5f
secondary-hover
  •  #d31857
secondary-active
  •  #c01650
secondary-emphasis
  •  #f58da9
secondary-on-subtle
  •  #500c22
on-secondary
  •  #ffffff
secondary-on-surface
  •  #ae1549
tertiary-subtle
  •  #c9dbd8
tertiary-subtle-hover
  •  #a9c6c1
tertiary-subtle-active
  •  #92b8b1
tertiary
  •  #00695c
tertiary-hover
  •  #006155
tertiary-active
  •  #00584d
tertiary-emphasis
  •  #84aea7
tertiary-on-subtle
  •  #002520
on-tertiary
  •  #ffffff
tertiary-on-surface
  •  #054f46
info-subtle
  •  #c8d7fb
info-subtle-hover
  •  #a7c0f7
info-subtle-active
  •  #8fb0f6
info
  •  #0058e9
info-hover
  •  #0251d6
info-active
  •  #034ac3
info-emphasis
  •  #80a5f4
info-on-subtle
  •  #071f51
on-info
  •  #ffffff
info-on-surface
  •  #0443b0
success-subtle
  •  #d7f0cc
success-subtle-hover
  •  #bae2ad
success-subtle-active
  •  #a7db97
success
  •  #37b400
success-hover
  •  #33a600
success-active
  •  #2e9704
success-emphasis
  •  #93d775
success-on-subtle
  •  #163f09
on-success
  •  #ffffff
success-on-surface
  •  #2b8906
warning-subtle
  •  #fff0ce
warning-subtle-hover
  •  #ffe7b0
warning-subtle-active
  •  #ffe19c
warning
  •  #ffc000
warning-hover
  •  #ebb201
warning-active
  •  #d6a202
warning-emphasis
  •  #ffdd8f
warning-on-subtle
  •  #59430a
on-warning
  •  #000000
warning-on-surface
  •  #ffc000
error-subtle
  •  #fcc7c2
error-subtle-hover
  •  #feafa8
error-subtle-active
  •  #fe9a91
error
  •  #f31700
error-hover
  •  #e01701
error-active
  •  #cc1505
error-emphasis
  •  #fc8d83
error-on-subtle
  •  #550c07
on-error
  •  #ffffff
error-on-surface
  •  #b91406
light-subtle
  •  #fafafa
light-subtle-hover
  •  #f5f5f5
light-subtle-active
  •  #eeeeee
light
  •  #f5f5f5
light-hover
  •  #ebebeb
light-active
  •  #d6d6d6
light-emphasis
  •  #e0e0e0
light-on-subtle
  •  #212121
on-light
  •  #000000
light-on-surface
  •  #616161
dark-subtle
  •  #c7c7c7
dark-subtle-hover
  •  #c2c2c2
dark-subtle-active
  •  #bdbdbd
dark
  •  #424242
dark-hover
  •  #212121
dark-active
  •  #000000
dark-emphasis
  •  #9e9e9e
dark-on-subtle
  •  #212121
on-dark
  •  #ffffff
dark-on-surface
  •  #616161
inverse-subtle
  •  #c7c7c7
inverse-subtle-hover
  •  #c2c2c2
inverse-subtle-active
  •  #bdbdbd
inverse
  •  #424242
inverse-hover
  •  #212121
inverse-active
  •  #000000
inverse-emphasis
  •  #9e9e9e
inverse-on-subtle
  •  #212121
on-inverse
  •  #ffffff
inverse-on-surface
  •  #616161
series-a
  •  #9c27b0
series-a-bold
  •  #751d84
series-a-bolder
  •  #4e1458
series-a-subtle
  •  #b55dc4
series-a-subtler
  •  #cd93d7
series-b
  •  #2196f3
series-b-bold
  •  #1971b6
series-b-bolder
  •  #114b7a
series-b-subtle
  •  #59b0f6
series-b-subtler
  •  #90cbf9
series-c
  •  #009688
series-c-bold
  •  #007166
series-c-bolder
  •  #004b44
series-c-subtle
  •  #40b0a6
series-c-subtler
  •  #80cbc4
series-d
  •  #ffeb3b
series-d-bold
  •  #bfb02c
series-d-bolder
  •  #80761e
series-d-subtle
  •  #fff06c
series-d-subtler
  •  #fff59d
series-e
  •  #f44336
series-e-bold
  •  #b73229
series-e-bolder
  •  #7a221b
series-e-subtle
  •  #f77268
series-e-subtler
  •  #faa19b
series-f
  •  #4caf50
series-f-bold
  •  #39833c
series-f-bolder
  •  #265828
series-f-subtle
  •  #79c37c
series-f-subtler
  •  #a6d7a8
Description: The global default Colors map.

Usage

You can use the $kendo-colors map as is or customize it to fit your specific design needs.

To use the predefined values, the recommended approach is to utilize the k-color() function, which takes a color name from the $kendo-colors map as a parameter and returns a CSS variable (custom property) with the actual color as a fallback:

// Enable the new color system.
$kendo-enable-color-system: true;

// Import the Material theme.
@import "@progress/kendo-theme-material/dist/all.scss";

.my-element {
background-color: k-color( primary ); // Apply the primary color as a background color to .my-element.
}

The k-color() function utilized above returns the following CSS code:

.my-element {
background-color: var(--kendo-color-primary, #ff6358);
}

Customization

To customize the color system in the Telerik and Kendo UI Material theme, use either of the following approaches:

Sass Variables

One way to achieve your design requirements when working with the color system of the Material theme is to customize the predefined $kendo-colors Sass map. You can modify either all values in the $kendo-colors Sass map or only those that belong to a specific color swatch, for example, primary:

// Enable the new color system.
$kendo-enable-color-system: true;

// Modify the colors map before importing the theme.
$kendo-colors: (
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,
);

@import "@progress/kendo-theme-material/scss/dist/all.scss";

CSS Variables

Another way to customize the color system of the Material theme is to modify the CSS variables as each value in the Sass map is also represented as a CSS variable (custom property) and exposed at the root level:

:root {
--kendo-color-primary-subtle: #ffeceb;
--kendo-color-primary-subtle-hover: #ffdedb;
--kendo-color-primary-subtle-active: #ffc8c4;
--kendo-color-primary: #ff6358;
--kendo-color-primary-hover: #ea5a51;
--kendo-color-primary-active: #d45349;
--kendo-color-primary-emphasis: #ff9d97;
--kendo-color-primary-on-subtle: #5c201c;
--kendo-color-on-primary: #ffffff;
--kendo-color-primary-on-surface: #ff6358;
// Repeats for all colors
// ...
}

Using the CSS variables allows for greater flexibility and easier customization when applying colors to various elements. For example, here is how you can apply these custom properties in your code:

.my-element {
background-color: var(--kendo-color-primary) // Apply the primary color to .my-element.
}