10
10
@use ' ../app/shares/shares-account-view/shares-account-view.component-theme.scss' as * ;
11
11
@use ' content' as * ;
12
12
@use ' dark_content' as * ;
13
- @use ' pictonblue-yellowgreen' as * ;
14
13
15
- // Include the common styles for Angular Material. We include this here so that you only
16
- // have to load a single css file for Angular Material in your app.
17
- // Be sure that you only ever include this mixin once!
18
- // TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.
19
- // The following line adds:
20
- // 1. Default typography styles for all components
21
- // 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)
22
- // If you specify typography styles for the components you use elsewhere, you should delete this line.
23
- // If you don't need the default component typographies but still want the hierarchy styles,
24
- // you can delete this line and instead use:
25
- // `@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config());`
26
14
@include mat .all-component-typographies ();
27
15
@include mat .core ();
28
16
29
17
/* ################################## Light theme ################################### */
30
18
31
- // Define the palettes for your theme using the Material Design palettes available in palette.scss
32
- // (imported above). For each palette, you can optionally specify a default, lighter, and darker
33
- // hue. Available color palettes: https://material.io/design/color/
34
- $mifosx-app-primary : mat .define-palette ($primary -palette );
35
- $mifosx-app-accent : mat . define-palette ( $accent-palette );
19
+ $mifosx-color-config : (
20
+ primary : mat . define- palette( $primary-palette ),
21
+ accent : mat . define-palette ( $accent-palette ),
22
+ warn : mat .define-palette (mat . $red -palette )
23
+ );
36
24
37
- // The warn palette is optional (defaults to red).
38
- $mifosx-app-warn : mat . define-palette ( mat . $red-palette ) ;
25
+ $mifosx-typography : mat . define-typography-config ();
26
+ $mifosx-density : 0 ;
39
27
40
- // Create the theme object (a Sass map containing all of the palettes).
41
- $mifosx-app-theme : mat .define-light-theme ($mifosx-app-primary , $mifosx-app-accent , $mifosx-app-warn );
28
+ $mifosx-app-theme : mat .define-light-theme (
29
+ (
30
+ color : $mifosx-color-config ,
31
+ typography: $mifosx-typography ,
32
+ density: $mifosx-density
33
+ )
34
+ );
42
35
43
- // Include theme styles for core and each component used in your app.
44
- // Alternatively, you can import and @include the theme mixins for each component
45
- // that you are using.
36
+ @include mat .typography-hierarchy ($mifosx-typography );
46
37
@include mat .all-component-themes ($mifosx-app-theme );
47
38
@include groups-view-component-theme ($mifosx-app-theme );
48
39
@include centers-view-component-theme ($mifosx-app-theme );
@@ -52,17 +43,20 @@ $mifosx-app-theme: mat.define-light-theme($mifosx-app-primary, $mifosx-app-accen
52
43
53
44
/* ################################## Dark theme ################################### */
54
45
55
- // Define the palettes for your theme using the Material Design palettes available in palette.scss
56
- $mifosx-app-dark-primary : mat .define-palette ($dark-primary-palette );
57
- $mifosx-app-dark-accent : mat .define-palette ($dark-accent-palette );
58
- $mifosx-app-dark-warn : mat .define-palette (mat .$red-palette );
46
+ $mifosx-dark-color-config : (
47
+ primary : mat .define-palette ($dark-primary-palette ),
48
+ accent : mat .define-palette ($dark-accent-palette ),
49
+ warn : mat .define-palette (mat .$red-palette )
50
+ );
59
51
60
- // Create the theme object (a Sass map containing all of the palettes).
61
- $mifosx-app-dark-theme : mat .define-dark-theme ($mifosx-app-dark-primary , $mifosx-app-dark-accent , $mifosx-app-dark-warn );
52
+ $mifosx-app-dark-theme : mat .define-dark-theme (
53
+ (
54
+ color : $mifosx-dark-color-config
55
+ )
56
+ );
62
57
63
- // Include theme styles for core and each component used in your app.
64
58
.dark-theme {
65
- @include mat .all-component-themes ($mifosx-app-dark-theme );
59
+ @include mat .all-component-colors ($mifosx-app-dark-theme );
66
60
@include groups-view-component-theme ($mifosx-app-dark-theme );
67
61
@include centers-view-component-theme ($mifosx-app-dark-theme );
68
62
@include dashboard-component-theme ($mifosx-app-dark-theme );
0 commit comments