Single Card
This is a standalone card with an icon. Cards are useful for highlighting key information or features.
Each aside type uses the ::: fence syntax with its default title.
Starlight’s built-in aside components get rounded corners and a layered shadow:
.starlight-aside { border-radius: 0.75rem; box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.12);}This is the overview tab content. It contains plain text to verify basic tab rendering.
This is the details tab. Switching between tabs should be instant with no page reload.
Plain paragraph content in the first tab.
const greeting = "Hello from a code block inside a tab!";console.log(greeting);inline codeThese two tab groups share syncKey="pkg". Selecting a tab in one group should update the other.
Install command:
npm install @f5xc-salesdemos/docs-themepnpm add @f5xc-salesdemos/docs-themeyarn add @f5xc-salesdemos/docs-themeRun command:
npm run devpnpm devyarn devClone the repository
git clone https://github.com/example/repo.gitcd repoInstall dependencies
npm installStart the dev server
npm run devThe site will be available at http://localhost:4321.
Single Card
This is a standalone card with an icon. Cards are useful for highlighting key information or features.
Performance
Astro delivers zero-JS by default for fast page loads.
Customizable
Starlight provides extensive theming and plugin options.
Accessible
Built-in accessibility features ensure content reaches everyone.
Documented
Comprehensive documentation makes getting started straightforward.
Step One
Configure your project settings and environment variables.
Step Two
Create your content pages using MDX format.
Step Three
Preview locally with the development server.
Step Four
Deploy to your hosting platform of choice.
The theme provides a LinkCard component that works with or without icons. Import it from the theme:
import LinkCard from '@f5xc-salesdemos/docs-theme/components/LinkCard.astro';Add an icon prop using prefix:name syntax. All eight icon packs are supported — see the Icon Packages documentation for the full catalog.
lucide:)carbon:)mdi:)phosphor:)tabler:)f5-brand:)f5xc:)These icons are multi-color and use CSS custom properties for light/dark mode color adaptation.
hashicorp-flight:)All six badge variants rendered inline:
Default Note Danger Success Tip CautionEach size with a variant:
Small Tip Medium Danger Large SuccessThe following headings use the starlight-heading-badges plugin syntax.
This heading has a success badge indicating the feature is stable.
This heading has a caution badge indicating the API is experimental.
This heading has a danger badge indicating deprecation.
This heading has a tip badge indicating a new feature.
This heading has a note badge indicating recent updates.
This heading has a default badge with no variant specified.
Check the sidebar: this page has a “New” badge with the tip variant applied via frontmatter.
| Feature | Status | Priority |
|---|---|---|
| Dark mode | Supported | High |
| Image zoom | Supported | Medium |
| Mermaid diagrams | Supported | Medium |
| Heading badges | Supported | Low |
| Property | Type | Default | Description |
|---|---|---|---|
title | string | — | Page title displayed in the header |
description | string | "" | Meta description for SEO |
sidebar.order | number | 0 | Sort order in the sidebar |
sidebar.badge | object | null | Badge shown next to sidebar label |
template | "doc" | "splash" | "doc" | Page layout template |
The image below tests the starlight-image-zoom plugin. Click to zoom.
