1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 12x 9x | /** * color * @module color * @description get a color from your color palette * @author Zander * @example: color(colorPalette)('bright', 'lighter') * @param {object} palette * @return {string} */ export default function color(palette) { return (hue, value = 'base') => { return palette[hue][value] } } |