rails-css_unused scans your stylesheets (CSS/SCSS/Sass) and all view templates (ERB, HAML, Slim), ViewComponents, Phlex components, and Stimulus JS controllers to report CSS class selectors that are defined but never referenced. Supports BEM naming, dynamic class detection, source-file attribution, CI exit codes, and configurable ignore lists — zero runtime overhead.

Required Ruby Version

>= 3.1.0

Authors

sghani001

Versions

  1. 0.2.1 June 02, 2026 (15 KB)
  2. 0.2.0 June 01, 2026 (14.5 KB)
  3. 0.1.0 June 01, 2026 (10 KB)

Pushed by

SHA 256 checksum