Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

ui_styles

1,249 sites Security covered
View on drupal.org

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

Activity

Total releases
7
First release
Dec 2024
Latest release
5 months ago
Release cadence
57 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
8.x-1.19 Stable Nov 12, 2025
8.x-1.18 Stable Sep 9, 2025
8.x-1.17 Stable Sep 4, 2025
8.x-1.16 Stable Feb 7, 2025
8.x-1.15 Stable Jan 24, 2025
8.x-1.14 Stable Jan 24, 2025
8.x-1.13 Stable Dec 6, 2024