12 Using preprocessors

This chapter covers

  • CSS preprocessors
  • Examples of how Sass extends CSS functionality

So far in this book, we’ve been writing all our styles using plain CSS. We can also use preprocessors, however. Each processor has its own syntax, and most preprocessors extend the existing CSS functionality. The most commonly used are

They were created to facilitate writing code that’s easier to read and maintain as well as to add functionality that’s not available in CSS. Styles written for use with preprocessors have their own syntax and must be built or compiled into CSS. Although some preprocessors provide browser-side compilation, the ...

Get Tiny CSS Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.