Factor CSS

for web developers web interface, Linux

This tool takes a CSS stylesheet on input and produces an almost equivalent stylesheet on output, but with rulesets split, combined, and reordered to "factor out" common declarations. This helps reveal shared components. The resulting stylesheet may also be smaller.

The only known case where the output is not equivalent to the input is when the stylesheet depends on the order of rules (see CSS 2.1 6.4.1).

The Haskell source is available.

Enter the HTTP URL of a stylesheet to factor it:

James Bursa