Back to templates

Template details

Astro Design System Theme

Astro starter theme for documenting design systems, styleguides, and components in markdown.

About this template

Astro Design System Theme is an open-source Astro starter template built for documenting design systems, styleguides, and component libraries in markdown. You can import your own component library—from React, Vue, or Svelte—and document every design decision and component directly inside markdown files.

What is Astro Design System Theme?

Astro Design System Theme is a documentation theme for design systems built with the Astro static site generator. It takes markdown and .astro files as input and produces a documentation site with a left-side navigation sidebar. The theme is created by @jordienr, has 145 stars on GitHub, and is free for personal and commercial use.

Key Features

  • Astro framework — Runs on Astro, the content-focused static site builder, and allows you to import components from React, Vue, or Svelte for live previews inside your docs.
  • Markdown-based documentation — Write pages in markdown or .astro files under src/pages/[section]/, and they automatically become part of the site.
  • Navigation config — Configure the left sidebar by editing the SIDEBAR array in src/config.ts, with support for section headers and links.
  • Design configuration — Customize colors, typography, and shadows centrally in src/config/design.config.ts; page-level styles live in src/styles/content.scss.
  • Component preview utility — Wrap any component in the .component-preview class to render it centered in a grid, ideal for showcasing component states.
  • Example component — Includes a MainButton component used in src/pages/en/buttons.md as a reference for documenting your own components.
  • Tailwind CSS styling — The included button example uses Tailwind utility classes like bg-blue-500, px-4, and py-2, and the preview wrapper uses a grid layout.

Who is it for?

  • Design system maintainers — Need a structured place to document design tokens, components, and usage guidelines for their team or organization.
  • Front-end developers — Want to import and document their own React, Vue, or Svelte component library without building a docs site from scratch.
  • Open-source project owners — Can use this starter to publish living styleguides and component documentation alongside their codebase, complete with customizable navigation and theming.

What can you do with Astro Design System Theme?

  • Create new sections — Create folders and add entries to the navigation config to organize docs into Core, Components, or custom sections like src/pages/components/buttons.md.
  • Customize the look and feel — Override colors, typography, shadows, and page CSS centrally through design.config.ts and content.scss to match your brand.
  • Document live components — Import components from any supported framework and display them in markdown pages with the .component-preview utility for interactive examples.

How does the theme work?

  • Create a new page by adding an .astro or markdown file to src/pages/[section]/my-page.md.
  • Add the page to the SIDEBAR array in src/config.ts so it appears in the left navigation.
  • Import your component library into any page and use the .component-preview class to wrap examples for a clean presentation.

You're free to organize pages however you want, and the theme is designed to adapt to your existing component library rather than dictating a structure.

screenshot of Astro Design System Theme on template0.com