import '../constants/index.mjs';
import { PresetColors } from '../constants/color.mjs';

const inverseColors = PresetColors.map((color) => `${color}-inverse`);
const presetStatusColorTypes = [
  "success",
  "processing",
  "error",
  "default",
  "warning"
];
function isPresetColor(color, includeInverse = true) {
  if (includeInverse)
    return [...inverseColors, ...PresetColors].includes(color);
  return PresetColors.includes(color);
}
function isPresetStatusColor(color) {
  return presetStatusColorTypes.includes(color);
}

export { isPresetColor, isPresetStatusColor };
//# sourceMappingURL=color.mjs.map
