The Pattern Lab lists every pattern of the site, previews it in each style variation and width, checks it for accessibility, and records whether it is ready for pages.
For designers and agencies · Leitvia Studio · Editor or administrator · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.65 and Leitvia Pro 0.8.55
Open a pattern in the Lab
A pattern is a ready-made section, such as a hero or a price table, that you add to a page and then fill with your own text.
Transcript of the video
- The Pattern Lab lists every pattern of the theme, Studio, Pro and the site.
- Open a pattern to see it in every style variation and three widths, checked by axe.
Find a pattern
- Open Leitvia Studio › Pattern Lab.
- Type a word into Search patterns, for example hero or price.
- Optional: filter by Source (Theme, Leitvia Studio, Leitvia Pro, Other plugins and core or My patterns) or by Status.
- Click a card to open the pattern.
Each card shows a preview, the name, the status, the source and the last change. The theme Leitvia brings 90 patterns for the inserter, Studio adds 21, and Pro adds the patterns of its industry kits. Other plugins and core covers everything else, including WordPress itself.

Check a pattern
- Open the pattern. Under Preview, choose a Style variation and a Viewport of 390, 782 or 1440 px.
- Open the tab Checks. Design tokens lists fixed values such as a hex color where a role belongs.
- Click Run accessibility check. axe, an automatic accessibility tester, checks the pattern in every style variation, viewport and test content.
- Open the tab Usage to see on which pages and posts the pattern is used. If the Lab says Usage index is incomplete, click Build index once.
The table under Checks lists each combination with its violations, or No issues.


Status of your own patterns
Patterns you made on the site (source My patterns) have a status, so the team sees which sections are ready.
- Open the pattern in the Lab.
- Under Details, set Status to Draft, In review, Approved or Deprecated. For a deprecated pattern, name its successor under Replaced by.
- Raise the Version when you change the pattern, then click Save details.
Patterns in Draft or In review stay out of the inserter of the editor. A pattern that contains other patterns that are not approved yet shows the lower status. Patterns of the theme and of plugins keep their details in their own files, so the Lab shows them read-only.
Approve a pattern for AI agents
AI agents only use patterns the design contract of the theme knows. A pattern from another plugin, a child theme or WordPress itself needs your approval first. This is separate from the status above.
- Open the pattern in the Lab. The side column shows Approval for agents.
- Optional: set all six values Role, Tone, Layout, Density, Weight and Width, or leave all six on Not set. With them, the composition check knows where the section fits on a page.
- Tick the Section kinds it provides, such as a contact section.
- Click Approve for agents.
AI agents may now put the pattern on pages. Withdraw approval takes it back.

Import and export
- To export one of your own patterns, open its menu in the Lab and choose Export. The browser saves a JSON file.
- On the other site, click Import patterns above the list.
- Under Pattern files, choose one or more JSON files of at most 1 MB each, then click Import.
The patterns appear under My patterns. An approved pattern arrives In review, because its origin is not checked.

Composing pages
The description of each pattern in the inserter says when to use it. When an AI agent builds pages, for example while you are vibe coding a WordPress site, it puts approved patterns on the page instead of writing its own markup, so the design stays consistent. Studio scores the order of the sections, and a change that drops a page below the minimum score waits in the Inbox.
For developers
The same with WP-CLI. Import runs as a user, so it needs --user. More in the Developer guide.
wp leitvia patterns list --status=approved
wp leitvia patterns export my-hero my-proof > patterns.json
wp leitvia patterns import patterns.json --user=admin
Read next: Blocks and motion, Token sets and Figma plugin.