'use strict';

var colors = require('@ant-design/colors');
var colorAlgorithm = require('./colorAlgorithm.cjs');

const generateColorPalettes = (baseColor) => {
  const colors$1 = colors.generate(baseColor);
  return {
    1: colors$1[0],
    2: colors$1[1],
    3: colors$1[2],
    4: colors$1[3],
    5: colors$1[4],
    6: colors$1[5],
    7: colors$1[6],
    8: colors$1[4],
    9: colors$1[5],
    10: colors$1[6]
    // 8: colors[7],
    // 9: colors[8],
    // 10: colors[9],
  };
};
const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {
  const colorBgBase = bgBaseColor || "#fff";
  const colorTextBase = textBaseColor || "#000";
  return {
    colorBgBase,
    colorTextBase,
    colorText: colorAlgorithm.getAlphaColor(colorTextBase, 0.88),
    colorTextSecondary: colorAlgorithm.getAlphaColor(colorTextBase, 0.65),
    colorTextTertiary: colorAlgorithm.getAlphaColor(colorTextBase, 0.45),
    colorTextQuaternary: colorAlgorithm.getAlphaColor(colorTextBase, 0.25),
    colorFill: colorAlgorithm.getAlphaColor(colorTextBase, 0.15),
    colorFillSecondary: colorAlgorithm.getAlphaColor(colorTextBase, 0.06),
    colorFillTertiary: colorAlgorithm.getAlphaColor(colorTextBase, 0.04),
    colorFillQuaternary: colorAlgorithm.getAlphaColor(colorTextBase, 0.02),
    colorBgLayout: colorAlgorithm.getSolidColor(colorBgBase, 4),
    colorBgContainer: colorAlgorithm.getSolidColor(colorBgBase, 0),
    colorBgElevated: colorAlgorithm.getSolidColor(colorBgBase, 0),
    colorBgSpotlight: colorAlgorithm.getAlphaColor(colorTextBase, 0.85),
    colorBorder: colorAlgorithm.getSolidColor(colorBgBase, 15),
    colorBorderSecondary: colorAlgorithm.getSolidColor(colorBgBase, 6)
  };
};

exports.generateColorPalettes = generateColorPalettes;
exports.generateNeutralColorPalettes = generateNeutralColorPalettes;
//# sourceMappingURL=colors.cjs.map
