Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 1, 2019 11:59 pm GMT

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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks