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
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05