Trying to consolidate my css preprocessor to one system – stylus.js
Surprisingly easy to convert from scss to stylus because:
– Stylus supports native css syntax
– Nib provides a lot of mixins
– More mixins can be added easily
Some notes:
– To compile scss, I used to do:
sass --compass --watch css/gadget.scss:gadget.css
– To compile stylus, I do:
stylus -u nib -w css/gadget.styl -o .
– It takes me about half a hour to figure out the right syntax for output to current folder is “-o .”!!!