shadcn open-sources cn: a drop-in tailwind-merge replacement claiming 30x speedup

SeyoneC · x · 2026-09-03

shadcn and aidenybai (Million.js creator) have open-sourced cn, a new engine for Tailwind class merging and conflict resolution, positioned as a drop-in replacement for tailwind-merge and clsx. It claims to work with all frameworks, run everywhere, and be 30x faster. In follow-ups, a dev reported cn/config added 18kb gzipped to bundle size; the authors said builds are optimized to what you use and will fix it if re-measurement still looks off. cn/engine also handles custom Tailwind classes, which tailwind-merge previously couldn't.

Related event: shadcn and aidenybai open-source cn, a Tailwind class-merging engine 30x faster(5 posts)→

Original post →

More from coding & agent

coding & agent channel →