From the course: CSS to Sass: Converting an Existing Site

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Install csscss

Install csscss

From the course: CSS to Sass: Converting an Existing Site

Start my 1-month free trial

Install csscss

- After variables, the next most popular feature of Sass is mixins which are reusable chunks of CSS code that help you to not have to repeat yourself when writing styles. We can determine what CSS makes sense to abstract out into mixins to make future development faster using a tool called CSSCSS which is a CSS redundancy analyzer. CSSCSS is a Ruby gem, so let's first make sure that we have a proper version of Ruby installed. To do so, open up the terminal, and then run ruby --version. If that returns a version number that is at least 1.9, you're good. If it's lower than that or you get a Command Not Found error, you'll have to install Ruby. To do so, go to your browser and go to the Ruby homepage, and click on the Download Ruby button. And here in Ways of Installing Ruby section, there's an installation link. This has installation instructions for various operating systems. If you're running on Windows, RubyInstaller is great. Just be sure to check the add Ruby Execute list to your…

Contents