LESS Compiler

Does 5.7 have a built in compiler for LESS?

After looking at the Elemental theme I noticed that it uses LESS for the primary stylesheet. I have tried to use LESS myself on a Bootstrap theme I am building but it is not reading the LESS stylesheet.

I figured there is a compiler I have not included or something along those lines. Any help will be greatly appreciated!

View Replies:
MrKDilkington replied on at Permalink Reply
Hi drumrby,

Concrete5 5.7 does have a built-in Less compiler. It uses Less.php.

Are you trying to reuse some of the Less in the Elemental theme or writing your own from scratch? Have you tested that the Less compiles outside of concrete5?
drumrby replied on at Permalink Reply
Thank you for the quick response.

No, I'm not reusing the Elemental theme. I've basically just begun building the theme so it's in the very early stages.

Yes, I have tried to compile it outside of concrete5, and it compiles fine.

The restructuring of 5.7 is completely throughing me for a loop, so I feel like I've missed a step or something.

Do I need to include the Less.php somehow? Or is it loaded automatically?
MrKDilkington replied on at Permalink Reply
Have you had a chance to look over the 5.7 Developer Resources page? It only covers a few things, but was a big help in figuring things out.


In your theme are you using
<?php echo $html->css($view->getStylesheet('YOURSTYLESHEET.less'))?>
<?php $view->getThemePath() ?>
<?php echo $this->getThemePath()?>

Without documentation I honestly am not sure what is what. But getStylesheet() was in the Elemental theme getting the Less file.

If Less is already part of your development workflow, you could always just compile it and put the plain CSS in your theme file. I think Less really comes into play when making theme presets because they work based on the variables.
drumrby replied on at Permalink Reply
I have visited that page, read the documentation and watch all the videos.

I am using the getStylesheet() method, because like you mentioned, that is what Elemental theme was using.

I had thought about compiling and then uploading CSS, but I was thinking that if 5.7 has a built in compiler that works well, it would save me a step, which over the course of developing an entire site, would be a bit of time.
TShane replied on at Permalink Reply
Thank you for the help.
Was facing similar issue.
tabercreative replied on at Permalink Reply
Did you ever get this resolved?