Plugins, plugins…we can't escape them; by now, you will have seen that they are an essential part of developing within PostCSS. Its modular nature is built entirely around plugins, and is how we can streamline our processing through selective use of these plugins.
In this chapter, we'll cover the anatomy of a PostCSS plugin and take a look at some pre-built examples, before embarking on the construction of a simple plugin that we can then test and submit for inclusion in the PostCSS system.
We will cover a number of topics throughout this chapter, which will include the following:
Discovering how plugins can be used to extend PostCSS
Examining the architecture of a standard plugin
Creating a PostCSS plugin using the plugin boilerplate
Building some example plugins
Testing and submitting your plugin for inclusion in the PostCSS plugin library
Exploring some examples of existing plugins available for PostCSS
Let's make a start…!