Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why was the SASS deprecated in favour of SCSS?

Tags:

Basically, why SCSS, instead of SASS? The shorthand of SASS was the main reason why I picked up SASS, I recently came back to it and realised that it is no longer in favour. Any reasons why?

like image 271
nubela Avatar asked Jun 08 '10 19:06

nubela


People also ask

Why is Sass deprecated?

As part of our ongoing initiatives, we've decided to deprecate Sass, with the aim of improving the user experience of storefronts, and paving the way for future advancements. In the short term, Sass will continue to work on Shopify themes, but we are actively migrating our themes to use only CSS stylesheets.

Is Sass better than SCSS?

SASS has more developer community and support than SCSS. SASS supports SassDoc to add documentation whereas SCSS allows inline documentation. SASS can't be used as CSS and vice-versa whereas a valid CSS code is also a valid SCSS code.

Does SCSS use Sass?

In the world of web development, SASS is an acronym for Syntactically Awesome Style Sheets, which is a preprocessor scripting language that is either interpreted or compiled into a CSS file. Often called Sassy CSS, SCSS is the main syntax for SASS, which is a build on top of the CSS syntax that already exists.

Why should I use SCSS instead of CSS?

SCSS contains all the features of CSS and contains more features that are not present in CSS which makes it a good choice for developers to use it. SCSS is full of advanced features. SCSS offers variables, you can shorten your code by using variables. It is a great advantage over conventional CSS.


1 Answers

Sass has two syntaxes. The new main syntax (as of Sass 3) is known as “SCSS” (for “Sassy CSS”), and is a superset of CSS3’s syntax. This means that every valid CSS3 stylesheet is valid SCSS as well. SCSS files use the extension .scss.

The second, older syntax is known as the indented syntax (or just “Sass”). Inspired by Haml’s terseness, it’s intended for people who prefer conciseness over similarity to CSS. Instead of brackets and semicolons, it uses the indentation of lines to specify blocks. Although no longer the primary syntax, the indented syntax will continue to be supported. Files in the indented syntax use the extention .sass.

Source: http://sass-lang.com/

If you like sass more than scss you are free to use it! scss is for people who don't like the indented syntax. And it is extremely easy to convert a css file to scss beacause scss is a superset of css.

That it is no longer in favor is probably because the developers like scss more. But this is a matter of taste. I personally still prefer sass.

like image 59
jigfox Avatar answered Oct 06 '22 23:10

jigfox