tailwind-merge
Merge Tailwind CSS classes without style conflicts
Last updated 5 years ago by dcas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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

  • 3.5.0                                ...           latest (2 months ago)
  • 2.6.1                                ...           tailwind-merge-2 (2 months ago)

415 Versions

Maintainers (1)
Downloads
Today 1
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (14)

Copyright 2013 - present © cnpmjs.org | Home |