Book Image

Mastering PostCSS for Web Design

By : Alex Libby
Book Image

Mastering PostCSS for Web Design

By: Alex Libby

Overview of this book

PostCSS is a tool that has quickly emerged as the future of existing preprocessors such as SASS and Less, mainly because of its power, speed, and ease of use. This comprehensive guide offers in-depth guidance on incorporating cutting-edge styles into your web page and at the same time maintaining the performance and maintainability of your code. The book will show how you can take advantage of PostCSS to simplify the entire process of stylesheet authoring. It covers various techniques to add dynamic and modern styling features to your web pages. As the book progresses, you will learn how to make CSS code more maintainable by taking advantage of the modular architecture of PostCSS. By the end of this book, you would have mastered the art of adding modern CSS effects to web pages by authoring high performing, maintainable stylesheets.
Table of Contents (21 chapters)
Mastering PostCSS for Web Design
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Getting started with some hints and tips


The time has come when it is over to you as developers to start creating your own processor! It may seem a daunting task at first, depending on the size and nature of your project; I've listed a few tips to help you over the initial hurdle of planning and creating your processor:

  • Every processor is unique—do not be afraid to experiment. The processor of course must meet your requirements, but there are several ways to crack a nut, so if the first plugin you try doesn't work, then move on and try another.

  • Don't fall into the trap that many do, and consider PostCSS as either a pre-processor or a post-processor; it is neither and yet it is also both. The library itself does nothing; the magic lies in the plugins you add, which determine how it performs.

  • Start small—PostCSS was designed to be modular, so if all you need to begin with is a facility to add vendor prefixes, then fine. Over time, you can easily add extra plugins to your processor; it does not...