Chapter 10. Writing Flexible and Modular CSS
In the previous chapter, we learned about the most popular testing instruments under Node.js. We saw the importance of writing tests and learned about TDD and BDD. This chapter will be about CSS (Cascading Style Sheets) and the usage of preprocessors. The Web is built on the basis of three languages—HTML, CSS, and JavaScript. As part of modern technology, Node.js provides really helpful instruments to write CSS; in this chapter, we will have a look at these instruments and how they can improve our style sheets. This chapter will cover the following topics:
Popular techniques to write modular CSS
The Less preprocessor
The Stylus preprocessor
The Sass preprocessor
The AbsurdJS preprocessor