SASS/SCSS Preprocessor can be a great help to create and manage complex css structures. It boosts css with pro features like defining and executing Variables, Functions and Mixins.
2. Introduction
â Sass is an extension of CSS3, adding nested rules, variables, mixins, selector
inheritance, and more. Itâs translated to well-formatted, standard CSS using the
command line tool or a web-framework plugin.
â Sass has two syntaxes. The new main syntax (as of Sass 3) is known as âSCSSâ (for
âSassy CSSâ). SCSS files use the extension .scss.
3. Install Sass
(Applications)
There are a good many applications that will get you up and running with Sass in a few
minutes for Mac, Windows, and Linux. You can download most of the applications for
free but a few of them are paid apps.
CodeKit (Paid)
Compass.app (Paid, Open Source)
Hammer (Paid)
Koala (Open Source)
LiveReload (Paid, Open Source)
Mixture (Free)
Prepros (Paid)
Scout (Open Source)
4. Install Sass and Compass
âąSass and Compass get installed as Ruby gems so you'll
need to have Ruby on your machine.
âąIf you're on Windows, you can run the Ruby Installer.
On Linux, Rails Ready provides several Ruby essentials.
On OS X, Ruby is already installed by default so Ruby
just works.
5. Install Sass
âąOpen up your Terminal.app and type:
âąWindows:
gem install compass
âąLinux / OS X:
sudo gem install compass