Answer the question
In order to leave comments, you need to log in
How good is the solution to work with scss as a PL?
Good day.
The bottom line: the site has blocks of different colors, the color of the text and elements in them depends on the background color. I came up with the idea to make color schemes, and use something like this:
.block {
@include color-scheme-ocean();
&__element {
// свойство, специфичное только для .block, но входящее в цветовую схему
color: for-color-scheme-ocean(color);
}
}
Answer the question
In order to leave comments, you need to log in
In the end, you will still have pure CSS, this will help you in development.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question