Canonicalization: improve performance in projects with many functional variant values (e.g. a matchVariant plugin with thousands of values) (#20663) Don't crash or create a fallback with the wrong color for a color-mix(…) without a color interpolation method (e.g.…
npx @buildinternet/releases get tailwind-cssv4.3.1 shipped June 12 with a round of fixes for the utility engine and compatibility patches for Node 26.
Scrollbar, zoom, and tab utilities close gaps with native CSS. The scrollbar suite (scrollbar-{auto,thin,none}, scrollbar-thumb-*, scrollbar-track-*, scrollbar-gutter-*) maps directly to CSS scrollbar-width and scrollbar-color; zoom-* covers the zoom property; tab-* controls tab-size — all areas where developers previously needed custom CSS or a plugin. @container-size landed alongside these, enabling container queries that key on height as well as width.
@variant gained stacked and compound forms. You can now write @variant hover:focus { … } and @variant hover, focus { … } directly, and functional @utility definitions support --default(…) for fallback values.
The class optimizer shrank your output more aggressively. The canonicalization engine now collapses shorthand pairs (px-[…] py-[…] → p-[…], border-t-* border-b-* → border-y-*), migrates legacy :has() variants to idiomatic has-[…] form, and preserves arbitrary value formatting faithfully without normalizing units to base pixels. v4.3.1 also patched a crash when plugin utilities throw for unsupported values, and fixed not-* negation of @container style(…) queries.
@apply now works inside CSS mixins. The module loader also switched to Module#registerHooks to silence Node 26 deprecation warnings.
The Prettier plugin opened a public sorting API. The /sorter subpath exports programmatic class ordering so tooling authors can reuse the logic outside Prettier. The release also dropped recast and ast-types, switched to directory-based config caching, and requires Prettier 3.7+.
Add @tailwindcss/turbopack, a Turbopack loader for using Tailwind CSS with Next.js (#20367)
Fixed Support --watch --poll[=ms] in @tailwindcss/cli when filesystem events are unreliable or unavailable (#20297) Canonicalization: match arbitrary hex colors against theme colors case-insensitively (e.g. bg-[#fff] and bg-[#FFF] → bg-white) (#20298) Prevent Preflight from…
Fixed Don't remove escape sequences when sorting classes in JavaScript string literals, which could produce invalid code in Vue attribute expressions (#461) Restore class sorting in Svelte markup and dynamic class={...} expressions when using prettier-plugin-svelte v4 (#462)
Fixed Support bare spacing values for auto-rows- and auto-cols- utilities (e.g. auto-rows-12 and auto-cols-16) (#20229) Prevent @tailwindcss/cli in --watch mode from crashing on Windows when @source points to a directory that doesn't exist (#20242) Prevent @tailwindcss/vite…
Added Add --silent option to suppress output in @tailwindcss/cli (#20100) Fixed Remove deprecation warnings by using Module#registerHooks instead of Module#register on Node 26+ (#20028) Canonicalization: don't crash when plugin utilities throw for unsupported values (#20052)…
Added Add @container-size utility (#18901) Add scrollbar-{auto,thin,none} utilities for scrollbar-width, and scrollbar-thumb- / scrollbar-track- color utilities for scrollbar-color (#19981, #20019) Add scrollbar-gutter- utilities (#20018) Add zoom- utilities (#20020) Add tab-…
Tailwind CSS v4.3 is here, and because apparently shipping v4.2 was easier than remembering to blog about it, this post is secretly about two releases worth of new stuff.
Changed Remove top-level await (#420) Improve load-time performance (#420) Fixed Collapse whitespace in template literals with adjacent quasis (#427)
Fixed Canonicalization: improve canonicalizations for tracking- utilities by preferring non-negative utilities (e.g. -tracking-tighter → tracking-wider) (#19827) Fix crash due to invalid characters in candidate (exceeding valid unicode code point range) (#19829) Ensure query…
Fixed Don’t render while hydrating (#3825) Fix passing props on Fragment error due to Symbol(react.lazy) (#3873)
Added Support Vite 8 in @tailwindcss/vite (#19790) Fixed Don't crash when candidates contain prototype properties like row-constructor (#19725) Canonicalize calc(var(--spacing)…) expressions into --spacing(…) (#19769) Fix crash in canonicalization step when handling utilities…
Fixed Allow trailing dash in functional utility names for backwards compatibility (#19696) Properly detect classes containing . characters within curly braces in MDX files (#19711)
Added Add mauve, olive, mist, and taupe color palettes to the default theme (#19627) Add @tailwindcss/webpack package to run Tailwind CSS as a webpack plugin (#19610) Add pbs- and pbe- utilities for padding-block-start and padding-block-end (#19601) Add mbs- and mbe- utilities…
Fixed Ensure validation of source(…) happens relative to the file it is in (#19274) Include filename and line numbers in CSS parse errors (#19282) Skip comments in Ruby files when checking for class names (#19243) Skip over arbitrary property utilities with a top-level ! in the…
Fixed Don’t break sibling-() functions when used inside calc(…) (#19335)