Skip to content
Celestia Theme

Configuration Reference

Plugin Options

An array of navigation items displayed in the header bar.

interface NavItem {
  label: string | Record<string, string>;
  href: string | Record<string, string>;
}

multiSidebar

Turns every top-level entry of the Starlight sidebar config into its own sidebar, with a switcher to move between them. Unset by default, which leaves Starlight’s single sidebar in place.

interface MultiSidebarOptions {
  switcherStyle?: "horizontalList" | "dropdown" | "hidden";
}
switcherStyleBehavior
"horizontalList"One tab per sidebar above the entries (default)
"dropdown"A compact select listing every sidebar
"hidden"No switcher, only the sidebar with the current page

Every top-level sidebar entry must be a group or autogenerated when this is set. See the multi-sidebar guide.

stylingSystem

Controls the CSS delivery mode.

ValueBehavior
"detect"Auto-detect Tailwind (default)
"css"Use pre-compiled CSS
"tailwind"Use Tailwind processing

CSS Custom Properties

Layout

PropertyDefaultDescription
--sl-content-width55remMain content column width
--sl-sidebar-width17remLeft and right sidebar width
--sl-font'Inter', system-ui, sans-serifPrimary font family

Colors

Override these in your custom CSS for a different palette.

Gray Scale

The theme maps Tailwind’s gray palette to Starlight’s 7-step gray scale (--sl-color-gray-1 through --sl-color-gray-7).

Semantic Colors

PropertyPurpose
--sl-color-orange-*Warning callouts
--sl-color-green-*Success callouts
--sl-color-blue-*Info callouts
--sl-color-purple-*Custom callouts
--sl-color-red-*Danger callouts

Component Overrides

The theme overrides 15 Starlight component slots, plus Sidebar when multiSidebar is set:

ComponentPurpose
HeaderCustom nav bar with configurable items
SearchPagefind integration
ThemeProviderFOUC prevention and theme initialization
ThemeSelect3-way cycle toggle (Auto/Light/Dark)
PageFrameBorderless sidebar layout
TwoColumnContentBorderless right sidebar
HeroTwo-column responsive hero
PaginationCustom prev/next links
SiteTitleCustom logo/name layout
SocialIconsStyled social links
MarkdownContentContent wrapper
MobileMenuToggleHamburger button
MobileMenuFooterMobile nav drawer footer
MobileTableOfContentsMobile TOC
LanguageSelecti18n language picker
SidebarMulti-sidebar switcher, when enabled