"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getAsSolidColor = void 0;
var _fastColor = require("@ant-design/fast-color");
const getAsSolidColor = (color, background) => {
  if ((color === null || color === void 0 ? void 0 : color.startsWith('var(')) || (background === null || background === void 0 ? void 0 : background.startsWith('var('))) {
    return color;
  }
  return new _fastColor.FastColor(color).onBackground(background).toHexString();
};
exports.getAsSolidColor = getAsSolidColor;