Chapter 5: Working with Tailwind Plugins

In the last chapter, we learned the most important ways to customize and extend a default Tailwind theme.

Now, in this final chapter, we’ll end our journey by exploring the one of Tailwind’s most powerful features: plugins. We’ll firstly look at how to use the official Tailwind plugins. Then we’ll learn how to create our own custom Tailwind plugins.

Getting Started

Let’s prepare for this tutorial by creating a new project (a process we covered in the Chapter 2).

Project Code

You can find the finished project for this chapter in the code repo for this book.

Once we have our new project ready, the next step is to modify the content key, inside tailwind.config.js, like so:

// /tailwind.config.js module.exports ...

Get Tailwind CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.