Dahlia
Type to search documentation.

Overview

Learn what Dahlia provides and how the documentation theme is organized.

Dahlia is an installable documentation theme for Astro v7, Tailwind CSS v4, and MDX. It provides the page shell, docs route, navigation model, theme tokens, and shared MDX components needed to start a project documentation site without rebuilding the chrome from scratch.

What Dahlia includes

How the docs tree works

Dahlia reads MDX entries from the docs content collection, then injects page, Markdown source, and search routes under docsBase. With the default docsBase: '/', Dahlia generates:

  • / and nested docs pages
  • /*.md Markdown source routes
  • /search.json search index data

The docsNav config decides which sidebar and subnav section owns each page. For locale directories, route prefixes, and fallback behavior, see Internationalization. For loader base, docsBase, and slug behavior, see Content Routing.

First steps

  1. Install the theme.

    Add Dahlia, then register the integration in astro.config.ts. Install @prosefly/astro-components directly when your own content imports shared MDX components.

    Install Dahlia

  2. Configure routes and locales.

    Decide where docs are mounted and how localized content directories map to public URLs.

    Review content routing

  3. Build the docs shell.

    Set project identity, appearance, site nav links, docs navigation, footer links, page actions, and search behavior.

    Configure the project

  4. Write content.

    Add frontmatter, Markdown, images, code blocks, and shared MDX components to replace the demo pages with project documentation.

    Review authoring essentials

  5. Customize when configuration is not enough.

    Use CSS tokens for visual changes and component overrides for shell markup or behavior changes.

    Customize Dahlia

Last updated Aug 24, 2026

Contributors