# FullHuman/purgecss

Remove unused CSS

Repository: https://github.com/FullHuman/purgecss
Canonical: https://ross.abutalabs.com/products/purgecss
Homepage: https://purgecss.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: css, optimization-tools, purgecss, postcss-plugin, webpack-plugin, rollup-plugin, postcss
Last push: 2026-08-20T23:28:36+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 3350, "days_push": 13, "days_rel": 221, "gap_med": 429, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8047, forks 243 (observed 2026-08-28T04:10:12.243636+00:00)

## What it is
PurgeCSS is a tool that removes unused CSS selectors by analyzing content files and matching them against CSS selectors. It ships as a CLI, a programmatic API, and plugins for PostCSS, Webpack, Gulp, Grunt, Gatsby, and Rollup.

## Use cases
- remove unused css from my project
- shrink bootstrap css bundle
- purge unused tailwind or framework styles
- optimize css file size for production build
- strip unused selectors from css framework
- integrate css purging into webpack or postcss pipeline

## When to choose
- you use a large CSS framework but only a subset of its styles
- you want smaller CSS bundles in a Node.js build pipeline
- you need a PostCSS, Webpack, or Rollup plugin for CSS purging

## When to avoid
- your CSS is dynamically generated at runtime with unpredictable class names
- you rely heavily on runtime-computed class names without safelisting
- your project has no build step to run the purge

## Facets
- artifact type: library
- maturity: stable
- function: css-framework, build-tool, developer-tools
- domain: web-development, frontend, web-design, developer-tools
- platform: cross-platform
- tags: css-optimization, unused-css, postcss-plugin, webpack-plugin, rollup-plugin, tree-shaking, css-frameworks, nodejs, web-server

## Member repositories
- FullHuman/purgecss (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:12.243636+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:31:24.848737+00:00, confidence not recorded.
  - readme: https://github.com/FullHuman/purgecss (fetched 2026-08-28T04:10:12.243636+00:00, sha a104a1a90745)
  - homepage: https://purgecss.com (fetched 2026-08-29T08:29:29.409815+00:00, sha 9edef6283136)
  - site_page: https://purgecss.com/getting-started.html (fetched 2026-08-29T08:29:29.419208+00:00, sha 67e436cb5951)
  - registry_npm: https://registry.npmjs.org/purgecss (fetched 2026-08-29T08:29:29.421124+00:00, sha 367871913333)
- Data as of 2026-08-30T08:39:29.467469+00:00.
