File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -169,13 +169,14 @@ The `init-material-css-vars` mixin allows content to be passed into it. This all
169
169
See the Material guide on [Theming your custom component](https://material.angular.io/guide/theming-your-components) for more information.
170
170
171
171
## Font config
172
- If needed the typography can be adjusted as well.
172
+ If needed the typography can be adjusted as well. You can introduce your own CSS variables, if you wish.
173
173
```scss
174
174
@use ' angular-material-css-vars' as mat-css-vars;
175
175
@use ' @angular/material' as mat;
176
176
177
177
// example
178
178
$custom-typography: mat.define-typography-config(
179
+ // optionally, you introduce your own CSS variables: `$font-family: var(--my-custom-font-family)`
179
180
$font-family: ' Roboto, monospace' ,
180
181
$headline: mat.define-typography-level(32px, 48px, 700),
181
182
$body-1: mat.define-typography-level(16px, 24px, 500)
You can’t perform that action at this time.
0 commit comments