Tailwind Merge
Merge Tailwind CSS classes intelligently without style conflicts.
Styling and CSS npm MIT
Used in agent projects
2,136
16.8% of 12,697 public repos built with AI coding agents
Rank in styling and css
#2 of 15
by use in those projects
Downloads
85.8M
npm, last 7 days, tailwind-merge
GitHub stars
5,695
last push Oct 8, 2026
How Tailwind Merge is used
Tailwind Merge is a dependency in 2,136 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (16.8%), #2 of 15 in styling and css. The most used alternative there is Tailwind CSS. Projects that use it most often also use clsx (97.8%), Lucide React (87.7%), Class Variance Authority (82.9%). It is more common in projects set up for Roo Code (31.9%) than for OpenAI Codex (17.1%).
Often used with Tailwind Merge
| clsx | 97.8% of Tailwind Merge projects · 5.5× more than average |
|---|---|
| Lucide React | 87.7% of Tailwind Merge projects · 4.4× more than average |
| Class Variance Authority | 82.9% of Tailwind Merge projects · 5.9× more than average |
| Tailwind CSS | 98.5% of Tailwind Merge projects · 2.8× more than average |
| Radix UI | 68.4% of Tailwind Merge projects · 5.7× more than average |
| React | 95.7% of Tailwind Merge projects · 2.2× more than average |
| next-themes | 48.6% of Tailwind Merge projects · 5.5× more than average |
| Next.js | 66.2% of Tailwind Merge projects · 2.9× more than average |
By coding agent
| Claude Code | 19.6% of projects set up for it |
|---|---|
| Cursor | 24.3% of projects set up for it |
| GitHub Copilot | 17.6% of projects set up for it |
| Gemini CLI | 21.9% of projects set up for it |
| OpenAI Codex | 17.1% of projects set up for it |
| Devin Desktop | 24.1% of projects set up for it |
| OpenCode | 19.1% of projects set up for it |
| Roo Code | 31.9% of projects set up for it |
Share of public repos configured for each agent that list Tailwind Merge as a dependency.
Install
| Package | npm install tailwind-merge |
|---|---|
| Main stacks | Next.js (1,389), TypeScript / JavaScript (642), PHP (61), Python (25) |
| Example projects | ding113/claude-code-hub, veithly/BountyBoard, trypostit/trypost, miantiao-me/bm.md, kovrichard/catalyst |
Alternatives to Tailwind Merge
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Tailwind CSS npm Utility-first CSS framework for building custom user interfaces rapidly. |
4,410 (34.7%) | 134M | 97.9K | MIT |
| Emotion npm CSS-in-JS library for styling React components with scoped styles and theming. |
332 (2.6%) | 20.2M | 18K | MIT |
| Sass npm CSS preprocessor adding variables, nesting and mixins to stylesheets. |
233 (1.8%) | 30.9M | 4,230 | MIT |
| styled-components npm CSS-in-JS library for styling React components with dynamic scoped styles. |
154 (1.2%) | 10.8M | 41.1K | MIT |
| react-responsive npm React library for implementing responsive design with CSS media queries. |
54 (0.4%) | 1.4M | 7,182 | MIT |
| tailwind-variants npm Compose Tailwind CSS classes conditionally with a variant-first composition API. |
53 (0.4%) | 4.3M | 3,318 | MIT |
| postcss-import npm PostCSS plugin to inline @import rules before other transformations. |
46 (0.4%) | 41M | 1,409 | MIT |
| NativeWind npm Use Tailwind CSS in cross-platform React Native applications. |
45 (0.4%) | 1.9M | 8,106 | MIT |