Bootstrap Theme

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

Color in the Telerik and Kendo UI Bootstrap 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 Bootstrap 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 Bootstrap 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 Bootstrap 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 Bootstrap theme is represented in the following table:

KeyValue
Variable: kendo-colors
app-surface
  •  #ffffff
on-app-surface
  •  #212529
subtle
  •  #606970
surface
  •  #f8f9fa
surface-alt
  •  #ffffff
border
  •  #dee2e6
border-alt
  •  #ced4da
base-subtle
  •  #e9ecef
base-subtle-hover
  •  #dee2e6
base-subtle-active
  •  #ced4da
base
  •  #dee2e6
base-hover
  •  #ced4da
base-active
  •  #bdc4cb
base-emphasis
  •  #adb5bd
base-on-subtle
  •  #212529
on-base
  •  #212529
base-on-surface
  •  #212529
primary-subtle
  •  #cfe2ff
primary-subtle-hover
  •  #b6d4fe
primary-subtle-active
  •  #9ec5fe
primary
  •  #0d6efd
primary-hover
  •  #0b5ed7
primary-active
  •  #0a58ca
primary-emphasis
  •  #6ea8fe
primary-on-subtle
  •  #052c65
on-primary
  •  #ffffff
primary-on-surface
  •  #0d6efd
secondary-subtle
  •  #dee2e6
secondary-subtle-hover
  •  #ced4da
secondary-subtle-active
  •  #bdc4cb
secondary
  •  #6c757d
secondary-hover
  •  #606970
secondary-active
  •  #555c64
secondary-emphasis
  •  #8d959d
secondary-on-subtle
  •  #212529
on-secondary
  •  #ffffff
secondary-on-surface
  •  #212529
tertiary-subtle
  •  #e2d9f3
tertiary-subtle-hover
  •  #d3c5ec
tertiary-subtle-active
  •  #c5b3e6
tertiary
  •  #6f42c1
tertiary-hover
  •  #59359a
tertiary-active
  •  #4e2f89
tertiary-emphasis
  •  #a98eda
tertiary-on-subtle
  •  #21143b
on-tertiary
  •  #ffffff
tertiary-on-surface
  •  #6f42c1
info-subtle
  •  #cff4fc
info-subtle-hover
  •  #aaecfa
info-subtle-active
  •  #86e5f8
info
  •  #0dcaf0
info-hover
  •  #0aa2c0
info-active
  •  #098da8
info-emphasis
  •  #3dd5f3
info-on-subtle
  •  #04414d
on-info
  •  #ffffff
info-on-surface
  •  #0dcaf0
success-subtle
  •  #d1e7dd
success-subtle-hover
  •  #badbcc
success-subtle-active
  •  #8cc3aa
success
  •  #146c43
success-hover
  •  #125f3b
success-active
  •  #0f5132
success-emphasis
  •  #479f76
success-on-subtle
  •  #08291a
on-success
  •  #ffffff
success-on-surface
  •  #0f5132
warning-subtle
  •  #ffecb5
warning-subtle-hover
  •  #ffe69c
warning-subtle-active
  •  #ffe083
warning
  •  #ffc107
warning-hover
  •  #cc9a06
warning-active
  •  #b38705
warning-emphasis
  •  #ffcd39
warning-on-subtle
  •  #523e02
on-warning
  •  #000000
warning-on-surface
  •  #ffc107
error-subtle
  •  #f8d7da
error-subtle-hover
  •  #f5c2c7
error-subtle-active
  •  #f1aeb5
error
  •  #dc3545
error-hover
  •  #b02a37
error-active
  •  #9a2530
error-emphasis
  •  #e35d6a
error-on-subtle
  •  #421015
on-error
  •  #ffffff
error-on-surface
  •  #dc3545
light-subtle
  •  #f8f9fa
light-subtle-hover
  •  #e9ecef
light-subtle-active
  •  #dee2e6
light
  •  #f8f9fa
light-hover
  •  #e9ecef
light-active
  •  #dee2e6
light-emphasis
  •  #bdc4cb
light-on-subtle
  •  #343a40
on-light
  •  #000000
light-on-surface
  •  #ced4da
dark-subtle
  •  #6c757d
dark-subtle-hover
  •  #606970
dark-subtle-active
  •  #555c64
dark
  •  #212529
dark-hover
  •  #2c3035
dark-active
  •  #343a40
dark-emphasis
  •  #343a40
dark-on-subtle
  •  #ffffff
on-dark
  •  #ffffff
dark-on-surface
  •  #121417
inverse-subtle
  •  #6c757d
inverse-subtle-hover
  •  #606970
inverse-subtle-active
  •  #555c64
inverse
  •  #212529
inverse-hover
  •  #2c3035
inverse-active
  •  #343a40
inverse-emphasis
  •  #343a40
inverse-on-subtle
  •  #ffffff
on-inverse
  •  #ffffff
inverse-on-surface
  •  #121417
series-a
  •  #0d6efd
series-a-bold
  •  #0a53be
series-a-bolder
  •  #052c65
series-a-subtle
  •  #86b6fe
series-a-subtler
  •  #4992fd
series-b
  •  #6f42c1
series-b-bold
  •  #4e2f89
series-b-bolder
  •  #36215f
series-b-subtle
  •  #b9a3e1
series-b-subtler
  •  #8c68cd
series-c
  •  #20c997
series-c-bold
  •  #178c69
series-c-bolder
  •  #10654c
series-c-subtle
  •  #a6e9d5
series-c-subtler
  •  #4dd4ac
series-d
  •  #198754
series-d-bold
  •  #125f3b
series-d-bolder
  •  #0d442a
series-d-subtle
  •  #8cc3aa
series-d-subtler
  •  #479f76
series-e
  •  #dc3545
series-e-bold
  •  #9a2530
series-e-bolder
  •  #6e1b23
series-e-subtle
  •  #f1aeb5
series-e-subtler
  •  #e35d6a
series-f
  •  #ffc107
series-f-bold
  •  #b38705
series-f-bolder
  •  #806104
series-f-subtle
  •  #ffe083
series-f-subtler
  •  #ffcd39
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 Bootstrap theme.
@import "@progress/kendo-theme-bootstrap/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 Bootstrap theme, use either of the following approaches:

Sass Variables

One way to achieve your design requirements when working with the color system of the Bootstrap 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-bootstrap/scss/dist/all.scss";

CSS Variables

Another way to customize the color system of the Bootstrap 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.
}