"use client";
import { parseThemeColor } from "../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.mjs";
//#region packages/@mantine/core/src/components/Mark/get-mark-color.ts
function getMarkColor({ color, theme, defaultShade }) {
	const parsed = parseThemeColor({
		color,
		theme
	});
	if (!parsed.isThemeColor) return color;
	if (parsed.shade === void 0) return `var(--mantine-color-${parsed.color}-${defaultShade})`;
	return `var(${parsed.variable})`;
}
//#endregion
export { getMarkColor };

//# sourceMappingURL=get-mark-color.mjs.map