Ross ROSS = Recommend OSS · open-source software intelligence for agents

dcastil/tailwind-merge

Merge Tailwind CSS classes without style conflicts observed · 2026-08-28

github.com/dcastil/tailwind-merge · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

94/100

  • Activity 99
  • Release rhythm 83
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 29
  • age_days: 1875
  • days_rel: 115
  • days_push: 7
  • n_releases_24m: 16

Full methodology

Adoption not part of the score

5678 stars · 101 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A TypeScript utility function that merges Tailwind CSS class strings while resolving style conflicts, keeping the last conflicting class. It supports Tailwind v4 and works in browsers and Node.js.

Use cases

  • merge tailwind css classes without conflicts
  • resolve conflicting tailwind utility classes in react components
  • combine conditional tailwind class names
  • override tailwind styles passed via props
  • deduplicate tailwind classes in a design system

When to choose

  • you build component libraries or UI kits with Tailwind and need class overrides to work predictably
  • you merge dynamic Tailwind class strings in JS/TS and want conflict resolution
  • you use Tailwind v4 and want a small, fully typed, well-maintained utility

When to avoid

  • you don't use Tailwind CSS — it only understands Tailwind's class syntax
  • you use Tailwind v3, where you need the older v2.6.0 release
  • you only need simple class name concatenation without conflict handling

Facets

library · maturity stable

css-framework ui-components serialization frontend web-development web-design browser cross-platform tailwindcss utility-classes class-merging typescript style-conflicts nodejs

1 source

Member repositories

RepositoryRoleHealth v2
dcastil/tailwind-mergemain94

For agents

markdown · JSON · MCP: product_card(name="dcastil/tailwind-merge")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem