SASS has a feature called @extend which allows a selector to inherit the properties of another selector, but without copying the properties (like mixins).
@extend
.sibling-1 { color: red } .sibling-2 { background-color: #fff; .sibling-1(); }
Output
.sibling-1 { color: red } .sibling-2 { background-color: #fff; color: red }
Refer https://codepen.io/sprushika/pen/MVZoGB/