colornames
colornames copied to clipboard
Map color names to HEX color values
Listed a few files and folders which are currently included in the published npm package, while they should not be.
The name "gray" return hex code but "grey" doesn't. On the otherhand, it's the otherway around for "lightgray" and "lightgrey". Using the following code for the time being. `toHex(name.replace("gray", "grey"))...
Added a test case for case insensitivity and the code as well :)
Trying something out with the class ... apologies for the duplicates!