THE PENDING DRAFT

CSS Wizardry – Can CSS be too modular

March 9, 2015

Harry Roberts from CSS Wizardry answers a question he got about Atomic CSS and the proper amount of abstraction in your CSS.

That is to say, having padding: 6px; appear in your CSS 50 times is no big deal. You will feel no performance impact. Gzip will crunch the bejeezus out of it.

However, manually typing out padding: 6px; 50 times in your Sass (or LESS, or whatever) is a problem.

CSS Wizardry – Can CSS be too modular

Leave your comment