Closed wkeese closed 10 years ago
From @edurocher a while ago:
From my experience with the Dojo Mobile themes, there are a couple of features (or lack of) that would probably make me prefer Stylus:
support for CSS3 animations / keyframes: this is supported by Stylus http://learnboost.github.io/stylus/docs/keyframes.html, whereas I could only find a very very ugly and hacky way to do this in LESS and I finally decided to just duplicate rules in dojox/mobile.
Stylus also seems to be more powerful in terms in rules with variable arguments, I am thinking in particular of gradients where you can put a variable number of stops. Although there is nothing built in Stylus for this, there seem to be several extensions to do this, for example http://visionmedia.github.io/nib/. I did not find anything as powerful for LESS (there are some libs to create gradients, but always without stops, or a fixed number).
On the other side, it might happen that Stylus maintenance might no be better than LESS one in the future as the main author apparently left the project:
Another point pro-LESS. Our main cross device theme will be boostrap CSS based. Bootstrap is using LESS to define its style variable. Using LESS provides a more seamless integration.
Most of the code is in LESS now. Also we are using bootstrap LESS. So it looks like we are going to close this for now. That said nothing prevent someone using Stylus from generating delite styling.
Need to decide on Less vs. Stylus. Stylus will make the dojo-contributors folks happy, but Less is supported in more tools (IDE's etc... Chris can comment more).
The decision may connect somehow with being able to use jQuery's themeRoller and/or bootstrap.