moroshko / accessible-colors

Automatically find the closest accessible color combination
http://accessible-colors.com
MIT License
471 stars 28 forks source link

Please pre-build the code and publish on NPM #72

Open yairEO opened 5 years ago

yairEO commented 5 years ago

i want to be able to simply install a script which compares 2 colors and outputs a contrast number. I cannot use your code if it's not on NPM, sorry. I only use published packages for obvious reasons.

Also, you have huge amount of dependencies. for such simple task this is absurd:

"add-commas": "0.0.4",
"es6-promise": "^4.0.5",
"isomorphic-fetch": "^2.2.1",
"jsonp": "^0.2.1",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"react-redux": "^5.0.1",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0"
...
stof commented 4 years ago

this repo is not meant to be a package you install to compute a contrast number (there are some of them on npm already). It is the source code of a website.