How to use
Install with Bower
You can install and manage first.css versions using Bower.
$ bower install first
First
Sass
Sass is incredible. It really gives superpowers to CSS. But we need to limit it's flight, to avoid duplication. There are two rules on first.css, as follows:
- Avoid variables (outsite setup files). Create a unique selector and extend from there.
- Avoid mixins. They are super, but also make your compiled file super redundant.
From now on, @extend
is your best friend.
Use a Sass Linter
First.css is all based on Sass. Configure your favorite code editor (we love Atom) to use this linter to help you write accordingly to the best pratices by default. Without IDs, overqualified selectors, and so on.
- For Atom, here are the Linter and the Sass plugin.
- For Sublime Text, here are the Linter and the Sass plugin.