What’s New

Tailwind CSS v4.2.3

v4.2.3
Fixed
  • Improve canonicalizations for tracking-* utilities by preferring non-negative utilities
  • Fix crash due to invalid characters in candidate exceeding valid unicode code point range
  • Ensure query params in imports are considered unique resources when using @tailwindcss/webpack
  • Collapse arbitrary values into shorthand utilities such as px-[1.2rem] py-[1.2rem] into p-[1.2rem]
  • Collapse border-{t,b}-* into border-y-*, border-{l,r}-* into border-x-*, and border-{t,r,b,l}-* into border-*
  • Collapse scroll-m{t,b}-* into scroll-my-*, scroll-m{l,r}-* into scroll-mx-*, and scroll-m{t,r,b,l}-* into scroll-m-*
  • Collapse scroll-p{t,b}-* into scroll-py-*, scroll-p{l,r}-* into scroll-px-*, and scroll-p{t,r,b,l}-* into scroll-p-*
  • Collapse overflow-{x,y}-* into overflow-*
  • Collapse overscroll-{x,y}-* into overscroll-*
  • Read from --placeholder-color instead of --background-color for placeholder-* utilities
  • Ensure files are not emptied out when killing the upgrade process while it is running
  • Use config.content when migrating from Tailwind CSS v3 to Tailwind CSS v4
  • Never migrate files that are ignored by git
  • Add .env and .env.* to default ignored content files
  • Migrate overflow-ellipsis into text-ellipsis
  • Migrate start-full, start-auto, start-px, and start-<number> into inset-s-full, inset-s-auto, inset-s-px, and inset-s-<number> as well as negative versions
  • Migrate end-full, end-auto, end-px, and end-<number> into inset-e-full, inset-e-auto, inset-e-px, and inset-e-<number> as well as negative versions
  • Move the - sign inside the arbitrary value -left-[9rem] into left-[-9rem]
  • Move the - sign outside the arbitrary value ml-[calc(-1*var(--width))] into -ml-(--width)
  • Improve performance when scanning JSONL / NDJSON files
  • Support NODE_PATH environment variable in standalone CLI
Fixed
  • Canonicalization: improve canonicalizations for tracking-* utilities by preferring non-negative utilities (e.g. -tracking-tightertracking-wider) (#19827)
  • Fix crash due to invalid characters in candidate (exceeding valid unicode code point range) (#19829)
  • Ensure query params in imports are considered unique resources when using @tailwindcss/webpack (#19723)
  • Canonicalization: collapse arbitrary values into shorthand utilities (e.g. px-[1.2rem] py-[1.2rem]p-[1.2rem]) (#19837)
  • Canonicalization: collapse border-{t,b}-* into border-y-*, border-{l,r}-* into border-x-*, and border-{t,r,b,l}-* into border-* (#19842)
  • Canonicalization: collapse scroll-m{t,b}-* into scroll-my-*, scroll-m{l,r}-* into scroll-mx-*, and scroll-m{t,r,b,l}-* into scroll-m-* (#19842)
  • Canonicalization: collapse scroll-p{t,b}-* into scroll-py-*, scroll-p{l,r}-* into scroll-px-*, and scroll-p{t,r,b,l}-* into scroll-p-* (#19842)
  • Canonicalization: collapse overflow-{x,y}-* into overflow-* (#19842)
  • Canonicalization: collapse overscroll-{x,y}-* into overscroll-* (#19842)
  • Read from --placeholder-color instead of --background-color for placeholder-* utilities (#19843)
  • Upgrade: ensure files are not emptied out when killing the upgrade process while it's running (#19846)
  • Upgrade: use config.content when migrating from Tailwind CSS v3 to Tailwind CSS v4 (#19846)
  • Upgrade: never migrate files that are ignored by git (#19846)
  • Add .env and .env.* to default ignored content files (#19846)
  • Canonicalization: migrate overflow-ellipsis into text-ellipsis (#19849)
  • Canonicalization: migrate start-fullinset-s-full, start-autoinset-s-auto, start-pxinset-s-px, and start-<number>inset-s-<number> as well as negative versions (#19849)
  • Canonicalization: migrate end-fullinset-e-full, end-autoinset-e-auto, end-pxinset-e-px, and end-<number>inset-e-<number> as well as negative versions (#19849)
  • Canonicalization: move the - sign inside the arbitrary value -left-[9rem]left-[-9rem] (#19858)
  • Canonicalization: move the - sign outside the arbitrary value ml-[calc(-1*var(--width))]-ml-(--width) (#19858)
  • Improve performance when scanning JSONL / NDJSON files (#19862)
  • Support NODE_PATH environment variable in standalone CLI (#19617)
View original