Sass/Scss to Stylus converter?
Asked Answered
L

2

23

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

Or any way to speed up compiling SCSS?

Liturgical answered 11/3, 2013 at 9:36 Comment(1)
"any way to speed up compiling XXX" -> throw some hardware at itBlaubok
C
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
Counterpunch answered 11/11, 2013 at 6:22 Comment(0)
D
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.

Durarte answered 10/4, 2014 at 13:5 Comment(2)
This will also preserve functions, mixins, variables, etc., whereas converting to css then to stylus would lose that.Precipitation
And also would not make you install SASS and Ruby as to use the CLIPreciado
C
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
Counterpunch answered 11/11, 2013 at 6:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.