Tools for Auditing CSS

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • wallace-cli

    Pretty CSS analytics on the CLI

  • One of my favorite CLI tools is Wallace. Once installed, type wallace and then the site name. The output shows everything you need to know about the CSS code for the site. My favorite things to look at are the number of times !important is used, as well as how many IDs are in the code. Another neat piece of information is the top specificity number and how many selectors use it. These might be red flags for "bad" code.

  • csscss

    A CSS redundancy analyzer that analyzes redundancy.

  • The csscss CLI tool shows which rules share the same declarations. This is useful for identifying duplicated code and opportunities to reduce the amount of code that's written. I would think twice before doing that as it might not be worthwhile, especially with today's caching mechanisms. It is worth mentioning that csscss requires Ruby.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • color-sorter

    Sort CSS colors by hue, then by saturation

  • Color Sorter — Sort CSS colors by hue, then by saturation.

  • css-analyzer

    Analytics for CSS

  • CSS Analyzer — Generate an analysis for a string of CSS.

  • constyble

    CSS complexity linter

  • constyble — This is a CSS complexity linter, based on CSS Analyzer.

  • ucss

    Find unused and duplicate CSS (by oyvindeh)

  • uCSS — Crawl websites to identify unused CSS.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts