shadcn open-sources cn, a drop-in tailwind-merge/clsx replacement that's 30x faster
shadcn · x · 2026-09-02
shadcn and aidenybai open-sourced cn, a new engine for Tailwind class merging and conflict resolution that replaces tailwind-merge and clsx with identical APIs and full parity at 30x the speed.
- Handles both conditional joining (clsx-style) and conflict resolution (tailwind-merge-style)
- Zero dependencies, framework-agnostic: React, Vue, Svelte, Solid, Astro, plain server templates
- Runs in browsers, Node, Bun, Deno, and edge runtimes; no need for shadcn/ui
More from coding & agent
- LLM one-shots a Minecraft 3x3 piston door by building its own Linux test infra — Vjeux · 2026-10-18
- Dev builds Mumbai-inspired 3D manga background generator from OpenStreetMap data — CurieuxExplorer · 2026-10-18
- Solo founder builds a money-printing data service on Claude's Pi Durable harness — MicahBerkley · 2026-10-18
- Dev builds Arch-based OS with custom desktop and browser using Claude Code — Snoo-10493 · 2026-10-18
- Five SaaS agent workflows fail the same way — and it's never model intelligence — usehive · 2026-10-18
- Claude skill generates hand-drawn interactive diagrams that teach kids how things work — CatAstro_Piyush · 2026-10-18