Style Customisation

Chankya is developed with Bootstrap 4 so its easy to change the styling for your app. It uses bootstrap variables along with some custom variables which provides you the more flexibility and control over design.

Color Schemes and Typography

Go to the bootstrap-override.scss file and find following vars and change the value as per as your requirements.

bootstrap-overide.scss
$blue:     #1862c6 !default;
$indigo:   #6610f2 !default;
$purple:   #6f42c1 !default;
$pink:     #e83e8c !default;
$red:      #F54B5E !default;
$orange:   #ff5723 !default;
$yellow:   #F8C51C !default;
$green:    #00caac !default;
$teal:     #51CAE3 !default;
$cyan:     #43AE3F !default;

Typography

Manage the typography by changing the value of it.

bootstrap-overide.scss
$font-size-base:              1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg:                ($font-size-base * 1.25) !default;
$font-size-sm:                ($font-size-base * .875) !default;

$font-weight-lighter:         lighter !default;
$font-weight-light:           300 !default;
$font-weight-normal:          400 !default;
$font-weight-bold:            700 !default;
$font-weight-bolder:          bolder !default;

$font-weight-base:            $font-weight-normal !default;
$line-height-base:            1.5 !default;

$h1-font-size:                $font-size-base * 1.625 !default;
$h2-font-size:                $font-size-base * 1.375 !default;
$h3-font-size:                $font-size-base * 1.25 !default;
$h4-font-size:                $font-size-base * 1.125 !default;
$h5-font-size:                $font-size-base * 1 !default;
$h6-font-size:                $font-size-base * 0.875 !default;

To change app font family, you need to load appropriate font family from google or from other custom source in the head tag of index.html file. Like in following code:

Theme Custom Variables

Mange custome variable by changing the values in app.variable.scss file.

Changing Color Values For Charts And Map

If you want to change the colours on "Charts" then go to that specific chart type and make changes inside its component .ts file.

example: to change the colour on "Dashboard Chart", go to src/app/dashboard and open its .ts file, search for "chart" and change values:

Last updated

Was this helpful?