I have a scenario in sass .A{ background-color: red; Padding :20px; h4{ padding-bottom :20px;} } // another class .B{ background-color : blue; pa
The most straight forward way is to use @extend.
@extend
%common_properties { padding: 20px; h4 { padding-bottom: 20px; } } .a { @extend %common_properties; background-color: red; } .b { @extend %common_properties; background-color: blue; }