@tailwindcss/postcss
4.3.4 · 2 Nov 2026MIT59.4M / weekRepositoryHomepagenpmAtom feed
4.3.4 is the newest release of 4.x.
In short
9 new13 fixed
Release note
Added
Add
@container-sizeutilityAdd
scrollbar-{auto,thin,none}utilities forscrollbar-width, andscrollbar-thumb-*/scrollbar-track-*color utilities forscrollbar-color(#19981, #20019)Add
scrollbar-gutter-*utilitiesAdd
zoom-*utilitiesAdd
tab-*utilitiesAllow using
@variantwith stacked variants (e.g.@variant hover:focus { … })Allow using
@variantwith compound variants (e.g.@variant hover, focus { … })Support
--default(…)in--value(…)and--modifier(…)for functional@utilitydefinitions
Fixed
Ensure
@pluginresolves package JavaScript entries instead of browser CSS entries when using@tailwindcss/viteFix relative
@importand@pluginpaths resolving from the wrong directory when using@tailwindcss/viteEnsure CSS files containing
@variantare processed by@tailwindcss/viteResolve imports relative to
basewhenresult.opts.fromis not provided when using@tailwindcss/postcssCanonicalization: Preserve significant
_whitespace in arbitrary valuesCanonicalization: Add parentheses when removing whitespace from arbitrary values would hurt readability (e.g.
w-[calc(100%---spacing(60))]→w-[calc(100%-(--spacing(60)))])Canonicalization: Preserve the original unit in arbitrary values instead of normalizing to base units (e.g.
-mt-[20in]→mt-[-20in], notmt-[-1920px])Canonicalization: Migrate arbitrary
:has()variants from[&:has(…)]tohas-[…]Upgrade: don’t migrate inline
styleattributes (e.g.style="flex-grow: 1"→style="flex-grow: 1", notstyle="grow: 1")Allow multiple
@utilitydefinitions with the same name but different value typesExport missing
PluginWithConfigtype fromtailwindcss/pluginto fix errors when inferring plugin config typesEnsure
startandendlegacy utilities without values do not generate CSSEnsure
--value(…)is required in functional@utilitydefinitionsCanonicalization: Preserve required whitespace around operators in negated arbitrary values (e.g.
-left-[(var(--a)+var(--b))])