Conflicting utilities in one class list
Why it matters
Two utilities setting the same property: the winner is decided by stylesheet order, not by the order written.
Fix
Keep one; for overrides, merge with cn()/tailwind-merge.
Credit
From Tailwind Labs
Conflicting utilities are resolved by stylesheet order, not class order.
References
- Detecting classes in source files - Core concepts - Tailwind CSSTailwind CSS
- tailwind-mergeGitHub (dcastil)