Part of the UI ecosystem · 45 projects
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 moreMigrate 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/ folderAsk your assistant about UI Patterns (SDC in Drupal UI)
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
22 tracked projects depend on this one
- UI Patterns Settings 2,601 sites
- UI Patterns 1.x Field Formatters 1,202 sites
- UI Patterns Layout Builder 698 sites
- UI Patterns 1.x Views Style 369 sites
- Ui Suite Bootstrap 360 sites
- UI Suite USWDS 279 sites
- Component blocks 193 sites
- Ui Suite Dsfr 95 sites
- Pagedesigner 84 sites
- Seeds Widgets 42 sites
- UI Patterns 1.x Entity Links 38 sites
- Drupal Website Development 33 sites
- UI Suite UIkit 31 sites
- GovNL NL Design System 18 sites
- UI Suite USWDS Paragraphs 16 sites
- UI Controls 16 sites
- UI Patterns From Layouts 12 sites
- UI Patterns Library Plus 6 sites
- Seeds Tailwind Coat 5 sites
- UI Patterns Library Admin Theme 2 sites
- Webtheme 1 sites
- Title paragraph
More in the UI ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.23 | Stable | 10–11 | PHP >=8.3.0 | Oct 13, 2026 | |
| 2.0.22 | Stable | 10–11 | PHP >=8.3.0 | Oct 7, 2026 | |
| 8.x-1.16 | Stable | 9–11 | Oct 2, 2026 | ||
| 2.0.21 | Stable | 10–11 | PHP >=8.3.0 | Sep 4, 2026 | |
| 2.0.20 | Stable | 10–11 | Aug 28, 2026 | ||
| 2.0.19 | Stable | 10–11 | Aug 6, 2026 | ||
| 2.0.18 | Stable | 10–11 | Jul 17, 2026 | ||
| 2.0.17 | Stable | 10–11 | Jul 8, 2026 | ||
| 2.0.16 | Stable | 10–11 | Jun 18, 2026 | ||
| 8.x-1.15 | Stable | 9–11 | Apr 8, 2026 |