Documentation template powered by Astro Starlight with built-in support for Tailwind CSS v4 and Mermaid diagrams.
- Astro Starlight Documentation framework with light/dark theme support, sidebar, search, and more.
- Tailwind CSS v4 CSS utilities via
@tailwindcss/vite. Customize your design insrc/styles/global.css. - astro-mermaid Render Mermaid diagrams directly in Markdown/MDX files.
foresttheme withautoTheme(adapts to light/dark mode automatically).basiscurve style for flowcharts.- Included icon packs:
logosandiconoir(via Iconify).
- @mermaid-js/layout-elk ELK layout engine for complex diagrams.
├── public/
├── src/
│ ├── assets/
│ ├── content/
│ │ └── docs/
│ │ ├── index.mdx
│ │ ├── guides/
│ │ └── reference/
│ ├── styles/
│ │ └── global.css
│ └── content.config.ts
├── astro.config.mjs
├── bun.lock
├── package-lock.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── package.json
└── tsconfig.json
Starlight picks up .md and .mdx files inside src/content/docs/. Each file is exposed as a route based on its filename.
Write diagrams directly in your .md or .mdx files using mermaid code blocks:
```mermaid
flowchart LR
A[Start] --> B{Condition?}
B -- Yes --> C[Result A]
B -- No --> D[Result B]
```All commands are run from the root of the project:
| PNPM | Action |
|---|---|
pnpm install |
Install dependencies |
pnpm dev |
Start local dev server at localhost:4321 |
pnpm build |
Build the production site to ./dist/ |
pnpm preview |
Preview the build locally before deploying |
| NPM | Action |
|---|---|
npm install |
Install dependencies |
npm dev |
Start local dev server at localhost:4321 |
npm build |
Build the production site to ./dist/ |
npm preview |
Preview the build locally before deploying |
| BUN | Action |
|---|---|
bun install |
Install dependencies |
bun dev |
Start local dev server at localhost:4321 |
bun build |
Build the production site to ./dist/ |
bun preview |
Preview the build locally before deploying |
| Package | Version | Role |
|---|---|---|
astro |
^6.0.4 | Base framework |
@astrojs/starlight |
^0.38.1 | Documentation theme |
@astrojs/starlight-tailwind |
^5.0 | Starlight + Tailwind integration |
tailwindcss |
^4.2.1 | CSS framework |
@tailwindcss/vite |
^4.2.1 | Vite plugin for Tailwind v4 |
astro-mermaid |
^1.3.1 | Mermaid diagram integration |
mermaid |
^11.13.0 | Diagram engine |
@mermaid-js/layout-elk |
^0.2.1 | ELK layout engine for Mermaid |