Skip to content

Tailwind CSS v4 support #513

@dcastil

Description

@dcastil

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

Tailwind CSS v4 annnouncement

✅ Upgrade guide

Upgrade guide

✅ Utility schemas

✅ Syntax changes

#513 (comment)

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v3Related to tailwind-merge v3featureIs new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions