I'm having trouble creating a subtheme that relies on a main theme that uses LESS. I've actually posted my question on the Drupal Answers stack, but feel free to reply here if you don't have an account.

Comments

chronnus’s picture

You'll need to install the less css module (http://drupal.org/project/less) . Then you can include your less css files on your themes .info

n_potter’s picture

I have the LESS module installed (see the very first sentence in the question). The issue here is that it doesn't use the lib.less in the subtheme, it always uses the lib.less in the folder the stylesheet that is being inherited. I want to inherit the stylesheet, but use the subtheme's lib.less to override the theme's lib.less.

chronnus’s picture

Can you rename your subtheme's less file to something else and add that on the .info file? The base theme's lib.less file is probably being overridden by the subtheme's because they have the same filename.

n_potter’s picture

It's the subtheme's LESS file that's been overridden by the main theme at the moment. Renaming the the subtheme's lib.less shouldn't work, should it? Because the main theme's CSS file is still calling "@import 'lib.less'". I don't think there's a way to do this without overwriting all the necessary CSS files, unfortunately. Thanks for your help!