I currently define a custom theme finishing with something like:
$my-material-theme: mat.define-light-theme((
color: (
primary: $my-material-primary,
accent: $my-material-accent,
warn: $my-material-warn,
),
typography: $my-material-font
));
@include mat.all-component-themes($my-material-theme);
All works properly. Still I noticed that some components were using a background-color different from what I used on the application and after some research, though that the following would further customise the theme:
$my-material-theme: mat.define-light-theme((
color: (
primary: $my-material-primary,
accent: $my-material-accent,
warn: $my-material-warn,
background: $my-material-background
),
typography: $my-material-font
));
@include mat.all-component-themes($my-material-theme);
, where obviously I defined the new background palette. After testing I see that it doesn't work as mat.define-light-theme seems to be dropping the background key internally and instead using an internal one. I'm not that familiar with Sass or material, and I would like be able to also define the background key introducing the least change on my code, using current version of Angular Material. Thanks in advance.
foreground
to your theme? – Werner