-
-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
context-v3Related to tailwind-merge v3Related to tailwind-merge v3featureIs new featureIs new feature
Description
Tailwind CSS v4 will be released next week: https://x.com/adamwathan/status/1879856208552845570.
I expect to add support for it a few days after the Tailwind CSS v4 release. Most probably it will be a new major tailwind-merge version with the only breaking change being that it supports Tailwind CSS v4 instead of v3.
Feel free to subscribe to this issue to get notified when support for Tailwind CSS v4 lands.
Some additional info in #468.
Changes to check
✅ Tailwind CSS v4 annnouncement
- New high-performance engine
- Designed for the modern web
- Simplified installation
- First-party Vite plugin
- Automatic content detection
- Built-in import support
- CSS-first configuration
- CSS theme variables
- Dynamic utility values and variants
- Modernized P3 color palette
- Container queries
- New 3D transform utilities
- Expanded gradient APIs
- @starting-style support
- not-* variant
- Even more new utilities and variants
✅ Upgrade guide
- Removed @tailwind directives
- Removed deprecated utilities
- Renamed utilities
- Container configuration
- Preflight changes
- Adding custom utilities
- Variant stacking order
- Variables in arbitrary values
- Hover styles on mobile
- Disabling core plugins
- Using the theme() function
- Using a JavaScript config file
- Theme values in JavaScript
✅ Utility schemas
- Layout
- Flexbox and grid
- Spacing
- Sizing
- Typography
- font-family
- font-size
- font-smoothing
- font-style
- font-weight
- font-stretch
- font-variant-numeric
- letter-spacing
- line-clamp
- line-height
- list-style-image
- list-style-position
- list-style-type
- text-align
- color
- text-decoration-line
- text-decoration-color
- text-decoration-style
- text-decoration-thickness
- text-underline-offset
- text-transform
- text-overflow
- text-wrap
- text-indent
- vertical-align
- white-space
- word-break
- hyphens
- content
- Backgrounds
- Borders
- Effects
- Filters
- Tables
- Transitions & Animation
- Transforms
- Interactivity
- SVG
- Accessibility
✅ Syntax changes
- Important modifier is at the end now (but beginning supported too for BC)
- New shorthand syntax for variables as arbitrary values
- Respect variant order from Tailwind CSS when not reorderable Tailwind CSS v4 support #513 (comment)
- Prefixes look like variants, and always come first
- Arbitrary variants support HTML elements now and don't always require an
&
Issues discovered
shadowclass missing in v4 docs tailwindlabs/tailwindcss.com#1985- Inset ring color classes have incorrect names in API table tailwindlabs/tailwindcss.com#1988
- Add missing arbitrary value option to
flexAPI table tailwindlabs/tailwindcss.com#2002 - Issues with content in v4 API tables tailwindlabs/tailwindcss.com#2027
- [v4] CSS bundle bloated when using @tailwindcss/vite and tailwind-merge tailwindlabs/tailwindcss#15722
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
context-v3Related to tailwind-merge v3Related to tailwind-merge v3featureIs new featureIs new feature