'use strict';

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

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

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