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

Fixing some common issues


In an ideal world, any processor we build will work flawlessly, irrespective of which task runner or method we use to process each PostCSS task. Our aim is to end up with one or more successfully compiled files, as shown in this example:

But as we all know, not everything goes well 100% of the time; if it did, we would either be exceptionally lucky, or things would begin to get mundane!

Being a pragmatist, I suspect most people will have some form of issue crop up as they get to grips with PostCSS; throughout the course of this chapter we will explore some of the more common issues, how to resolve them, and bring together some of the tips and tricks we can use to help make our lives a little easier when using PostCSS. Let's begin with a look at some of the more common issues we might face, in more detail.