Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Tailwind v3.1 #103

Merged
merged 13 commits into from
Jun 12, 2022
Prev Previous commit
Next Next commit
add more clarity to docs
dcastil committed Jun 12, 2022

Verified

This commit was signed with the committer’s verified signature.
dcastil Dany Castillo
commit 772c997248089ae92e464a6846baa371017e872e
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -120,9 +120,12 @@ Watch out for mixing arbitrary properties which could be expressed as Tailwind c
twMerge('[&:nth-child(3)]:py-0 [&:nth-child(3)]:py-4') // → '[&:nth-child(3)]:py-4'
twMerge('dark:hover:[&:nth-child(3)]:py-0 hover:dark:[&:nth-child(3)]:py-4')
// → 'hover:dark:[&:nth-child(3)]:py-4'

// Don't do this!
twMerge('[&:focus]:ring focus:ring-4') // → '[&:focus]:ring focus:ring-4'
```

Similarly to arbitrary properties, tailwind-merge does not resolve conflicts between arbitrary variants and their matching predefined modifiers, like `[&:focus]:ring` and `focus:ring`.
Similarly to arbitrary properties, tailwind-merge does not resolve conflicts between arbitrary variants and their matching predefined modifiers for bundle size reasons.

### Supports important modifier