Skip to content

Comment on Too Much Color

Comments

He’s talking about minifying CSS colors and I’m not sure if it is what I think it is.

Do CSS minifier really adjust the colors in the CSS files to get better compression rates or to reduce the number of rules in the CSS?

The author’s minifier now does so, yes. I think you’d have to research further to decide if they’re the first to do so or not.

It depends on the minifier (SVG optimizers do this too), but yes, they may reduce the precision of colors. I checked and esbuild will turn lab() into a hex color if possible.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.