"use client";
const require_rem = require("../../../../utils/units-converters/rem.cjs");
//#region packages/@mantine/core/src/core/Box/style-props/resolvers/font-size-resolver/font-size-resolver.ts
const headings = [
	"h1",
	"h2",
	"h3",
	"h4",
	"h5",
	"h6"
];
function fontSizeResolver(value, theme) {
	if (typeof value === "string" && value in theme.fontSizes) return `var(--mantine-font-size-${value})`;
	if (typeof value === "string" && headings.includes(value)) return `var(--mantine-${value}-font-size)`;
	if (typeof value === "number") return require_rem.rem(value);
	if (typeof value === "string") return require_rem.rem(value);
	return value;
}
//#endregion
exports.fontSizeResolver = fontSizeResolver;

//# sourceMappingURL=font-size-resolver.cjs.map