M
M
maestro072018-03-28 11:54:58
css
maestro07, 2018-03-28 11:54:58

Why is scss better than css?

Why is scss better than css? the syntax is almost the same. variables can be written in css. why do you need a sass preprocessor if css is normal

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Michael R., 2018-03-28
@Mike_Ro

why do you need a sass preprocessor if css is normal

If the project is small and there are very few styles, then there really is no point in SCSS. In other cases, SCSS qualitatively wins over vanilla CSS. My development on SCSS takes up to 50% less time, I generally keep quiet about further support.
The main advantages of SCSS: nested classes and properties, mixins and a lot of smaller advantages.

A
Andrew, 2018-03-28
@AndrewHaze

https://proglib.io/p/advanced-scss/

E
Egor Zhivagin, 2018-03-28
@Krasnodar_etc

Imports? Mixins? Convenient nesting?

V
Vasily Vasilyev, 2018-03-28
@Basil_Dev

Scss is to css - like es6 is to vanilla js.
CSS is now starting to develop by leaps and bounds and includes, first of all, the functionality of preprocessors and frameworks, which has proven itself as best practices (let's rejoice at CSS GRID and finally bury Bootstrap). The same variables in CSS appeared more recently.
In the meantime, the functionality, although good, is not extensive enough (the same imports and mixins as mentioned above) - scss will be the king of the hill (in my case, postCSS).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question