docs.json file in the root of your docs directory. This page documents every available option so you can configure your site’s appearance, branding, and navigation exactly the way you want.
Complete example
The following example shows a fully configureddocs.json with all commonly used fields:
Top-level fields
The Mintlify JSON schema URL. Set this to
https://mintlify.com/docs.json to enable autocomplete and validation in editors that support JSON Schema, such as VS Code.Your site’s display name. This appears in the navbar and is used as the default browser tab title when no page title is set. Keep it short — typically your product or company name.
The visual theme applied to your entire docs site. Available values are
willow, luma, palm, almond, aspen, maple, and sequoia. Each theme has a distinct layout and typographic style. See the Themes reference for a full comparison.Path to your site’s favicon file, relative to the root of your docs directory. SVG and PNG formats are both supported. SVG is recommended because it scales cleanly at any size.Example:
"/favicon.svg"Colors
Thecolors object controls the accent colors used throughout your site. These colors are applied to links, buttons, active states, and other interactive elements. They work in combination with your chosen theme.
The main accent color for your site. Used for links, highlighted navigation items, and interactive UI elements. Provide a hex color value, for example
"#4F6AF0".A lighter variant of your primary color, applied in light mode contexts such as hover states, backgrounds, and subtle highlights. Provide a hex color value, for example
"#E8ECFD".A darker variant of your primary color, applied in dark mode contexts. Provide a hex color value, for example
"#2C3E9E".Logo
Thelogo object lets you specify separate image assets for light and dark mode. Providing both ensures your logo looks correct regardless of which mode your readers use.
Path to your logo image displayed in light mode, relative to the root of your docs directory. SVG format is recommended for sharp rendering at all sizes.Example:
"/logo/light.svg"Path to your logo image displayed in dark mode. This is typically a version of your logo with inverted or lighter colors to remain visible against dark backgrounds.Example:
"/logo/dark.svg"Navbar
Thenavbar.primary field adds a prominent call-to-action element to the right side of your top navigation bar. You can choose from three types depending on how you want to direct readers.
| Type | Description |
|---|---|
github | Displays the GitHub icon alongside a star count, linking to your repository. |
link | Renders a plain text link with custom label text. |
button | Renders a filled button, ideal for a primary CTA such as “Get started” or “Sign up”. |
Changes to
docs.json take effect after reloading the preview server. If you are running mint dev locally, save the file and refresh your browser to see updates.