Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
- Nothing yet!
[4.0.0-beta.4] - 2024-11-29
Fixed
- Don't scan source files for utilities unless
@tailwind utilitiesis present in the CSS in@tailwindcss/postcssand@tailwindcss/vite(#15226) - Skip reserializing CSS files that don't use Tailwind features in
@tailwindcss/postcssand@tailwindcss/vite(#15226) - Upgrade (experimental): Do not migrate the
overflow-cliputility (#15244) - Upgrade (experimental): Rename
backdrop-blurtobackdrop-blur-smandbackdrop-blur-smtobackdrop-blur-xs(#15242)
[4.0.0-beta.3] - 2024-11-27
Fixed
- Ensure any necessary vendor prefixes are generated for iOS Safari, Firefox, and Chrome (#15166)
- Ensure
.groupand.peerare prefixed when using theprefix(…)option (#15174) - Ensure 3D transforms render correctly in Safari (#15179)
- Ensure
--spacing-*variables take precedence over--container-*variables (#15180) - Fix scanning classes delimited by tab characters (#15169)
- Ensure opacity modifiers and semi-transparent gradients render correctly by default in Safari (#15201)
- Fix element size thrashing when transitioning gradients on elements with a defined font-size in Safari (#15216)
- Ensure
translate-*utilities work with arbitrary values that usecalc(…)(#15215) - Ensure gradient stop position utilities work with arbitrary values that use
calc(…)(#15215) - Ensure Node addons are packaged correctly with Windows ARM builds (#15171)
- Ensure the Vite plugin resolves CSS and JS files according to the configured resolver conditions ([#15173])(https://github.com/tailwindlabs/tailwindcss/pull/15173)
- Upgrade (experimental): Migrate prefixes for
.groupand.peerclasses (#15208)
Changed
- Interpolate gradients using OKLAB instead of OKLCH by default (#15201)
- Error when
layer(…)in@importis not first in the list of functions/conditions (#15109) - Use unitless line-height values for font-size variables in default theme (#15216)
- Don't register custom properties with explicit types unless those custom properties need to be animateable (#15215)
[4.0.0-beta.2] - 2024-11-22
Fixed
- Use configured
--letter-spacingvalues for custom font size utilities (#15099) - Ensure
space-x/y-*anddivide-x/y-*with variants can undospace-x/y-reverseanddivide-x/y-reverse(#15094) - Don't print minified code when the build fails in the CLI (#15106)
- Generate the correct CSS for the
break-keeputility (#15108) - Detect single word utilities that include numbers (e.g.
h1) when scanning files (#15110) - Upgrade (experimental): Always add
layer(…)as the first param to@import(#15102)
Changed
- Revert the new base styles for buttons and form controls (#15100)
[4.0.0-beta.1] - 2024-11-21
Added
- Upgrade (experimental): Drop unnecessary
opacitytheme values when migrating to CSS (#15067)
Fixed
- Ensure
opacitytheme values configured as decimal numbers via JS config files work with color utilities (#15067) - Bring back support for
decoration-clone,decoration-slice,overflow-ellipsis,flex-grow-*, andflex-shrink-*(#15069) - Upgrade (experimental): Include
colorin the form reset snippet (#15064)
[4.0.0-alpha.36] - 2024-11-21
Added
- Add consistent base styles for buttons and form controls (#15036)
- Upgrade (experimental): Convert
group-[]:flextoin-[.group]:flex(#15054) - Upgrade (experimental): Add form reset styles to CSS files for compatibility with v3 (#15036)
- Upgrade (experimental): Migrate
ringtoring-3(#15063)
Fixed
- Upgrade (experimental): Don't migrate arbitrary variants to
in-*that use the child combinator instead of the descendant combinator (#15054)
Changed
- Use single drop shadow values instead of multiple (#15056)
- Do not parse invalid candidates with empty arbitrary values (#15055)
[4.0.0-alpha.35] - 2024-11-20
Added
- Reintroduce
max-w-screen-*utilities that read from the--breakpointnamespace as deprecated utilities (#15013) - Support using CSS variables as arbitrary values without
var(…)by using parentheses instead of square brackets (e.g.bg-(--my-color)) (#15020) - Add new
in-*variant (#15025) - Bundle
@tailwindcss/forms,@tailwindcss/typography, and@tailwindcss/aspect-ratiowith the standalone CLI (#15028) - Allow
addUtilities()andaddComponents()to work with child combinators and other complex selectors (#15029) - Support colors that use
<alpha-value>in JS configs and plugins (#15033) - Add new
transition-discreteandtransition-normalutilities fortransition-behavior(#15051) - Upgrade (experimental): Migrate
[&>*]to the*variant (#15022) - Upgrade (experimental): Migrate
[&_*]to the**variant (#15022) - Upgrade (experimental): Warn when trying to migrating a project that is not on Tailwind CSS v3 (#15015)
- Upgrade (experimental): Migrate colors that use
<alpha-value>in JS configs (#15033)
Fixed
- Ensure
flexis suggested (#15014) - Improve module resolution for
cjs-only andesm-only plugins (#15041) - Perform
calc(…)on just values for negative-rotate-*utilities, not on therotateX/Y/Z(…)functions themselves (#15044) - Upgrade (experimental): Resolve imports when specifying a CSS entry point on the command-line (#15010)
- Upgrade (experimental): Resolve nearest Tailwind config file when CSS file does not contain
@config(#15001) - Upgrade (experimental): Improve output when CSS imports can not be found (#15038)
- Upgrade (experimental): Ignore analyzing imports with external URLs (e.g.:
@import "https://fonts.google.com") (#15040) - Upgrade (experimental): Ignore analyzing imports with
url(…)(e.g.:@import url("https://fonts.google.com")) (#15040) - Upgrade (experimental): Use
resolveJsIdwhen resolvingtailwindcss/package.json(#15041) - Upgrade (experimental): Ensure children of Tailwind root file are not considered Tailwind root files (#15048)
Changed
- Bring back support for color opacity modifiers to read from
--opacity-*theme values (#14278)
[4.0.0-alpha.34] - 2024-11-14
Added
- Support opacity values in increments of
0.25by default (#14980) - Support specifying the color interpolation method for gradients via modifier (#14984)
- Reintroduce
containercomponent as a utility (#14993, #14999) - Upgrade (experimental): Migrate
containercomponent configuration to CSS (#14999)
Fixed
- Ensure that CSS inside Svelte
<style>blocks always run the expected Svelte processors when using the Vite extension (#14981) - Upgrade (experimental): Ensure it's safe to migrate
blur,rounded, orshadow(#14979) - Upgrade (experimental): Do not rename classes using custom defined theme values (#14976)
- Upgrade (experimental): Ensure
@configis injected in nearest common ancestor stylesheet (#14989) - Upgrade (experimental): Add missing
layer(…)to imports above Tailwind directives (#14982)
[4.0.0-alpha.33] - 2024-11-11
Fixed
- Don't reset horizontal padding on date/time pseudo-elements (#14959)
- Don't emit
calc()with invalid values for bare values that aren't integers in spacing utilities (#14962) - Ensure spacing scale values work as line-height modifiers (#14966)
[4.0.0-alpha.32] - 2024-11-11
Added
- Support derived spacing scales based on a single
--spacingtheme value (#14857) - Add
svh,dvh,svw,dvw, andautovalues to all width/height/size utilities (#14857) - Add new
**variant (#14903) - Process
<style>blocks inside Svelte files when using the Vite extension (#14151) - Normalize date/time input styles in Preflight (#14931)
- Upgrade (experimental): Migrate
grid-cols-[subgrid]andgrid-rows-[subgrid]togrid-cols-subgridandgrid-rows-subgrid(#14840) - Upgrade (experimental): Support migrating projects with multiple config files (#14863)
- Upgrade (experimental): Rename
shadowtoshadow-sm,shadow-smtoshadow-xs, andshadow-xstoshadow-2xs(#14875) - Upgrade (experimental): Rename
inset-shadowtoinset-shadow-sm,inset-shadow-smtoinset-shadow-xs, andinset-shadow-xstoinset-shadow-2xs(#14875) - Upgrade (experimental): Rename
drop-shadowtodrop-shadow-smanddrop-shadow-smtodrop-shadow-xs(#14875) - Upgrade (experimental): Rename
roundedtorounded-smandrounded-smtorounded-xs(#14875) - Upgrade (experimental): Rename
blurtoblur-smandblur-smtoblur-xs(#14875) - Upgrade (experimental): Migrate
theme()usage and JS config files to use the new--spacingmultiplier where possible (#14905) - Upgrade (experimental): Migrate arbitrary values in variants to built-in values where possible (#14841)
Fixed
- Detect classes in new files when using
@tailwindcss/postcss(#14829) - Fix crash when using
@sourcecontaining..(#14831) - Ensure instances of the same variant with different values are always sorted deterministically (e.g.
data-focus:flexanddata-active:flex) (#14835) - Ensure
--inset-ring=*and--inset-shadow-*variables are ignored byinset-*utilities (#14855) - Ensure
url(…)containing special characters such as;or{}end up in one declaration (#14879) - Ensure adjacent rules are merged together after handling nesting when generating optimized CSS (#14873)
- Rebase
url()inside imported CSS files when using Vite (#14877) - Ensure that CSS transforms from other Vite plugins correctly work in full builds (e.g.
:deep()in Vue) (#14871) - Ensure the CSS
theme()function handles newlines and tabs in its arguments list (#14917) - Don't unset keys like
--inset-shadow-*when unsetting keys like--inset-*(#14906) - Ensure spacing utilities with no value (e.g.
pxortranslate-y) don't generate CSS (#14911) - Don't override user-agent background color for input elements in Preflight (#14913)
- Don't attempt to convert CSS variables (which should already be percentages) to percentages when used as opacity modifiers (#14916)
- Ensure custom utilities registered with the plugin API can start with
@(#14793) - Upgrade (experimental): Install
@tailwindcss/postcssnext totailwindcss(#14830) - Upgrade (experimental): Remove whitespace around
,separator when print arbitrary values (#14838) - Upgrade (experimental): Fix crash during upgrade when content globs escape root of project (#14896)
- Upgrade (experimental): Don't convert
theme(…/15%)to modifier unless it is the entire arbitrary value of a utility (#14922) - Upgrade (experimental): Convert
,toin arbitrarygrid-cols-*,grid-rows-*, andobject-*values (#14927)
Changed
- Remove
--drop-shadow-nonefrom the default theme in favor of a staticdrop-shadow-noneutility (#14847) - Rename
shadowtoshadow-sm,shadow-smtoshadow-xs, andshadow-xstoshadow-2xs(#14849) - Rename
inset-shadowtoinset-shadow-sm,inset-shadow-smtoinset-shadow-xs, andinset-shadow-xstoinset-shadow-2xs(#14849) - Rename
drop-shadowtodrop-shadow-smanddrop-shadow-smtodrop-shadow-xs(#14849) - Rename
roundedtorounded-smandrounded-smtorounded-xs(#14849) - Rename
blurtoblur-smandblur-smtoblur-xs(#14849) - Remove fixed line-height theme values and derive
leading-*utilites from--spacing-*scale (#14857) - Remove
--transition-timing-function-linearfrom the default theme in favor of a staticease-linearutility (#14880) - Remove default
--spacing-*scale in favor of--spacingmultiplier (#14857) - Remove
var(…)fallbacks from theme values in utilities (#14881) - Remove static
font-weightutilities and add--font-weight-*values to the default theme (#14883) - Rename
--transition-timing-function-*variables to--ease-*(#14886) - Rename
--width-*variables to--container-*(#14898) - Rename
--font-size-*variables to--text-*(#14909) - Rename
--font-family-*variables to--font-*(#14885) - Rename
--letter-spacing-*variables to--tracking-*(#14921) - Rename
--line-height-*variables to--leading-*(#14925) - Revert specificity of
*variant to match v3 behavior (#14920) - Replace
outline-nonewithoutline-hidden, add new simplifiedoutline-noneutility (#14926) - Revert adding borders by default to form inputs (#14929)
- Deprecate
shadow-innerutility (#14933) - Remove
--leading-nonefrom the default theme in favor of a staticleading-noneutility (#14934)
[4.0.0-alpha.31] - 2024-10-29
Added
- Support specifying the base path for automatic source detection using a
source(…)function on@tailwind utilitiesor@import "tailwindcss"(#14820) - Support disabling automatic source detection with
source(none)(#14820) - Support passing directories to
@sourcewithout needing to pass a complete glob (#14820) - Upgrade (experimental): Bump
prettier-plugin-tailwindcssto latest version during upgrade (#14808)
Fixed
- Support calling
config()with no arguments in plugin API (#14799)
Changed
- Use logical
*-inlineand*-blockproperties for all x/y utilities likepx-*,my-*,scroll-px-*, andinset-y-*(#14805) - Respect automatic source detection heuristics in sources registered with
@source(#14820)
[4.0.0-alpha.30] - 2024-10-24
Added
- Support
not-*with all built-in media query andsupports-*variants (#14743) - Support
not-*with custom variants containing at-rules (#14743) - Support
group-*,peer-*, andhas-*with custom variants containing multiple, non-nested style rules (#14743)
Fixed
- Ensure individual logical property utilities are sorted later than left/right pair utilities (#14777)
- Don't migrate important modifiers inside conditional statements in Vue and Alpine (e.g.
<div v-if="!border" />) (#14774) - Ensure third-party plugins with
exportsin theirpackage.jsonare resolved correctly (#14775) - Ensure underscores in the
url()function are never unescaped (#14776) - Ensure complex variants are displayed correctly in IntelliSense completions (#14743)
- Upgrade (experimental): Ensure
@importstatements for relative CSS files are actually migrated to use relative path syntax (#14769) - Upgrade (experimental): Only generate Preflight compatibility styles when Preflight is used (#14773)
- Upgrade (experimental): Don't escape underscores when printing theme values migrated to CSS variables in arbitrary values (e.g.
m-[var(--spacing-1_5)]instead ofm-[var(--spacing-1\_5)]) (#14778) - Upgrade (experimental): Ensure
layer(…)on@importis only removed when@utilityis present (#14783)
Changed
- Don't convert underscores in the first argument to
var()andtheme()to spaces (#14776, #14781) - Sort text alignment and wrapping utilities with typography utilities (#14787)
- Sort line height and letter spacing utilities before text color utilities (#14787)
[4.0.0-alpha.29] - 2024-10-23
Added
- Upgrade (experimental): Migrate
pluginswith options to CSS (#14700) - Upgrade (experimental): Allow JS configuration files with
corePluginsoptions to be migrated to CSS (#14742) - Upgrade (experimental): Migrate
@importstatements for relative CSS files to use relative path syntax (e.g../file.css) (#14755) - Upgrade (experimental): Migrate
max-w-screen-*utilities tomax-w-[var(…)](#14754) - Upgrade (experimental): Migrate
@variantsand@responsivedirectives (#14748) - Upgrade (experimental): Migrate
@screendirective (#14749) - Upgrade (experimental): Generate compatibility styles for legacy default border color (#14746)
- Upgrade (experimental): Generate compatibility styles for legacy default border width on form elements (#14746)
Fixed
- Allow spaces spaces around operators in attribute selector variants (#14703)
- Ensure color opacity modifiers work with OKLCH colors (#14741)
- Ensure changes to the input CSS file result in a full rebuild (#14744)
- Add
postcssas a dependency of@tailwindcss/postcss(#14750) - Ensure the JS
theme()function can reference CSS theme variables that contain special characters without escaping them (e.g. referencing--width-1\/2astheme('width.1/2')) (#14739) - Ensure JS theme keys containing special characters correctly produce utility classes (e.g.
'1/2': 50%tow-1/2) (#14739) - Always emit keyframes registered in
addUtilities(#14747) - Ensure loading stylesheets via the
?rawand?urlstatic asset query works when using the Vite plugin (#14716) - Upgrade (experimental): Migrate
flex-growtogrowandflex-shrinktoshrink(#14721) - Upgrade (experimental): Minify arbitrary values when printing candidates (#14720)
- Upgrade (experimental): Ensure legacy theme values ending in
1(liketheme(spacing.1)) are correctly migrated to custom properties (#14724) - Upgrade (experimental): Migrate arbitrary values to bare values for the
from-*,via-*, andto-*utilities (#14725) - Upgrade (experimental): Ensure
layer(utilities)is removed from@importto keep@utilitytop-level (#14738) - Upgrade (experimental): Ensure JS theme keys with special characters are escaped when migrated to CSS variables (#14736)
- Upgrade (experimental): Don't migrate important modifiers that are actually logical negations (e.g.
let foo = !bordertolet foo = border!) (#14737)
Changed
- Require a relative path prefix for importing relative CSS files (e.g.
@import './styles.css'instead of@import 'styles.css') (#14755) - Upgrade (experimental): Don't create
@sourcerules forcontentpaths that are already covered by automatic source detection (#14714)
[4.0.0-alpha.28] - 2024-10-17
Added
- Add first draft of new wide-gamut color palette (#14693)
- Support linear gradient angles as bare values (#14707)
- Interpolate gradients in OKLCH by default (#14708)
- Upgrade (experimental): Migrate
theme(…)calls tovar(…)or to the moderntheme(…)syntax (#14664, #14695) - Upgrade (experimental): Support migrating JS configurations to CSS that contain functions inside the
themeobject (#14675)
Fixed
- Ensure
themevalues defined outside ofextendin JS configuration files overwrite all existing values for that namespace (#14672) - Remove unnecessary variable fallbacks in gradient utilities (#14705)
- Upgrade (experimental): Speed up template migrations (#14679)
- Upgrade (experimental): Don't generate invalid CSS when migrating a complex
screensconfig (#14691)
[4.0.0-alpha.27] - 2024-10-15
Added
- Add support for
tailwindcss/colors.js,tailwindcss/defaultTheme.js, andtailwindcss/plugin.jsexports (#14595) - Support
keyframesin JS config file themes (#14594) - Support the
colorparameter in JS theme configuration callbacks (#14651) - Support using the object parameter in the JS theme configuration callback as
theme()function (#14659) - Upgrade (experimental): Automatically discover JavaScript config files (#14597)
- Upgrade (experimental): Inject
@config "…"when atailwind.config.{js,ts,…}is detected (#14635) - Upgrade (experimental): Migrate
@media screen(…)when running codemods (#14603) - Upgrade (experimental): Migrate
aria-*,data-*, andsupports-*variants from arbitrary values to bare values (#14644) - Upgrade (experimental): Migrate arbitrary values to bare values (#14669)
- Upgrade (experimental): Migrate legacy classes to the v4 alternative (#14643)
- Upgrade (experimental): Migrate static JS configurations to CSS (#14639, #14650, #14648, #14666)
- Upgrade (experimental): Migrate v3 PostCSS setups to v4 in some cases (#14612)
Fixed
- Don’t crash when scanning a candidate equal to the configured prefix (#14588)
- Ensure there's always a space before
!importantwhen stringifying CSS (#14611) - Don't set
display: noneon elements that usehidden="until-found"(#14631) - Ensure the CSS
theme()function resolves to the right value in some compatibility situations (#14614) - Fix issue that could cause the CLI to crash when files are deleted while watching (#14616)
- Ensure custom variants using the JS API have access to modifiers (#14637)
- Ensure auto complete suggestions work when using
matchUtilities(#14589) - Pass options when using
addComponentsandmatchComponents(#14590) - Ensure
boxShadowandanimationtheme keys in JS config files are accessible under--shadow-*and--animate-*using thetheme()function (#14642) - Ensure all theme keys with new names are also accessible under their old names when using the
theme()function with the legacy dot notation syntax (#14642) - Ensure
var(…)can be used as the opacity value inside thetheme([path] / [modifier])function (#14653) - Ensure
font-stretchutilities only accepts positive integer bare values (#14670) - Upgrade (experimental): Ensure CSS before a layer stays unlayered when running codemods (#14596)
- Upgrade (experimental): Resolve issues where some prefixed candidates were not properly migrated (#14600)
[4.0.0-alpha.26] - 2024-10-03
Added
- Add support for prefixes (#14501)
- Expose timing information in debug mode (#14553)
- Add support for
blocklistin JS config files (#14556) - Add
color-schemeutilities (#14567) - Add support for
importantoption in JS config files (#14448) - Upgrade (experimental): Convert
@import "tailwindcss/tailwind.css"to@import "tailwindcss"in CSS files (#14514) - Upgrade (experimental): Apply all utility upgrades to
@applyin CSS files (#14574) - Upgrade (experimental): Update variant order in template files (#14524)
- Upgrade (experimental): Convert
bg-gradient-*utilities tobg-linear-*in template files (#14537) - Upgrade (experimental): Convert legacy prefixes to variant prefixes in template files (#14557)
- Upgrade (experimental): Convert bare CSS variables in arbitrary values to
var(…)in template files (#14526) - Upgrade (experimental): Convert legacy important modifier syntax to trailing syntax (#14502)
Fixed
- Use the right import base path when using the CLI to reading files from stdin (#14522)
- Ensure that
@utilityis top-level and cannot be nested (#14525) - Only setup a single compiler in
@tailwindcss/postcssfor initial builds (#14565) - Ensure editing imported CSS files triggers a rebuild (#14561)
- Ensure
@applyand CSS functions work inside imported stylesheets (#14576) - Upgrade (experimental): Don't wrap custom CSS after utilities in a layer (#14512)
- Upgrade (experimental): Don't add empty
layer()to@importat-rules when the styles do not need to be imported into a layer (#14513) - Upgrade (experimental): Don't wrap comment nodes in
@layerwhen running codemods (#14517) - Upgrade (experimental): Fix scenario where selectors can be lost in multi-selector rules (#14518)
- Upgrade (experimental): Ensure custom CSS before
@tailwindrules is wrapped with@layer basewhen prepending@import "tailwindcss"to the top of the file (#14536)
Changed
- Disallow bare values with decimal places (#14562)
[4.0.0-alpha.25] - 2024-09-24
Added
- Add support for
aria,supports, anddatavariants defined in JS config files (#14407) - Add
@tailwindcss/upgradetooling (#14434) - Support
screensin JS config files (#14415) - Add
bg-radial-*andbg-conic-*utilities for radial and conic gradients (#14467) - Add new
shadow-initialandinset-shadow-initialutilities for resetting shadow colors (#14468) - Add
field-sizing-*utilities (#14469) - Include gradient color properties in color transitions (#14489)
- Upgrade (experimental): Convert important syntax in
@applyin CSS files (#14411) - Upgrade (experimental): Convert
@tailwinddirectives to@importrules in CSS files (#14411, #14504) - Upgrade (experimental): Convert custom CSS in
@layer utilitiesand@layer componentsto use@utilityin CSS files (#14455)
Fixed
- Support
borderRadius.*as an alias for--radius-*when using dot notation inside thetheme()function (#14436) - Ensure individual variants from groups are always sorted earlier than stacked variants from the same groups (#14431)
- Allow
anchor-size(…)in arbitrary values (#14394) - Skip candidates with invalid
theme()calls (#14437) - Don't generate
inset-*utilities for--inset-shadow-*and--inset-ring-*theme values (#14447) - Include
--default-transition-*variables intransition-*utility output (#14482) - Ensure
rtlandltrvariants work with[dir=auto](#14306)
Changed
- Preserve explicit
leading-*,tracking-*, andfont-{weight}value when overriding font-size (#14403) - Disallow negative bare values in core utilities and variants (#14453)
- Preserve explicit shadow color when overriding shadow size (#14458)
- Preserve explicit transition duration and timing function when overriding transition property (#14490)
- Change the implementation for
@importresolution to speed up initial builds (#14446) - Remove automatic
var(…)injection (#13657) - Only apply
:hoverstates on devices that support@media (hover: hover)(#14500)
[4.0.0-alpha.24] - 2024-09-11
Added
- Support CSS
theme()functions inside other@custom-media,@container, and@supportsrules (#14358) - Export
Configtype fromtailwindcssfor JS config files (#14360) - Add support for
matchVariantplugins using the@plugindirective (#14371) - Warn when the
tailwindcsspackage is used as a PostCSS plugin (#14378)
Fixed
- Ensure there is always CLI feedback on save even when no new classes were found (#14351)
- Properly resolve
theme('someKey.DEFAULT')when all--some-key-*keys have a suffix (#14354) - Make sure tuple theme values in JS configs take precedence over
@theme defaultvalues (#14359) - Improve IntelliSense completions for
borderutilities (#14370)
[4.0.0-alpha.23] - 2024-09-05
Added
- Add opacity modifier support to the
theme()function in plugins (#14348)
[4.0.0-alpha.22] - 2024-09-04
Added
- Support TypeScript for
@pluginand@configfiles (#14317) - Add
defaultoption to@themeto support overriding default theme values from plugins/JS config files (#14327) - Add support for
<style>tags in Astro files to the Vite plugin (#14340)
Fixed
- Ensure content globs defined in
@configfiles are relative to that file (#14314) - Ensure CSS
theme()functions are evaluated in media query ranges with collapsed whitespace (#14321) - Fix support for Nuxt projects in the Vite plugin (requires Nuxt 3.13.1+) (#14319)
- Evaluate theme functions in plugins and JS config files (#14326)
- Ensure theme values overridden with
referencevalues don't generate stale CSS variables (#14327) - Don’t suggest named opacity modifiers in IntelliSense (#14339)
- Fix a crash with older Node.js versions (#14342)
- Support defining theme values as arrays of strings in JS config files (#14343)
- Ensure
--default-font-*and--default-mono-font-*variables respect theme customizations in JS config files (#14344)
[4.0.0-alpha.21] - 2024-09-02
Added
- Add new standalone builds of Tailwind CSS v4 (#14270)
- Support JavaScript configuration files using
@config(#14239) - Support plugin options in
@plugin(#14264) - Add support for using the Vite extension with
css.transformerset tolightningcss(#14269)
Fixed
- Bring back type exports for the cjs build of
@tailwindcss/postcss(#14256) - Correctly merge tuple values when using the plugin API (#14260)
- Handle arrays in the CSS
theme()function when using plugins (#14262) - Fix fallback values when using the CSS
theme()function (#14262) - Fix support for declaration fallbacks in plugins (#14265)
- Support bare values when using
tailwindcss/defaultTheme(#14257) - Correctly update builds when using the Vite extension with
build --watch(#14269)
Changed
- Remove named opacity support for color opacity modifiers (#14278)
[4.0.0-alpha.20] - 2024-08-23
Added
- Add support for
addBaseplugins using the@plugindirective (#14172) - Add support for the
tailwindcss/pluginexport (#14173) - Add support for the
theme()function in plugins (#14207) - Add support for
addComponents,matchComponents,prefixplugin APIs (#14221) - Add support for
tailwindcss/colorsandtailwindcss/defaultThemeexports for use with plugins (#14221) - Add support for the
@tailwindcss/typographyand@tailwindcss/formsplugins (#14221) - Add support for the
theme()function in CSS and class names (#14177) - Add support for matching multiple utility definitions for one candidate (#14231)
Fixed
- Don't wrap relative selectors in arbitrary variants with
:is(…)(#14203)
[4.0.0-alpha.19] - 2024-08-09
Added
- Add support for
inlineoption when defining@themevalues (#14095) - Add
inertvariant (#14129) - Add support for explicitly registering content paths using new
@sourceat-rule (#14078) - Add support for scanning
<style>tags in Vue files to the Vite plugin (#14158) - Add support for basic
addUtilitiesandmatchUtilitiesplugins using the@plugindirective (#14114)
Fixed
- Ensure
@applyworks inside@utility(#14144)
[4.0.0-alpha.18] - 2024-07-25
Added
- Add support for basic
addVariantplugins with new@plugindirective (#13982, #14008) - Add
@variantat-rule for defining custom variants in CSS (#13992, #14008) - Add
@utilityat-rule for defining custom utilities in CSS (#14044)
Fixed
- Discard invalid classes such as
bg-red-[#000](#13970) - Fix parsing body-less at-rule without terminating semicolon (#13978)
- Ensure opacity modifier with variables work with
color-mix()(#13972) - Discard invalid
variantsandutilitieswith modifiers (#13977) - Add missing utilities that exist in v3, such as
resize,fill-none,accent-none,drop-shadow-none, and negativehue-rotateandbackdrop-hue-rotateutilities (#13971) - Don’t allow at-rule-only variants to be compounded (#14015)
- Ensure compound variants work with variants with multiple selectors (#14016)
- Ensure attribute values in
data-*andaria-*modifiers are always quoted in the generated CSS (#14040)
Changed
- Reduce the specificity of the
*variant so those styles can be overridden by child elements (#14056)
[4.0.0-alpha.17] - 2024-07-04
Added
- Add
rounded-4xlutility (#13827) - Add
backdrop-blur-noneandblur-noneutilities (#13831) - Include variable in output for bare utilities like
rounded(#13836)
Fixed
- Support combining arbitrary shadows without a color with shadow color utilities (#13876)
- Ensure
@propertyfallbacks work correctly with properties with noinitial-value(#13949)
[4.0.0-alpha.16] - 2024-06-07
Added
- Add
nth-*variants (#13661) - Add
bg-linear-*utilities as an alias for the existingbg-gradient-*utilities (#13783) - Support arbitrary linear gradient angles (e.g.
bg-linear-[125deg]) (#13783)
Fixed
- Use
lengthdata type forbackground-sizeinstead ofbackground-position(#13771) - Support negative values for
{col,row}-{start,end}utilities (#13780) - Use long form
<length> | <percentage>syntax for properties (#13660) - Fix background position value of
bg-right-top,bg-right-bottom,bg-left-bottomandbg-left-top(#13806)
[4.0.0-alpha.15] - 2024-05-08
Fixed
- Make sure
contain-*utility variables resolve to a valid value (#13521) - Support unbalanced parentheses and braces in quotes in arbitrary values and variants (#13608)
- Add fallbacks for
@propertyrules for Firefox (#13655)
Changed
- Use
remunits for breakpoints by default instead ofpx(#13469) - Use natural sorting when sorting classes (#13507, #13532)
[4.0.0-alpha.14] - 2024-04-09
Fixed
- Ensure deterministic SSR builds in
@tailwindcss/vite(#13457)
Changed
- Apply variants from left to right instead of inside-out (#13478)
- Don't special-case
[hidden]elements inspace-*/divide-*utilities (#13459)
[4.0.0-alpha.13] - 2024-04-04
Fixed
- Always inline values for
shadow-*utilities to ensure shadow colors work correctly (#13449)
[4.0.0-alpha.12] - 2024-04-04
Fixed
- Enable Vite's
waitForRequestsIdle()for client requests only (#13394) - Make sure
::first-letterrespects::selectionstyles (#13408)
[4.0.0-alpha.11] - 2024-03-27
Added
- Make
rotate-x/y/z-*utilities composable (#13319) - Apply Vite's CSS plugin transform to Tailwind-generated CSS in
@tailwindcss/vite(e.g. inlining images) (#13218) - Add
startingvariant for@starting-style(#13329) - Target
:popover-openin existingopenvariant (#13331)
Fixed
- Remove percentage values for
translate-zutilities (#13321, #13327) - Generate unique CSS bundle hashes in
@tailwindcss/vitewhen Tailwind-generated CSS changes (#13218) - Inherit letter spacing in form controls (#13328)
- Ensure
buildcommand is executed when using--outputinstead of-o(#13369) - Prevent
@tailwindcss/vitefrom hanging in serve mode (#13380)
[4.0.0-alpha.10] - 2024-03-19
Added
Fixed
- Validate bare values (#13245)
- Parse candidates in
.sveltefiles withclass:abc="condition"syntax (#13274)
Changed
- Inline
@importrules intailwindcss/index.cssat publish time for better performance (#13233) - Include custom properties with fallbacks in utility class values (#13177)
[4.0.0-alpha.9] - 2024-03-13
Added
- Support
@theme reference { … }for defining theme values without emitting variables (#13222)
Fixed
- Fix incorrect properties in line-clamp utilities (#13220)
- Don't rely on existence of
--default-transition-*variables intransition-*utilities (#13219)
Changed
- Move
optimizeCssto the packages where it's used (#13230)
[4.0.0-alpha.8] - 2024-03-11
Fixed
- Ensure
scale-*utilities support percentage values (#13182) - Prevent
content-nonefrom being overridden when conditionally styling::before/::after(#13187) - Remove default borders from
iframeelements (#13189)
Changed
- Replace
--radius-noneand--radius-fulltheme values with staticrounded-noneandrounded-fullutilities (#13186)
Added
- Improve performance of incremental rebuilds for
@tailwindcss/cli(#13169) - Improve performance of incremental rebuilds for
@tailwindcss/postcss(#13170)
[4.0.0-alpha.7] - 2024-03-08
Added
- Add
font-stretchutilities (#13153) - Publish packages with npm provenance (#13160)
- Build native packages for Android (#13115, #13161)
- Make CSS optimization and minification configurable in PostCSS plugin and CLI (#13130)
Fixed
- Don't error on
@applywith leading/trailing whitespace (#13144) - Correctly parse CSS using Windows line endings (#13162)
[4.0.0-alpha.6] - 2024-03-07
Fixed
- Only set
border-stylefor appropriate border side (#13124)
Changed
- Error when
@themecontains unsupported rules/declarations (#13125)
[4.0.0-alpha.5] - 2024-03-06
Fixed
- Don't scan ignored files even if a
.gitfolder is not present (#13119)
[4.0.0-alpha.4] - 2024-03-06
Fixed
- Support importing framework CSS files without including a
.cssextension (#13110)
[4.0.0-alpha.3] - 2024-03-06
Added
- Support putting the important modifier at the beginning of a utility (#13103)
Fixed
- Node compatibility fix (#13104)
Changes
- Drop deprecated
decoration-sliceanddecoration-cloneutilities (#13107)
[4.0.0-alpha.2] - 2024-03-06
Changed
- Move the CLI into a separate
@tailwindcss/clipackage (#13095)