Marak / colors.js

get colors in your node.js console
https://github.com/Marak/colors.js
Other
5.17k stars 448 forks source link

Support hexadecimal colors? #115

Open aleclarson opened 9 years ago

aleclarson commented 9 years ago
var str = "My colored string".hex("#00b8ff")

With or without the "#" is fine.

Thoughts?

aleclarson commented 9 years ago

Here I found that someone already implemented it for you:

https://github.com/gunderson/colors.js/commit/2b97d28987a3e0bfe7f4e54703b27ff96ff8fa74

You should add it to this repo. :smile:

davidnknight commented 9 years ago

I'd also like to be able to specify hexdecimal colours, something like:

colors.setTheme({
    black: '#000000'
});