Sources
shadcn shipped cn, a drop-in replacement for tailwind-merge and clsx claiming 30x faster class merging
shadcn-ui/cn was created 2026-08-31 (MIT, 1,038 stars, last pushed 09-04) and describes itself as a new engine for Tailwind class merging and conflict resolution that replaces tailwind-merge and clsx with the same APIs and full parity, 30x faster. Because the `cn` helper runs on every render of every component in a shadcn codebase, this is one of the rare dependency swaps where a microbenchmark claim translates to something you can feel, and API parity means the migration is a package change rather than a refactor.
Source
↳ Follow the thread