- Documentation
- Customize your site
- Logo, navbar, footer and banner
Logo, navbar, footer and banner
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
Section titled “Logo and favicon”{ "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.
Navbar
Section titled “Navbar”The header holds your logo, your tabs, search, then your navbar links, a button and the light and dark switch.
{ "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.linksarrayLinks in the header. Each has a
labeland anhref. A link with atypeofgithub,discord,slack,xorlinkedinand no label takes the brand’s name.
navbar.primaryobjectOne highlighted button, with a
labeland anhref.
Footer
Section titled “Footer”{ "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.linksarrayColumns of links. Each has a
headerand itsitems, each alabeland anhref. A column with no links is left out.
footer.socialsobjectEach key names a network, and its value is the address.
footer.copyrightstringA line of text in the footer.
Banner
Section titled “Banner”A banner is a line across the top of every page, for an announcement. Its content is inline Markdown, so it can link.
{ "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
Section titled “Light and dark”{ "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.