|
|
@ -1,4 +1,5 @@ |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
@use '~@angular/material' as mat; |
|
|
|
// @ Custom color maps |
|
|
|
// @ Custom color maps |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
$navy-app-theme: ( |
|
|
|
$navy-app-theme: ( |
|
|
@ -72,19 +73,19 @@ $apside-primary-app-theme: ( |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
// Define the primary, accent and warn palettes |
|
|
|
// Define the primary, accent and warn palettes |
|
|
|
$default-primary-palette: mat-palette($navy-app-theme); |
|
|
|
$default-primary-palette: mat.define-palette($navy-app-theme); |
|
|
|
$default-accent-palette: mat-palette($mat-light-blue, 600, 400, 700); |
|
|
|
$default-accent-palette: mat.define-palette(mat.$light-blue-palette, 600, 400, 700); |
|
|
|
$default-warn-palette: mat-palette($mat-red); |
|
|
|
$default-warn-palette: mat.define-palette(mat.$red-palette); |
|
|
|
|
|
|
|
|
|
|
|
// Create the Material theme object |
|
|
|
// Create the Material theme object |
|
|
|
$theme: mat-light-theme($default-primary-palette, $default-accent-palette, $default-warn-palette); |
|
|
|
$theme: mat.define-light-theme($default-primary-palette, $default-accent-palette, $default-warn-palette); |
|
|
|
|
|
|
|
|
|
|
|
// Add ".theme-default" class to the body to activate this theme. |
|
|
|
// Add ".theme-default" class to the body to activate this theme. |
|
|
|
// Class name must start with "theme-" !!! |
|
|
|
// Class name must start with "theme-" !!! |
|
|
|
.theme-default { |
|
|
|
.theme-default { |
|
|
|
|
|
|
|
|
|
|
|
// Create an Angular Material theme from the $theme map |
|
|
|
// Create an Angular Material theme from the $theme map |
|
|
|
@include angular-material-theme($theme); |
|
|
|
@include mat.all-component-themes($theme); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
@ -92,19 +93,19 @@ $theme: mat-light-theme($default-primary-palette, $default-accent-palette, $defa |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
// Define the primary, accent and warn palettes |
|
|
|
// Define the primary, accent and warn palettes |
|
|
|
$blue-gray-dark-theme-primary-palette: mat-palette($navy-app-theme); |
|
|
|
$blue-gray-dark-theme-primary-palette: mat.define-palette($navy-app-theme); |
|
|
|
$blue-gray-dark-theme-accent-palette: mat-palette($mat-blue-gray); |
|
|
|
$blue-gray-dark-theme-accent-palette: mat.define-palette(mat.$blue-gray-palette); |
|
|
|
$blue-gray-dark-theme-warn-palette: mat-palette($mat-red); |
|
|
|
$blue-gray-dark-theme-warn-palette: mat.define-palette(mat.$red-palette); |
|
|
|
|
|
|
|
|
|
|
|
// Create the Material theme object |
|
|
|
// Create the Material theme object |
|
|
|
$blue-gray-dark-theme: mat-dark-theme($blue-gray-dark-theme-primary-palette, $blue-gray-dark-theme-accent-palette, $blue-gray-dark-theme-warn-palette); |
|
|
|
$blue-gray-dark-theme: mat.define-dark-theme($blue-gray-dark-theme-primary-palette, $blue-gray-dark-theme-accent-palette, $blue-gray-dark-theme-warn-palette); |
|
|
|
|
|
|
|
|
|
|
|
// Add ".theme-blue-gray-dark" class to the body to activate this theme. |
|
|
|
// Add ".theme-blue-gray-dark" class to the body to activate this theme. |
|
|
|
// Class name must start with "theme-" !!! |
|
|
|
// Class name must start with "theme-" !!! |
|
|
|
.theme-blue-gray-dark { |
|
|
|
.theme-blue-gray-dark { |
|
|
|
|
|
|
|
|
|
|
|
// Generate the Angular Material theme |
|
|
|
// Generate the Angular Material theme |
|
|
|
@include angular-material-theme($blue-gray-dark-theme); |
|
|
|
@include mat.all-component-themes($blue-gray-dark-theme); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -113,13 +114,13 @@ $blue-gray-dark-theme: mat-dark-theme($blue-gray-dark-theme-primary-palette, $bl |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
// ----------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
// Angular Material typography |
|
|
|
// Angular Material typography |
|
|
|
$typography: mat-typography-config( |
|
|
|
$typography: mat.define-typography-config( |
|
|
|
$font-family: 'Muli, Helvetica Neue, Arial, sans-serif', |
|
|
|
$font-family: 'Muli, Helvetica Neue, Arial, sans-serif', |
|
|
|
$title: mat-typography-level(20px, 32px, 600), |
|
|
|
$title: mat.define-typography-level(20px, 32px, 600), |
|
|
|
$body-2: mat-typography-level(14px, 24px, 600), |
|
|
|
$body-2: mat.define-typography-level(14px, 24px, 600), |
|
|
|
$button: mat-typography-level(14px, 14px, 600), |
|
|
|
$button: mat.define-typography-level(14px, 14px, 600), |
|
|
|
$input: mat-typography-level(16px, 1.125, 400) // line-height must be unitless !!! |
|
|
|
$input: mat.define-typography-level(16px, 1.125, 400) // line-height must be unitless !!! |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Setup the typography |
|
|
|
// Setup the typography |
|
|
|
@include angular-material-typography($typography); |
|
|
|
@include mat.all-component-typographies($typography); |