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: {}
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.
More in the Site ecosystem
Most installed first