March 1, 2019 11:59 pm GMT
Original Link: https://css-tricks.com/do-css-custom-properties-beat-sass-loops/
Do CSS Custom Properties Beat Sass Loops?
I reckon that a lot of our uses of Sass maps can be replaced with CSS Custom properties but hear me out for a sec.
When designing components we often need to use the same structure of a component but change its background or text color based on a theme. For example, in an alert, we might need a warning style, an error style, and a success style each of which might be slightly different, like this: … Read article
The post Do CSS Custom Properties Beat Sass Loops? appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/do-css-custom-properties-beat-sass-loops/
Share this article:
Tweet
View Full Article