tailwind-merge
Merge Tailwind CSS classes without style conflicts
Last updated 3 years 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

358 Versions

Maintainers (1)
Downloads
Total 1,125
Today 0
This Week 3
This Month 0
Last Day 3
Last Week 44
Last Month 914
Dependencies (1)

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