Chapter 6. The Stylus CSS Preprocessor

Stylus is the recommended CSS preprocessor for Express. It comes with an intuitive syntax for generating CSS and a flexible programming language to manage the dynamics of the CSS generation process.

Using Stylus saves a lot of time during development and maintenance. You will learn the following in this chapter:

  • How to enable Stylus in Express
  • Understand the Stylus CSS syntax
  • How to use the programming capabilities of Stylus

Introduction

Stylus is a CSS preprocessor—a tool for generating CSS in a more efficient and dynamic manner. It comes with a logical syntax for generating CSS style definition blocks, and a programming language to make the CSS generation process very dynamic.

Note

Although, we cover most aspects ...

Get Express Web Application Development 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.