Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jxnblk/hello-color
https://github.com/jxnblk/hello-color
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jxnblk/hello-color
- Owner: jxnblk
- Created: 2015-10-25T21:58:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T19:08:19.000Z (over 5 years ago)
- Last Synced: 2024-10-19T19:19:39.057Z (15 days ago)
- Language: JavaScript
- Homepage: http://jxnblk.com/hello-color
- Size: 385 KB
- Stars: 231
- 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
[![Build Status](https://travis-ci.org/jxnblk/hello-color.svg?branch=master)](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