tailwindcss/packages
RobinMalfait 5bf2efb521 Add codemod for migrating @variants and @responsive directives (#14748)
This PR migrates the `@variants` and `@responsive` directives.

In Tailwind CSS v2, these were used to generate certain variants of responsive variants for the give classes. In Tailwind CSS v3, these still worked but were implemented as a no-op such that these directives don't end up in your final CSS.

In Tailwind CSS v4, these don't exist at all anymore, so we can safely get rid of them by replacing them with their contents.

Input:
```css
@variants hover, focus {
  .foo {
    color: red;
  }
}

@responsive {
  .bar {
    color: blue;
  }
}
```

Output:
```css
.foo {
  color: red;
}

.bar {
  color: blue;
}
```
2024-10-22 16:09:54 +00:00
..
@tailwindcss-cli Ensure changes to the input CSS file result in a full rebuild (#14744) 2024-10-21 20:29:33 +00:00
@tailwindcss-node Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-postcss Add postcss as a dependency of @tailwindcss/postcss (#14750) 2024-10-22 11:20:02 +00:00
@tailwindcss-standalone Update @types/bun 1.1.10 → 1.1.11 (patch) (#14727) 2024-10-19 15:18:39 +02:00
@tailwindcss-upgrade Add codemod for migrating @variants and @responsive directives (#14748) 2024-10-22 16:09:54 +00:00
@tailwindcss-vite Vite: Fix issues when loading files via static asset queries (#14716) 2024-10-22 16:03:07 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Use 0 instead of none in OKLCH values (#14741) 2024-10-21 15:54:27 -04:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00