Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

UI Patterns allows you to define and use reusable UI components as Drupal plugins. These components can be leveraged in various parts of Drupal, including blocks, layouts, and field formatters, and can be documented in a pattern library. It also provides a migration path from its previous version and integrates with other modules to build comprehensive design systems.

Define and expose self-contained UI components as Drupal plugins and use them seamlessly in Drupal development and site-building.

UI components are reusable, nestable, guided by clear standards, and can be assembled together to build any number of applications.

Examples: card, button, slider, pager, menu, toast...

UI Patterns 2.x (with SDC)

UI Patterns 2 is leveraging Drupal Core's SDC (Single Directory Components) API. It exposes components:

  • as blocks in Block Layout, Layout Builder ....
  • as layouts in Layout Builder, Field Layout...
  • within field formatters in Manage Display, Layout Builder, Views...
  • as display & rows in Views

Each integration is a sub-module to activate.

Component library

The UI Patterns Library sub-module generates a pattern library page to be used as documentation for content editors or as a showcase for business and clients:

Compatibility with UI Patterns 1.x

The UI Patterns Legacy sub-module provides:

  • A compatibility layer for some simple code (not config) still using UI Patterns 1.x API
  • A drush command to migrate your UI Patterns 1.x components to SDC

Ecosystem

Some recommended modules:

  • sdc_devel: development aids to Single-Directory Components developers, with a powerful component validator
  • storybook: Create and manage your components from a Storybook instance.
  • ui_patterns_ds: Use SDC as Display Suite field templates.
  • ui_patterns_field_group: Use SDC as Field Group formatters.

UI Patterns is powering Display Builder, the modern visual builder built on Design System principles:

UI Patterns 1.x (before SDC)

Before SDC, UI Patterns 1.x was already providing UI components in Drupal, which can be used:

as Layouts plugins (every pattern field is a layout region), which can be used by modules like Display Suite, Panels, Layout Paragraphs, Views Layout... Learn more as Views rows, mapping rows fields to pattern fields. Learn more with Field Group, as provided by the Field Group module. Learn more with Display Suite, to format Display Suite field templates. Learn more

Migrate to UI Patterns 2.x

UI Patterns 2.x is proposing drush commands and update hooks to migrate:

  • UI Patterns 1.x components definitions to SDC
  • your display configurations

UI Suite

UI Suite provides a cohesive set of modules to implement full design systems while preserving and improving the Drupal site building experience.

UI Patterns can be used as standalone, but shines with other UI Suite modules. Together, they provide a a full API to implement design systems:

Showcases

UI Suite themes are all using UI Patterns 1.x and 2.x:

Bootstrap 4 & 5 DSFR (French Gov) USWDS (US Gov) See components/ folder See components/ folder See components/ folder DaisyUI Material Design 2 Mozilla Protocol See components/ folder See components/ folder See patterns/ folder

Activity

Total releases
26
First release
Dec 2024
Latest release
8 hours ago
Releases (12 mo)
15 ▲ from 11
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.18 Stable Jul 17, 2026
2.0.17 Stable Jul 8, 2026
2.0.16 Stable Jun 18, 2026
8.x-1.15 Stable Apr 8, 2026
2.0.15 Stable Mar 5, 2026
8.x-1.14 Stable Feb 4, 2026
2.0.14 Stable Jan 15, 2026
2.0.13 Stable Nov 13, 2025
2.0.12 Stable Nov 10, 2025
2.0.11 Stable Oct 30, 2025
2.0.10 Stable Sep 30, 2025
2.0.9 Stable Sep 5, 2025
2.0.8 Stable Aug 13, 2025
2.0.7 Stable Aug 11, 2025
2.0.6 Stable Jul 31, 2025
2.0.5 Stable Jun 26, 2025
8.x-1.13 Stable Jun 17, 2025
8.x-1.12 Stable Jun 17, 2025
8.x-1.11 Stable Jun 3, 2025
2.0.4 Stable May 22, 2025
2.0.3 Stable Mar 24, 2025
2.0.2 Stable Mar 13, 2025
2.0.1 Stable Mar 10, 2025
2.0.0 Stable Feb 6, 2025
2.0.0-rc2 Pre-release Jan 23, 2025
2.0.0-beta6 Pre-release Dec 7, 2024