A very simple C function in a single-file header that can be used to parse a subset of CSS-like colours.
Refer to the documentation comments in cpar.h
for usage info.
An extremely simple test program is included, run make test
to compile and
run the tests.