Releases: tailwindlabs/tailwindcss
Releases · tailwindlabs/tailwindcss
v4.1.13
Changed
- Drop warning from browser build (#18731)
- Drop exact duplicate declarations when emitting CSS (#18809)
Fixed
- Don't transition
visibilitywhen usingtransition(#18795) - Discard matched variants with unknown named values (#18799)
- Discard matched variants with non-string values (#18799)
- Show suggestions for known
matchVariantvalues (#18798) - Replace deprecated
clipwithclip-pathinsr-only(#18769) - Hide internal fields from completions in
matchUtilities(#18820) - Ignore
.vercelfolders by default (can be overridden by@source …rules) (#18855) - Consider variants starting with
@-to be invalid (e.g.@-2xl:flex) (#18869) - Do not allow custom variants to start or end with a
-or_(#18867, #18872) - Upgrade: Migrate
ariatheme keys to@custom-variant(#18815) - Upgrade: Migrate
datatheme keys to@custom-variant(#18816) - Upgrade: Migrate
supportstheme keys to@custom-variant(#18817)
v4.1.12
Fixed
- Don't consider the global important state in
@apply(#18404) - Add missing suggestions for
flex-<number>utilities (#18642) - Fix trailing
)from interfering with extraction in Clojure keywords (#18345) - Detect classes inside Elixir charlist, word list, and string sigils (#18432)
- Track source locations through
@pluginand@config(#18345) - Allow boolean values of
process.env.DEBUGin@tailwindcss/node(#18485) - Ignore consecutive semicolons in the CSS parser (#18532)
- Center the dropdown icon added to an input with a paired datalist by default (#18511)
- Extract candidates in Slang templates (#18565)
- Improve error messages when encountering invalid functional utility names (#18568)
- Discard CSS AST objects with
falseorundefinedproperties (#18571) - Allow users to disable URL rebasing in
@tailwindcss/postcssviatransformAssetUrls: false(#18321) - Fix false-positive migrations in
addEventListenerand JavaScript variable names (#18718) - Fix Standalone CLI showing default Bun help when run via symlink on Windows (#18723)
- Read from
--border-color-*theme keys individe-*utilities for backwards compatibility (#18704) - Don't scan
.hdrand.exrfiles for classes by default (#18734)
v4.1.11
v4.1.10
v4.1.9
Fixed
- Correctly parse custom properties with strings containing semicolons (#18251)
- Upgrade: Migrate arbitrary modifiers without percentage signs to bare values (e.g.
/[0.16]→/16) (#18184) - Upgrade: Migrate CSS variable shorthands where fallback value contains function call (#18184)
- Upgrade: Migrate negative arbitrary values to negative bare values (e.g.
mb-[-32rem]→-mb-128) (#18212) - Upgrade: Do not migrate
blurinwire:model.blur(#18216) - Don't add spaces around CSS dashed idents when formatting math expressions (#18220)
v4.1.8
Added
- Improve error messages when
@applyfails (#18059)
Fixed
- Upgrade: Do not migrate declarations that look like candidates in
<style>blocks (#18057, 18068) - Upgrade: Don't error when looking for
tailwindcssin pnpm monorepos (#18065) - Upgrade: Don't error when updating dependencies in pnpm monorepos (#18065)
- Upgrade: Migrate deprecated
order-nonetoorder-0(#18126) - Support Leptos
class:attributes when extracting classes (#18093) - Fix "Cannot read properties of undefined" crash on malformed arbitrary value (#18133)
- Upgrade: Migrate
-mt-[0px]tomt-[0px]instead of the other way around (#18154) - Fix Haml pre-processing crash when there is no
\nat the end of the file (#18155) - Ignore
.pnpm-storefolders by default (can be overridden by@source …rules) (#18163) - Fix PostCSS crash when calling
toJSON()(#18083)
v4.1.7
Added
- Upgrade: Migrate bare values to named values (#18000)
- Upgrade: Added cache to improve template migration performance (#18025)
Fixed
- Allow
_before numbers during candidate extraction (#17961) - Prevent duplicate suggestions when using
@themeand@utilitytogether (#17675) - Ensure that media queries within
::beforeand::afterpseudo selectors create valid CSS rules in production builds (#17979) - Ensure that the standalone CLI does not leave temporary files behind (#17981)
- Ensure
-rotate-*utilities properly negate arbitrary values (#18014) - Ignore custom variants using
:merge(…)selectors in legacy JS plugins (#18020) - Ensure classes containing
.are properly extracted from Clojure files (#18038) - Upgrade: Fix error when using
@import … source(…)(#17963) - Upgrade: Change casing of utilities with named values to kebab-case to match updated theme variables (#18017)
- Upgrade: Don't migrate strings that match utility names in Vue attribute bindings other than
class(#18025)
v4.1.6
Added
- Upgrade: Automatically convert arbitrary values to named values when possible (e.g.
h-[1lh]toh-lh) (#17831, #17854) - Upgrade: Update dependencies in parallel for improved performance (#17898)
- Add detailed logging about
@sourcedirectives, discovered files and scanned files when usingDEBUG=*(#17906, #17952) - Add support for generating source maps in development (#17775)
Fixed
- Ensure negative arbitrary
scalevalues generate negative values (#17831) - Fix HAML extraction with embedded Ruby (#17846)
- Don't scan files for utilities when using
@reference(#17836) - Fix incorrectly replacing
_within arbitrary modifier shorthandbg-red-500/(--my_opacity)(#17889) - Don't scan
.logfiles for classes by default (#17906) - Ensure that custom utilities applying other custom utilities don't swallow nested
@applyrules (#17925) - Download platform specific package if
optionalDependenciesare skipped (#17929)
v4.1.5
Added
- Support using
@tailwindcss/upgradeto upgrade between versions of v4.* (#17717) - Add
h-lh/min-h-lh/max-h-lhutilities (#17790) - Transition
display,visibility,content-visibility,overlay, andpointer-eventswhen usingtransitionto simplify@starting-styleusage (#17812)
Fixed
- Don't scan
.geojsonor.dbfiles for classes by default (#17700, #17711) - Hide default shadow suggestions when missing default shadow theme keys (#17743)
- Replace
_with.in theme suggestions for@utilityif surrounded by digits (#17733) - Skip
color-mix(…)when opacity is100%(#17815) - PostCSS: Ensure that errors in imported stylesheets are recoverable (#17754)
- Upgrade: Bump all Tailwind CSS related dependencies during upgrade (#17763)
- Upgrade: Don't add
-to variants starting with@(#17814) - Upgrade: Don't format stylesheets that didn't change when upgrading (#17824)
v4.1.4
Added
- Add experimental
@tailwindcss/oxide-wasm32-wasitarget for running Tailwind in browser environments like StackBlitz (#17558)
Fixed
- Ensure
color-mix(…)polyfills do not cause used CSS variables to be removed (#17555) - Ensure
color-mix(…)polyfills create fallbacks for theme variables that reference other theme variables (#17562) - Fix brace expansion in declining ranges like
{10..0..5}and{0..10..-5}(#17591) - Work around a Chrome rendering bug when using the
skew-*utilities (#17627) - Ensure container query variant names can contain hyphens (#17628)
- Ensure
shadow-inherit,inset-shadow-inherit,drop-shadow-inherit, andtext-shadow-inheritinherit the shadow color (#17647) - Ensure compatibility with array tuples used in
fontSizeJS theme keys (#17630) - Ensure folders with binary file extensions in their names are scanned for utilities (#17595)
- Upgrade: Convert
fontSizearray tuple syntax to CSS theme variables (#17630)