ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

Style Guidelines for Sass (and CSS)


#1

I’ve been cranking out the Sass code recently.

  1. The Sass Style Guide from Chris Coyier seems awesome.
  2. Here’s a list of CSS Style Guides also from Chris Coyier.

Any other recommendations? It seems like the Sass Style Guide is a great place to start.


#2

My biggest challenge with Sass is how to keep track of style names, given that there is just a global namespace. It becomes more challenging as the codebase and developer team grows.

The book “Growing Rails Applications In Practice” gives a systematic approach for managing CSS based on a technique called ‘BEM’ (block element modifier). Check it out!


#3

There’s a number of good suggestions here:

http://isobar-idev.github.io/code-standards/