tailwindcss/packages
Philipp Spiess c0dd000c3c
Template migrations: Add automatic var injection codemods (#14526)
In v4, we're [removing automatic var
injection](https://github.com/tailwindlabs/tailwindcss/pull/13657)
(please refer to this PR for more detail as to why).

Automatic var injection made it so that if you have a candidate like
`bg-[--my-color]`, v3 would automatically wrap the content of the
arbitrary section with a `var(…)`, resulting in the same as typing
`bg-[var(--my-color)]`.

This PR adds codemods that go over various arbitrary fields and does the
`var(…)` injection for you. To be precise, we will add `var(…)` to:

- Modifiers, e.g.: `bg-red-500/[var(--my-opacity)]`
- Variants, e.g.:  `supports-[var(--test)]:flex`
- Arbitrary candidates, e.g.: `[color:var(--my-color)]`
- Arbitrary values for functional candidates, e.g.:
`bg-[var(--my-color)]`

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2024-10-01 13:23:24 +02:00
..
@tailwindcss-cli Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00:00
@tailwindcss-node Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00:00
@tailwindcss-postcss Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00:00
@tailwindcss-standalone Update @types/bun 1.1.8 → 1.1.10 (patch) (#14542) 2024-09-28 11:20:51 +00:00
@tailwindcss-upgrade Template migrations: Add automatic var injection codemods (#14526) 2024-10-01 13:23:24 +02:00
@tailwindcss-vite Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Add blocklist support from v3 config files (#14556) 2024-09-30 15:12:03 -04:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00