Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
I frequently get asked about over-abstracted CSS, and ‘can CSS be too modular’, so I thought I’d publish this anonymised email I received, along with my reply.

This comment has been minimized.

Copy link

jacquesletesson commented Feb 20, 2015

To ease readability of the source and make a clear distinction between component related classes and utility classes , we could visually combine these classes with brackets like you do on

<div class="[ slider  slider--large slider--loading ] mb pt">


This comment has been minimized.

Copy link

jshjohnson commented Mar 6, 2015

"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."

Optimisation tools such as CSSO ( that can be incorporated into task runners avoid this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.