summaryrefslogtreecommitdiff
path: root/overlays/spm/frontend/src/custom-theme.scss
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-26 13:58:07 +0200
commitfc6cf6169868e60c189e4b243330c3717ff159f3 (patch)
tree3f6dea9c1420e23756257b5abea27ec9ed92d58a /overlays/spm/frontend/src/custom-theme.scss
parent84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff)
downloadnixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz
nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip
...
Diffstat (limited to 'overlays/spm/frontend/src/custom-theme.scss')
-rw-r--r--overlays/spm/frontend/src/custom-theme.scss51
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
50html, body { height: 100%; }
51body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }