tailwindcss/packages
Adam Wathan feeb9f1b77
Remove invalid gradient fallbacks (#14705)
Prior to this PR we were providing fallback values for certain CSS
variables in our gradient utilities that just weren't necessary and
didn't do anything.

For example `bg-linear-to-r` was generating this:

```css
.bg-linear-to-r {
  --tw-gradient-position: to right;
  background-image: linear-gradient(
    var(--tw-gradient-stops, to right)
  );
}
```

…but `background-image: linear-gradient(to right)` is not valid CSS and
is thrown out by the browser.

This PR removes these fallback values entirely since there is nothing
sensible to fall back to anyways — you need to combine these utilities
with the `from-*`/`to-*` utilities or provide the complete gradient as
an arbitrary value for things to make sense.

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2024-10-17 13:48:58 -04:00
..
@tailwindcss-cli Release v4.0.0-alpha.27 (#14671) 2024-10-15 10:28:34 +00:00
@tailwindcss-node Release v4.0.0-alpha.27 (#14671) 2024-10-15 10:28:34 +00:00
@tailwindcss-postcss Add first draft of new wide-gamut color palette (#14693) 2024-10-16 15:24:53 -04:00
@tailwindcss-standalone Release v4.0.0-alpha.27 (#14671) 2024-10-15 10:28:34 +00:00
@tailwindcss-upgrade Migrate theme(…) to var(…) in CSS (#14695) 2024-10-17 11:50:27 +02:00
@tailwindcss-vite Release v4.0.0-alpha.27 (#14671) 2024-10-15 10:28:34 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Remove invalid gradient fallbacks (#14705) 2024-10-17 13:48:58 -04:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00