Code that does not have.. Scalability is a catastrophe Modularity Performance Maintainability Reusability Understanding Flexibility Predictability Consistency
• Use classes they are your best friends • Avoid ID’s • Avoid Tag-qualification • Avoid long-descendants (nesting) • Use CSS pre-processors (applying the tips above) • Find patterns on the design and build style guide documentation • Performance matters • Browsers “match” CSS from right to left • Use name convention. CamelCase, camelBack, snake_case. Whatever
Objective • Flexibility • Create a component library • Minimize Selectors • Extend objects applying classes • Use consistent styles • Build HTML and style from the component library