Releases: tailwindlabs/tailwindcss
Releases · tailwindlabs/tailwindcss
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)
v4.1.3
v4.1.2
Fixed
- Don't rely on the presence of
@layer baseto polyfill@property(#17506) - Support setting multiple inset shadows as arbitrary values (#17523)
- Fix
drop-shadow-*utilities that are defined with multiple shadows (#17515) - PostCSS: Fix race condition when two changes are queued concurrently (#17514)
- PostCSS: Ensure files containing
@tailwind utilitiesare processed (#17514) - Ensure the
color-mix(…)polyfill creates fallbacks even when using colors that cannot be statically analyzed (#17513) - Fix slow incremental builds with
@tailwindcss/viteand@tailwindcss/postscss(especially on Windows) (#17511) - Vite: Fix missing CSS file in Qwik setups (#17533)
v4.1.1
v4.1.0
Added
- Add
details-contentvariant (#15319) - Add
inverted-colorsvariant (#11693) - Add
noscriptvariant (#11929, #17431) - Add
items-baseline-lastandself-baseline-lastutilities (#13888, #17476) - Add
pointer-none,pointer-coarse, andpointer-finevariants (#16946) - Add
any-pointer-none,any-pointer-coarse, andany-pointer-finevariants (#16941) - Add safe alignment utilities (#14607)
- Add
user-validanduser-invalidvariants (#12370) - Add
wrap-anywhere,wrap-break-word, andwrap-normalutilities (#12128) - Add
@source inline(…)and@source not inline(…)(#17147) - Add
@source not "…"(#17255) - Add
text-shadow-*utilities (#17389) - Add
mask-*utilities (#17134) - Add
bg-{position,size}-*utilities for arbitrary values (#17432) - Add
shadow-*/<alpha>,inset-shadow-*/<alpha>,drop-shadow-*/<alpha>, andtext-shadow-*/<alpha>utilities to control shadow opacity (#17398, #17434) - Add
drop-shadow-<color>utilities (#17434) - Improve compatibility with older versions of Safari and Firefox (#17435)
Fixed
- Follow symlinks when resolving
@sourcedirectives (#17391) - Don't scan ignored files for classes when changing an ignored file triggers a rebuild using
@tailwindcss/cli(#17255) - Support negated
contentrules in legacy JavaScript configuration (#17255) - Interpret syntax like
@("@")md:…as@md:…in Razor files (#17427) - Disallow top-level braces, top-level semicolons, and unbalanced parentheses and brackets in arbitrary values (#17361)
- Ensure the
--theme(…)function still resolves to the CSS variables when using legacy JS plugins (#17458) - Detect used theme variables in CSS module files (#17433, #17467)
Changed
- Ignore
node_modulesby default (can be overridden by@source …rules) (#17255) @sourcerules that include file extensions or point insidenode_modules/folders no longer consider your.gitignorerules (#17255)- Deprecate
bg-{left,right}-{top,bottom}in favor ofbg-{top,bottom}-{left,right}utilities (#17378) - Deprecate
object-{left,right}-{top,bottom}in favor ofobject-{top,bottom}-{left,right}utilities (#17437)
v4.0.17
v4.0.16
Added
- Add support for literal values in
--value('…')and--modifier('…')(#17304)
Fixed
- Fix class extraction followed by
(in Pug (#17320) - Ensure
@keyframesfor theme animations are emitted if they are referenced following a comma (#17352) - Vite: Ensure that updates to an imported CSS file are properly propagated after updating source files (#17347)
- Pre process
Slimtemplates embedded in Ruby files (#17336) - Error when input and output files resolve to the same file when using the CLI (#17311)
- Add missing suggestions when
--spacing(--value(integer, number))is used (#17308) - Add
::-webkit-details-markerpseudo tomarkervariant (#17362)