I would like to override the font width in Angular Material 15 buttons and input fields.
Material docs say here that I should do this in my stylesheet:
@use '@angular/material' as mat;
$my-custom-level: mat.define-typography-level(
$font-family: Roboto,
$font-weight: 400,
$font-size: 1rem,
$line-height: 1,
$letter-spacing: normal,
);
I don't think this code actually "applies" my font changes, I guess it needs to be applied to the current theme or something, I tried various things but couldn't figure out how to apply this. Any hints would be appreciated.
I tried to create my custom theme but couldn't figure out where to apply $my-custom-level:
$config: mat.define-typography-config();
$theme: mat.define-light-theme((
typography: $config,
));
@include mat.input-typography($theme);