{"id":13474486,"url":"https://github.com/dcastil/tailwind-merge","last_synced_at":"2026-02-19T01:22:16.985Z","repository":{"id":37918590,"uuid":"386221246","full_name":"dcastil/tailwind-merge","owner":"dcastil","description":"Merge Tailwind CSS classes without style conflicts","archived":false,"fork":false,"pushed_at":"2025-11-22T19:36:25.000Z","size":105385,"stargazers_count":5494,"open_issues_count":20,"forks_count":85,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-12-21T11:06:54.749Z","etag":null,"topics":["css","tailwindcss","utility-classes"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/tailwind-merge","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcastil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"dcastil"}},"created_at":"2021-07-15T08:37:57.000Z","updated_at":"2025-12-20T19:59:59.000Z","dependencies_parsed_at":"2023-02-18T19:45:32.783Z","dependency_job_id":"63db6894-1907-4b33-ad50-456d90d2fd08","html_url":"https://github.com/dcastil/tailwind-merge","commit_stats":{"total_commits":938,"total_committers":32,"mean_commits":29.3125,"dds":0.2484008528784648,"last_synced_commit":"4dc0491f877f97cd5b9d7cc6d0bb87c385a0def8"},"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/dcastil/tailwind-merge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastil%2Ftailwind-merge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastil%2Ftailwind-merge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastil%2Ftailwind-merge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastil%2Ftailwind-merge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcastil","download_url":"https://codeload.github.com/dcastil/tailwind-merge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastil%2Ftailwind-merge/sbom","scorecard":{"id":329483,"data":{"date":"2025-08-11","repo":{"name":"github.com/dcastil/tailwind-merge","commit":"54737fb4728bf9671171aa96c3b73ca1b1dd440a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.2,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: .github/SECURITY.md:1","Info: Found linked content: .github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/SECURITY.md:1","Info: Found text in security policy: .github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"14 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:14","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:15","Warn: no topLevel permission defined: .github/workflows/benchmark.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/comment-released-prs-and-issues.yml:1","Warn: no topLevel permission defined: .github/workflows/draft-release.yml:1","Warn: no topLevel permission defined: .github/workflows/label.yml:1","Warn: no topLevel permission defined: .github/workflows/metrics-report.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish-dev.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/benchmark.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/benchmark.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/benchmark.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/benchmark.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/benchmark.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/codeql-analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/comment-released-prs-and-issues.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/comment-released-prs-and-issues.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/draft-release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/draft-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/label.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/label.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/label.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/label.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/metrics-report.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/metrics-report.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/metrics-report.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/metrics-report.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/metrics-report.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/metrics-report.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/metrics-report.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/metrics-report.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/metrics-report.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/metrics-report.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-dev.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-dev.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-dev.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish-dev.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish-dev.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/npm-publish-dev.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/dcastil/tailwind-merge/test.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/npm-publish-dev.yml:39","Warn: npmCommand not pinned by hash: .github/workflows/npm-publish.yml:37","Info:   0 out of  26 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/npm-publish-dev.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:14:08.293Z","repository_id":37918590,"created_at":"2025-08-18T03:14:08.293Z","updated_at":"2025-08-18T03:14:08.293Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28924608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","tailwindcss","utility-classes"],"created_at":"2024-07-31T16:01:12.679Z","updated_at":"2026-01-31T00:23:58.745Z","avatar_url":"https://github.com/dcastil.png","language":"TypeScript","funding_links":["https://github.com/sponsors/dcastil"],"categories":["TypeScript","Uncategorized","FpTs"],"sub_categories":["Uncategorized","dcastil/tailwind-merge"],"readme":"\u003c!-- This file is autogenerated. If you want to change this content, please do the changes in `./docs/README.md` instead. --\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/dcastil/tailwind-merge\"\u003e\n        \u003cimg src=\"https://github.com/dcastil/tailwind-merge/raw/v3.4.0/assets/logo.svg\" alt=\"tailwind-merge\" height=\"150px\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n# tailwind-merge\n\nUtility function to efficiently merge [Tailwind CSS](https://tailwindcss.com) classes in JS without style conflicts.\n\n```ts\nimport { twMerge } from 'tailwind-merge'\n\ntwMerge('px-2 py-1 bg-red hover:bg-dark-red', 'p-3 bg-[#B91C1C]')\n// → 'hover:bg-dark-red p-3 bg-[#B91C1C]'\n```\n\n- Supports Tailwind v4.0 up to v4.1 (if you use Tailwind v3, use [tailwind-merge v2.6.0](https://github.com/dcastil/tailwind-merge/tree/v2.6.0))\n- Works in all modern browsers and maintained Node versions\n- Fully typed\n- [Check bundle size on Bundlephobia](https://bundlephobia.com/package/tailwind-merge)\n\n## Get started\n\n- [What is it for](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/what-is-it-for.md)\n- [When and how to use it](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/when-and-how-to-use-it.md)\n- [Features](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/features.md)\n- [Limitations](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/limitations.md)\n- [Configuration](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/configuration.md)\n- [Recipes](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/recipes.md)\n- [API reference](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/api-reference.md)\n- [Writing plugins](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/writing-plugins.md)\n- [Versioning](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/versioning.md)\n- [Contributing](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/contributing.md)\n- [Similar packages](https://github.com/dcastil/tailwind-merge/tree/v3.4.0/docs/similar-packages.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcastil%2Ftailwind-merge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcastil%2Ftailwind-merge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcastil%2Ftailwind-merge/lists"}