Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass/Scss to Stylus converter?

Tags:

Is there any tools to convert SASS/SCSS to Stylus?

Or any way to speed up compiling SCSS?

like image 247
yshrsmz Avatar asked Mar 11 '13 09:03

yshrsmz


2 Answers

MojoTech made a tool to easily convert SASS to Stylus:

http://sass2stylus.com/

You can view the source code on Github if you'd like to see how it works.

like image 144
Nick Avatar answered Oct 26 '22 21:10

Nick


I doubt there are any direct tools available, but you can do this:

Convert SASS to CSS

sass input.scss -o output.css 

Then convert CSS to Stylus

stylus --css output.css input.styl 

Update

One line conversion

sass input.scss | stylus --css 
like image 25
Aniket Avatar answered Oct 26 '22 21:10

Aniket