Home › Forums › CSS › Parenting/reusing CSS styles › Reply To: Parenting/reusing CSS styles
November 20, 2013 at 7:15 pm
#156755
Participant
my example of modifiers is also modular/interchangable
No it’s not. How would you apply background of red to something other than a box?
Adding namespace to CSS just seems weird and this is the first time I’ve ever heard someone mention namespaces with conjunction to CSS and I’ve been around a while.
@oliversb, look into OOCSS, BEM, and SMACSS. The key to reusable code is abstraction. Follow people like Harry Roberts, Jonathan Snook and Nicole Sullivan. Read their stuff.