Themes & Font


Our templates use fonts loaded from Google Fonts. You can change it in the index.html file.

<link href="//,700,800&display=swap" rel="stylesheet">

Theme Primary Color

We used CSS variables to set primary color & font family globally. This variable can be set in the components/kit/core/css/core.scss file.

:root {
--kit-color-primary: #4b7cf3;
--kit-font-family: 'Mukta', sans-serif;

Some third-party plugins also used this variable. See the components/kit/vendors folder.

Dynamically change by Color Picker

On color change event in Color Picker component next code will be added to the end of the document, which will set --kit-color-primary variable to a new statement:

<style id="primaryColor">:root { --kit-color-primary: #f35847;}</style>

Switching Light / Dark Theme

Basically switching light theme to dark theme will change data-kit-theme on html tag.

  • Light theme: <html data-kit-theme="default">

  • Dark theme: <html data-kit-theme="dark">

All affected files have dark styles section in the end of file:

// dark theme
[data-kit-theme='dark'] { ... }

You can use this approach to use dark components inside light (pay attention to the order in which the styles are loaded!):

<div data-kit-theme="default">
<div class="card">...</div> // this card inherit light styles
<div data-kit-theme="dark">
<div class="card">...</div> // this card inherit dark styles

Ant Design Theming

Switching the Ant Design theme in a live application is more complex than just adding variables. To do this, we created a LESS plugin (components/kit/vendors/antd/themes/AntdThemeLoader.js).

Ant Design styles loaded in src/angular.json :

"styles": [