Starlight - Full-featured documentation theme built on Astro for creating beautiful, accessible, high-performance documentation websites with built-in search, i18n, and customizable components
Starlight - Full-featured documentation theme built on Astro for creating beautiful, accessible, high-performance documentation websites with built-in search, i18n, and customizable components
Starlight Skill
Starlight is a full-featured documentation theme built on top of the Astro framework. It provides everything needed to create professional documentation sites with minimal configuration - from built-in search and internationalization to customizable components and dark mode support.
Key Value Proposition: Build beautiful, accessible, high-performance documentation websites with Astro's speed and Starlight's comprehensive feature set. Used by 10,300+ projects with 7,700+ GitHub stars.
When to Use This Skill
Creating documentation websites for projects, APIs, or products
Building technical documentation with code examples and syntax highlighting
Setting up multilingual documentation sites with i18n support
Developing landing pages with splash templates
Implementing searchable documentation with Pagefind integration
Customizing documentation themes with CSS or Tailwind
Migrating existing docs to a modern static site generator
Creating developer portals or knowledge bases
When NOT to Use This Skill
For blog-focused sites (use Astro's blog template instead)
For e-commerce or dynamic web applications (use full-stack frameworks)
For single-page applications requiring client-side routing (use React/Vue/Svelte)
For sites requiring server-side rendering on every request (use Next.js/Nuxt)
For non-documentation content-heavy sites (use general Astro templates)
// Global settingtableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3
}
// Or disable globallytableOfContents: false
Authoring Content
Frontmatter Options
---# Requiredtitle:PageTitle# Optional metadatadescription:SEOdescriptionforthepageslug:custom-url-path# Layout optionstemplate:doc# 'doc' (default) or 'splash' (landing page)tableOfContents:false# Disable ToC for this page# Hero section (for splash pages)hero:title:WelcometoMyDocstagline:Beautifuldocumentationmadeeasyimage:file:../../assets/hero.pngalt:Heroillustrationactions:-text:GetStartedlink:/getting-started/icon:right-arrowvariant:primary-text:ViewonGitHublink:https://github.com/user/repovariant:secondary# Sidebar customizationsidebar:label:CustomSidebarLabelorder:1# Sort order in autogenerated sidebarbadge:text:Betavariant:caution# note, tip, caution, danger, successhidden:false# Hide from sidebar# Navigationprev:false# Disable previous page linknext:link:/next-page/label:ContinuetoNext# Content managementlastUpdated:2026-01-12editUrl:false# Disable edit link for this pagedraft:true# Exclude from productionpagefind:false# Exclude from search---
Markdown Formatting
## Headings (H2-H6)**Bold text** and *italic text* and ~~strikethrough~~
`inline code` for technical terms
[Internal link](/guides/setup/)
[External link](https://example.com)
> Blockquote for important notes- Unordered list
- Another item
1. Ordered list
2. Second item
Asides (Callouts)
:::note
This is a note callout for general information.
:::
:::tip
Helpful tips and best practices go here.
:::
:::caution
Warnings about potential issues.
:::
:::danger
Critical warnings about breaking changes or security issues.
:::
:::tip[Custom Title]
You can customize the callout title.
:::
Code Blocks with Expressive Code
```javascript title="config.js"
// Basic code block with title
export const config = {
name: 'My App',
};
### Details/Accordion
```html
<details>
<summary>Click to expand</summary>
This content is hidden by default.
You can include **Markdown** formatting inside.
</details>
Built-in Components
Importing Components
---
title: Using Components
---
import { Tabs, TabItem, Card, CardGrid, LinkCard, Badge, Icon, Steps, FileTree } from '@astrojs/starlight/components';
<CardGrid>
<Card title="Getting Started" icon="rocket">
Learn the basics of setting up your project.
</Card>
<Card title="Configuration" icon="setting">
Customize your documentation site.
</Card>
</CardGrid>
<LinkCard
title="View on GitHub"
description="Check out the source code"
href="https://github.com/user/repo"
/>
Steps
<Steps>
1. Install the package
```bash
npm install my-package