Skip to content

Commit 6f56169

Browse files
committed
fix(material/core): remove legacy theming in devapp
1 parent 4a802c4 commit 6f56169

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/dev-app/theme.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,17 @@ $candy-app-theme: mat.define-light-theme((
4545
$dark-primary: mat.define-palette(mat.$blue-grey-palette);
4646
$dark-accent: mat.define-palette(mat.$amber-palette, A200, A100, A400);
4747
$dark-warn: mat.define-palette(mat.$deep-orange-palette);
48-
$dark-colors: mat.define-dark-theme($dark-primary, $dark-accent, $dark-warn);
48+
$dark-colors: mat.define-dark-theme(
49+
(
50+
color: (
51+
primary: $dark-primary,
52+
accent: $dark-accent,
53+
warn: $dark-warn
54+
),
55+
density: 0,
56+
typography: mat.define-typography-config(),
57+
)
58+
);
4959

5060
// Include the dark theme color styles.
5161
@include mat.all-component-colors($dark-colors);
@@ -55,7 +65,7 @@ $candy-app-theme: mat.define-light-theme((
5565

5666
// Include the dark theme colors for focus indicators.
5767
&.demo-strong-focus {
58-
@include mat.strong-focus-indicators-theme($dark-colors);
68+
@include mat.strong-focus-indicators-color($dark-colors);
5969
}
6070
}
6171

0 commit comments

Comments
 (0)