Course List >> HTML5 and CSS3 >> Advanced CSS3 >> 2: Using CSS Preprocessors to Save Time
Scroll up or hover over the breadcrumbs to view the navigation bar

Using CSS Preprocessors to Save Time

Preprocessors (aka precompilers) can make your life much easier by eliminating code repetition and providing all sorts of yummy time-saving and code-saving features. If you've been using Rails, you'll be familiar with SASS already since it's baked in. If you're not using Rails, you may need to add some additional steps to your work flow to get your preprocessor set up but it's worth it.

Points to Ponder

  • What is a preprocessor?
  • Why do preprocessors rock?
  • What does it mean that a preprocessor "compiles to CSS"?
  • What is SASS/SCSS?
  • How can you use SASS to nest CSS?
  • How can you use SASS to work with variables in your code?
  • Why is it awesome to use mix-ins with SASS?
  • If you're not using Rails, how do you set up SASS?
  • What is LESS and how is it different from SASS?
  • What other preprocessors are out there?

Your Assignment

  1. Read Introduction to CSS Preprocessors from Steven Bradley
  2. Read 10 Reasons You Should be Using a Preprocessor
  3. Read Choosing the Right CSS Preprocessor from Treehouse
  4. Look over SASS's getting started guide, which provides a brief look at its awesome features
  5. A List Apart walks through specifically how you should be using SASS (lots of best practices in there) so read up and enjoy!

Additional Resources

This section contains helpful links to other content. It isn't required, so consider it supplemental for if you need to dive deeper into something

From the creators of The Odin Project...

The Viking Code School
Viking ad 180x150