3 ms·
Some other ideas in this vein: 1. Approximate colours by reducing colours to their three letter hex-codes 2. Detect repetative rules and use native mixins. 3
by jszymborski 3y ago
Some other ideas in this vein:
1. Approximate colours by reducing colours to their three letter hex-codes
2. Detect repetative rules and use native mixins.
3. Ugglify the CSS names, although you'd need to edit the HTML accordingly.
- FiniteLooper 3y agoAlso possibly finding similar colors that could be combined in rules instead of repeated separately. `.a{color: #FFFFFF;} .b{color:FFFFFE;}` ==> `.a,.b{color:#FFF;}`
- jsdwarf 3y agoSame goes for embedded fonts
- throwaway14356 3y agoand the next pass class .b can go since we already have .a then, if that is really all it does it can be called .white next round trip it can look if multiple .b share a parent without other font colors. .white then becomes #wrapper or body.