coolors-to-hex
v1.0.3
Published
Get hexadecimal values from a coolors url
Downloads
18,466
Readme
coolors-to-hex
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
url
string
License
MIT © Diego Haz