tailwindcss
4.3.5 · 6 Nov 2026MIT191M / weekRepositoryHomepagenpmAtom feed
241 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
3.4.17
17 Dec 2024Work around Node v22.12+ issue
3.4.16
3 Dec 2024Ensure the TypeScript types for
PluginsConfigallowundefinedvaluesBumped lilconfig to v3.x
3.4.15
14 Nov 2024- Security
Bump versions for security vulnerabilities
Ensure the TypeScript types for the
boxShadowtheme configuration allows arraysSet fallback for opacity variables to ensure setting colors with the
selection:*variant works in Chrome 131
3.4.14
15 Oct 2024Don't set
display: noneon elements that usehidden="until-found"
3.4.13
23 Sep 2024Improve source glob verification performance
3.4.12
17 Sep 2024Ensure using
@applywith utilities that use@defaultsworks with rules defined in the base layer when usingoptimizeUniversalDefaults
3.4.11
11 Sep 2024Allow
anchor-size(…)in arbitrary values
3.4.10
13 Aug 2024Bump versions of plugins in the Standalone CLI
3.4.9
8 Aug 2024No longer warns when broad glob patterns are detecting
vendorfolders
3.4.8
7 Aug 2024Fix minification when using nested CSS
Warn when broad glob patterns are used in the content configuration
3.4.7
25 Jul 2024Fix class detection in Slim templates with attached attributes and ID
Ensure attribute values in
data-*andaria-*modifiers are always quoted in the generated CSS
3.4.6
16 Jul 2024Fix detection of some utilities in Slim/Pug templates
Loosen
:is()wrapping rules when using an important selector
3.4.5
15 Jul 2024Disable automatic
var()injection for anchor propertiesUse no value instead of
blur(0px)forbackdrop-blur-noneandblur-noneutilitiesAdd
.mtsand.ctsconfig file detection
Fixed
Disable automatic
var()injection for anchor propertiesUse no value instead of
blur(0px)forbackdrop-blur-noneandblur-noneutilitiesAdd
.mtsand.ctsconfig file detectionDon't generate utilities like
px-1unnecessarily when using utilities likepx-1.5Always generate
-webkit-backdrop-filterforbackdrop-*utilities
3.4.4
5 Jun 2024Make it possible to use multiple
<alpha-value>placeholders in a single color definitionDon't prefix classes in arbitrary values of
has-*,group-has-*, andpeer-has-*variantsSupport negative values for
{col,row}-{start,end}utilities
Fixed
Make it possible to use multiple
<alpha-value>placeholders in a single color definitionDon't prefix classes in arbitrary values of
has-*,group-has-*, andpeer-has-*variantsSupport negative values for
{col,row}-{start,end}utilitiesUpdate embedded browserslist database
3.4.3
27 Mar 2024Revert changes to glob handling
3.4.2
27 Mar 2024Ensure max specificity of
0,0,1for button and input Preflight rulesImprove glob handling for folders with
(,),[or]in the file pathSplit
:hasrules when usingexperimental.optimizeUniversalDefaults
Fixed
Ensure max specificity of
0,0,1for button and input Preflight rulesImprove glob handling for folders with
(,),[or]in the file pathSplit
:hasrules when usingexperimental.optimizeUniversalDefaultsSort arbitrary properties alphabetically across multiple class lists
Add
mix-blend-plus-darkerutilityEnsure dashes are allowed in variant modifiers
Fix crash showing completions in Intellisense when using a custom separator
Transpile
import.meta.urlin config filesReset letter spacing for form elements
Fix missing
xx-largeand remove doublex-largeabsolute sizeDon't error when encountering nested CSS unless trying to
@applya class that uses nestingEnsure that arbitrary properties respect
importantconfigurationChange dark mode selector so
@applyworks correctly with pseudo elements
3.4.1
5 Jan 2024Don't remove keyframe stops when using important utilities
Don't add spaces to gradients and grid track names when followed by
calc()Restore old behavior for
classdark mode strategy
Fixed
Don't remove keyframe stops when using important utilities
Don't add spaces to gradients and grid track names when followed by
calc()Restore old behavior for
classdark mode strategy
Added
Add new
selectorandvariantstrategies for dark mode
Changed
Support
rtlandltrvariants on same element asdirattribute
3.4.0
19 Dec 2023Add
svh,lvh, anddvhvalues to defaultheight/min-height/max-heightthemeAdd
has-*variants for:has(...)pseudo-class
Tailwind CSS v3.4 has arrived! Check out the announcement post for a guided tour through all of the highlights.
Added
Add
svh,lvh, anddvhvalues to defaultheight/min-height/max-heightthemeAdd
has-*variants for:has(...)pseudo-classAdd
text-wraputilities includingtext-balanceandtext-pretty(#11320, #12031)Extend default
opacityscale to include all steps of 5Update Preflight
htmlstyles to include shadow DOM:hostpseudo-classIncrease default values for
grid-rows-*utilities from 1–6 to 1–12Add
size-*utilitiesAdd utilities for CSS subgrid
Add spacing scale to
min-w-*,min-h-*, andmax-w-*utilitiesAdd
forced-color-adjustutilitiesAdd
appearance-autoutilityAdd logical property values for
floatandclearutilitiesAdd
*variant for targeting direct children
Changed
Simplify the
sansfont-family stackDisable the tap highlight overlay on iOS
Improve relative precedence of
rtl,ltr,forced-colors, anddarkvariants
3.3.7
18 Dec 2023Fix support for container query utilities with arbitrary values
Fix custom config loading in Standalone CLI
3.3.6
4 Dec 2023Don’t add spaces to negative numbers following a comma
Don't emit
@configin CSS when watching via the CLIImprove types for
resolveConfig
Fixed
Don’t add spaces to negative numbers following a comma
Don't emit
@configin CSS when watching via the CLIImprove types for
resolveConfigEnsure configured
font-feature-settingsformonoare included in PreflightImprove candidate detection in minified JS arrays (without spaces)
Don't crash when given applying a variant to a negated version of a simple utility
Fix support for slashes in arbitrary modifiers
Fix source maps of variant utilities that come from an
@layerruleFix loading of built-in plugins when using an ESM or TypeScript config with the Standalone CLI
3.3.5
25 Oct 2023Fix incorrect spaces around
-incalc()expression
3.3.4
24 Oct 2023Improve normalisation of
calc()-like functionsSkip
calc()normalisation in nestedtheme()callsFix incorrectly generated CSS when using square brackets inside arbitrary properties
Fixed
Improve normalisation of
calc()-like functionsSkip
calc()normalisation in nestedtheme()callsFix incorrectly generated CSS when using square brackets inside arbitrary properties
Make
contentoptional for presets in TypeScript typesHandle variable colors that have variable fallback values
Batch reading content files to prevent
too many open fileserrorSkip over classes inside
:not(…)when nested in an at-ruleUpdate types to work with
Node16module resolutionDon’t crash when important and parent selectors are equal in
@applyEliminate irrelevant rules when applying variants
Improve RegEx parser, reduce possibilities as the key for arbitrary properties
Fix sorting of utilities that share multiple candidates
Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser
Fix crash when watching renamed files on FreeBSD
Allow plugins from a parent document to be used in an iframe
Add types for
tailwindcss/nestingBump
jiti,fast-glob, andbrowserlistdependenciesImprove automatic
varinjection for properties that accept a<dashed-ident>
3.3.3
13 Jul 2023Make font settings propagate into buttons, inputs, etc.
Fix parsing of
theme()insidecalc()when there are no spaces around operators
Fixed
Fix issue where some pseudo-element variants generated the wrong selector (#10943, #10962, #11111)
Make font settings propagate into buttons, inputs, etc.
Fix parsing of
theme()insidecalc()when there are no spaces around operatorsEnsure
repeating-conic-gradientis detected as an imageMove unknown pseudo-elements outside of
:isby defaultEscape animation names when prefixes contain special characters
Don't prefix arbitrary classes in
groupandpeervariantsSort classes using position of first matching rule
Allow variant to be an at-rule without a prelude
Make PostCSS plugin async to improve performance
Don’t error when a config file is missing
Added
Add
aria-busyutility
Changed
Reset padding for
<dialog>elements in preflight
3.3.2
25 Apr 2023- Removed
Drop support for Node.js v12
Inherit gradient stop positions when using variants
Fixed
Don’t move unknown pseudo-elements to the end of selectors (#10943, #10962)
Inherit gradient stop positions when using variants
Honor default
toposition of gradient when using implicit transparent colorsEnsure
@tailwindcss/oxidedoesn't leak in the stable engineEnsure multiple
theme(spacing[5])calls with bracket notation in arbitrary properties workNormalize arbitrary modifiers
Changed
- Removed
Drop support for Node.js v12
3.3.1
30 Mar 2023Fix edge case bug when loading a TypeScript config file with webpack
Fix variant,
@apply, andimportantselectors when using:is()or:has()with pseudo-elementsFix
safelistconfig types
Fixed
Fix edge case bug when loading a TypeScript config file with webpack
Fix variant,
@apply, andimportantselectors when using:is()or:has()with pseudo-elementsFix
safelistconfig typesFix build errors caused by
@tailwindcss/line-clampwarning (#10915, #10919)Fix "process is not defined" error
3.3.0
28 Mar 2023Support ESM and TypeScript config files
Extend default color palette with new 950 shades
Add
line-heightmodifier support tofont-sizeutilities
Tailwind CSS v3.3 is here! Check out the announcement post for a deep dive into all of the cool new stuff.
Added
Support ESM and TypeScript config files
Extend default color palette with new 950 shades
Add
line-heightmodifier support tofont-sizeutilitiesAdd support for using variables as arbitrary values without
var(...)(#9880, #9962)Add logical properties support for inline direction
Add
hyphensutilitiesAdd
from-{position},via-{position}andto-{position}utilitiesAdd
list-style-imageutilitiesAdd
caption-sideutilitiesAdd
line-clamputilities from@tailwindcss/line-clampto core (#10768, #10876, #10862)Add
delay-0andduration-0utilitiesAdd
justify-normalandjustify-stretchutilitiesAdd
content-normalandcontent-stretchutilitiesAdd
whitespace-break-spacesutilityAdd support for configuring default
font-variation-settingsfor afont-family(#10034, #10515)
Fixed
Disallow using multiple selectors in arbitrary variants
Sort class lists deterministically for Prettier plugin
Ensure CLI builds have a non-zero exit code on failure
Ensure module dependencies for value
null, is an emptySetFix format assumption when resolving module dependencies
Changed
Mark
rtlandltrvariants as stable and remove warningsUse
insetinstead oftop,right,bottom, andleftpropertiesMake
darkandrtl/ltrvariants insensitive to DOM orderUse
:isto make important selector option insensitive to DOM order
3.2.7
16 Feb 2023Fix use of
:where(.btn)when matching!btnRevert including
outline-colorintransitionandtransition-colorsby default
3.2.6
8 Feb 2023Fix installation failing with yarn and pnpm by dropping
oxide-api-shim
3.2.5
8 Feb 2023Add standalone CLI build for 64-bit Windows on ARM (
node16-win-arm64)Cleanup unused
variantOrderFix
foo-[abc]/[def]not being handled correctly
Added
Add standalone CLI build for 64-bit Windows on ARM (
node16-win-arm64)
Fixed
Cleanup unused
variantOrderFix
foo-[abc]/[def]not being handled correctlyAdd container queries plugin to standalone CLI
Support renaming of output files by PostCSS plugins in CLI
Improve return value of
resolveConfig, unwrapResolvableToClip unbalanced brackets in arbitrary values
Don’t reorder webkit scrollbar pseudo elements
Deterministic sorting of arbitrary variants
Add
datakey to theme typesPrevent invalid arbitrary variant selectors from failing the build
Properly handle subtraction followed by a variable
Fix missing
stringin thetheme.dropShadowtypesUpdate list of length units
Fix not matching arbitrary properties when closely followed by square brackets
Allow direct nesting in
rootor@layernodesDon't prefix classes in arbitrary variants
Fix perf regression when checking for changed content
Fix missing
blocklistmember in theConfigtypeEscape group names in selectors
Consider earlier variants before sorting functions
Allow variants with slashes
Ensure generated CSS is always sorted in the same order for a given set of templates
Handle variants when the same class appears multiple times in a selector
Handle group/peer variants with quoted strings
Parse alpha value from rgba/hsla colors when using variables
Sort by
layerinsidevariantslayerAdd
--watch=alwaysoption to prevent exit when stdin closes
Changed
Alphabetize
themekeys in default configInclude
outline-colorintransitionandtransition-colorsutilities
3.2.4
11 Nov 2022Add
blocklistoption to prevent generating unwanted CSSFix watching of files on Linux when renames are involved
Make sure errors are always displayed when watching for changes
3.2.3
9 Nov 2022Fixed use of
rawcontent in the CLIPick up changes from files that are both context and content deps
Sort pseudo-elements ONLY after classes when using variants and
@apply
Fixed
Fixed use of
rawcontent in the CLIPick up changes from files that are both context and content deps
Sort pseudo-elements ONLY after classes when using variants and
@applySupport important utilities in the safelist (pattern must include a
!)
3.2.2
4 Nov 2022Escape special characters in resolved content base paths
Don't reuse container for array returning variant functions
Exclude non-relevant selectors when generating rules with the important modifier
Fixed
Escape special characters in resolved content base paths
Don't reuse container for array returning variant functions
Exclude non-relevant selectors when generating rules with the important modifier
Fix merging of arrays during config resolution
Ensure configured
font-feature-settingsare included in PreflightFix fractional values not being parsed properly inside arbitrary properties
Fix incorrect selectors when using
@applyin selectors with combinators and pseudosFix cannot read properties of undefined (reading 'modifier') (#9656, aa979d6)
3.2.1
21 Oct 2022Fix missing
supportsin typesFix missing PostCSS dependencies in the CLI
Ensure
micromatchis a proper CLI dependency
Fixed
Fix missing
supportsin typesFix missing PostCSS dependencies in the CLI
Ensure
micromatchis a proper CLI dependencyEnsure modifier values exist when using a
modifiersobject formatchVariant
3.2.0
19 Oct 2022Add new
@configdirectiveAdd new
relative: trueoption to resolve content paths relative to the config fileAdd new
supports-*variant
We just released Tailwind CSS v3.2! Read the announcement post for more details about the most exciting new features.
Added
Add new
@configdirectiveAdd new
relative: trueoption to resolve content paths relative to the config fileAdd new
supports-*variantAdd new
min-*andmax-*variantsAdd new
break-keeputility forword-break: keep-allAdd new
collapseutility forvisibility: collapseAdd new
fill-noneutility forfill: noneAdd new
stroke-noneutility forstroke: noneAdd new
place-content-baselineutility forplace-content: baselineAdd new
place-items-baselineutility forplace-items: baselineAdd new
content-baselineutility foralign-content: baselineAdd support for configuring default
font-feature-settingsfor a font familyAdd standalone CLI build for 32-bit Linux on ARM (
node16-linux-armv7)Add future flag to disable color opacity utility plugins
Add negative value support for
outline-offsetAdd support for modifiers to
matchUtilitiesAllow negating utilities using
min/max/clampImplement fallback plugins when there is ambiguity between plugins when using arbitrary values
Support
sortfunction inmatchVariantUpgrade to
postcss-nestedv6.0
Fixed
Use absolute paths when resolving changed files for resilience against working directory changes
Fix ring color utility generation when using
respectDefaultRingColorOpacitySort tags before classes when
@apply-ing a selector with joined classesRemove invalid
outline-hiddenutilityHonor the
hiddenattribute on elements in preflightFix duplicate utilities issue causing memory leaks
Fix
fontFamilyconfig TypeScript typesHandle variants on complex selector utilities
Fix shared config mutation issue
Fix ordering of parallel variants
Handle variants in utility selectors using
:where()and:has()Improve data type analysis for arbitrary values
Don't emit generated utilities with invalid uses of theme functions
Revert change that only listened for stdin close on TTYs
Ignore unset values (like
nullorundefined) when resolving the classList for intellisenseFix incorrect required
contentkey in custom plugin configs (#9502, #9545)Fix content path detection on Windows
Ensure
--contentis used in the CLI when passed
3.1.8
5 Aug 2022Don’t prefix classes within reused arbitrary variants
Fix usage of alpha values inside single-named colors that are functions
Fix
@applyof user utilities when negative and non-negative versions both exist
3.1.7
29 Jul 2022Don't rewrite source maps for
@layerrulesAdded types for
resolveConfig
3.1.6
11 Jul 2022Fix usage on Node 12.x
Handle theme keys with slashes when using
theme()in CSS
3.1.5
7 Jul 2022Support configuring a default
font-weightfor each font size utilityAdd support for alpha values in safe list
Improve types to support fallback values in the CSS-in-JS syntax used in plugin APIs
Added
Support configuring a default
font-weightfor each font size utilityAdd support for alpha values in safe list
Fixed
Improve types to support fallback values in the CSS-in-JS syntax used in plugin APIs
Support including
tailwindcssandautoprefixerinpostcss.config.jsin standalone CLIFix using special-characters as prefixes
Don’t prefix classes used within arbitrary variants
Add more explicit types for the default theme
3.1.4
21 Jun 2022Provide default to
<alpha-value>when usingtheme()Detect arbitrary variants with quotes
Don’t add spaces around raw
/that are preceded by numbers
3.1.3
14 Jun 2022Fix extraction of multi-word utilities with arbitrary values and quotes
Fix casing of import of
corePluginListtype definitionIgnore PostCSS nodes returned by
addVariant
Fixed
Fix extraction of multi-word utilities with arbitrary values and quotes
Fix casing of import of
corePluginListtype definitionIgnore PostCSS nodes returned by
addVariantFix missing spaces around arithmetic operators
Detect alpha value in CSS
theme()function when using quotesFix "Maximum call stack size exceeded" bug
Allow functions returning parallel variants to mutate the container
Remove text opacity CSS variables from
::marker
3.1.1
9 Jun 2022Fix candidate extractor regression
Split
::backdropinto separate defaults groupFix postcss plugin type
Fixed
Fix candidate extractor regression
Split
::backdropinto separate defaults groupFix postcss plugin type
Fix class detection in markdown code fences and slim templates
3.1.0
9 Jun 2022Support PostCSS
DocumentnodesAdd
text-startandtext-endutilitiesSupport customizing class name when using
darkMode: 'class'
We just released Tailwind CSS v3.1 — the first new feature release since v3.0 came out last year!
Read the announcement post for all the details, and watch the YouTube video for a tour of some of the highlights.
Added
Support PostCSS
DocumentnodesAdd
text-startandtext-endutilitiesSupport customizing class name when using
darkMode: 'class'Add
--polloption to the CLIAdd new
border-spacingutilitiesAdd
enabledvariantAdd TypeScript types for the
tailwind.config.jsfileAdd
grid-flow-denseutilityAdd
mix-blend-plus-lighterutilityAdd arbitrary variants
Add
prefers-contrastmedia query variantsAdd opacity support when referencing colors with
themefunctionAdd
postcss-importsupport to the CLIAdd
optionalvariantAdd
<alpha-value>placeholder support for custom colors
Fixed
Types: Allow for arbitrary theme values (for 3rd party plugins)
Don’t split vars with numbers in them inside arbitrary values
Require matching prefix when detecting negatives
Handle duplicate At Rules without children
Allow arbitrary values with commas in
@applyFix intellisense for plugins with multiple
@applyrulesImprove type detection for arbitrary color values
Support PostCSS config options in config file in CLI
Remove default
[hidden]style in preflightOnly check selectors containing base apply candidates for circular dependencies
Rewrite default class extractor
Move
importantselector to the front when@apply-ing selector-modifying variants in custom utilitiesError when registering an invalid custom variant
Create tailwind.config.cjs file in ESM package when running init
Fix
matchVariantsthat use at-rules and placeholdersImprove types of the
tailwindcss/pluginAllow returning parallel variants from
addVariantormatchVariantcallback functionsTry using local
postcssinstallation first in the CLIAllow default ring color to be a function
Don't inherit
tovalue from parent gradientsRemove process dependency from log functions
Ensure we can use
@import 'tailwindcss/...'without node_modules
Changed
3.0.24
12 Apr 2022Prevent nesting plugin from breaking other plugins
Recursively collapse adjacent rules
Preserve source maps for generated CSS
Fixed
Prevent nesting plugin from breaking other plugins
Recursively collapse adjacent rules
Preserve source maps for generated CSS
Split box shadows on top-level commas only
Use local user CSS cache for
@applyInvalidate context when main CSS changes
Only add
!to selector class matching template candidate when using important modifier with multi-class selectorsCorrectly parse and prefix animation names with dots
Fix extraction from template literal/function with array
Don't output unparsable arbitrary values
Fix generation of
div:not(.foo)if.foois never definedAllow for custom properties in
rgb,rgba,hslandhslacolorsRemove autoprefixer as explicit peer-dependency to avoid invalid warnings in situations where it isn't actually needed
Ensure the
percentagedata type is validated correctly
Changed
Replace
chalkwithpicocolorsReplace
cosmiconfigwithlilconfigUpdate
cssnanoto avoid removing empty variables when minifying
3.0.23
16 Feb 2022Remove opacity variables from
:visitedpseudo classSupport arbitrary values + calc + theme with quotes
Don't duplicate layer output when scanning content with variants + wildcards
Fixed
Remove opacity variables from
:visitedpseudo classSupport arbitrary values + calc + theme with quotes
Don't duplicate layer output when scanning content with variants + wildcards
Implement
getClassOrderinstead ofsortClassList
3.0.22
11 Feb 2022Temporarily move postcss to dependencies
3.0.21
10 Feb 2022Move prettier plugin to dev dependencies
3.0.20
10 Feb 2022Expose
context.sortClassList(classes)
3.0.19
7 Feb 2022Fix preflight border color fallback
Correctly parse shadow lengths without a leading zero
Don't crash when scanning extremely long class candidates
Fixed
Fix preflight border color fallback
Correctly parse shadow lengths without a leading zero
Don't crash when scanning extremely long class candidates
Use less hacky fix for URLs detected as custom properties
Correctly generate negative utilities when dash is before the prefix
Detect prefixed negative utilities in the safelist
3.0.18
28 Jan 2022Fix
@applyorder regression (inaddComponents,addUtilities, ...)Quick fix for incorrect arbitrary properties when using URLs
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.