C
C
colorkid2019-12-24 14:58:58
css
colorkid, 2019-12-24 14:58:58

What preprocessor are you using?

Hello.
Such a question, always used 'in so far as' preprocessors:
1 - Variables;
2 - Nesting syntax ala &__element;
3 - Color functions sometimes when there is no design, but you need to make a blackout on the hover;
4 - 'When never', did mixins but for super general rules, but it's really very rare.
With the advent of css variables, I’m thinking of abandoning preprocessors altogether, because item 2 from my list, which is important for me, also has side effects in the form of complicating the search for selectors in the project.
BUT, I came to the project, where the front was written by a hardcore c ++ 'snick who used sass 100%, i.e. mixins are everywhere, the number of columns in the container is determined through the function argument, etc.
This all looks cool, of course, but the pancake is not always readable, and secondly, if I use a mixin in 10 places, and if something needs to be changed in it, then it changes only in all places, and I must keep in mind that the changes are in one place will affect changes in 10 places, for me it’s so tinny, the designer will come running and say here you need to redo it, add an indent, I’ll add it, but the fact that these rules are used somewhere else can easily be forgotten, and there everything will already look terrible.
How much do you use preprocessors? Do you try to use all their functionality? And which one do you think is really useful?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2019-12-24
@colorkid

I use SASS I
like the 2nd item from your list and the 1st one. I didn’t quite understand the 3rd point, I didn’t use the 4th one because there was no such direct need.
Answers:
I use preprocessors when it is clear that the project is large or the site is multi-page, but for landing pages they are not really needed.
Well, this is a strange question, for example, you use a computer - do you use all its capacities? Didn't understand the last question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question