shadcn-ui/cn

cn is a new engine for Tailwind class merging and conflict resolution. It replaces tailwind-merge and clsx. Same APIs. Full parity. And it is 30× faster.

by shadcn-ui TypeScript MIT licence 26 forks Created Aug 2026 View on GitHub

Stars
1,746
1% of shadcn-ui's stars
Rank
#39,286
of 852,204 repos, top 5%
In TypeScript
#4,282
of 62,471 repos, top 7%

Among 852,204 repos

Compare with

1.6k–2.5k stars: 15,650 repos, including cn

Stars along the bottom, and repos in each band on a log scale

Quick stats

Next rank
+1 star to reach #39,263
Next milestone
+5,465 stars to reach the top 1%
Popular
One of 66,543 repos with 1k+ stars

Stars counted Recounted daily Next count around