unused-css

Installation
SKILL.md

Remove unused CSS rules

Most projects use only 10-25% of their CSS—removing the rest can cut bundle sizes by 75%+ and dramatically improve load times.

Quick Reference

  • Use PurgeCSS or UnCSS to remove unused selectors
  • Integrate into build pipeline (Webpack, Vite, PostCSS)
  • Safelist dynamic classes and framework-specific patterns
  • Typical reduction: 50-90% for CSS framework users

Check

Use tools like PurgeCSS, UnCSS, or Chrome DevTools Coverage to identify and remove unused CSS to reduce bundle size and improve performance.

Fix

Implement automated unused CSS removal in your build process and regularly audit CSS files to eliminate dead code and unused selectors.

Installs
1
GitHub Stars
73.0K
First Seen
Jun 5, 2026
unused-css — thedaviddias/frontendchecklist