/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { assertUnreachable } from "../../../utils/dist/assertUnreachable.js";
//#region ../css/dist/packages/automated-config/dist/utils/mapColorFixtureToValue.mjs
/*! © 2026 Yahoo, Inc. UDS CSS v0.0.0-development */
/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
const mapColorFixtureToValue = (fixtureType, value) => {
	switch (fixtureType) {
		case "alwaysPaletteAliases":
			if (value.startsWith("always/")) {
				const [, subValue] = value.split("/");
				return `colors.always.${subValue}`;
			}
			return `colors.${value}`;
		case "spectrumColors": {
			const [hue, hueStep] = value.split("-");
			return `colors.${hue}.${hueStep}`;
		}
		case "foregroundPaletteColors": return `textColor.${value}`;
		case "backgroundPaletteColors": return `backgroundColor.${value}`;
		case "linePaletteColors":
		case "elevationAliases": return `borderColor.${value}`;
	}
	return assertUnreachable(fixtureType);
};
//#endregion
export { mapColorFixtureToValue };
