WP Pattern Library
Generates a WordPress pattern library as markdown documention including screenshots
★ 2stars
1kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/wp-pattern-library/archive/refs/heads/main.zipAlso on Packagist as humanmade/wp-pattern-library:
composer require humanmade/wp-pattern-libraryFrom the readme
WP Pattern Library
Generate a browsable Markdown pattern library — with screenshots — from a WordPress site's registered block patterns.
📖 Documentation
- Getting started
- WordPress plugin
- NPM package
- GitHub Action
A block theme of any size is going to end up with dozens or hundreds of patterns. That is a design system, and it has the design system problem: the names live in patterns/.php, the appearance lives in the block inserter behind a login, and neither is somewhere you can point at.
This plugin generates the missing artifact. The site serves a manifest of its registered patterns and renders each one in isolation; a Node CLI captures them with Playwright and writes an index plus one page per category. The result is Markdown and images you commit — so it renders on GitHub, it is searchable, and when a pattern's appearance changes, the changed screenshot shows up in review.
It works against your local environment or a live site. A GitHub Action can run the whole thing and open a pull request with the refreshed docs.
Install
Three separate packages ship from this repository, all from the same tag:
| | Name | How you use i
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.4.0 | Sep 7, 2026 | — | — |