shadcn open-sources cn, a Tailwind class merging engine 30x faster than tailwind-merge
stramel89 · x · 2026-09-03
shadcn and Aiden Bai are open-sourcing cn, a new engine for Tailwind class merging and conflict resolution, a drop-in replacement for tailwind-merge and clsx. It works with all frameworks, runs everywhere, and is 30x faster than tailwind-merge.
In the thread, users asked whether it supports custom Tailwind class merging (tailwind-merge previously only handled default classes); one user reported an 18kb gzipped bundle size increase from the cn config, and the author said it should be optimized and will be fixed.
More from coding & agent
- Anthropic borrows lawyers' ethics for Claude agents that closed 186 deals with no human approval — rohanpaul_ai · 2026-10-18
- One prompt turns Claude Code into a full motion-graphics video pipeline with Remotion — aziz4ai · 2026-10-18
- Prompt injection via email can hijack your AI agent — jev-guard adds risk-scored guards — sujingshen · 2026-10-18
- 14-Agent AI Film Pipeline on One RTX 5090: Fixing Cut Defects Between Clips — developervkmp · 2026-10-18
- Meta paper introduces "agent plasticity": best-performing agent isn't the most efficient learner — rohanpaul_ai · 2026-10-18
- Dev ships a bushfire prediction platform in a weekend with frontier models — CtrlAltDwayne · 2026-10-18