Skip to content

Logo, navbar, footer and banner

Set your logo and favicon, the links in your header and footer, and a banner across every page.

2 min read

Updated

Branding lives in docs.json, apart from the banner, which can also live in theme.json. Edit the file in the editor or in your repo, and publish.

docs.json
{
"logo": { "light": "/logo/light.svg", "dark": "/logo/dark.svg", "href": "https://your-product.dev" },
"favicon": "/favicon.svg"
}

logo takes one path for both modes, or a light and a dark one. When you give one, Specly uses it for both. href is where clicking the logo goes. favicon is a path, or a { "light", "dark" } pair, where Specly uses the light one.

Paths start at your docs folder or at public/, and the files go in your repo. See Images and files.

The header holds your logo, your tabs, search, then your navbar links, a button and the light and dark switch.

docs.json
{
"navbar": {
"links": [
{ "label": "Dashboard", "href": "https://app.your-product.dev" },
{ "type": "github", "href": "https://github.com/your-org/your-repo" }
],
"primary": { "type": "button", "label": "Get started", "href": "https://your-product.dev/start" }
}
}
navbar.linksarraypath

Links in the header. Each has a label and an href. A link with a type of github, discord, slack, x or linkedin and no label takes the brand’s name.

navbar.primaryobjectpath

One highlighted button, with a label and an href.

docs.json
{
"footer": {
"links": [
{
"header": "Company",
"items": [
{ "label": "About", "href": "https://your-product.dev/about" },
{ "label": "Blog", "href": "https://your-product.dev/blog" }
]
}
],
"socials": { "github": "https://github.com/your-org", "x": "https://x.com/your-handle" },
"copyright": "© Your Company"
}
}
footer.linksarraypath

Columns of links. Each has a header and its items, each a label and an href. A column with no links is left out.

footer.socialsobjectpath

Each key names a network, and its value is the address.

footer.copyrightstringpath

A line of text in the footer.

A banner is a line across the top of every page, for an announcement. Its content is inline Markdown, so it can link.

theme.json
{
"banner": { "content": "New: [the changelog](/changelog) is live.", "dismissible": true }
}

Only web, mailto:, site (/path) and # links work in a banner. With dismissible, readers can close it, and it stays closed for that text. The same banner key works in docs.json. If both set one, theme.json wins. You can also set it in the dashboard, under Theme › Pages and checks.

docs.json
{ "appearance": { "default": "light", "strict": true } }

default is system, light or dark. With strict, a light or dark default is fixed and readers get no switch. Without it, readers start on your default and can switch. theme.json’s mode wins when it sets one. See Theme and fonts.

Every key is in the docs.json reference.

Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.