Custom fonts
Bring your own fonts to personalize your documentation style.
Upload and manage custom fonts for branding or aesthetic purposes. Once added, fonts can be applied to your spaces or sites to achieve a unique look.
Attributes
Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules.
idstringRequired
A globally unique identifier for the font definition.
custombooleanRequired
Whether the font is a custom font. If false, this font is provided by GitBook.
fontFamilystring · min: 1 · max: 50Required
The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
The CustomizationFontDefinition object
{
"id": "text",
"custom": true,
"fontFamily": "text",
"fontFaces": [
{
"weight": 1,
"sources": [
{
"url": "https://example.com",
"format": "woff2"
}
]
}
],
"permissions": {
"edit": true
}
}Last updated
Was this helpful?