colorjs / color-namer

:art: Give me a color and I'll name it.
MIT License
441 stars 39 forks source link

Feat/custom colour #12

Open sericaia opened 4 years ago

sericaia commented 4 years ago

Support for custom color lists (multiple)

This is an alternative to https://github.com/colorjs/color-namer/pull/8

vegeta897 commented 3 years ago

It should probably be noted that this would allow overwriting the built-in lists in addition to adding new ones, just by using the same name (e.g. namer.addList('basic', myBasicColors)). This behavior may be unintended by someone who isn't aware of the default list names.