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.

Value Behavior
"detect" Auto-detect Tailwind (default)
"css" Use pre-compiled CSS
"tailwind" Use Tailwind processing
Property Default Description
--sl-content-width 55rem Main content column width
--sl-sidebar-width 17rem Left and right sidebar width
--sl-font 'Inter', system-ui, sans-serif Primary 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).

Property Purpose
--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:

Component Purpose
Header Custom nav bar with configurable items
Search Pagefind integration
ThemeProvider FOUC prevention and theme initialization
ThemeSelect 3-way cycle toggle (Auto/Light/Dark)
PageFrame Borderless sidebar layout
TwoColumnContent Borderless right sidebar
Hero Two-column responsive hero
Pagination Custom prev/next links
SiteTitle Custom logo/name layout
SocialIcons Styled social links
MarkdownContent Content wrapper
MobileMenuToggle Hamburger button
MobileMenuFooter Mobile nav drawer footer
MobileTableOfContents Mobile TOC
LanguageSelect i18n language picker