https://github.com/19h47/color-chart
Playing with tint and shade
https://github.com/19h47/color-chart
Last synced: about 2 months ago
JSON representation
Playing with tint and shade
- Host: GitHub
- URL: https://github.com/19h47/color-chart
- Owner: 19h47
- Created: 2019-02-03T09:58:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T10:04:16.000Z (over 6 years ago)
- Last Synced: 2025-01-30T16:17:23.788Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Color Chart
**Color Chart** is an ES6 class to Tint or Shade a color.
> Heavily inspired by [values.js](https://github.com/noeldelgado/values.js)
## Installation
Use the package manager [npm](https://www.npmjs.com/) to install Color Chart.
```bash
npm install color-chart
```## Usage
### Tint
```javascript
import { Tint } from 'color-chart';const tint = new Tint('#1a26ff');
tint.generates(50).render();
```### Shade
```javascript
import { Shade } from 'color-chart';const tint = new Shade('#1a26ff');
shade.generates(50).render();
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)