This PR fixes an issue where `@variant` inside `addBase` is being used with a custom variant. The issue is that we substitute the `@variant` calls immediately when we call the `addBase` function. That means that variants that aren't processed yet will error out. This is a regression, because this used to work in Tailwind CSS v4.3.0 and started failing in Tailwind CSS v4.3.1. ## Test plan 1. Added a regression test |
||
|---|---|---|
| .. | ||
| @tailwindcss-browser | ||
| @tailwindcss-cli | ||
| @tailwindcss-node | ||
| @tailwindcss-postcss | ||
| @tailwindcss-standalone | ||
| @tailwindcss-upgrade | ||
| @tailwindcss-vite | ||
| @tailwindcss-webpack | ||
| internal-example-plugin | ||
| tailwindcss | ||
| tsconfig.base.json | ||