I often ask myself these questions: Will this code be easy for the others to edit? Does it scale? Can I forget it and change it later without being lost?
While Scalable and Modular Architecture for CSS (SMACSS) is just one methodology, the principals of modular CSS are applicable to sites large and small. Using a modular approach in tandem with Sass can greatly improve development efficiency and project maintenance. I'll discuss specific techniques, such as selector inheritance and interpolation, that can greatly reduce the amount of code written. Your code will be more portable, making it easier to use code on other projects.
12. Focusing on creating healthy
front-end modules instead of
complete pages can help
break complex page layouts
into reusable solutions.”
“
- Dave Rupert
85. 01.
Utilities
utilities/_index.scss
@import
'global';
@import
'functions';
@import
'mixins';
@import
'helpers';
Variables, mixins, functions, etc.
Basically anything that doesn’t
output CSS by itself.
86. utilities/_lib.scss
@import
"lib/susy";
@import
"lib/font-‐awesome";
@import
"lib/pesticide";
Third-party libraries such
as Susy, Font Awesome,
Pesticide, and other
plugins.
01.
Utilities
02.
Libraries