by Joanna Ho | j_lit@acs.org
Web Strategy and Operations UX
Sass is a CSS preprocessor, it is an extension of CSS3. It provides a simpler, more elegant way to write CSS and it has various features that are useful for creating manageable stylesheets.
The 3 most popular css preprocessors are SASS, LESS, and Stylus
SASS is what CSS should be
4 big things that SASS gives you:
One more thing:
Setup Time!
If you’re using OS X, you’ll already have Ruby installed. Windows users can install Ruby via the Windows installer, and Linux users can install it via their package manager. Once you have Ruby installed, you can install Compass & Sass by running
// Windows
gem install compass
// linux / OS X
sudo gem install compass
Compass is an open source css authoring framework that makes writing sass even easier. Compass provides a large collection of mixins that you can use apply to your project. It includes cross browser CSS3 mixins, common typography patterns, common styling patterns, and more.
On your terminal (OS) or command line (windows), navigate to the Desktop or the directory you want to create your test project.
compass create project
config.rb
// Watch your project directory for any sass changes
compass watch
// Compile sass once
compass compile
// Help document
compass --help
Read up on SMACSS.com
(Scaleable and Modular Architecture for CSS)
// Basic framework and grids
acs-bootstrap.css
// Customized styles
main.css
You can get the pre-setup project with submodules here, make sure you have github setup.
git clone --recursive https://github.com/joannalit/Sites.git new-project
SASS - http://sass-lang.com
Compass - http://compass-style.org
More on SASS - thesassway.com
CSS Architecture - smacss.com
Scout (Free) - http://mhs.github.com/scout-app
CodeKit ($32) - http://incident57.com/codekit