Configuration Reference
Plugin Options
Section titled “Plugin Options”An array of navigation items displayed in the header bar.
stylingSystem
Section titled “stylingSystem”Controls the CSS delivery mode.
| Value | Behavior |
|---|---|
"detect" | Auto-detect Tailwind (default) |
"css" | Use pre-compiled CSS |
"tailwind" | Use Tailwind processing |
CSS Custom Properties
Section titled “CSS Custom Properties”Layout
Section titled “Layout”| 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 |
Colors
Section titled “Colors”Override these in your custom CSS for a different palette.
Gray Scale
Section titled “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
Section titled “Semantic Colors”| 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 |
Component Overrides
Section titled “Component Overrides”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 |