O'Reilly logo

Node.js Blueprints by Krasimir Tsonev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

Writing modular CSS ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required