docs.json.
Google Fonts
Mintlify automatically loads Google Fonts when you specify a font family name in yourdocs.json.
docs.json
Local fonts
To use local fonts, place your font files in your project directory and reference them in yourdocs.json configuration.
Setting up local fonts
1
Add font files to your project
Create a
fonts directory in your project 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 yourdocs.json:
docs.json
When specifying separate fonts for headings and body, both configurations must include all required fields (family, source, format, and weight).
Externally hosted fonts
Use externally hosted fonts by referencing a font source URL in yourdocs.json:
docs.json
Font configuration reference
Font configuration for your documentation.