colors.js icon indicating copy to clipboard operation
colors.js copied to clipboard

Support hexadecimal colors?

Open aleclarson opened this issue 10 years ago • 2 comments

var str = "My colored string".hex("#00b8ff")

With or without the "#" is fine.

Thoughts?

aleclarson avatar Mar 13 '15 02:03 aleclarson

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:

aleclarson avatar Mar 13 '15 02:03 aleclarson

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

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

davidnknight avatar Apr 28 '15 15:04 davidnknight