Skip to content

Commit a728aee

Browse files
committed
docs: improve documentation on custom typography variables
1 parent e418f71 commit a728aee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,14 @@ The `init-material-css-vars` mixin allows content to be passed into it. This all
169169
See the Material guide on [Theming your custom component](https://material.angular.io/guide/theming-your-components) for more information.
170170
171171
## 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.
173173
```scss
174174
@use 'angular-material-css-vars' as mat-css-vars;
175175
@use '@angular/material' as mat;
176176
177177
// example
178178
$custom-typography: mat.define-typography-config(
179+
// optionally, you introduce your own CSS variables: `$font-family: var(--my-custom-font-family)`
179180
$font-family: 'Roboto, monospace',
180181
$headline: mat.define-typography-level(32px, 48px, 700),
181182
$body-1: mat.define-typography-level(16px, 24px, 500)

0 commit comments

Comments
 (0)