fullhuman/purgecss

Remove unused CSS

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 20 minutes ago
Added to GitGenius on September 8th, 2026
Created on July 1st, 2017
Open Issues & Pull Requests: 68 (+0)
GitHub issues: Enabled
Number of forks: 242
Total Stargazers: 8,048 (+0)
Total Subscribers: 55 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 20
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 807 days
Stale 30+ days: 19
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (38)
  • Feature request (11)
  • Stale (11)
  • coming soon (3)
  • help wanted (3)
  • documentation (2)
  • CLI (1)
  • Need more information (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

PurgeCSS is a CSS optimization tool that removes unused styles from your stylesheets.

The tool solves the problem of bloated CSS files when using frameworks like Bootstrap or Foundation, where you typically use only a fraction of the available styles. PurgeCSS analyzes your content files and CSS files, then matches selectors in your CSS against those actually used in your content. It removes any unused selectors, resulting in significantly smaller CSS files that are delivered to users.

The tool suits projects using CSS frameworks or large stylesheets where unused styles accumulate. It integrates into common build workflows through plugins for PostCSS, Webpack, Gulp, and Grunt, and includes framework-specific guides for Vue.js, React, Next.js, Nuxt.js, and other popular tools. An online version is available for testing before integration. The documentation includes configuration options, a command-line interface, a programmatic API, safelisting capabilities for protecting styles from removal, and custom extractors for matching selectors in non-standard file formats.

The project is organized as a monorepo using Lerna, publishing multiple packages to npm from a single codebase. Development activity shows consistent engagement with the codebase, regular updates to address issues and maintain compatibility with evolving build tools and frameworks, and active documentation maintenance reflecting the tool's integration points across the ecosystem.