Skip to content

Commit d64ac26

Browse files
committed
Reveret module resolution/use theming updated syntax for colors obj
1 parent f313ce4 commit d64ac26

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

modules/web/src/assets/themes/dark.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ $colors-dark-palette: map.merge(
7878
500: #0072b0,
7979
)
8080
);
81-
$theme-dark: mat.m2-define-dark-theme(
82-
mat.m2-define-palette($colors-dark-palette),
83-
mat.m2-define-palette(mat.$m2-light-blue-palette),
84-
mat.m2-define-palette(mat.$m2-pink-palette)
85-
);
81+
$theme-dark: mat.m2-define-dark-theme((
82+
color: (
83+
primary: mat.m2-define-palette($colors-dark-palette),
84+
accent: mat.m2-define-palette(mat.$m2-light-blue-palette),
85+
warn: mat.m2-define-palette(mat.$m2-pink-palette)
86+
)
87+
));
8688
$background: map.get($theme-dark, background);
8789
$background: map.merge(
8890
$background,

modules/web/src/assets/themes/light.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ $colors-light-palette: map.merge(
7474
500: #00517d,
7575
)
7676
);
77-
$theme-light: mat.m2-define-light-theme(
78-
mat.m2-define-palette($colors-light-palette),
79-
mat.m2-define-palette(mat.$m2-light-blue-palette),
80-
mat.m2-define-palette(mat.$m2-pink-palette)
81-
);
77+
$theme-light: mat.m2-define-light-theme((
78+
color: (
79+
primary: mat.m2-define-palette($colors-light-palette),
80+
accent: mat.m2-define-palette(mat.$m2-light-blue-palette),
81+
warn: mat.m2-define-palette(mat.$m2-pink-palette)
82+
)
83+
));
8284
$background: map.get($theme-light, background);
8385
$background: map.merge(
8486
$background,

modules/web/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@environments/*": ["environments/*"],
1515
"@test/*": ["test/*"]
1616
},
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "node",
1818
"module": "ES2020",
1919
"target": "ES2022",
2020
"strict": false,

0 commit comments

Comments
 (0)