Skip to main content
Set a custom font for your entire site or separately for headings and body text. Use Google Fonts, local font files, or externally hosted fonts. The default font varies by theme. Configure fonts with the fonts property in your docs.json.

Google Fonts

Mintlify automatically loads Google Fonts when you specify a font family name in your docs.json.
docs.json

Local fonts

To use local fonts, place your font files in your project directory and reference them in your docs.json configuration.

Set up local fonts

1

Add font files to your project

For example, create a fonts directory and add your font files:
2

Configure fonts in docs.json

Reference your local fonts using relative paths from your project root:
docs.json

Local fonts for headings and body

Configure separate local fonts for headings and body text in your docs.json:
docs.json

Externally hosted fonts

Use externally hosted fonts by referencing a font source URL in your docs.json:
docs.json

Font configuration reference

fonts
object
Font configuration for your documentation.