diff options
Diffstat (limited to 'overlays/spm/frontend/src/custom-theme.scss')
-rw-r--r-- | overlays/spm/frontend/src/custom-theme.scss | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/overlays/spm/frontend/src/custom-theme.scss b/overlays/spm/frontend/src/custom-theme.scss new file mode 100644 index 00000000..5c2d48aa --- /dev/null +++ b/overlays/spm/frontend/src/custom-theme.scss | |||
@@ -0,0 +1,51 @@ | |||
1 | |||
2 | // Custom Theming for Angular Material | ||
3 | // For more information: https://material.angular.io/guide/theming | ||
4 | @use '@angular/material' as mat; | ||
5 | // Plus imports for other components in your app. | ||
6 | |||
7 | // Include the common styles for Angular Material. We include this here so that you only | ||
8 | // have to load a single css file for Angular Material in your app. | ||
9 | // Be sure that you only ever include this mixin once! | ||
10 | @include mat.core(); | ||
11 | |||
12 | // Define the palettes for your theme using the Material Design palettes available in palette.scss | ||
13 | // (imported above). For each palette, you can optionally specify a default, lighter, and darker | ||
14 | // hue. Available color palettes: https://material.io/design/color/ | ||
15 | $spm-frontend-primary: mat.define-palette(mat.$indigo-palette); | ||
16 | $spm-frontend-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400); | ||
17 | |||
18 | // The warn palette is optional (defaults to red). | ||
19 | $spm-frontend-warn: mat.define-palette(mat.$red-palette); | ||
20 | |||
21 | // Create the theme object. A theme consists of configurations for individual | ||
22 | // theming systems such as "color" or "typography". | ||
23 | $spm-frontend-light-theme: mat.define-light-theme(( | ||
24 | color: ( | ||
25 | primary: $spm-frontend-primary, | ||
26 | accent: $spm-frontend-accent, | ||
27 | warn: $spm-frontend-warn, | ||
28 | ) | ||
29 | )); | ||
30 | |||
31 | $spm-frontend-dark-theme: mat.define-dark-theme(( | ||
32 | color: ( | ||
33 | primary: $spm-frontend-primary, | ||
34 | accent: $spm-frontend-accent, | ||
35 | warn: $spm-frontend-warn, | ||
36 | ) | ||
37 | )); | ||
38 | |||
39 | |||
40 | // Include theme styles for core and each component used in your app. | ||
41 | // Alternatively, you can import and @include the theme mixins for each component | ||
42 | // that you are using. | ||
43 | @include mat.all-component-themes($spm-frontend-dark-theme); | ||
44 | |||
45 | [data-color-scheme="light"] { | ||
46 | @include mat.all-component-colors($spm-frontend-light-theme); | ||
47 | } | ||
48 | |||
49 | |||
50 | html, body { height: 100%; } | ||
51 | body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } | ||