tailwind-merge
Merge Tailwind CSS classes without style conflicts
Last updated 4 months ago by dcas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install tailwind-merge 
SYNC missed versions from official npm registry.

tailwind-merge

tailwind-merge

Utility function to efficiently merge Tailwind CSS classes in JS without style conflicts.

import { twMerge } from 'tailwind-merge'

twMerge('px-2 py-1 bg-red hover:bg-dark-red', 'p-3 bg-[#B91C1C]')
// → 'hover:bg-dark-red p-3 bg-[#B91C1C]'

Get started

Current Tags

286 Versions

Maintainers (1)
Downloads
Total 11
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 8
Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE