-
Notifications
You must be signed in to change notification settings - Fork 12
Description
We adhere to a styleguide for writing javascript - do we want to adhere to one for writing CSS?
There are a few competing philosophies right now regarding CSS naming conventions. For example: block element modifier, or BEM.
These are all kind of hard to digest or even read. I do recommend reading the trello css guide though.
Overall I think the current Devseed state of the CSS, as far as I've seen, is pretty good in that we're breaking out stylesheets into modules and using preprocessors. I do think there is a good argument against nesting classes, and I often use non-class selectors. I also like the convention of prefixing javascript-specific classes with js-
and utility classes with u-
.
Would love to hear people's thoughts on this, especially if you write a lot of CSS.
@developmentseed/development-seed