"use client";
const require_parse_theme_color = require("../../core/MantineProvider/color-functions/parse-theme-color/parse-theme-color.cjs");
//#region packages/@mantine/core/src/components/Mark/get-mark-color.ts
function getMarkColor({ color, theme, defaultShade }) {
	const parsed = require_parse_theme_color.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
exports.getMarkColor = getMarkColor;

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