Experimental project

This is a sandbox project, which contains experimental code for developer use only.

BonusCSS is a minimalist Drupal module that adds any CSS files within a css directory of your site to every page load.

Notice

This module is predominantly targeted to multi-site installations that wish to use a single theme across all sites, but have a need for small custom CSS tweaks on a per-site basis.

Background

The maintainers run 60+ Drupal sites on a single multi-site installation, many of which have the same core theme. Previous standard practice has been to subtheme when we needed to make a tweak, but subtheming necessitates resetting all of the theme settings, creating the theme with a .info file, and other work that is simply unnecessary.

BonusCSS was born in Matir's spare time.

Notes

  • BonusCSS will be primarily supported for Drupal 7+.
  • For Drupal 6, an alternative to this module is Custom CSS & JS. Rather than port the linked module to Drupal 7, the original maintainer decided something more lightweight was in order. Additionally, he felt that placing the CSS in the site's "files" directory posed a potential security risk. If you need to control which pages your CSS is loaded on, look at CSS Injector.
  • BonusCSS uses standard Drupal caching for the CSS, so performance should be better, but does not have the flexibility of CSS Injector.

Project information

  • Created by Matir on , updated