I think the good way to do it is this way:
in your scss file
selector{ @include mat.form-field-density(-5); }
You can pick from 0 to -5 as far as I remember