Docs navigation
Cards use compact type, quiet surfaces, and icon backgrounds that rotate through the Starlight accent palette.
Use this page as a regression checklist when changing tokens or component overrides. It keeps the long tail of Starlight UI in one place.
Docs navigation
Cards use compact type, quiet surfaces, and icon backgrounds that rotate through the Starlight accent palette.
Theme tokens
Cards, code blocks, tabs, and file trees share the --code-background surface token.
Search ready
The theme keeps hover states restrained so dense docs pages remain easy to scan.
@layer lucode { :root[data-theme='dark'] { --background: oklch(14.5% 0 0); --foreground: oklch(98.5% 0 0); --code-background: oklch(20.5% 0 0); }}
Customize
Theme Components
Official Component Docs
Add lucode-starlight to Starlight’s plugins array.
Add ExtendDocsSchema if you want typed splash hero layouts and announcements.
Override CSS custom properties from your app stylesheet.
Review this page and the typography page before shipping a custom palette.
bun add lucode-starlightbun run docsnpm install lucode-starlightnpm run devpnpm add lucode-starlightpnpm devSynced tabs keep repeated install, dev, and build examples aligned for readers.
The same tab stays selected here, which is useful on setup-heavy docs pages.
The theme does not require a specific package manager.