Skip to content

Starlight Components

Preview the built-in Starlight components with the Grove Starlight theme.

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 grove {
:root[data-theme='dark'] {
--background: oklch(14.5% 0 0);
--foreground: oklch(98.5% 0 0);
--code-background: oklch(20.5% 0 0);
}
}
  • docs - src - content - docs - guides - getting-started.md - configuration.md - theming.md - showcase - starlight-components.mdx - splash-pages.mdx - typography.md - astro.config.mjs - packages - @grove-dev/starlight - components - custom - overrides - styles - base.css - theme.css

Get Started

Customize

Theme Components

Official Component Docs

  1. Add @grove-dev/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.

bash bun add @grove-dev/starlight bun run docs

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