tailwind-merge
Merge Tailwind CSS classes without style conflicts
Last updated 2 months ago by GitHub Actions .
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 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |