ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

less vs. stylus #37

Closed wkeese closed 10 years ago

wkeese commented 10 years ago

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.

cjolif commented 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).

cjolif commented 10 years ago

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:

https://medium.com/blur-folly/f60cf0a80ad6

cjolif commented 10 years ago

see also http://www.google.fr/trends/explore?q=less+vs+stylush#q=stylus%20css%2C%20less%20css%2C%20sass%20css%2C%20styl%20css&cmpt=q

cjolif commented 10 years ago

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.

cjolif commented 10 years ago

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.