Plugins register new utilities, variants, or base styles via Tailwind’s plugin API. Common official plugins:
@tailwindcss/typography—prosefor article content@tailwindcss/forms— sensible form control defaults@tailwindcss/container-queries—@containervariants
Installing
npm install -D @tailwindcss/typography
// tailwind.config.js
plugins: [require('@tailwindcss/typography')]
Plugins run at build time—they are not runtime JS in the browser bundle (except CDN config limitations).
Self-check
- What does the typography plugin provide?
- When are plugins loaded in the build pipeline?