https://github.com/jxnblk/hello-color
https://github.com/jxnblk/hello-color
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jxnblk/hello-color
- Owner: jxnblk
- Created: 2015-10-25T21:58:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T19:08:19.000Z (over 6 years ago)
- Last Synced: 2024-12-10T07:10:58.581Z (7 months ago)
- Language: JavaScript
- Homepage: http://jxnblk.com/hello-color
- Size: 385 KB
- Stars: 230
- Watchers: 10
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-color
Functional color palette generator
http://jxnblk.com/hello-color
[](https://travis-ci.org/jxnblk/hello-color)
```sh
npm i hello-color
``````js
import hello from 'hello-color'const result = hello('#0fc')
// Returns an object with negated and adjusted color
// that meets a minimum contrast
// {
// base: '#00ffcc',
// color: '#f6002d',
// contrast: 3.2636058745832304,
// dark: false
// }
```MIT License