docs.json, so you can apply your brand identity in one place without touching individual pages or writing custom CSS.
Colors
Set your brand colors in thecolors block inside docs.json. 通用文档站点 uses three color roles to cover both light and dark mode:
docs.json
- primary — used for buttons, links, and interactive elements across your site
- light — used as an accent color in light mode backgrounds and highlights
- dark — used as an accent color in dark mode backgrounds and highlights
Logo
Add your logo by providing separate image paths for light and dark mode. Using two versions ensures your logo remains legible regardless of which mode your users prefer.docs.json
/logo/ directory at the root of your docs folder. SVG format is recommended because it scales cleanly at any resolution.
Favicon
Set your favicon with a single line indocs.json. The favicon appears in browser tabs and bookmarks.
docs.json
.png and .ico are also supported.
Theme
通用文档站点 offers several built-in themes that control the overall layout and visual style of your site. Set your theme with the"theme" key in docs.json:
docs.json
| Theme | Description |
|---|---|
willow | Minimal and elegant — a clean, understated style that keeps the focus on your content |
luma | Sleek and developer-focused — sharp lines and a modern feel suited to technical audiences |
palm | Spacious and airy — generous whitespace that gives your content room to breathe |
almond | Approachable — warm tones and rounded elements that feel welcoming and friendly |
aspen | Bold and technical — high-contrast presentation suited to reference documentation |
maple | Sidebar-focused — places emphasis on navigation, ideal for large documentation sets |
sequoia | Information-rich — a dense layout that fits more content on screen at once |