Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Also possibly finding similar colors that could be combined in rules instead of repeated separately.

`.a{color: #FFFFFF;} .b{color:FFFFFE;}` ==> `.a,.b{color:#FFF;}`


and 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.


Same goes for embedded fonts




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: