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.

Layout generate style

32 sites No security coverage
View on drupal.org

This project provides a way to manage styles and JavaScript for layouts within Drupal, allowing for dynamic style generation based on active sections and the reuse of styles across different websites. It enables each entity supporting layouts to have its own specific styles, simplifying maintenance for evolving websites.

A web page can be viewed as a collection of blocks, with the theme providing the necessary styles for presentation.
The traditional approach involves creating styles directly within the theme. However, for websites that evolve over time (with the addition of new sections or pages), maintenance becomes increasingly complex after several months or years.

Our approach involves using two style files:
- A file containing the base styles.
- A file whose content is dynamically generated based on the active sections.

In the Drupal environment, this translates to the use of layouts that include styles (SCSS/JS). Any entity that supports layouts can have its own styles. This also allows us to reuse sections across different websites.

A significant drawback:
This approach requires setting up an environment that adheres to a specific logic.

Required Modules and Themes:

These modules include additional dependencies, which are automatically downloaded.
You can also use the installation profile: Drupal Project Habeuk.

Activity

Total releases
21
First release
Apr 2025
Latest release
4 months ago
Releases (12 mo)
12 ▲ from 9
Maintenance
Active

Release Timeline

Releases

Version Type Release date
5.0.13 Stable Feb 22, 2026
5.0.12 Stable Feb 8, 2026
5.0.11 Stable Feb 7, 2026
5.0.10 Stable Dec 8, 2025
5.0.9 Stable Dec 8, 2025
5.0.8 Stable Nov 28, 2025
5.0.7 Stable Nov 24, 2025
5.0.5 Stable Nov 24, 2025
5.0.4 Stable Nov 19, 2025
5.0.3 Stable Nov 18, 2025
5.0.2 Stable Nov 17, 2025
5.0.1 Stable Nov 14, 2025
4.0.4 Stable Jul 10, 2025
4.0.3 Stable Jun 25, 2025
4.0.2 Stable May 25, 2025
4.0.1 Stable May 22, 2025
4.x-dev Dev May 21, 2025
4.0.0 Stable May 21, 2025
3.2.0 Stable May 12, 2025
3.1.4 Stable May 8, 2025
3.1.3 Stable Apr 27, 2025