You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use custom fonts to match your documentation's visual identity. You can configure fonts for your entire site or separately for headings and body text using either Google Fonts or local font files. The default font varies by theme.
7
+
Configure fonts 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.
8
+
9
+
Fonts are controlled by the `fonts` property in your `docs.json`.
8
10
9
11
## Google Fonts
10
12
@@ -105,10 +107,10 @@ You can also use external font URLs instead of local files:
105
107
Font weight, such as 400 or 700. Variable fonts support precise weights such as 550.
106
108
</ResponseField>
107
109
<ResponseFieldname="source"type="string (uri)">
108
-
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2` or path to your local font file like `/assets/fonts/InterDisplay.woff2`. [Google Fonts](https://fonts.google.com) are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
110
+
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2`, or path to your local font file, such as `/assets/fonts/InterDisplay.woff2`. Google Fonts are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
Font file format. Required when using local fonts.
113
+
Font file format. Required when using the `source` field.
112
114
</ResponseField>
113
115
<ResponseFieldname="heading"type="object">
114
116
Override font settings specifically for headings.
@@ -121,10 +123,10 @@ You can also use external font URLs instead of local files:
121
123
Font weight for headings.
122
124
</ResponseField>
123
125
<ResponseFieldname="source"type="string (uri)">
124
-
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2` or path to your local font file for headings. [Google Fonts](https://fonts.google.com) are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
126
+
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2`, or path to your local font file for headings. Google Fonts are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
Font file format for headings. Required when using the `source` field.
128
130
</ResponseField>
129
131
</Expandable>
130
132
</ResponseField>
@@ -139,31 +141,12 @@ You can also use external font URLs instead of local files:
139
141
Font weight for body text.
140
142
</ResponseField>
141
143
<ResponseFieldname="source"type="string (uri)">
142
-
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2` or path to your local font file for body text. [Google Fonts](https://fonts.google.com) are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
144
+
URL to your font source, such as `https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2`, or path to your local font file for body text. Google Fonts are loaded automatically when you specify a Google Font `family` name, so no source URL is needed.
0 commit comments