/**
 * ldesign v0.3.13
 * (c) 2023 ldesign
 * @license MIT
 */

import { t as tinycolor } from '../../../_chunks/dep-9ac6ced8.mjs';

function generateColors(primaryColor) {
  var primary = tinycolor(primaryColor);
  var warning = tinycolor.mix(primary.clone().setAlpha(1), tinycolor({
    r: 113,
    g: 51,
    b: 0
  }), 70);
  var success = primary.clone().setAlpha(1).desaturate(10).lighten(10);
  var danger = primary.clone().setAlpha(1).saturate(25).darken(15);
  var primaryShades = [];
  for (var i = 10; i >= 1; i--) {
    primaryShades.push(primary.clone().darken(i * 5).toHexString());
  }
  var warningShades = [];
  for (var _i = 10; _i >= 1; _i--) {
    warningShades.push(tinycolor.mix(warning.clone().setAlpha(1), primary.clone().lighten(_i * 2), 50).toHexString());
  }
  var successShades = [];
  for (var _i2 = 10; _i2 >= 1; _i2--) {
    successShades.push(success.clone().darken(_i2 * 5).toHexString());
  }
  var dangerShades = [];
  for (var _i3 = 10; _i3 >= 1; _i3--) {
    dangerShades.push(tinycolor.mix(danger.clone().setAlpha(1), primary.clone().lighten(_i3 * 2), 50).toHexString());
  }
  return {
    primaryShades: primaryShades,
    warningShades: warningShades,
    successShades: successShades,
    dangerShades: dangerShades
  };
}

export { generateColors };
//# sourceMappingURL=index.mjs.map
