You can change fonts and other text styles for headings, code, and all other components with the following theme properties:
By default, Mantine uses system fonts. This means that different devices will display components based on the available font. For example, macOS and iOS users will see the San Francisco font , Windows users will see the Segoe UI font , Android users will see the Roboto font , and so on. This approach provides a familiar experience to users and allows avoiding common problems related to custom fonts loading (layout shift, invisible text, etc.). If you do not have strict requirements, it is recommended to use system fonts for better performance.
Default values for theme properties:
Paras is an orange, insectoid Pokémon that resembles the nymph stage of a cicada. Its ovoid body is segmented, and it has three pairs of legs. The foremost pair of legs is the largest and has sharp claws at the tips. There are five specks on its forehead and three teeth on either side of its mouth. It has circular eyes with large pseudopupils.
The theme.fontSizes property defines font-size values for all Mantine components:
Default theme.fontSizes values:
The theme.lineHeights property defines line-height values for the Text component; most other components use theme.lineHeights.md by default:
Default theme.lineHeights values:
To customize headings styles in Title and Typography components, set theme.headings :
With theme.headings you can customize font-size, font-weight, and line-height per heading level. If you need more control over styles, use the :is selector with the Styles API to target a specific heading level: