Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

UI Styles

1,837 sites Security covered Drupal 10–11 UI ecosystem
View on drupal.org

This project allows developers to define reusable style components, such as colors or spacing, that can then be easily applied by site builders through Drupal's administrative interface to various elements like blocks, Layout Builder, and views. It also generates a styleguide to document these available styles.

Allows developers to define styles from modules and themes and site builders to use them from Drupal admin interface.

The styles are:

  • collections of mutually exclusive, self-descriptive, single-purpose CSS classes. Examples: Typography, Borders, Background colors, Spacing....
  • commonly used in design systems, and can also be called "helpers", "utilities", "fundamentals"...
  • Drupal plugins, created and managed by the themer, inside a single YML file.

Examples of styles in upstream design systems:

Styleguide

A styles library page is generated as documentation for content editors or as a showcase for business and clients:

Site building features

Once created, the styles can be used with:

Block, on block titles, block content and block wrappers.
Themes regions. Note that if you have a region's Twig template not using the attributes variable it will not work.
Layout Builder, on block titles, block content, block wrappers, sections and sections' regions. It works also with layout builder overrides (custom layout for a content entity).
Views, on view wrappers ("view styles"), exposed forms and pagers.
Ckeditor5, as inline class and as block class.
Entity Status, on unpublished entities.
Paragraphs. Available styles are setup for each paragraph type.

It is also possible to add free extra classes, using a simple text field.

Each integration is a module to activate:

Feel free to propose other integrations.

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 Styles 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 Styles:

Bootstrap 4 & 5 DSFR (French Gov) USWDS (US Gov) See ui_styles.yml See ui_styles.yml See ui_styles.yml DaisyUI Material Design 2 Mozilla Protocol See ui_styles.yml See ui_styles.yml See ui_styles.yml

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

3 tracked projects depend on this one

Activity

Tracked releases
11
Tracked since
Oct 2024
Latest release
1 month ago
Releases (12 mo)
6 ▲ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
8.x-1.21 Stable 10–11 Jul 25, 2026
2.x-dev Dev 11 Jul 25, 2026
8.x-1.20 Stable 10–11 May 30, 2026
8.x-1.19 Stable 10–11 Nov 12, 2025
8.x-1.18 Stable 10–11 Sep 9, 2025
8.x-1.17 Stable 10–11 Sep 4, 2025
8.x-1.16 Stable 10–11 Feb 7, 2025
8.x-1.15 Stable 10–11 Jan 24, 2025
8.x-1.14 Stable 10–11 Jan 24, 2025
8.x-1.13 Stable 10–11 Dec 6, 2024
8.x-1.12 Stable 10–11 Oct 17, 2024