Install the LESS CSS Preprocessor for Drupal

Blog Topics:

The Less CSS Preprocessor Drupal module requires installing a LESS engine, but the instructions are confusing.

The LESS Engines documentation page is a little more helpful, except for a missing little twist... Here's how to do it:

  1. Install the Libraries module.
  2. From lessphp.gpeasy.com get the latest oyejorge/less.php release, 1.7.0.10 as of this writing.
  3. Extract it to your sites/all/libraries directory...
    • ... so that you have libraries/less.php/Less.php, and set the less_engine Drupal variable to "less.php",
    • or so that you have libraries/lessphp/Less.php, and leave the less_engine Drupal variable unset, defaulting to "lessphp".
  4. Install the less module.