article: Typography in Angular Material 18 | Angular Material Dev #12
Replies: 3 comments 12 replies
-
Please is it possible to change the font to something like ''playfair display" and "lato" |
Beta Was this translation helpful? Give feedback.
-
Hi Dharmen, is there an Angular material way to configure responsive typography while still using the utility classes like mat-display-large, mat-body-large etc? |
Beta Was this translation helpful? Give feedback.
-
Hi Dharmen! Great article, it helped me get started. However, after talking to my team lead at my company about MAT-3 styling, he told me that directly accessing and modifying the design tokens is a bad practice, because they could easily break. After doing some research, I managed to find a more "beautiful" way of modifying typography:
This is based on looking inside the material-components source code, and a lot of different articles and documentation. The only downside is, that MAT-3 only defines 15 different fonts, so if your app uses more than 15 fonts, maybe this is not the best approach. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
article: Typography in Angular Material 18 | Angular Material Dev
Learn Material Design in Angular, Theming Angular Material Components and Developing your Angular application with Material Design like a pro.
https://angular-material.dev/articles/angular-material-18-typography
Beta Was this translation helpful? Give feedback.
All reactions