---
title: "Logo, navbar, footer and banner"
description: "Set your logo and favicon, the links in your header and footer, and a banner across every page."
---

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.

## Logo and favicon

```json 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](/write/images-and-files).

## Navbar

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

```json 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.links` (array): 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.primary` (object): One highlighted button, with a `label` and an `href`.

## Footer

```json 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.links` (array): 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.socials` (object): Each key names a network, and its value is the address.

- `footer.copyright` (string): A line of text in the footer.

## Banner

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

```json 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**.

## Light and dark

```json 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](/customize/theme).

Every key is in the [`docs.json` reference](/customize/docs-json).
