Skip to content

Commit b127d56

Browse files
committed
refactor: use m3 theme
1 parent 1e6f5ba commit b127d56

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

projects/dev-app/src/app/home/home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h4>Code Editor Config</h4>
88

99
<div>
1010
<h4>
11-
<button mat-button (click)="showOutput = !showOutput">Toggle output</button>
11+
<button matButton (click)="showOutput = !showOutput">Toggle output</button>
1212
</h4>
1313
<div class="editor-wrap">
1414
<code-editor

projects/dev-app/src/app/home/home.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77

88
.cm-editor {
9-
border: 1px solid var(--mat-divider-color);
9+
border: 1px solid var(--mat-sys-outline-variant);
1010
}
1111
}
1212

projects/dev-app/src/styles.scss

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@
22
@use '@angular/material' as mat;
33
@use '@ng-matero/extensions' as mtx;
44

5-
@include mat.elevation-classes();
6-
@include mat.app-background();
5+
html {
6+
color-scheme: light;
77

8-
$primary: mat.m2-define-palette(mat.$m2-indigo-palette, 500);
9-
$accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
10-
$theme: mat.m2-define-light-theme(
11-
(
12-
color: (
13-
primary: $primary,
14-
accent: $accent,
15-
),
16-
typography: mat.m2-define-typography-config(),
17-
density: 0,
18-
)
19-
);
8+
@include mat.theme((
9+
color: mat.$azure-palette,
10+
typography: Roboto,
11+
density: 0
12+
));
13+
}
2014

21-
@include mat.all-component-themes($theme);
22-
@include mtx.all-component-themes($theme);
15+
.theme-dark {
16+
color-scheme: dark;
17+
}

0 commit comments

Comments
 (0)