Skip to content

dcastil/tailwind-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a5c1d1d · Aug 18, 2024
Aug 18, 2024
Jul 19, 2021
Aug 17, 2024
Aug 12, 2024
Aug 18, 2024
Aug 12, 2024
Aug 18, 2024
Aug 18, 2024
Jan 26, 2023
Aug 20, 2022
Jul 14, 2021
Aug 12, 2024
Aug 18, 2024
Aug 19, 2023
Aug 18, 2024

Repository files navigation

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