What is CSS preprocessor and why to user one?

Technology CommunityCategory: CSSWhat is CSS preprocessor and why to user one?
VietMX Staff asked 3 years ago

CSS preprocessor is a program that lets you generate CSS from the preprocessor’s own unique syntax. There are many CSS preprocessors to choose from, however most CSS preprocessors will add some features that don’t exist in pure CSS, such as mixin, nesting selector, inheritance selector, and so on. These features make the CSS structure more readable and easier to maintain.

Here are a few of the most popular CSS preprocessors:

  • SASS (SCSS)
  • LESS
  • Stylus
  • PostCSS