Skip to content

Configuration Options

This is the authoritative list of what the nebari() plugin accepts and what it sets on your behalf. For task-oriented guidance, see Configuration and Customizing the Theme.

Options passed to nebari(options):

Option Type Default Description
logoHref string site base (BASE_URL) URL the header logo links to. Set to a portal root for multi-pack domains.
interface NebariThemeOptions {
/** URL the header logo links to. Defaults to the site's own base. */
logoHref?: string;
}

When you register nebari(), it updates your Starlight config as follows. All of these are merged before your own config, so your values take precedence.

Setting What the theme adds Overridable
customCss Font faces, Nebari tokens, theme mapping, and component styles — prepended before your own customCss. Yes
components Overrides SiteTitle, Head, Footer, and ThemeSelect. Yes
social Prepends a GitHub link to github.com/nebari-dev. Yes
Component Status Why the theme overrides it
SiteTitle Overridden Renders the Nebari logo in the header.
Head Overridden Injects self-hosted font preloads.
Footer Overridden Adds the branded Nebari footer.
ThemeSelect Overridden Swaps the <select> for the icon toggle.

The theme maps Nebari’s OKLCH tokens onto Starlight’s semantic variables. Override the Starlight-side variable, not the raw token, so your changes survive upgrades.

Variable Role
--sl-color-accent Links, active states, primary buttons
--sl-color-accent-low Subtle accent backgrounds
--sl-color-accent-high High-contrast accent text
--sl-color-bg Page background
--sl-color-text Body text
Dependency Supported range Notes
Starlight 0.41.x Token mapping targets this major.
Astro 7.x Peer of the supported Starlight range.
Node.js >= 18.17 Bun 1.1+ also supported.