Skip to content

dcastil/tailwind-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

de88bfd · Nov 24, 2024
Oct 20, 2024
Jul 19, 2021
Oct 20, 2024
Oct 14, 2024
Nov 24, 2024
Oct 2, 2024
Jan 26, 2023
Aug 20, 2022
Jul 14, 2021
Oct 14, 2024
Oct 3, 2024
Oct 14, 2024
Oct 1, 2024
Nov 19, 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