Style Customization

Gene fully follows the material design principles. So its too easy to customize gene as per as your requirement.

To complete understanding of material theming , please go to this linkarrow-up-right.

Gene Theming

circle-info

We made scss files in assets folder you can check by this root src\assets\scss

The steps of custom theme is clearly mentioned in this docarrow-up-right. So we made custom theme styling for gene.

Material Theming Variables

_material.variables.scss
@import '~@angular/material/theming/';

$primary: mat-palette($mat-blue,800);
$accent:  mat-palette($mat-cyan,700);
$warn: mat-palette($mat-red,600);
$success: mat-palette($mat-green,600);
$theme: mat-light-theme($primary, $accent, $warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);

These are some main variables to set the color sceheme for whole theme. These color as we mentioned earlier is follows the Google color systemarrow-up-right.

You can edit or update it by the standards of google color system.

Gene Theme Variables

This variables file has all the required color to manage the color scheme except material theme. Like if you want to change the color of sidebar,header,typography etc of heading

Changing the color of Charts

If you want to change the color value for Charts then you have to go to that specific chart type and make changes inside its .ts file

for Example:If you want to Change the color value for Dashborad Line Chart then go to >src>app>dashborad>dashborad v1 and open its .ts file and search for line chart and change in lineChartColor:

Last updated

Was this helpful?