All files / src color.js

100% Statements 2/2
100% Branches 1/1
100% Functions 2/2
100% Lines 2/2
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]
  }
}