tailwindcss/packages
Robin Malfait 2b13547a0d
Migrate arbitrary values to bare values (#14669)
This PR adds a codemod that can convert arbitrary values to the cleaner
bare values if we can.

For example, some classes use arbitrary values such as `col-start-[16]`,
but in v4 we have bare values for some plugins that don't really need to
adhere to your design system.

In this case, we can convert `col-start-[16]` to just `col-start-16`.

Another use case is for utilities that use fractions. For example the
`aspect-*` plugin.

A custom aspect ratio such as `aspect-[16/9]` can be converted to
`aspect-16/9`.

There are some rules attached to this migration:

1. We can only migrate arbitrary values that is a single positive
integer, or an arbitrary value that is a fraction where the numerator
and denominator are both positive integers.
2. We make sure that some CSS can be generated once its converted to a
bare value.
2024-10-15 09:45:03 +00:00
..
@tailwindcss-cli Fix CLI client crash when a file is removed before we process the change notification (#14616) 2024-10-09 14:56:08 +00:00
@tailwindcss-node Address follow-up work for #14639 (#14650) 2024-10-14 14:33:14 +00:00
@tailwindcss-postcss Don't set display: none on elements that use hidden="until-found" (#14631) 2024-10-09 13:55:58 +02:00
@tailwindcss-standalone Update bun 1.1.26 → 1.1.29 (patch) (#14608) 2024-10-07 11:24:59 +02:00
@tailwindcss-upgrade Migrate arbitrary values to bare values (#14669) 2024-10-15 09:45:03 +00:00
@tailwindcss-vite release v4.0.0-alpha.26 2024-10-03 16:39:59 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Ensure font-stretch utilities only accepts positive integer bare values (#14670) 2024-10-15 09:39:05 +00:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00