Skip to content

Commit e7d9249

Browse files
docs(material/theming): add missing theme variable to theming guide docs (#27324)
1 parent 0416617 commit e7d9249

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

guides/theming-your-components.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ indicating whether dark mode is set.
1919
@use 'sass:map';
2020
@use '@angular/material' as mat;
2121

22+
$primary: mat.define-palette(mat.$indigo-palette);
23+
$accent: mat.define-palette(mat.$pink-palette);
24+
$warn: mat.define-palette(mat.$red-palette);
25+
26+
$theme: mat.define-light-theme((
27+
color: (primary: $primary, accent: $accent, warn: $warn),
28+
));
29+
2230
$color-config: mat.get-color-config($theme);
2331
$primary-palette: map.get($color-config, 'primary');
2432
$accent-palette: map.get($color-config, 'accent');

0 commit comments

Comments
 (0)