tailwind-merge
Merge Tailwind CSS classes without style conflicts
Last updated 9 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 10
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 8
Dependencies (1)

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