Global themes
Global themes let a single “control” repository define the shared visual identity (logo, colors, fonts, layout, CSS, JS, and more) for your organization’s documentation. Child repositories reference the theme by name and inherit those settings automatically when they publish.
This is useful when your organization maintains multiple documentation sites that should share the same branding.
How it works
Export a theme from your control repository
From the repository that defines your canonical branding, run:
This reads the theme-eligible fields from your docs.yml and produces a theme.yml file along with copies of any local assets (logos, fonts, CSS, JS) in a fern/theme/ directory.
Use --output to specify a different directory:
Upload the theme
Upload the exported theme to Fern’s registry:
This uploads the theme configuration and all referenced file assets. If you omit --name, the theme is saved as default.
What the theme controls
When a global theme is applied, the theme’s values take precedence for branding fields while the child repository retains control of its content and structure.
Owned by the theme (control repository)
logo- brand logo images and linkfavicon- browser tab iconbackground-image- page backgroundcolors- accent and background colorstypography- body, heading, and code fontslayout- sidebar width, content width, tab and searchbar placementtheme- light/dark mode defaultsettings- display settingsintegrations- analytics and trackingcss- custom stylesheetsjs- custom scriptsheader- custom header componentfooter- custom footer componentnavbar-links- top navigation linksfooter-links- footer navigation linksai-search- AI search configurationannouncement- announcement bannermetadata- SEO metadata
Owned by the child repository
navigation- tabs, sections, pagesapis- API referencesredirectsversionsinstances- domain and URL
Updating a theme
To update a theme, make changes to the control repository’s docs.yml, re-export, and re-upload with the same name. The next time a child repository publishes, it picks up the updated theme automatically.