Here be dragons! You cannot write pure CSS and follow this manual’s advice.
CSS processors are essential tools for writing extensible and maintainable CSS. They enhance the language with powerful features:
And help us compile into valid, optimized CSS.
Pre-processors and post-processors are effectively the same thing. Don’t worry about it.
GravDept uses Gulp to process SCSS into CSS with sourcemaps then Autoprefixer adds vendor prefixes.
Why these tools?
- Easy to understand.
- Fast compilation (under 500ms).
- Most Node modules have Gulp wrappers.
- Built on CSS syntax (all CSS is valid SCSS).
- Concise and beautiful language extensions (good looking code matters).
- Widespread adoption + stability.
.mapfiles to trace processed CSS back to imported partials.
- Easy and readable (just write standard CSS).
- Easy to maintain via
Why not all PostCSS?
PostCSS is flexible, fast, and totally extensible. Assembling and maintaining everything from scratch isn’t always an advantage.
Sass is stable, robust, fast, and has consistent documentation. It already does almost everything a CSS processor should, and has broad adoption. No need to reinvent the wheel.