Skip to main content

Use a single logo for all themes:

{
"logo": "/logo.svg"
}

Light & Dark Logos

Use different logos for light and dark modes:

{
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg"
}
}

Make the logo clickable:

{
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "/"
}
}

Logo File Location

Place logo files in the public/ directory:

my-project/
β”œβ”€β”€ public/
β”‚ β”œβ”€β”€ logo.svg
β”‚ β”œβ”€β”€ logo-light.svg
β”‚ └── logo-dark.svg
β”œβ”€β”€ docs.json
└── ...

Then reference them with /logo.svg in your config.

SVG format is recommended for logos as it scales perfectly at all sizes.