shadcn's cn: 30x Faster Drop-in Replacement for clsx + tailwind-merge
shadcn's new cn utility merges clsx and tailwind-merge into a single package, delivering up to 30x faster class-name merging via compile-time lookup tables and multi-layer caching, with a CLI for automatic migration, though it adds ~1.9KB gzipped and requires Tailwind CSS v4.
