postcss / sugarss

Indent-based CSS syntax for PostCSS
MIT License
708 stars 39 forks source link

Convert SSS to SCSS #58

Closed sc0rp10 closed 7 years ago

sc0rp10 commented 7 years ago

Hi. I have a legacy project with Stylus. I don't want to use it anymore and want to convert the project to SCSS-like syntax (postcss-nested). Is there any option for converting sss to scss with postcss? I can fix some incompatibles (like mixins calls etc), but I cannot restore braces manually.

ai commented 7 years ago

You can set SugarSS as parser and postcss-scss as stringifier. But it will be dangerous.

sc0rp10 commented 7 years ago

Hey, @ai! Thank you for the advice and for PostCSS, with your help I wrote a small script for stylus -> postcss-scss converting and placed it here: https://github.com/sc0rp10/stylus-to-postcss