Any plans to support sass as well as less?

Permalink 1 user found helpful
Hi I've recently been using Gumby Framework quite a lot which makes use of sass and i see in your video you will be using less for 5.7 would you consider supporting sass as well at some point?

artisancreative
 
mesuva replied on at Permalink Reply
mesuva
I'm a big fan of Sass too and I'm using it to develop nearly all of the concrete5 themes we create now. I use it with Susy for grids and re-use a lot more code between projects than I use to. Too many good things about how it improves development to list here.

I do prefer Sass over Less, it's more powerful and it appears to have more activity in terms of libraries and future development. Less is still great, but i'm a bit more confident with the future of Sass.

My guess though is that Less's PHP compiler is perhaps a bit easier to integrate than the PHP version of the Sass compiler, so it could come down more to technical limitations than pre-processor choice. I reckon it might get a bit messy when you need to include Compass and other libraries, whereas I think Less would be more straightforward. (I know there is a decent PHP SCSS compiler out there though)

Personally if I ever do look to build a heavily configurable theme that uses Sass, I'd probably roll my own dashboard page to make the edits and worry about what is needed to get that to work for Sass then. Editing colours is one thing, but I also like the idea of being able to turn things on and off, change sizes, etc.
mesuva replied on at Permalink Reply
mesuva
I did a bit more reading about PHP and Sass - I don't think there's a PHP port of Compass, Ruby would have to be installed. You wouldn't would want to offer Sass compiling without Compass.

Also Less has a mature client side compiler (Javascript), and Sass lacks this, removing another option to integrate Sass.

So I don't think we'll see Sass integrated anytime soon, while Less is much more straightforward.
JohntheFish replied on at Permalink Reply
JohntheFish
I think with LESS the compiler in javascript is the primary development and php compilers are ports from that, so the php compilers can lag behind with what they are capable of. Six months or so ago php was way behind, but seems to have caught up with the jsavscript more recently.
blinkdesign replied on at Permalink Reply
blinkdesign
i know this is an old thread, - i guess prior to 5.7

but my question today is the same:
is 5.7 supporting sass? are there any themes in sass (scss)?
how would i convert the elemental less int sass?
thanks for any information.
blink.
ramonleenders replied on at Permalink Reply
ramonleenders
I do prefer scss as well, I read somewhere they were going to support this if I'm not mistaken. Could't find it unfortunately. So, anyone got some info about this? :)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@blinkdesign

There is a Sass and Less section on this page that covers converting Sass to Less manually and with automated tasks.
https://www.concrete5.org/community/forums/5-7-discussion/5.7-theme-...
blinkdesign replied on at Permalink Reply
blinkdesign
@ramonleenders
@MrKDilkington

thank you for the feedback.
converting less to scss is no option. client requires bootstrap scss because their other sites run on scss.
is it possible to build a pure sass concrete5 theme (v.5.74) ?
regards
blink
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
LESS or SASS only makes a difference if you want to be able to adjust the theme from the dashboard.

Otherwise you just use the compiled css and who cares what it was compiled with.
Mainio replied on at Permalink Reply
Mainio
If someone is still interested in compiling Sass (specifically SCSS) on the server side, we have implemented an installable concrete5 package for this purpose:
https://github.com/mainio/c5_asset_pipeline...

It allows the developers to use any preprocessor there is to write their CSS. And it all works within concrete5 without any external tools. It also allows developers to use preprocessors for JS in case they need to use them (e.g. CoffeeScript).

We would love to hear some feedback on this package! Possible bug reports can be directly reported into the GitHub repository's issues.

We are also hoping to get these features integrated into the core. If you have some thoughts on this, feel free to share them at this related GitHub issue:
https://github.com/concrete5/concrete5/issues/2061...
ramonleenders replied on at Permalink Reply
ramonleenders
OK, this is awesome. I have yet to try it, I will schedule that in.

One question though, the readme says:

"This will reference three CSS files (specified above) within your theme's css folder, preprocess them and combine them into a single CSS file that is downloaded by the client.".

For each client, the code will be generated? Or will there be a file made and stored (cached), and this package outputs the URL to this cached file (or multiple files if you are using CSS, Less, Javascript)?
Mainio replied on at Permalink Reply
Mainio
Or will there be a file made and stored (cached), and this package outputs the URL to this cached file (or multiple files if you are using CSS, Less, Javascript)?


Exactly like this.

The "client" in this context refers to the web browser in the client-server architecture of websites.