/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import { shadowOffsetMap, shadowOpacityMap, shadowSpreadRadiusMap } from "../../fixtures/dist/index.js";
import { getShadowStyles } from "../utils/getShadowStyles.js";
import { getShadowPresetValues } from "../utils/getShadowPresetValues.js";
import plugin from "tailwindcss/plugin.js";

//#region src/tailwind/plugins/shadows.ts
const shadowsPlugin = plugin.withOptions(({ config }) => ({ addUtilities, addBase }) => {
	/** Add shadow utilities to make shadow props available in Tailwind */
	if (!config.shadow) return;
	const dropShadowVariables = getShadowPresetValues({
		config,
		shadowType: "drop"
	});
	const insetShadowVariables = getShadowPresetValues({
		config,
		shadowType: "inset"
	});
	addBase({
		...dropShadowVariables,
		...insetShadowVariables
	});
	const dropShadowStyles = getShadowStyles({
		config,
		shadowType: "drop"
	});
	const insetShadowStyles = getShadowStyles({
		config,
		shadowType: "inset"
	});
	addUtilities({
		...dropShadowStyles,
		...insetShadowStyles
	});
}, () => ({ theme: { extend: {
	shadowOpacity: shadowOpacityMap,
	shadowSpread: shadowSpreadRadiusMap,
	shadowOffset: shadowOffsetMap,
	shadowBlur: shadowOffsetMap
} } }));

//#endregion
export { shadowsPlugin };
//# sourceMappingURL=shadows.js.map