2021-09-24 20:52:14 +02:00
|
|
|
@use '~@angular/material' as mat;
|
2020-07-29 16:19:57 +02:00
|
|
|
@import "app/ui/misc/navigation/navigation.component.scss";
|
|
|
|
@import "~@angular/material/theming"; // @import '../../../node_modules/@angular/material/theming';
|
|
|
|
|
|
|
|
$app-green-theme-primary-palette: (
|
|
|
|
50: #e3f3f3,
|
|
|
|
100: #b8e2e0,
|
|
|
|
200: #89cecc,
|
|
|
|
300: #59bab8,
|
|
|
|
400: #36aca8,
|
|
|
|
500: #129d99,
|
|
|
|
600: #109591,
|
|
|
|
700: #0d8b86,
|
|
|
|
800: #0a817c,
|
|
|
|
900: #056f6b,
|
|
|
|
A100: #9ffffa,
|
|
|
|
A200: #6cfff7,
|
|
|
|
A400: #39fff5,
|
|
|
|
A700: #20fff3,
|
|
|
|
contrast: (
|
|
|
|
50: #000000,
|
|
|
|
100: #000000,
|
|
|
|
200: #000000,
|
|
|
|
300: #000000,
|
|
|
|
400: #000000,
|
|
|
|
500: #ffffff,
|
|
|
|
600: #ffffff,
|
|
|
|
700: #ffffff,
|
|
|
|
800: #ffffff,
|
|
|
|
900: #ffffff,
|
|
|
|
A100: #000000,
|
|
|
|
A200: #000000,
|
|
|
|
A400: #000000,
|
|
|
|
A700: #000000
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$app-green-theme-accent-palette: (
|
|
|
|
50: #fefbee,
|
|
|
|
100: #fdf5d5,
|
|
|
|
200: #fbeeb9,
|
|
|
|
300: #f9e79c,
|
|
|
|
400: #f8e287,
|
|
|
|
500: #f7dd72,
|
|
|
|
600: #f6d96a,
|
|
|
|
700: #f5d45f,
|
|
|
|
800: #f3cf55,
|
|
|
|
900: #f1c742,
|
|
|
|
A100: #ffffff,
|
|
|
|
A200: #ffffff,
|
|
|
|
A400: #fff6dc,
|
|
|
|
A700: #fff0c3,
|
|
|
|
contrast: (
|
|
|
|
50: #000000,
|
|
|
|
100: #000000,
|
|
|
|
200: #000000,
|
|
|
|
300: #000000,
|
|
|
|
400: #000000,
|
|
|
|
500: #000000,
|
|
|
|
600: #000000,
|
|
|
|
700: #000000,
|
|
|
|
800: #000000,
|
|
|
|
900: #000000,
|
|
|
|
A100: #000000,
|
|
|
|
A200: #000000,
|
|
|
|
A400: #000000,
|
|
|
|
A700: #000000
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2021-09-24 20:52:14 +02:00
|
|
|
$app-green-theme-primary: mat.define-palette($app-green-theme-primary-palette);
|
|
|
|
$app-green-theme-accent: mat.define-palette($app-green-theme-accent-palette, A200, A100, A400);
|
|
|
|
$app-green-theme-warn: mat.define-palette(mat.$red-palette);
|
2020-07-29 16:19:57 +02:00
|
|
|
|
|
|
|
$app-green-theme-background: (
|
2021-09-24 20:52:14 +02:00
|
|
|
status-bar: map_get(mat.$grey-palette, 300),
|
|
|
|
app-bar: map_get(mat.$grey-palette, 100),
|
|
|
|
background: map_get(mat.$grey-palette, 50),
|
2020-07-29 16:19:57 +02:00
|
|
|
hover: rgba(black, 0.04),
|
|
|
|
card: white,
|
|
|
|
dialog: white,
|
|
|
|
disabled-button: rgba(black, 0.12),
|
|
|
|
raised-button: white,
|
|
|
|
focused-button: $dark-focused,
|
2021-09-24 20:52:14 +02:00
|
|
|
selected-button: map_get(mat.$grey-palette, 300),
|
|
|
|
selected-disabled-button: map_get(mat.$grey-palette, 400),
|
|
|
|
disabled-button-toggle: map_get(mat.$grey-palette, 200),
|
|
|
|
unselected-chip: map_get(mat.$grey-palette, 300),
|
|
|
|
disabled-list-option: map_get(mat.$grey-palette, 200)
|
2020-07-29 16:19:57 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
$app-green-theme-foreground: (
|
|
|
|
base: white,
|
|
|
|
divider: $dark-dividers,
|
|
|
|
dividers: $dark-dividers,
|
|
|
|
disabled: $dark-disabled-text,
|
|
|
|
disabled-button: rgba(black, 0.26),
|
|
|
|
disabled-text: $dark-disabled-text,
|
|
|
|
hint-text: $dark-disabled-text,
|
|
|
|
secondary-text: $dark-secondary-text,
|
|
|
|
icon: rgba(white, 0.54),
|
|
|
|
icons: rgba(white, 0.54),
|
|
|
|
text: rgba(white, 0.87),
|
|
|
|
slider-min: rgba(black, 0.87),
|
|
|
|
slider-off: rgba(black, 0.26),
|
|
|
|
slider-off-active: rgba(black, 0.38)
|
|
|
|
);
|
|
|
|
|
|
|
|
$custom-theme: (
|
|
|
|
primary: $app-green-theme-primary,
|
|
|
|
accent: $app-green-theme-accent,
|
|
|
|
warn: $app-green-theme-warn,
|
|
|
|
is-dark: false,
|
|
|
|
foreground: $app-green-theme-foreground,
|
|
|
|
background: $app-green-theme-background
|
|
|
|
);
|
|
|
|
|
2021-09-24 20:52:14 +02:00
|
|
|
$custom-typography: mat.define-typography-config(
|
2020-07-29 16:19:57 +02:00
|
|
|
$font-family: "Lato, regular",
|
2021-09-24 20:52:14 +02:00
|
|
|
$headline: mat.define-typography-level(32px, 48px, 700),
|
|
|
|
$body-1: mat.define-typography-level(16px, 24px, 500)
|
2020-07-29 16:19:57 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
.green-theme {
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.core();
|
2020-07-29 16:19:57 +02:00
|
|
|
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.all-component-themes($custom-theme);
|
2020-07-29 16:19:57 +02:00
|
|
|
@include navigation-component-theme($custom-theme);
|
|
|
|
|
|
|
|
// Override typography CSS classes (e.g., mat-h1, mat-display-1, mat-typography, etc.).
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.typography-hierarchy($custom-typography);
|
2020-07-29 16:19:57 +02:00
|
|
|
|
|
|
|
// Override typography for a specific Angular Material components.
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.checkbox-typography($custom-typography);
|
2020-07-29 16:19:57 +02:00
|
|
|
|
|
|
|
// Override typography for all Angular Material, including mat-base-typography and all components.
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.all-component-typographies($custom-typography);
|
2020-07-29 16:19:57 +02:00
|
|
|
//If you're using Material's theming, you can also pass in your typography config to the mat-core mixin:
|
|
|
|
|
|
|
|
// Override the typography in the core CSS.
|
2021-09-24 20:52:14 +02:00
|
|
|
@include mat.core($custom-typography);
|
2020-07-29 16:19:57 +02:00
|
|
|
}
|