Skip to content

Starlight Components

Preview the built-in Starlight components with Lucode Starlight styling.

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.

  • Default
  • Note
  • Success
  • Tip
  • Caution
  • Danger
  • Small
  • Medium
  • Large
src/styles/global.css
@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);
}
}
  • Directorydocs
    • Directorysrc
      • Directorycontent
        • Directorydocs
          • Directoryguides
            • getting-started.md
            • configuration.md
            • theming.md
          • Directoryshowcase
            • starlight-components.mdx
            • splash-pages.mdx
            • typography.md
    • astro.config.mjs
  • Directorypackages
    • Directorylucode-starlight
      • Directorycomponents
        • custom
        • overrides
      • Directorystyles
        • base.css
        • theme.css

Get Started

Customize

Theme Components

Official Component Docs

  1. Add lucode-starlight to Starlight’s plugins array.

  2. Add ExtendDocsSchema if you want typed splash hero layouts and announcements.

  3. Override CSS custom properties from your app stylesheet.

  4. Review this page and the typography page before shipping a custom palette.

Terminal window
bun add lucode-starlight
bun run docs

Synced tabs keep repeated install, dev, and build examples aligned for readers.