1.0.3 • Published 7 years ago

coolors-to-hex v1.0.3

Weekly downloads
6,867
License
MIT
Repository
github
Last release
7 years ago

coolors-to-hex

Generated with nod NPM version Build Status Coverage Status

Get hexadecimal values from a coolors url

Install

$ npm install --save coolors-to-hex

Usage

import coolorsToHex from 'coolors-to-hex'

coolorsToHex('https://coolors.co/d32f2f-f44336-f8877f-ffcdd2-ffffff')
// returns ['#d32f2f', '#f44336', '#f8877f', '#ffcdd2', '#ffffff']

API

coolorsToHex

Returns an array of hexadecimal string colors.

Parameters

Returns Array<string>

License

MIT © Diego Haz