Skip to content

Commit

Permalink
Update styles.scss to use Angular Material's recommended theming appr…
Browse files Browse the repository at this point in the history
…oach
  • Loading branch information
wwwillchen committed Dec 7, 2023
1 parent 7a62b37 commit b550323
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion web/src/app/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ body {
// Light theme
$light-primary: mat.define-palette(mat.$blue-palette, 800, 200);
$light-accent: mat.define-palette(mat.$indigo-palette, A200, A100, A400);
$light-theme: mat.define-light-theme($light-primary, $light-accent);
$light-warn: mat.define-palette(mat.$red-palette, 600, 200, 800);

$light-theme: mat.define-light-theme(
(
color: (
primary: $light-primary,
accent: $light-accent,
warn: $light-warn,
),
typography: null,
density: 0,
)
);

@include mat.all-component-themes($light-theme);

0 comments on commit b550323

Please sign in to comment.