"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("react");
require("react/jsx-runtime");
require("clsx");
const parseThemeColor = require("../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.cjs");
function getMarkColor({ color, theme, defaultShade }) {
  const parsed = parseThemeColor.parseThemeColor({ color, theme });
  if (!parsed.isThemeColor) {
    return color;
  }
  if (parsed.shade === void 0) {
    return `var(--mantine-color-${parsed.color}-${defaultShade})`;
  }
  return `var(${parsed.variable})`;
}
exports.getMarkColor = getMarkColor;
