tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
83.37k stars 4.22k forks source link

Bundle core plugins with the standalone build #15028

Closed philipp-spiess closed 6 days ago

philipp-spiess commented 1 week ago

Closes #15012

We do not have replacements for these plugins just yet. In order to increase compatibility with setups that rely on some of these legacy plugins, this PR bundles @tailwindcss/forms, @tailwindcss/typography, and @tailwindcss/aspect-ratio (after https://github.com/tailwindlabs/tailwindcss/pull/15029) with the standalone build now.

In comparison to v3, this omits the @tailwindcss/container-queries plugin since is not a first-party feature of Tailwind CSS v4.

Test Plan

Added an integration test. I also tested this by running the standalone binary in a temporary folder with as simple input css:

@import "tailwindcss";
@plugin "@tailwindcss/typography";
philipp-spiess commented 1 week ago

Going to be adding aspect-ratio as well after we land https://github.com/tailwindlabs/tailwindcss/pull/15029 for BC reasons

philipp-spiess commented 6 days ago

This PR is ready for review again but it does have the @tailwindcss/aspect-ratio tests commented out until we land https://github.com/tailwindlabs/tailwindcss/pull/15029