This module provides a neat solution to define configurable theme libraries in
your THEME.info.yml file. These libraries can be enabled or disabled for a
given theme on the fly. This makes it possible to control active libraries via in the interface. An example usage could be the implementation of two different global styling libraries to change the appearance of the theme.
To make it work for your theme there are a few steps you should take:
- Define at least one configurable library in your THEME.info.yml. Defining
them is done by using theconfigurable-librarieskey. This module scans
the active theme for these to register them. - Configure which libraries will be used at
/admin/appearance/settings/YOUR_THEME
Each configurable library can contain their own library definitions as normally
used in the THEME.info.yml. This consists of:
- libraries
- libraries-extend
- libraries-override
An example definition looks like:
configurable-libraries: global-styling-green: name: Global Styling (Green) libraries: - my_theme/global-styling-green libraries-override: - my_theme/global-styling: false global-styling-blue: name: Global Styling (Blue) description: This makes the site blue. libraries: - my_theme/global-styling-blue libraries-override: - my_theme/global-styling: false
Installation
Install this module as any other Drupal module, see the documentation on
Drupal.org.
Supporting organizations:
Project information
- Project categories: Developer tools
50 sites report using this module
- Created by steven buteneers on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



