I've found solution in their migration guide https://angular-material.dev/articles/updating-to-angular-material-19#13-changes-for-typography. Don't know why it's not described in documentation
@include mat.typography-hierarchy(
mat.define-theme(
(
typography: (
use-system-variables: true,
system-variables-prefix: mat-sys,
),
)
)
);
This will also generate css classes https://angular-material.dev/articles/angular-material-18-typography#generated-css-classes