Kendo UI for Vue provide themes that can be used to style your application.
Currently, the suite ships the following themes:
Kendo UI Default theme which is available through the
Kendo UI Bootstrap theme which is available through the
Kendo UI Material theme which is available through the
To start using a theme, install it through NPM.
npm install --save @progress/kendo-theme-default
The Kendo UI Bootstrap theme depends on the Twitter Bootstrap framework. To install the theme:
npm install --save @progress/kendo-theme-bootstrap.
- Install the version of the
bootstrapframework specified as a peer dependency.
After the theme package is installed, reference it in your project.
To include a theme in your application, either:
- Use the precompiled
- Customize the theme styles by loading the theme source files through the application build process.
Each Kendo UI for Vue theme includes an
all.css file with precompiled styles that can be used as a ready solution for theming the available Kendo UI Wrappers.
To style your components by using the precompiled CSS options, either:
all.cssin the application HTML, or
all.cssalong with the component by using its
To include the theme with its precompiled CSS in the HTML which hosts your application, use a similar approach to the approach you use to any other HTML page.
<link rel="stylesheet" href="/node_modules/@progress/kendo-theme-default/dist/all.css" />
To modify a Kendo UI for Vue theme, either:
- Use the Theme Builder application which provides an interface for theme customization, or
Use the variables of each theme to customize its colors and sizes and build a custom theme.
To utilize the customizable theme variables, refer to the lists of:
- Variables for customizing the Default theme
- Variables for customizing the Bootstrap theme
- Variables for customizing the Material theme
To build a custom theme, Use the build process of the themes. This approach requires you to build the theme once and then use the compiled CSS each time the component packages get updated.
While each Kendo UI theme has a dedicated NPM package (for example, @progress/kendo-theme-default), the source code for all themes is located in the
kendo-themes repository. This repository contains a build task that compiles the theme sources to CSS. To customize a theme, you can modify the source code of the theme and use the build task to produce a CSS file for your application. This approach avoid the need for a build configuration when compiling SCSS, but may be harder to maintain as the process has to be repeated for every update of the theme.
Previously, the themes were located in independent repositories. To improve the development process, these repositories are now merged in a single
kendo-themesrepository and the individual GitHub repositories for each theme are archived.
To create a custom theme by modifying the themes source code:
- Clone the kendo-themes GitHub repository.
- Install the dependencies for all themes with
npm install && npx lerna bootstrap.
- Customize the theme variables in the
Build the themes with the command
npm run buildto create the customized version of the themes in the
You might want to omit the styles for some components in the CSS output. To include only the styles that you need, run the
COMPONENTS='component1,component2' npm run buildcommand. For example, to create a CSS file that includes only the Grid and PanelBar styles, run
COMPONENTS='panelbar,grid' npm run build. The command creates the
dist/custom.cssfile which includes only the specified components.
After the build completes, use the compiled CSS.