Skip to content
/ unhex Public

A NodeJS package to convert any RGB color to HEX color or viceversa. Also supports HSL conversion.

License

Notifications You must be signed in to change notification settings

aspnxdd/unhex

Repository files navigation

Unhex 🎨

A NodeJS package to convert any RGB color to HEX, HSL color or viceversa.

Example

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);
}

Want to try it? 🤔

npx unhex@latest

Features ✨

  • 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, ...)

TO-DO 🚧

  • Support HSL.
  • Support HWB.

MIT License