返回资讯中心
外部精选
软件工程
#开发者实时流

Show HN: Pattern Dump, HTML-first style guides after Pattern Lab was archived

Pattern Lab, which I used for years to build style guides, has been archived. That made me rethink how we build style guides for websites and applications, so I tried my own approach and built Pattern Dump.

Hacker News 最新Birkoff2026/11/23 · 今天5 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

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.

npx pattern-dump@latest init

Pattern Dump 0.9.0, released 23 November 2026. Node 22.22 or later. Free and open source, MIT.

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.

The style guide comes first.

"><pd-components-note heading="Note" kind="danger"> The style guide comes first. </pd-components-note>

npx pd build

.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: .kind must be one of "note", "warning" (got "danger") ">[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.

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.

What Pattern Dump is for: one place for a design system's components, their documentation, their checks and the site built from them.

What Pattern Dump does with your design system and why, explained one idea at a time.

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.

Sites built with Pattern Dump, this one and the demo: their repositories, style guides and how they are published, shown from their own files.

Real sites, with the style guides behind them.

A Pattern Dump tour in eleven slides, on Sunset waves.

These docs, and the style guide they're built from.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →