I've created a custom theme using Angular Material (v 5.2.4) in an Angular (v 5.2.0) app.
my-theme.scss:
@import '~@angular/material/theming';
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:300,400,500');
@include mat-core();
$my-theme-primary: mat-palette($mat-deep-orange);
$my-theme-accent: mat-palette($mat-amber, A200, A100, A400);
$my-theme: mat-light-theme($my-theme-primary, $my-theme-accent);
$my-typography: mat-typography-config(
$font-family: '"IBM Plex Sans Condensed"'
);
.my-theme {
@include angular-material-theme($my-theme);
@include angular-material-typography($my-typography);
}
I've also added the class names mat-app-background mat-typography to the body in the index.html page for my app.
When I add the my-theme class to the container of my app (inside the body), then all of the material components do get the custom font (for things like radio button labels, etc), but nothing outside of a component gets it.
I've also tried using the angular-material-typography() and mat-base-typography() mixins to no avail.
How can I override the fonts from the mat-typography class?