23

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

Or any way to speed up compiling SCSS?

1
  • 1
    "any way to speed up compiling XXX" -> throw some hardware at it
    – lc.
    Mar 11, 2013 at 9:38

2 Answers 2

28

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.

2
  • 11
    This will also preserve functions, mixins, variables, etc., whereas converting to css then to stylus would lose that.
    – jake
    Apr 10, 2014 at 13:09
  • And also would not make you install SASS and Ruby as to use the CLI Oct 28, 2015 at 14:20
10

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
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.