A package that parses ints and strings (hex or rgba) into a color, with basic in-memory caching.

const red = UIColor( 'red' );
const blue = UIColor( 'blue' );
const grey = UIColor( '#cccccc' );
const grey2 = UIColor( 'cccccc' );
const redWithAlpha = UIColor( 'rgba(255,0,0,0.5)' );

Libraries

parse_color