Skip to content

Commit

Permalink
No longer generate theme multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
tim9h committed Oct 3, 2024
1 parent f24a2d1 commit 853f657
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

@include mat.core();


body {
&.dark-theme {
@include mat.all-component-themes(m3-theme.$dark-theme);
@include mat.all-component-themes(m3-theme.$dark-theme);

&.dark-theme {
app-root {
mat-sidenav-container {
background-color: rgb(10, 10, 10);
Expand All @@ -19,7 +20,7 @@ body {
}

&:not(.dark-theme) {
@include mat.all-component-themes(m3-theme.$light-theme);
@include mat.all-component-colors(m3-theme.$light-theme);

app-root {
mat-sidenav-container {
Expand Down

0 comments on commit 853f657

Please sign in to comment.