I was trying to use Malinis as a sub-theme but was getting some font size error messages with it so switched to using a fresh install of Groundwork to see if I could locate the root cause. I have done both a manual and a drush installation, in both cases having less.php and the less module activated before theme install.

The error message I'm getting is: LESS error: variable @baseFontSize is undefined in file sites/all/themes/groundwork/less/variables.css.less, sites/all/themes/groundwork/less/main.css.less (see image). This happens either with Groundwork or if I create a sub-theme with drush.

Less module and library install verified okay on status report. When I try to find the generated CSS at sites/default/files/less/[STRING]/sites/all/themes/subtheme/less, the directory is empty. Any ideas on how I can trouble-shoot this?

Members fund testing for the Drupal project. Drupal Association Learn more


pipicom’s picture

Same here.. Any ideas?

chrisfoerg’s picture

Any Updates?

JohnNoc’s picture

Component: User interface » Code

Groundwork 7.x-2.0-rc1 was developed with the lessphp library from http://leafo.net/lessphp. The LESS contrib module was using it but then changed the supported lessphp library to the one from http://lessphp.gpeasy.com. I am making changes for Groundwork 7.x-2.0 to work with the new lessphp library which I will intend to release very soon.

If you wish to use 7.x-2.0-rc1 now, please use the lessphp library from http://leafo.net/lessphp. Upon release of Groundwork 7.x-2.0, I will also create documentation on how to update from 7.x-2.0-rc1 to 7.x-2.0 for painless upgrading.

sclathrop’s picture

Depending upon your level of customization you can enable the "Use basic functionality only. " option, which (as noted) "Disables LESS preprocessor functionality thus deactivating easy grid configuration, progressive enhancement, media query settings, mixins, bundles, and more. Uses good ol' CSS files where styles are set to Groundwork's default." I use this option normally to see what happens to my design on an earlier/non-CSS compliant browser; of course, this demotes Groundwork in pretty extreme fashion... :-)