DEV Community

loading...

Discussion on: Background image with gradient overlay in CSS

Collapse
ggenya132 profile image
Eugene Vedensky

This is great!

I like to generalize this behavior in SCSS by extracting my overlays into parameterized mixins. SCSS is the best thing that has happened to me in forever.

Collapse
paramharrison profile image
Paramanantham Harrison Author

True, SCSS is amazing.
Checkout styled-components and CSS-in-JS too if you are more into front end application development. Its making wave after preprocessors.

Collapse
ggenya132 profile image
Eugene Vedensky

You know, I've tried, but I find it be a strange form of tight-coupling that I don't quite enjoy. At the same time, I think including styles with a component makes logical sense but something about bundling styles with the component, so conflicted.