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.
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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.
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.