/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
require("../../../_virtual/_rolldown/runtime.cjs");
const require_getColorModeStyles = require("../utils/getColorModeStyles.cjs");
const require_index = require("../packages/css-tokens/dist/index.cjs");
const require_index$1 = require("../packages/modes/dist/index.cjs");
let lodash_es = require("lodash-es");
//#region ../tailwind-internal/dist/base/addColorModeVars.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
function addColorModeVars(tokens, { addBase, config }) {
	const styles = require_getColorModeStyles.getColorModeStyles(tokens);
	const parentConfigImportant = config().important;
	addBase({
		[(0, lodash_es.isString)(parentConfigImportant) ? parentConfigImportant : ":root"]: styles[require_index$1.DEFAULT_COLOR_MODE],
		[`.${require_index.LIGHT_COLOR_MODE_CLASSNAME}`]: styles.light,
		[`.${require_index.DARK_COLOR_MODE_CLASSNAME}`]: styles.dark
	});
}
//#endregion
exports.addColorModeVars = addColorModeVars;
