Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Site Studio Per Component Library

No security coverage Under active development 39 sites

Part of the Site ecosystem · 39 projects

This module automatically attaches custom CSS and JavaScript libraries to your theme based on the machine name of Site Studio components. This allows you to easily bring in your own styling and scripts for individual components built with Acquia Site Studio.

Let's say you want to use Acquia Site Studio to build components but bringing in your own CSS/JS libraries.

This module checks for Site Studio Layout Canvas fields being used in node entities and automatically attaches libraries for the current theme based on the component's machine name.

All you need to do is to define your libraries on your custom theme as such:

cpt_my_component_machine_name:
  css:
    component:
      css/cpt_my_component_machine_name.css: {}
  js:
    js/cpt_my_component_machine_name.js: {}

cpt_my_component_machine_name2:
  css:
    component:
      css/cpt_my_component_machine_name2.css: {}
Drupal 8–10 · not 11

Ask your assistant about Site Studio Per Component Library

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.1 Stable 8–10 Nov 15, 2023
1.0.0 Stable 8–10 Sep 8, 2023