- The CSS foundation of this site is built with the Sass preprocessor langauge.
- The Bourbon library is used for auto browser prefixing and the Neat library is used for the grid framework. Bourbon and Neat are open-source products from Thoughtbot.
- Media queries are built mobile first.
- Hard coded magic numbers are avoided and, if necessary, defined in the
- Spacing units are as much as possible defined as
emunits so they scale appropriately with text size.
The naming convention used in this library is based off of BEM methodologies (block, element, modifier) but uses a more casual and human readable syntax. All words are separated by a single dash and modifiers come directly before the object they are modifying. The purpose of this is to have a more friendly language for those not familiar with BEM but still imposes a logical convention for structure. For example:
Browser compatility is tested against IE8 and up, and latest versions of Chrome, Firefox, and Safari. Partial support for HTML5 and CSS3 in IE8 and IE9 are supplied by polyfills:
- html5shiv: adds support for HTML5 elements.
- respond.js: addds support for media query.
- selectivr.js: adds support for CSS3 psuedo and attribute selectors.
- rem.js: adds support for rem units.