import { borderRadius, boxShadows, colorPalette, fontSizes, fontWeights, heights, lineHeights, scales } from "../../tailwind-config.js";
import { extendTailwindMerge } from "tailwind-merge";
import { clsx } from "clsx";
//#region src/shared/tools/cn.ts
var customTwMerge = extendTailwindMerge({ extend: {
	theme: { color: Object.entries(colorPalette).reduce((acc, currentVal) => {
		const colors = Object.keys(currentVal[1]).map((c) => `${currentVal[0]}-${c}`);
		return acc.concat(colors);
	}, []) },
	classGroups: {
		shadow: [{ shadow: Object.keys(boxShadows).map((s) => `${s}`) }],
		"font-size": [{ text: Object.keys(fontSizes) }],
		"font-weight": [{ font: Object.keys(fontWeights) }],
		rounded: [{ rounded: Object.keys(borderRadius) }],
		scale: [{ scale: Object.keys(scales) }],
		h: [{ h: Object.keys(heights) }],
		leading: [{ leading: Object.keys(lineHeights) }]
	}
} });
var cn = (...inputs) => {
	return customTwMerge(clsx(inputs));
};
//#endregion
export { cn };
