unstale

npm / tailwindcss

tailwindcss

What changed in tailwindcss 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

50 breaking3 deprecations53 new APIs and options7 performance39 behavior and defaults13 tooling147 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

tailwindcss 4311 changes

Breaking changes 50

  • Nested rules that put a combinator after a pseudo-element are dropped.

    4.3.4release notes

  • Root namespace lookups in JavaScript plugins and config files return the full namespace object instead of its DEFAULT value.

    4.3.4release notes

  • Selectors combining an attribute selector and element selector without spacing are parsed as two selectors.

    4.3.3release notes

  • This syntax now generates font-size declarations instead of color declarations.

    4.3.2release notes

  • Requires --value(…) in functional @utility definitions.

    4.3.0release notes

  • Logical end utilities are canonicalized into corresponding inset-e-* utilities, including negative versions.

    4.2.3release notes

  • Logical start utilities are canonicalized into corresponding inset-s-* utilities, including negative versions.

    4.2.3release notes

  • Placeholder utilities now read their color from --placeholder-color.

    4.2.3release notes

  • The deprecated overflow-ellipsis utility is canonicalized into text-ellipsis.

    4.2.3release notes

  • Commas are no longer converted to spaces in arbitrary grid and object-position values; use underscores to represent spaces.

    4.0.0upgrade guide

  • The v3 backdrop-blur-sm utility is now backdrop-blur-xs; backdrop-blur-sm now corresponds to the former bare utility.

    4.0.0upgrade guide

  • Linear gradient utilities support angle values, and the bg-gradient-* naming has been changed to bg-linear-*.

    4.0.0upgrade guide

  • The v3 blur-sm utility is now blur-xs; blur-sm now corresponds to the former bare blur utility.

    4.0.0upgrade guide

  • Border utilities now use currentColor by default instead of the configured gray-200 color.

    4.0.0upgrade guide

  • Tailwind CSS v4 targets Safari 16.4+, Chrome 111+, and Firefox 128+, and will not work in older browsers.

    4.0.0upgrade guide

  • Buttons now use cursor: default instead of cursor: pointer.

    4.0.0upgrade guide

  • JavaScript config files are no longer detected automatically; load one explicitly with the @config directive.

    4.0.0upgrade guide

  • The container utility no longer has configuration options such as center and padding; customize it with @utility.

    4.0.0upgrade guide

  • The corePlugins option for completely disabling framework utilities is no longer supported.

    4.0.0upgrade guide

  • Use parentheses rather than square brackets for CSS variables in arbitrary values.

    4.0.0upgrade guide

  • The default palette uses oklch instead of rgb, with more vivid colors that take advantage of wider-gamut displays.

    4.0.0upgrade guide

  • Utilities deprecated in v3 and undocumented for several years have been removed, including opacity, flex sizing, ellipsis, and decoration utilities.

    4.0.0upgrade guide

  • Preflight now resets margins on dialog elements; add margin: auto to keep dialogs centered by default.

    4.0.0upgrade guide

  • Divide utilities now use currentColor by default instead of the configured gray-200 color.

    4.0.0upgrade guide

  • The divide selector changed to target all but the last child and apply border-bottom-width, which may affect inline elements and child spacing or borders.

    4.0.0upgrade guide

  • The v3 drop-shadow-sm utility is now drop-shadow-xs; drop-shadow-sm now corresponds to the former bare drop-shadow utility.

    4.0.0upgrade guide

  • Gradient values set by other utilities are preserved when a variant overrides part of a gradient; use via-none to unset a three-stop gradient.

    4.0.0upgrade guide

  • Display classes no longer override the hidden attribute, except when hidden is set to until-found.

    4.0.0upgrade guide

  • The hover variant applies only when the primary input device supports hover.

    4.0.0upgrade guide

  • Import Tailwind with a regular CSS @import statement instead of the v3 @tailwind directives.

    4.0.0upgrade guideupgrade guide

  • The outline utility now sets outline-width: 1px by default.

    4.0.0upgrade guide

  • outline-none now actually sets outline-style: none; the former invisible-outline behavior is named outline-hidden.

    4.0.0upgrade guide

  • Placeholder text now uses the current text color at 50% opacity instead of the configured gray-400 color.

    4.0.0upgrade guide

  • Prefixes now behave like variants and appear at the beginning of class names; generated CSS variables also include the prefix.

    4.0.0upgrade guide

  • The exported resolveConfig function has been removed; use generated CSS variables directly instead.

    4.0.0upgrade guide

  • The ring utility now adds a 1px ring instead of 3px and uses currentColor instead of blue-500 by default.

    4.0.0upgrade guide

  • The v3 rounded-sm utility is now rounded-xs; rounded-sm now corresponds to the former bare rounded utility.

    4.0.0upgrade guide

  • The JavaScript config safelist option is unsupported; use @source inline() to safelist utilities.

    4.0.0upgrade guide

  • Tailwind CSS v4 is not designed to work with Sass, Less, or Stylus; these preprocessors cannot be used for stylesheets or component style blocks.

    4.0.0upgrade guide

  • Scale utilities now use the individual CSS scale property; reset with scale-none rather than transform-none.

    4.0.0upgrade guide

  • The JavaScript config separator option is no longer supported in v4.

    4.0.0upgrade guide

  • The v3 shadow-sm utility is now shadow-xs; shadow-sm now corresponds to the former bare shadow utility.

    4.0.0upgrade guide

  • The spacing selector changed to target all but the last child and apply margin-bottom, which may affect inline elements and custom child margins.

    4.0.0upgrade guide

  • The v3 @tailwind directives are removed; use a regular CSS @import statement.

    4.0.0upgrade guide

  • Tailwind CLI now lives in a dedicated package, so build commands should use this package.

    4.0.0upgrade guide

  • The PostCSS plugin now lives in a dedicated package instead of the tailwindcss package.

    4.0.0upgrade guideupgrade guide

  • The upgrade tool automates much of the v3-to-v4 migration, including dependency updates, configuration migration, and template changes; it requires Node.js 20 or higher.

    4.0.0upgrade guide

  • transform-none no longer resets rotate, scale, and translate utilities; reset the individual properties instead.

    4.0.0upgrade guide

  • Use the @utility API to register custom utilities; they support variants and are sorted by the number of properties they define.

    4.0.0upgrade guide

  • Stacked variants now apply left to right instead of right to left; reverse order-sensitive variant stacks when upgrading.

    4.0.0upgrade guide

Deprecations 3

  • The end-* utilities are deprecated in favor of inset-e-* utilities.

    4.2.0release notes

  • The start-* utilities are deprecated in favor of inset-s-* utilities.

    4.2.0release notes

  • Place ! at the end of a utility class name; the former leading-! syntax remains supported for compatibility but is deprecated.

    4.0.0upgrade guide

New APIs and options 53

  • The CLI supports polling watch mode when filesystem events are unreliable or unavailable.

    4.3.3release notes

  • Adds an option to suppress CLI output.

    4.3.1release notes

  • Adds the @container-size utility.

    4.3.0release notes

  • Adds scrollbar-width utilities for auto, thin, and none values.

    4.3.0release notes

  • Adds scrollbar-gutter utilities.

    4.3.0release notes

  • Adds tab utilities.

    4.3.0release notes

  • Supports --default(…) inside --value(…) and --modifier(…) for functional utility definitions.

    4.3.0release notes

  • Adds zoom utilities.

    4.3.0release notes

  • The standalone CLI now supports the NODE_PATH environment variable.

    4.2.3release notes

  • Adds utilities for block-size.

    4.2.0release notes

  • Adds utilities for border-block-end.

    4.2.0release notes

  • Adds utilities for border-block-start.

    4.2.0release notes

  • The default theme now includes mauve, olive, mist, and taupe color palettes.

    4.2.0release notes

  • Adds a utility for font-feature-settings.

    4.2.0release notes

  • Adds utilities for inline-size.

    4.2.0release notes

  • Adds utilities for inset-block-end.

    4.2.0release notes

  • Adds utilities for inset-block-start.

    4.2.0release notes

  • Adds utilities for inset-inline-end.

    4.2.0release notes

  • Adds utilities for inset-inline-start.

    4.2.0release notes

  • Adds utilities for max-block-size.

    4.2.0release notes

  • Adds utilities for max-inline-size.

    4.2.0release notes

  • Adds utilities for margin-block-end.

    4.2.0release notes

  • Adds utilities for margin-block-start.

    4.2.0release notes

  • Adds utilities for min-block-size.

    4.2.0release notes

  • Adds utilities for min-inline-size.

    4.2.0release notes

  • Adds utilities for padding-block-end.

    4.2.0release notes

  • Adds utilities for padding-block-start.

    4.2.0release notes

  • Adds utilities for scroll-margin-block-end.

    4.2.0release notes

  • Adds utilities for scroll-margin-block-start.

    4.2.0release notes

  • Adds utilities for scroll-padding-block-end.

    4.2.0release notes

  • Adds utilities for scroll-padding-block-start.

    4.2.0release notes

  • New utilities including rotate-x-*, rotate-y-*, scale-z-*, and translate-z-* enable 3D transforms in HTML.

    4.0.0upgrade guide

  • New utilities create conic gradients and work with existing from-*, via-*, and to-* utilities.

    4.0.0upgrade guide

  • New utilities create radial gradients and work with existing from-*, via-*, and to-* utilities.

    4.0.0upgrade guide

  • New color-scheme utilities let developers control scrollbars in dark mode.

    4.0.0upgrade guide

  • Container query support is built into core, so the container-queries plugin is no longer needed.

    4.0.0upgrade guide

  • Configure design tokens, custom utilities, and variants directly in CSS instead of configuring the project in JavaScript.

    4.0.0upgrade guide

  • A new variant styles all descendant elements.

    4.0.0upgrade guide

  • New field-sizing utilities support auto-resizing textareas without JavaScript.

    4.0.0upgrade guide

  • New font-stretch utilities support adjustments to variable fonts that offer different widths.

    4.0.0upgrade guide

  • Gradient utilities accept modifiers such as /srgb and /oklch to choose the color interpolation mode; OKLAB is the default.

    4.0.0upgrade guide

  • The new in-* variant is similar to group-* but does not require the group class.

    4.0.0upgrade guide

  • The new inert variant styles non-interactive elements marked with the inert attribute.

    4.0.0upgrade guide

  • New inset ring utilities allow up to four layers of box shadows on one element.

    4.0.0upgrade guide

  • New inset shadow utilities allow up to four layers of box shadows on one element.

    4.0.0upgrade guide

  • The new @max-* variant supports max-width container queries and can be stacked with @min-* to define ranges.

    4.0.0upgrade guide

  • The new variant negates selectors, media queries, and @supports queries.

    4.0.0upgrade guide

  • New nth-* variants support styling elements by their position.

    4.0.0upgrade guide

  • Use @reference to make theme variables, custom utilities, and custom variants available in separately bundled stylesheets without duplicating CSS.

    4.0.0upgrade guide

  • Use the @source directive in CSS to explicitly add a source excluded by default content detection.

    4.0.0upgrade guide

  • The starting variant supports CSS @starting-style, allowing element properties to transition when an element is first displayed.

    4.0.0upgrade guide

  • The @theme CSS directive defines design tokens and other framework customizations.

    4.0.0upgrade guide

  • The transition utility now includes the outline-color property.

    4.0.0upgrade guide

Performance 7

  • Canonicalization is faster in projects with many functional variant values, such as a matchVariant plugin with thousands of values.

    4.3.5release notes

  • collapse: true no longer takes exponentially longer when classes are linked through a utility that sets many properties.

    4.3.4release notes

  • Style invalidation performance is improved for group-* and peer-* variants.

    4.3.4release notes

  • Ignored directories are skipped when generating watch globs instead of having their contents walked on every rebuild.

    4.3.4release notes

  • Scanning JSONL and NDJSON files is faster.

    4.2.3release notes

  • The Oxide scanner performs fewer file system walks in bigger projects.

    4.2.0release notes

  • The rewritten engine makes full builds faster and incremental builds with no new CSS over 100x faster, completing in microseconds.

    4.0.0upgrade guide

Behavior and default changes 39

  • Bare spacing values now work with auto-cols utilities.

    4.3.2release notes

  • Bare spacing values now work with auto-rows utilities.

    4.3.2release notes

  • Can now be used with CSS mixins.

    4.3.1release notes

  • One-valued spacing utilities generate var(--spacing) instead of calc(var(--spacing) * 1).

    4.3.1release notes

  • Can now be used inside addBase.

    4.3.1release notes

  • Adds parentheses when whitespace removal would hurt readability.

    4.3.0release notes

  • Preserves the original unit in arbitrary values instead of converting to base units.

    4.3.0release notes

  • Canonicalizes arbitrary :has() variants to the has-[…] form.

    4.3.0release notes

  • Allows multiple utility definitions with the same name when their value types differ.

    4.3.0release notes

  • Allows @variant to use stacked variants such as hover:focus.

    4.3.0release notes

  • Allows @variant to use compound variants such as hover and focus.

    4.3.0release notes

  • Border side utility combinations are canonicalized into axis or all-side utilities.

    4.2.3release notes

  • .env and .env.* are now excluded from default content-file scanning.

    4.2.3release notes

  • The upgrade process no longer migrates files ignored by git.

    4.2.3release notes

  • Axis-specific overflow utilities are canonicalized into the combined overflow utility.

    4.2.3release notes

  • Axis-specific overscroll utilities are canonicalized into the combined overscroll utility.

    4.2.3release notes

  • Equivalent arbitrary padding utilities are canonicalized into shorthand utilities.

    4.2.3release notes

  • Scroll margin side combinations are canonicalized into axis or all-side utilities.

    4.2.3release notes

  • Scroll padding side combinations are canonicalized into axis or all-side utilities.

    4.2.3release notes

  • Canonicalization now prefers non-negative tracking utilities.

    4.2.3release notes

  • Canonicalizes calc(var(--spacing)*…) expressions into the --spacing(…) form.

    4.2.2release notes

  • Aspect-ratio fractions may now use multiples of .25, such as aspect-8.5/11.

    4.2.0release notes

  • The .jj directory is now ignored by default during content detection.

    4.2.0release notes

  • Utility names may now contain escape characters, improving formatter support.

    4.2.0release notes

  • Arbitrary utilities are now canonicalized to bare values when possible.

    4.1.18release notes

  • Candidate validation now behaves more like Oxide.

    4.1.18release notes

  • Canonicalization now combines text-* and leading-* classes.

    4.1.18release notes

  • Upgrade processing canonicalizes utilities containing 0 values.

    4.1.15release notes

  • Template files are detected automatically, so projects no longer need to configure paths in a content array.

    4.0.0upgrade guide

  • Vendor prefixing is handled automatically in v4, so this plugin can be removed from projects.

    4.0.0upgrade guide

  • Boolean data attributes can be targeted with variants without defining them in configuration.

    4.0.0upgrade guide

  • Many utilities accept values derived dynamically from the spacing scale, without configuration or arbitrary-value syntax.

    4.0.0upgrade guide

  • The existing open variant also targets elements with the :popover-open pseudo-class.

    4.0.0upgrade guide

  • All outline-<number> utilities now default outline-style to solid, so they no longer need to be combined with outline.

    4.0.0upgrade guide

  • Imports are handled automatically in v4, so this plugin can be removed from projects.

    4.0.0upgrade guide

  • Rotate utilities now use the individual CSS rotate property rather than the transform property.

    4.0.0upgrade guide

  • Theme values are available as CSS variables and are recommended instead of theme(); where theme() is needed, use CSS variable names rather than dot notation.

    4.0.0upgrade guideupgrade guide

  • The transition-colors utility now includes the outline-color property.

    4.0.0upgrade guide

  • Translate utilities now use the individual CSS translate property rather than the transform property.

    4.0.0upgrade guide

Tooling 13

  • Adds a Turbopack loader for using Tailwind CSS with Next.js.

    4.3.4release notes

  • Named opacity modifiers now receive class suggestions from --opacity theme values.

    4.3.2release notes

  • Class candidates adjacent to Template Toolkit delimiters are now extracted from .tt, .tt2, and .tx files.

    4.3.2release notes

  • Class candidates are now extracted from Twig addClass calls.

    4.3.1release notes

  • Can be installed in Rspack projects without webpack as a peer dependency.

    4.3.1release notes

  • The v3-to-v4 migration now uses config.content.

    4.2.3release notes

  • Adds support for Vite 8 in the Tailwind CSS Vite integration.

    4.2.2release notes

  • The CLI emits a comment when source maps are saved to files.

    4.2.0release notes

  • A new package runs Tailwind CSS as a webpack plugin.

    4.2.0release notes

  • CSS parse errors now include the filename and line numbers, making failures easier to locate.

    4.1.18release notes

  • The environment API is now supported in the Vite integration.

    4.1.18release notes

  • The deprecated break-words utility is migrated to wrap-break-word during upgrades.

    4.1.15release notes

  • A dedicated Vite plugin is available and recommended over the PostCSS plugin for improved performance and developer experience.

    4.0.0upgrade guideupgrade guide

Fixes and other changes 146

  • Tailwind no longer crashes or creates a fallback with the wrong color for color-mix() values without a color interpolation method.

    4.3.5release notes

  • Comments between top-level CSS rules are ignored instead of causing an error or swallowing the next rule.

    4.3.5release notes

  • Type declarations no longer cause type errors with skipLibCheck: false due to imports of unshipped modules.

    4.3.5release notes

  • The WASI package loads instead of hanging forever, including when NAPI_RS_FORCE_WASI=error or in WebContainers.

    4.3.5release notes

  • The WASI package detects changed and new source files after its first scan, including in WebContainers.

    4.3.5release notes

  • CSS is not generated for candidates containing an empty additional modifier.

    4.3.4release notes

  • Viewport and font-relative units are treated as lengths in arbitrary values.

    4.3.4release notes

  • CSS is not generated for arbitrary values with unbalanced parentheses or brackets.

    4.3.4release notes

  • Automatic source detection respects negation-based .gitignore files.

    4.3.4release notes

  • Cached compilers release their loadModule and loadStylesheet callbacks after compilation.

    4.3.4release notes

  • Utilities are not collapsed into a utility using another theme variable with the same default value.

    4.3.4release notes

  • A utility setting a --tw-* variable is not dropped when an unrelated property has the same value.

    4.3.4release notes

  • Arbitrary breakpoint and container query variants are converted to named equivalents when canonicalized.

    4.3.4release notes

  • Utilities referencing different theme variables set to CSS-wide keywords like unset are not merged.

    4.3.4release notes

  • Canonicalization preserves & when moving a pseudo-element into * or **.

    4.3.4release notes

  • Inline theme(…) alphas with more than two decimals migrate to a percentage modifier with the same opacity.

    4.3.4release notes

  • Inline theme(…) alphas remain arbitrary percentages when a custom --opacity-* theme value would change their opacity.

    4.3.4release notes

  • When collapsing utilities, an existing candidate is preferred over another utility with the same default theme value.

    4.3.4release notes

  • The Set.prototype.intersection polyfill returns the intersection instead of the first set on Node.js versions below 22.

    4.3.4release notes

  • Invalid UTF-8 candidates are dropped during class detection.

    4.3.4release notes

  • Comments ending with \*/ are closed correctly instead of swallowing following CSS.

    4.3.4release notes

  • A declaration without a trailing semicolon is kept at the end of the CSS input.

    4.3.4release notes

  • A custom property at the end of the input is parsed when it has no trailing semicolon.

    4.3.4release notes

  • & is substituted inside :-moz-any(…) and :-webkit-any(…) in custom variants.

    4.3.4release notes

  • Whitespace in --default(…) values is preserved in functional @utility definitions.

    4.3.4release notes

  • !important inside strings, comments, or url() in declaration values is no longer treated as the important flag.

    4.3.4release notes

  • CSS optimization no longer warns about Angular's ::ng-deep and :host-context().

    4.3.4release notes

  • The fallback is no longer applied in Safari versions that no longer support margin-trim: inline.

    4.3.4release notes

  • Class shorthands on later lines are extracted when preceding Pug text, comments, or quoted attributes contain unbalanced brackets or a quote that doesn't start a string.

    4.3.4release notes

  • Class candidates are extracted from Ruby %w and %W literals using angle brackets or custom delimiters, including in Slim and Haml templates.

    4.3.4release notes

  • Variants using @scope wrap generated utilities instead of nesting inside them.

    4.3.4release notes

  • Nested @scope rules preserve their scoping semantics when flattened.

    4.3.4release notes

  • Declarations directly inside @scope are preserved by wrapping them in :where(:scope).

    4.3.4release notes

  • Watch mode now detects changes to symlinked source files whose real paths aren't otherwise scanned.

    4.3.4release notes

  • Standalone macOS binaries have a valid code signature so macOS 27 no longer kills them at launch.

    4.3.4release notes

  • and, or, and not inside selectors are preserved in supports-[…] variants.

    4.3.4release notes

  • Plugin logs are written to stderr so they do not appear in results on stdout.

    4.3.4release notes

  • Oxide falls back to WASM on platforms without native bindings.

    4.3.4release notes

  • Relative stylesheet URLs are rewritten in optimized builds even when the stylesheets were inlined before the plugin runs.

    4.3.4release notes

  • Turbopack rebuilds when the input CSS changes.

    4.3.4release notes

  • The Vite plugin no longer crashes on every edit under experimental bundledDev mode.

    4.3.4release notes

  • Webpack rebuilds when the input CSS changes.

    4.3.4release notes

  • Single-digit hexadecimal escapes in theme variable and @utility names are decoded according to the CSS spec.

    4.3.4release notes

  • Utilities are not generated when a modifier would otherwise be silently ignored.

    4.3.4release notes

  • Warnings underline the correct occurrence of an unsupported data type.

    4.3.4release notes

  • Generated utilities include a space in empty var() fallbacks.

    4.3.4release notes

  • min-*, max-*, and container query variants with decimal values are sorted numerically.

    4.3.4release notes

  • Achromatic theme colors no longer shift hue when mixed in polar color spaces such as oklch.

    4.3.3release notes

  • Arbitrary hex colors now match theme colors case-insensitively during canonicalization.

    4.3.3release notes

  • CSS nesting is handled even when Lightning CSS is not run, including browser builds and Tailwind Play.

    4.3.3release notes

  • Fractional opacity modifiers now work with named shadow, text-shadow, drop-shadow, and inset-shadow sizes.

    4.3.3release notes

  • Preflight no longer overrides Firefox's native focus-visible outline styles for iframes.

    4.3.3release notes

  • The watcher dependency loads only for CLI watch mode, allowing one-off builds and polling when it cannot be loaded.

    4.3.3release notes

  • Explicit platform fonts replace generic system fonts so CJK text respects the page's lang attribute on Windows.

    4.3.3release notes

  • Earlier @source rules for nested files are scanned even when later rules reference parent folders.

    4.3.3release notes

  • --spacing(0) now optimizes to 0px, preserving its length type inside calc expressions.

    4.3.3release notes

  • PostCSS rebuilds when a preprocessor changes input CSS without changing the input file on disk.

    4.3.3release notes

  • The upgrade command no longer rewrites ignored files when run from a subdirectory.

    4.3.3release notes

  • Vite integration no longer triggers full page reloads for scanned files not yet loaded as modules.

    4.3.3release notesrelease notes

  • JS plugins now resolve theme colors correctly when similarly prefixed color variables coexist.

    4.3.3release notes

  • Class candidates are now extracted from conditional Maud syntax.

    4.3.2release notes

  • Position try rules no longer trigger unknown at-rule warnings during CSS optimization.

    4.3.2release notes

  • Source patterns no longer scan unrelated sibling files and folders.

    4.3.2release notes

  • Watch mode no longer crashes on Windows when @source points to a missing directory.

    4.3.2release notes

  • Watch mode now rebuilds when the input CSS file changes in an ignored directory.

    4.3.2release notes

  • Prevents type errors when used with newer PostCSS patch releases.

    4.3.2release notes

  • Avoids HMR crashes when scanned files or directories are deleted.

    4.3.2release notes

  • Avoids crashes in Deno v2.8.x when context.parentURL is not a valid URL.

    4.3.2release notes

  • Variants used in addBase can now reference custom variants defined later.

    4.3.2release notes

  • Canonicalization avoids suggesting large spacing-scale values for arbitrary lengths.

    4.3.1release notes

  • Canonicalization no longer suggests invalid calc expressions.

    4.3.1release notes

  • Canonicalization no longer folds divisions when the result would require high precision.

    4.3.1release notes

  • Color utilities now work with custom shadow values containing calc expressions.

    4.3.1release notes

  • Upgrade no longer migrates empty class rules to invalid @utility rules.

    4.3.1release notes

  • Transitions between inset-shadow-none and other inset shadows now work correctly.

    4.3.1release notes

  • Removes deprecation warnings on Node 26 and newer.

    4.3.1release notes

  • Correctly negates @container queries, including style queries.

    4.3.1release notes

  • Canonicalization no longer crashes when plugin utilities throw for unsupported values.

    4.3.1release notes

  • Class candidates are now extracted from Twig removeClass calls.

    4.3.1release notes

  • No longer crashes when scanning files containing invalid UTF-8 bytes.

    4.3.1release notes

  • Source globs with symlinks are preserved.

    4.3.1release notes

  • Later source rules can re-include files excluded by earlier source-not rules.

    4.3.1release notes

  • Explicitly referenced source directories are scanned even when ignored by git.

    4.3.1release notes

  • Source globs ending in **/* preserve dynamic path segments and avoid scanning too many files.

    4.3.1release notes

  • Zero-valued spacing utilities generate 0 instead of calc(var(--spacing) * 0).

    4.3.1release notes

  • Standalone CLI binaries are ignored when scanning for class candidates.

    4.3.1release notes

  • Watch mode recovers when a tracked dependency is deleted and restored.

    4.3.1release notes

  • Serves ESM type declarations to ESM importers.

    4.3.1release notes

  • Fixes incorrect sourcemap warnings when using the Vite integration.

    4.3.1release notes

  • No longer crashes when scanning files containing invalid UTF-8 bytes.

    4.3.1release notes

  • Preserves significant underscore whitespace during canonicalization.

    4.3.0release notes

  • Prevents legacy end utilities without values from generating CSS.

    4.3.0release notes

  • Resolves relative @import paths from the correct directory with @tailwindcss/vite.

    4.3.0release notes

  • Prevents the upgrade process from migrating inline style attributes.

    4.3.0release notes

  • Preserves required whitespace around operators in negated arbitrary values.

    4.3.0release notes

  • Resolves package JavaScript entries instead of browser CSS entries with @tailwindcss/vite.

    4.3.0release notes

  • Resolves relative @plugin paths from the correct directory with @tailwindcss/vite.

    4.3.0release notes

  • Exports the missing PluginWithConfig type from tailwindcss/plugin for plugin config type inference.

    4.3.0release notes

  • Prevents legacy start utilities without values from generating CSS.

    4.3.0release notes

  • Resolves imports relative to base when result.opts.from is not provided.

    4.3.0release notes

  • Ensures CSS files containing @variant are processed by @tailwindcss/vite.

    4.3.0release notes

  • Imports in @import and @plugin now resolve correctly when using Vite aliases in @tailwindcss/vite.

    4.2.4release notes

  • Invalid characters exceeding the valid Unicode code point range no longer cause a crash.

    4.2.3release notes

  • Negative arbitrary values move the minus sign inside the arbitrary value.

    4.2.3release notes

  • Negative arbitrary margin values move the minus sign outside the arbitrary value.

    4.2.3release notes

  • Stopping the upgrade process no longer empties files while the process is running.

    4.2.3release notes

  • Imports with query parameters are now treated as unique resources.

    4.2.3release notes

  • Prevents crashes when candidates contain prototype properties such as row-constructor.

    4.2.2release notes

  • Prevents crashes when canonicalizing utilities containing @property at-rules.

    4.2.2release notes

  • Improves canonicalization for bare values exceeding default spacing scale suggestions.

    4.2.2release notes

  • Prevents canonicalization from returning an empty list instead of the expected utility.

    4.2.2release notes

  • Skips full reloads for server-only modules scanned by client CSS with @tailwindcss/vite.

    4.2.2release notes

  • Trailing dashes in functional utility names are allowed for backwards compatibility.

    4.2.1release notes

  • Classes containing periods within curly braces in MDX files are now detected correctly.

    4.2.1release notes

  • Astro v5 import aliases now work without crashing with the Vite integration.

    4.2.0release notes

  • Utility detection now handles names containing capital letters followed by numbers.

    4.2.0release notes

  • Prevents color-mix values from receiving a double @supports wrapper.

    4.2.0release notes

  • Class extraction now works correctly for Rails strict locals.

    4.2.0release notes

  • The @source inline() argument may now contain surrounding whitespace.

    4.2.0release notes

  • Changes to external files listed via @source now trigger a full page reload with the Vite integration.

    4.2.0release notes

  • Utility name validation now matches Oxide scanner rules.

    4.2.0release notes

  • Using @variant inside @custom-variant no longer causes an infinite loop.

    4.2.0release notes

  • Arbitrary property utilities with a top-level ! in the value are now skipped correctly.

    4.1.18release notes

  • The CLI now handles duplicate command-line arguments correctly.

    4.1.18release notes

  • Color-mix fallback rules are no longer emitted inside keyframes.

    4.1.18release notes

  • Backwards compatibility for the content theme key in JavaScript configs is improved.

    4.1.18release notes

  • The CLI no longer hangs when its output is /dev/stdout.

    4.1.18release notes

  • The upgrade process now handles future and experimental configuration keys.

    4.1.18release notes

  • JavaScript configs now handle special defaults such as ringColor.DEFAULT correctly.

    4.1.18release notes

  • Comments in Ruby files are skipped when checking for class names.

    4.1.18release notes

  • Validation of source(…) now happens relative to the file containing it.

    4.1.18release notes

  • Theme keys from JavaScript configs and plugins now preserve their original case.

    4.1.18release notes

  • The CLI now writes source maps correctly when running in watch mode.

    4.1.18release notes

  • Legacy JavaScript APIs now substitute @variant correctly.

    4.1.17release notes

  • Prevents an occasional crash on Windows when Tailwind CSS is loaded into a worker thread.

    4.1.17release notes

  • Canonicalization of arbitrary variants with attribute selectors is fixed.

    4.1.16release notes

  • Canonicalization is improved for & > :pseudo and & :pseudo arbitrary variants.

    4.1.16release notes

  • Candidates with an empty data type are discarded.

    4.1.16release notes

  • Invalid colors caused by nested & are fixed.

    4.1.16release notes

  • At-rules parse correctly when they contain a tab character.

    4.1.15release notes

  • Safari devtools rendering is fixed when Tailwind uses color-mix fallbacks.

    4.1.15release notes

  • Lightning CSS warnings for :deep, :slotted, and :global are suppressed.

    4.1.15release notes

  • Important utilities no longer affect other utilities.

    4.1.15release notes

  • Named groups now work with not-*, has-*, and in-* variants.

    4.1.15release notes

  • The theme(…) function no longer indexes into strings.

    4.1.15release notes

  • Theme keys are resolved correctly when one key name starts with another in JS configs and plugins.

    4.1.15release notes

tailwindcss 31 changes

Fixes and other changes 1

  • Fixed sibling-*() functions used inside calc(…) so they no longer break.

    3.4.19release notes