Plugins for Tailwind

2 min read
Last update: November 28, 2021


yarn add @tailwindcss/forms @tailwindcss/typography @tailwindcss/aspect-ratio @tailwindcss/line-clamp
yarn add -D tailwindcss-debug-screens tailwind-scrollbar
npm i @tailwindcss/forms @tailwindcss/typography @tailwindcss/aspect-ratio @tailwindcss/line-clamp
npm i --save-dev tailwindcss-debug-screens tailwind-scrollbar
module.exports = {
  // ...
  plugins: [


A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.


A plugin that provides a set of prose classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control (like HTML rendered from Markdown, or pulled from a CMS).

<article class="prose lg:prose-xl">
  <h1>Garlic bread with cheese: What the science tells us</h1>
    For years parents have espoused the health benefits of eating garlic bread with cheese to their
    children, with the food earning such an iconic status in our culture that kids will often dress
    up as warm, cheesy loaf for Halloween.
    But a recent study shows that the celebrated appetizer may be linked to a series of rabies cases
    springing up around the country.


A plugin that provides a composable API for giving elements a fixed aspect ratio.

<div class="aspect-w-16 aspect-h-9">
  <iframe src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>


A plugin that provides utilities for visually truncating text after a fixed number of lines.

<p class="line-clamp-3">
  Et molestiae hic earum repellat aliquid est doloribus delectus. Enim illum odio porro ut omnis dolor debitis natus. Voluptas possimus deserunt sit delectus est saepe nihil. Qui voluptate possimus et quia. Eligendi voluptas voluptas dolor cum. Rerum est quos quos id ut molestiae fugit.

Tailwind CSS Debug Screens

A Tailwind CSS component that shows the currently active screen (responsive breakpoint).

  <div :class="{ 'debug-screens': devMode }">
    <Nuxt />

export default {
  name: 'DefaultLayout',
  data() {
    return {
      devMode: process.env.NODE_ENV !== 'production',