Space Cat, Prince Among Thieves

Similar CSS Color Finder

Update: Expanded CSS Level 4 and HDR color support added.

It would seem that very similar but non-identical colors like to pop up in CSS files of any reasonable age, and I became annoyed by them. This started as a little script to help me find them in a stylesheet, and grew into this full-fledged tool.

This tool will scan CSS and CSS-like files like Sass, Less, etc and find colors similar to each other within a set tolerance.

This handles named colors, rgb(), rgba(), hsl(), hsla(), hwb(), lab(), lch(), oklab(), oklch(), and color() functions as well as CSS Color Level 4 wide-gamut spaces including Display P3, Rec2020, and ProPhoto RGB.

There is a command line version of this with Continuous Integration support available on GitHub.



Comment by: Alex on

Alex's Gravatar You are real wizard!
Thanks a lot :-)

Email address will never be publicly visible.

Basic HTML allowed.