How it works
It's possible to change the following typography types in the theme, which affects all text across the library.
DefaultBody1Body2Button
H1H2H3
H4H5H6
CaptionOverlineSubtitle1Subtitle2
Change Default Font
To change the default font for all available typography change FontFamily for the Default typography.
@code { MudTheme MyCustomTheme = new MudTheme() { Typography = new Typography() { Default = new Default() { FontFamily = new[] { "Poppins", "Helvetica", "Arial", "sans-serif" } } } }; }
Typography Settings
Each typography can be configured with five different settings.
@code { MudTheme MyCustomTheme = new MudTheme() { Typography = new Typography() { H6 = new H6() { FontFamily = new[] { "Roboto", "Helvetica", "Arial", "sans-serif" }, FontSize = "1.25rem", FontWeight = 500, LineHeight = 1.6, LetterSpacing = ".0075em" } } }; }