- Download the Ruby installer from:
http://rubyinstaller.org/downloads/ — Look for the version with x64 on it. Be sure the Ruby installer is version is 1.9x. SASS doesn't work on 2.x versions. - Open the Command Line (CMD) by pressing the Windows Key + R and type: CMD, then press Enter.
- Type the following command in the CMD:
gem install sass
It will take a few seconds to install SASS. At the end you will see this in CMD.
That's it! SASS is now installed on your machine.
Procedure to use SASS
- Create a Demo folder anywhere on your PC.
- Inside that folder create the two sub folders /css and /scss.
- Create a .scss file.
Go into the /scss folder and create a file called: demo-styles.scss.
Notice the file extension .scss. This is your SASS file. - Return to the CMD line. In CMD you need to go to the Demo Folder as in the following:
In CMD you need to go to the Demo Folder as in the following:
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tMxD7K57GvspGsVMH4g3NAT86S6vu-djRo2N3S-gKP_-AmPTtg_o9yRMEW0O-XKNHoqIjrTOLBMeTrYnPE4CESICMXzkpxQ9zOvzAd7eg7gXl3lsUjHxLua6qDhHiUE9YzT3vpI0TVQIa-1gPOI50QFDm4HtQxtdCM8KL9xizeRcqgdJ7_qQkfX5fQaBzFM2_4OU3mCFfT7FCe=s0-d)
Make SASS “watch” to your /scss and /css folders.
6. Edit the .scss file and watch SASS compile it into a .css file.
Make SASS “watch” to your /scss and /css folders.
7. Edit the .scss file and watch SASS compile it into a .css file.
Updated CSS File
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tRkONAIpkv0MSLugce8S9EvDRiNowHK-4mg_Lq8BVgZVOw5f76yV7ldFQWpBZrFf0Ps0B5Aobnv7vC-EI7DY55SI8pF7fi5HAH-h_1v8LdCPf5_P5yGSYenCneDVSBQ5LNnt81fxjlVFxaYwjg3LcpCm-A01BYwVk5cXUj7nQ7AHLkIoXYdTSN33imN-UNeo9tuXBXBw4SbWbO=s0-d)
Included 'reset.scss' File in demo-styles.scss
Included 'reset.scss' File in demo-styles.scss
You have now leveled up by knowing how to use SASS.
Demo Example
Happy Coding Guys!