/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
const require_index = require('../../fixtures/dist/index.cjs');
const require_getShadowStyles = require('../utils/getShadowStyles.cjs');
const require_getShadowPresetValues = require('../utils/getShadowPresetValues.cjs');
let tailwindcss_plugin_js = require("tailwindcss/plugin.js");
tailwindcss_plugin_js = require_runtime.__toESM(tailwindcss_plugin_js);

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

//#endregion
exports.shadowsPlugin = shadowsPlugin;