Theming
This section describes how to use your themes or use a pre-built one.
Live example
DikeGrid theming
Defining a theme
@use "@angular/material" as mat;
@use "@dikesoft/angular-data-grid" as dkg;
// The core mixin must be included exactly once for your application:
@include mat.core();
// The "warn" palette is optional:
$primary: mat.define-palette(mat.$indigo-palette);
$accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
// You can define a dark theme as well:
$theme: mat.define-light-theme((
color: (
primary: $primary,
accent: $accent
)
));
// Emit styles for all Angular components:
@include mat.all-component-themes($theme);
// Emit style for the DikeGrid component:
@include dkg.theme($theme);Customizing typography
Using a pre-built theme
Theme
Scheme
Palettes
Importing the CSS file
Adding the CSS file to the styles array
Custom scrollbars


Summary
Last updated