A NodeJS package to convert any RGB color to HEX, HSL color or viceversa.
div {
color: #fff;
background-color: #0070f3;
}
After running npx unhex@latest
with hexToRgb
direction.
div {
color: rgb(255, 255, 255);
background-color: rgb(0, 112, 243);
}
npx unhex@latest
- Parse any file on a given directory and convert any color to among HSL, HEX and RGB combinations.
- Custom configuration to:
- Ignore certain files, dirs...
- Define which extensions files to parse (.css, .jsx, .scss, ...)
- Support HSL.
- Support HWB.