Перейти к содержимому

Starlight Components

A regression gallery for built-in Starlight UI and local theme components.

Use this page as a visual regression checklist when changing theme tokens or component overrides.

Docs navigation

Cards use compact type, quiet surfaces, and restrained hover states.

Theme tokens

Cards, code blocks, tabs, and file trees share the local surface tokens.

Search ready

The interface remains easy to scan on dense documentation pages.

  • Default
  • Note
  • Success
  • Tip
  • Caution
  • Danger
  • Small
  • Large
src/theme/styles/theme.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);
}
}
src/theme/config.ts
export const themeConfig = {
navLinks: [{ label: 'Showcase', link: '/showcase/starlight-components/' }],
docs: { includeAiUtilities: false },
};
  • Директорияsrc
    • Директорияcontent
      • Директорияdocs
        • Директорияshowcase
          • starlight-components.mdx
          • typography.md
          • splash-pages.mdx
    • Директорияtheme
      • Директорияcomponents
        • custom
        • overrides
      • Директорияstyles
        • base.css
        • theme.css
      • config.ts
      • schema.ts
  • astro.config.mjs

Starlight button Local theme button
  1. Edit a CSS custom property in src/theme/styles/theme.css.

  2. Switch between light and dark mode and review every component group.

  3. Verify the sidebar, search, table of contents, and mobile drawer.

  4. Use bun run build to validate content, aliases, and component imports.

Design tokens live in src/theme/styles/theme.css.

Use this view for palette and radius changes.