UnCSS
Remove unused styles from CSS observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: n/a
- age_days: 4885
- days_rel: n/a
- days_push: 806
- n_releases_24m: 0
Adoption not part of the score
9402 stars · 403 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
UnCSS is a Node.js tool and CLI that removes unused CSS selectors from stylesheets by loading HTML pages in jsdom, executing JavaScript, and filtering selectors via document.querySelector. It integrates with build pipelines (e.g., Grunt) and supports options like ignoring runtime-added classes.
Use cases
- remove unused css from stylesheets
- optimize css file size for production build
- strip unused selectors from bootstrap css
- clean up css in a static site build
- find which css rules are never used on my pages
- reduce css payload for faster page load
When to choose
- you have static HTML pages or rendered output and want to shrink CSS
- your build pipeline is Node.js-based (Grunt, npm scripts)
- you need to handle JavaScript-injected CSS on page load
When to avoid
- your pages are templates (PHP, templating engines) rather than rendered HTML
- most of your CSS classes are added by JavaScript on user interaction
- you need a fully automated CSS purging solution for SPAs with dynamic routing
Facets
cli-tool · maturity maintenance
build-tool css-framework developer-tools web-development frontend developer-tools performance cli cross-platform css-optimization unused-css postcss jsdom grunt-plugin stylesheet-cleanup nodejs
2 sources
- readme: https://github.com/uncss/uncss · fetched 2026-08-28 · df3621b4bae0
- registry_npm: https://registry.npmjs.org/uncss · fetched 2026-08-29 · aa32eb67c9cb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| uncss/uncss | main | 23 |
| uncss/grunt-uncss | plugin | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem