'use strict';

require('../token/index.cjs');
var presetColors = require('../token/interface/presetColors.cjs');

function genPresetColor(token, genCss) {
  return presetColors.PresetColors.reduce((prev, colorKey) => {
    const lightColor = token[`${colorKey}-1`];
    const lightBorderColor = token[`${colorKey}-3`];
    const darkColor = token[`${colorKey}-6`];
    const textColor = token[`${colorKey}-7`];
    return {
      ...prev,
      ...genCss(colorKey, { lightColor, lightBorderColor, darkColor, textColor })
    };
  }, {});
}

exports.genPresetColor = genPresetColor;
//# sourceMappingURL=presetColor.cjs.map
