The UI Patterns Pattern Lab module automatically discovers patterns defined in a Pattern Lab instance and makes them available to be used in Drupal as UI Patterns.

This module will recognize Pattern Lab patterns in any active module or theme's /templates directory, along with any paths defined as Twig Namespaces in your theme by the Component Libraries module. After enabling this module (which will also enable the dependencies ui_patterns and ui_patterns_library) and clearing your cache, patterns should be visible at /patterns and available to use with any of the UI Patterns integration modules.

While it can improve the the workflow, this module is not required to use UI Patterns with Pattern Lab. It eliminates the need to manually create ui_patterns.yaml files that in many cases share quite a bit of overlap with pattern specific data files in Pattern Lab. If eliminating that duplication isn't important to you or wouldn't improve your workflow, then this module probably isn't for you.

This project would not exist without the work of Antonio De Marco who maintains the UI Patterns module and Pierre Dureau who created the UI Patterns Fractal integration that this project is based on.

Ongoing development for this theme is taking place in the following github repository. Issues and pull requests are primarily managed there.

Supporting organizations: 

Project information

Releases