Design system documentation for 0.9.0
Build your design system. Reuse it everywhere. Iterate in one place.
A design system workbench: components with a contract, documentation derived from the code, and a build that refuses what breaks either. The same components also build sites like this one.
Start in one command
npx pattern-dump@latest init
Pattern Dump 0.9.0, released 23 November 2026. Node 22.22 or later. Free and open source, MIT.
Promised in the schema, held by the build.
A component's schema says what it accepts. Give it something else, and pd build refuses, with the file and the line, before it writes anything.
<pd-components-note heading="Note" kind="danger">
The style guide comes first.
</pd-components-note>
[site] /about/:
- about.md:5:36: <pd-components-note>.kind
must be one of "note", "warning"
(got "danger")
[pd] Error: pd build: the site has problems,
so nothing was written:
- /about/: about.md:5:36:
<pd-components-note>.kind must be one of
"note", "warning" (got "danger")
How checks work lists what the build checks before it writes anything, and the two that --skip-checks leaves out; the benchmark shows what they cost at 2,000 pages, measured on 0.8.0: 7.06 s with those two skipped, 41.96 s with every check.
Guide
How to build a design system with Pattern Dump, step by step, from an empty folder to a style guide you run, check and publish.
- Create a style guideStart a style guide with pd init, the style guide generator in Pattern Dump, and learn what each question means and what each file it writes is for.
- Run the workbenchStart pd dev and find your way around the workbench, the part of Pattern Dump where your components render, with their docs, themes and checks beside them.
- Add a componentAdd a component to your style guide: a Handlebars template with its data, its component documentation and a schema, then give it a variant.
- Style a componentStyle a component in Pattern Dump: its own stylesheet, a rule in the base layer and CSS design tokens in your themes, then switch themes in the workbench.
- Check your workAutomated accessibility testing and checks for every component in Pattern Dump: the Diagnostics tab while you work, and pd audit for the whole style guide.
- Add a page to your siteWrite a page for your design system website in markdown, with a live example of your own component, and see it in pd dev beside the workbench.
- A site on a style guideKeep a style guide and its website as two Pattern Dump projects in one repository: the style guide as a package, the site as content only.
- PublishBuild your style guide and its site with pd build, fix what the build refuses, and publish both as a GitHub Pages static site or on any host.
- UpgradeMove Pattern Dump to a new version: the exact npm version your project pins, what to read first, and what changed in 0.9, 0.8.2, 0.8.1, 0.8 and 0.7.
The idea
What Pattern Dump is for: one place for a design system's components, their documentation, their checks and the site built from them.
Concepts
What Pattern Dump does with your design system and why, explained one idea at a time.
Reference
Every key, command and file of Pattern Dump, to look up by name: the configuration, the pd commands, frontmatter, layouts, the checks and the MCP server.
In practice
Sites built with Pattern Dump, this one and the demo: their repositories, style guides and how they are published, shown from their own files.
Pages
Everything else.
Built with Pattern Dump
Real sites, with the style guides behind them.