Writing good front of the front-end code is key for any front-end project ✨ 🎨 📐
There are multiple reasons for that: reusability, performance, accessibility, maintainability, semantics, consistency, better developer experience…
Based on good practices I learned during some years:
- CSS specificity
- BEM methodology
- ITCSS
- Reusable HTML patterns
- Common bad practices (and how to address them)
One more thing…
Most examples written in Sass (*.scss
syntax).