Skip to content
Celestia Theme

Configuration Reference

An array of navigation items displayed in the header bar.

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

Controls the CSS delivery mode.

ValueBehavior
"detect"Auto-detect Tailwind (default)
"css"Use pre-compiled CSS
"tailwind"Use Tailwind processing
PropertyDefaultDescription
--sl-content-width55remMain content column width
--sl-sidebar-width17remLeft and right sidebar width
--sl-font'Inter', system-ui, sans-serifPrimary font family

Override these in your custom CSS for a different palette.

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

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

The theme overrides 15 Starlight component slots:

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