/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
const require_index = require('../../css-tokens/dist/index.cjs');
const require_index$1 = require('../../modes/dist/index.cjs');
const require_getColorModeStyles = require('../utils/getColorModeStyles.cjs');
let lodash_isString_js = require("lodash/isString.js");
lodash_isString_js = require_runtime.__toESM(lodash_isString_js);

//#region src/tailwind/base/addColorModeVars.ts
function addColorModeVars(tokens, { addBase, config }) {
	const styles = require_getColorModeStyles.getColorModeStyles(tokens);
	const parentConfigImportant = config().important;
	addBase({
		[(0, lodash_isString_js.default)(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;