@use '~@angular/material' as mat; @font-face { font-family: 'custom-font'; src: url('assets/custom-font.ttf'); } $custom-typography: mat.define-typography-config( $font-family: "custom-font" ); @include mat.core($custom-typography);