import { FastColor } from "@ant-design/fast-color";

//#region src/empty/utils.ts
function getAsSolidColor(color, background) {
	if (color?.startsWith("var(") || background?.startsWith("var(")) return color;
	return new FastColor(color).onBackground(background).toHexString();
}

//#endregion
export { getAsSolidColor };