Answer the question
In order to leave comments, you need to log in
Do I need sass?
I’ve been typing for more than a year now, I know css3 very well, I started reading about speeding up layout and everyone says as one: Use preprocessors, I looked through the best ones, many people recommend sass, so, will it greatly speed up the work? By what percentage, at least approximately? Maybe someone tested? Can eat preprocessors faster? Because one person says that it is better without them, another that it is necessary. I would like to increase the speed of layout and preparation of the layout for delivery, but I don’t know if it’s worth spending time on sass.
Answer the question
In order to leave comments, you need to log in
Another example of the use of preprocessors is working with colors.
It is much easier to assign a base color to a variable and then dance from it than to calculate a new color each time in Photoshop and copy its hexadecimal code.
It especially comes in combination with mixins, where, for example, you can set the background color of a button as an input, and the mixin will generate a rule for the button itself, and for its disabled option (for example, translucent with muted colors), and for the mouseover option (brighter or dark color) - and all this does not have to be done manually, it is enough just to determine the admixture and use it wherever it is needed.
And if later on the whole page it was necessary to replace the base color, then you don’t have to re-calculate all the other colors and change them, it will be enough to change the value of the variable
that at least the same nesting. one of the most convenient things that preprocessors have
By what percentage, at least approximately?
Briefly sum up my opinion, so as not to be included in the srach - the fingers are already itching)))
Does it speed up a lot?
Yes, strongly
How much in %?
Significantly in%, I would have time to think, and if I still knew all the features ...
Maybe someone tested?
Maybe))
Maybe there are faster preprocessors?
Maybe there is, in mass "production" I personally have not yet noticed.
One person says that it is better without them, another that it is necessary
. Choose a pill, since there is an opportunity to return and change your mind.
Time should be spent not only on sass, but also on self-education in general, otherwise how do you know that something more worthy has appeared))
Scss helps me a lot, nesting, variables and utilities (like color mixing) help me out most often, sometimes I use cycles and mixins.
After the next step, when building the project, I send the resulting css, compiled from scss sources, to postcss - to optimize media query attachments and automatically add vendor prefixes.
All this really speeds up the work, provides convenient auxiliary tools and is definitely worth a couple of days spent on getting to know and setting up the project builder to work with scss and postcss (or their analogues).
Reasons:
1. Yes, it speeds up. Nesting helps a lot, I have been sitting on pure css for about 3 years, I tried scss only for my own development and got hooked. I've been using it for 3-4 years now and when I typeset without it, I already start to get stupid. Very useful to use variables, VERY!!! For example, there is design. The button is orange, the hover is not drawn stupidly we write lighten, darken we darken or lighten the button. Oddly enough, loops are very useful when you need to re-write something through nth-child.
2. Order!!! Oddly enough, when using sass, you automatically come to order. Variables in one place, mixins in another, you include everything and get a neat css point. Like it or not, but only with him you will come to this.
3. Development!!! Again, if you have to work with large frameworks like BS, semantics, materialize, mobile frameworks like Ionic, it's very difficult to style or finish some things in css there! Highly! And as soon as you touch on more serious things, you will have to understand it.
All of the above is just my personal opinion and experience ... I, like you for some time, also denied it ... Nevertheless, we have what we have ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question