import '../token/index.mjs';
import { PresetColors } from '../token/interface/presetColors.mjs';

function genPresetColor(token, genCss) {
  return 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 })
    };
  }, {});
}

export { genPresetColor };
//# sourceMappingURL=presetColor.mjs.map
