Skip to content

Components

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.

Plain paragraph content in the first tab.

These two tab groups share syncKey="pkg". Selecting a tab in one group should update the other.

Install command:

Terminal window
npm install @f5xc-salesdemos/docs-theme

Run command:

Terminal window
npm run dev
  1. Clone the repository

    Terminal window
    git clone https://github.com/example/repo.git
    cd repo
  2. Install dependencies

    Terminal window
    npm install
  3. Start the dev server

    Terminal window
    npm run dev

    The 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.

These icons are multi-color and use CSS custom properties for light/dark mode color adaptation.

All six badge variants rendered inline:

Default Note Danger Success Tip Caution Small Medium Large

Each size with a variant:

Small Tip Medium Danger Large Success

The 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.

FeatureStatusPriority
Dark modeSupportedHigh
Image zoomSupportedMedium
Mermaid diagramsSupportedMedium
Heading badgesSupportedLow
PropertyTypeDefaultDescription
titlestringPage title displayed in the header
descriptionstring""Meta description for SEO
sidebar.ordernumber0Sort order in the sidebar
sidebar.badgeobjectnullBadge shown next to sidebar label
template"doc" | "splash""doc"Page layout template

The image below tests the starlight-image-zoom plugin. Click to zoom.

GitHub Avatar

  • Directorysrc/
    • Directorycontent/
      • Directorydocs/
        • index.mdx
        • 01-environment-variables.mdx
        • 02-build-pipeline.mdx
        • 03-astro-config.mdx
        • 04-logo.mdx
        • 05-colors.mdx
        • 07-typography.mdx
        • 08-code-blocks.mdx
        • 09-components.mdx This page
        • 10-mermaid.mdx
        • 11-footer.mdx
        • 12-style-enhancement-guide.mdx
    • Directoryplugins/
      • remark-mermaid.mjs
  • Directorystyles/
    • custom.css
  • astro.config.mjs
  • package.json
  • Border-left color differs per aside variant (blue, purple, yellow, red)
  • Aside background tint is visible in both light and dark modes
  • Box-shadow is subtle but visible around each aside
  • Rounded corners (0.75rem) on all asides
  • Tab active indicator color uses the accent color
  • Step connector line is visible between numbered steps
  • Synced tabs stay in sync when switching between groups
  • Code blocks inside tabs render with proper syntax highlighting
  • Card border color adapts between light and dark modes
  • Hover background effect is visible on cards
  • LinkCard arrow icon color matches the accent color
  • Stagger layout offsets alternate cards vertically
  • Icons render correctly inside card headers
  • Badge background colors per variant differ between dark and light modes
  • Dark mode badges use deep tones (red-4, jade-4, tangerine-4, eggplant-4, bay-4)
  • Light mode badges use light tones (red-1, jade-1, tangerine-1, eggplant-1, bay-1)
  • Heading badges align inline with heading text
  • Sidebar badge renders next to the page label
  • Table border colors adapt between light and dark modes
  • Table header row has a distinct background
  • Image zoom overlay works on click (starlight-image-zoom)
  • FileTree background uses theme-appropriate colors
  • Icons inherit the current text color