/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import { parseTokens } from "../../utils/parseTokens.js";
import { DEFAULT_SCALE_MODE } from "../../modes/dist/index.js";
import plugin from "tailwindcss/plugin.js";

//#region src/tailwind/plugins/sizing.ts
/**
* @deprecated The resulting CSS does not seem to be in use anywhere.
*/
const sizingPlugin = plugin.withOptions(() => ({ matchUtilities, theme }) => {
	matchUtilities({ iconSize: (value) => ({
		width: value,
		height: value,
		fontSize: value,
		lineHeight: value
	}) }, { values: theme("sizing.icon") });
	matchUtilities({ avatarSize: (value) => ({
		width: value,
		height: value
	}) }, { values: theme("sizing.avatar") });
}, ({ config }) => {
	const scaleModeToken = parseTokens(config).scaleMode[DEFAULT_SCALE_MODE];
	return { theme: { extend: { sizing: {
		icon: scaleModeToken.iconSizes.tailwindConfig,
		avatar: scaleModeToken.avatarSizes.tailwindConfig
	} } } };
});

//#endregion
export { sizingPlugin };
//# sourceMappingURL=sizing.js.map