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

Summary


Creating CSS styles opens up a world of possibilities: we are only limited by what we must support! Throughout the course of this chapter, we've explored some of the possible options we can use when working with the newer CSS4 styles—let's take a moment to review what we have learnt.

We kicked off with a quick introduction to what we know as CSS4—we then moved on to explore some of the plugins that cater for supporting newer styles with more compatible CSS equivalent code.

Up next came a simple demo that explored some of the new CSS4 pseudo-classes, and how we might use them in a (theoretical) context. We then moved onto something more practical, in the form of styling the new range input using just CSS.

Moving swiftly on, we then took a look at the cssnext plugin pack, which provides an abstract layer for supporting CSS4; we saw how easy it is to implement, and that we can easily switch off functionality if it is no longer needed in our projects.

Our next demo came in the form of working...